Compare commits
26 Commits
@nhost/das
...
@nhost/vue
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b2e3fbd1d | ||
|
|
6f4fdcf73f | ||
|
|
cb529dc60c | ||
|
|
68a449dbfc | ||
|
|
7d0c6d083a | ||
|
|
1353477da1 | ||
|
|
549c7cb7eb | ||
|
|
e131c12d5d | ||
|
|
8bb097c9a7 | ||
|
|
ea31e64a71 | ||
|
|
e1ec5c1be2 | ||
|
|
9822a160d4 | ||
|
|
7c67a2c437 | ||
|
|
8e8884f4e1 | ||
|
|
9923be41ce | ||
|
|
bd6b55868a | ||
|
|
cb7c8c6398 | ||
|
|
4bf40995b5 | ||
|
|
ab5f704280 | ||
|
|
7e0e4d05aa | ||
|
|
0954a44f84 | ||
|
|
5a91c477f0 | ||
|
|
66f73d06a8 | ||
|
|
35d52aab87 | ||
|
|
832210d8ad | ||
|
|
6999562b59 |
@@ -20,7 +20,9 @@ export default defineConfig({
|
||||
exclude: ['**/*.spec.ts', '**/*.test.ts', '**/tests/**'],
|
||||
entryRoot: 'src',
|
||||
// Was defaulting to true until version 1.7
|
||||
skipDiagnostics: true
|
||||
skipDiagnostics: true,
|
||||
// Was defaulting to true until version 2.0
|
||||
copyDtsFiles: true
|
||||
})
|
||||
],
|
||||
test: {
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @nhost/dashboard
|
||||
|
||||
## 0.12.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- 35d52aab: chore(deps): replace `cross-fetch` with `isomorphic-unfetch`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- Updated dependencies [35d52aab]
|
||||
- @nhost/react-apollo@5.0.7
|
||||
- @nhost/nextjs@1.13.12
|
||||
|
||||
## 0.12.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/dashboard",
|
||||
"version": "0.12.1",
|
||||
"version": "0.12.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
@@ -46,7 +46,6 @@
|
||||
"analytics-node": "^6.2.0",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"clsx": "^1.2.1",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"date-fns": "^2.29.3",
|
||||
"generate-password": "^1.7.0",
|
||||
"graphiql": "^2.2.0",
|
||||
@@ -112,7 +111,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
||||
"@typescript-eslint/parser": "^5.43.0",
|
||||
"@vitejs/plugin-react": "^3.0.0",
|
||||
"@vitest/coverage-c8": "^0.27.0",
|
||||
"@vitest/coverage-c8": "^0.29.0",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"babel-loader": "^8.3.0",
|
||||
"babel-plugin-transform-remove-console": "^6.9.4",
|
||||
@@ -130,6 +129,7 @@
|
||||
"lint-staged": ">=13",
|
||||
"msw": "^1.0.1",
|
||||
"msw-storybook-addon": "^1.6.3",
|
||||
"node-fetch": "^3.3.0",
|
||||
"postcss": "^8.4.19",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-organize-imports": "^3.2.0",
|
||||
@@ -140,10 +140,9 @@
|
||||
"tailwindcss": "^3.1.2",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsconfig-paths-webpack-plugin": "^4.0.0",
|
||||
"typescript": "^4.8.4",
|
||||
"vite": "^4.0.2",
|
||||
"vite-tsconfig-paths": "^4.0.3",
|
||||
"vitest": "^0.27.0",
|
||||
"vitest": "^0.29.0",
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"browserslist": {
|
||||
|
||||
@@ -9,7 +9,6 @@ import generateAppServiceUrl from '@/utils/common/generateAppServiceUrl';
|
||||
import getServerError from '@/utils/settings/getServerError';
|
||||
import { getToastStyleProps } from '@/utils/settings/settingsConstants';
|
||||
import { yupResolver } from '@hookform/resolvers/yup';
|
||||
import fetch from 'cross-fetch';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { FormProvider, useForm } from 'react-hook-form';
|
||||
import { toast } from 'react-hot-toast';
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import fetch from 'cross-fetch';
|
||||
import { rest } from 'msw';
|
||||
import { setupServer } from 'msw/node';
|
||||
import type { ManagePermissionOptions } from './managePermission';
|
||||
import managePermission from './managePermission';
|
||||
|
||||
global.fetch = fetch;
|
||||
|
||||
const defaultParameters: ManagePermissionOptions = {
|
||||
dataSource: 'default',
|
||||
schema: 'public',
|
||||
|
||||
@@ -4,7 +4,6 @@ import type {
|
||||
MutationOrQueryBaseOptions,
|
||||
QueryError,
|
||||
} from '@/types/dataBrowser';
|
||||
import fetch from 'cross-fetch';
|
||||
|
||||
export interface FetchMetadataOptions
|
||||
extends Omit<MutationOrQueryBaseOptions, 'schema' | 'table'> {}
|
||||
|
||||
@@ -9,7 +9,6 @@ import type {
|
||||
import extractForeignKeyRelation from '@/utils/dataBrowser/extractForeignKeyRelation';
|
||||
import { getPreparedReadOnlyHasuraQuery } from '@/utils/dataBrowser/hasuraQueryHelpers';
|
||||
import { POSTGRESQL_ERROR_CODES } from '@/utils/dataBrowser/postgresqlConstants';
|
||||
import fetch from 'cross-fetch';
|
||||
import { formatWithArray } from 'node-pg-format';
|
||||
|
||||
export interface FetchTableOptions extends MutationOrQueryBaseOptions {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
|
||||
import matchers from '@testing-library/jest-dom/matchers';
|
||||
import fetch from 'node-fetch';
|
||||
import { expect } from 'vitest';
|
||||
|
||||
// @ts-ignore
|
||||
global.fetch = fetch;
|
||||
|
||||
expect.extend(matchers);
|
||||
|
||||
@@ -13,7 +13,6 @@ import { NhostApolloProvider } from '@nhost/react-apollo';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import type { queries, Queries, RenderOptions } from '@testing-library/react';
|
||||
import { render as rtlRender } from '@testing-library/react';
|
||||
import fetch from 'cross-fetch';
|
||||
import { RouterContext } from 'next/dist/shared/lib/router-context';
|
||||
import type { NextRouter } from 'next/router';
|
||||
import type { PropsWithChildren, ReactElement } from 'react';
|
||||
@@ -32,8 +31,6 @@ const queryClient = new QueryClient({
|
||||
},
|
||||
});
|
||||
|
||||
global.fetch = fetch;
|
||||
|
||||
export const mockRouter: NextRouter = {
|
||||
basePath: '',
|
||||
pathname: '/',
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @nhost-examples/vue-quickstart
|
||||
|
||||
## 0.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- @nhost/apollo@5.0.6
|
||||
- @nhost/vue@1.13.12
|
||||
|
||||
## 0.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost-examples/vue-quickstart",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
@@ -37,7 +37,6 @@
|
||||
"unplugin-vue-components": "^0.19.9",
|
||||
"vite": "^4.0.2",
|
||||
"vite-plugin-pages": "^0.28.0",
|
||||
"vitest": "^0.12.4",
|
||||
"vue-tsc": "^0.38.9"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,15 @@
|
||||
# @nhost/apollo
|
||||
|
||||
## 5.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- Updated dependencies [35d52aab]
|
||||
- @nhost/nhost-js@2.0.6
|
||||
|
||||
## 5.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/apollo",
|
||||
"version": "5.0.5",
|
||||
"version": "5.0.6",
|
||||
"description": "Nhost Apollo Client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @nhost/react-apollo
|
||||
|
||||
## 5.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- @nhost/apollo@5.0.6
|
||||
- @nhost/react@2.0.6
|
||||
|
||||
## 5.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-apollo",
|
||||
"version": "5.0.6",
|
||||
"version": "5.0.7",
|
||||
"description": "Nhost React Apollo client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @nhost/react-urql
|
||||
|
||||
## 2.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- @nhost/react@2.0.6
|
||||
|
||||
## 2.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-urql",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"description": "Nhost React URQL client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
||||
"@typescript-eslint/parser": "^5.42.1",
|
||||
"@vitejs/plugin-react": "^3.0.0",
|
||||
"@vitest/coverage-c8": "^0.27.0",
|
||||
"@vitest/coverage-c8": "^0.29.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint-config-react-app": "^7.0.1",
|
||||
"eslint-plugin-cypress": "^2.12.1",
|
||||
@@ -78,11 +78,11 @@
|
||||
"prettier": "^2.7.1",
|
||||
"turbo": "1.6.3",
|
||||
"typedoc": "^0.22.18",
|
||||
"typescript": "4.9.4",
|
||||
"typescript": "4.9.5",
|
||||
"vite": "^4.0.2",
|
||||
"vite-plugin-dts": "^1.7.1",
|
||||
"vite-plugin-dts": "^2.0.0",
|
||||
"vite-tsconfig-paths": "^4.0.3",
|
||||
"vitest": "^0.27.0"
|
||||
"vitest": "^0.29.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"graphql": "16.6.0"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/docgen
|
||||
|
||||
## 0.1.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
|
||||
## 0.1.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "@nhost/docgen",
|
||||
"description": "Documentation generator for classes and functions",
|
||||
"private": true,
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.cjs.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @nhost/graphql-js
|
||||
|
||||
## 0.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- 35d52aab: chore(deps): replace `cross-fetch` with `isomorphic-unfetch`
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/graphql-js",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"description": "Nhost GraphQL client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -53,7 +53,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@graphql-typed-document-node/core": "^3.1.1",
|
||||
"cross-fetch": "^3.1.5"
|
||||
"isomorphic-unfetch": "^3.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TypedDocumentNode } from '@graphql-typed-document-node/core'
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { parseRequestArgs } from './parse-args'
|
||||
import { resolveRequestDocument } from './resolve-request-document'
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @nhost/hasura-auth-js
|
||||
|
||||
## 2.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- 35d52aab: chore(deps): replace `cross-fetch` with `isomorphic-unfetch`
|
||||
|
||||
## 2.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { faker } from '@faker-js/faker'
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { auth, getHtmlLink, mailhog } from './helpers'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { load } from 'cheerio'
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import createMailhogClient from 'mailhog'
|
||||
import { expect } from 'vitest'
|
||||
import { HasuraAuthClient, SignUpParams } from '../src'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { faker } from '@faker-js/faker'
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { auth, getHtmlLink, signUpAndInUser, signUpAndVerifyUser } from './helpers'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { faker } from '@faker-js/faker'
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { USER_ALREADY_SIGNED_IN } from '../src'
|
||||
import { auth, getHtmlLink, signUpAndInUser, signUpAndVerifyUser } from './helpers'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/hasura-auth-js",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "Hasura-auth client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -63,7 +63,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@simplewebauthn/browser": "^6.0.0",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"isomorphic-unfetch": "^3.1.0",
|
||||
"js-cookie": "^3.0.1",
|
||||
"jwt-decode": "^3.1.2",
|
||||
"xstate": "^4.33.5"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { NETWORK_ERROR_CODE } from '../errors'
|
||||
import { NullableErrorResponse } from '../types'
|
||||
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @nhost/hasura-storage-js
|
||||
|
||||
## 2.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- 35d52aab: chore(deps): replace `cross-fetch` with `isomorphic-unfetch`
|
||||
|
||||
## 2.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/hasura-storage-js",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"description": "Hasura-storage client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -60,11 +60,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"form-data": "^4.0.0",
|
||||
"isomorphic-unfetch": "^3.1.0",
|
||||
"xstate": "^4.33.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nhost/docgen": "workspace:*",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"jpeg-js": "^0.4.4",
|
||||
"pixelmatch": "^5.3.0",
|
||||
"start-server-and-test": "^1.15.2",
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import fetch from 'cross-fetch'
|
||||
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import {
|
||||
ApiDeleteParams,
|
||||
ApiDeleteResponse,
|
||||
|
||||
@@ -131,7 +131,7 @@ export const createMultipleFilesUploadMachine = () => {
|
||||
const additions = files
|
||||
? Array.isArray(files)
|
||||
? files // File[]
|
||||
: 'length' in files // FileList
|
||||
: 'item' in files // FileList
|
||||
? Array.from(files)
|
||||
: [files] // File
|
||||
: [] // No file
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import fetch from 'cross-fetch'
|
||||
import FormData from 'form-data'
|
||||
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { ErrorPayload, StorageUploadResponse } from './types'
|
||||
|
||||
/** Convert any string into ISO-8859-1 */
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import fs from 'fs'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import fetch from 'cross-fetch'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
|
||||
import { storage } from './utils/helpers'
|
||||
import FormData from 'form-data'
|
||||
import fs from 'fs'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { storage } from './utils/helpers'
|
||||
|
||||
describe('test get file', () => {
|
||||
it('should be able to get uploaded file', async () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fetch from 'cross-fetch'
|
||||
import FormData from 'form-data'
|
||||
import fs from 'fs'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import jpeg from 'jpeg-js'
|
||||
import pixelmatch from 'pixelmatch'
|
||||
import { beforeAll, describe, expect, it } from 'vitest'
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import fetch from 'cross-fetch'
|
||||
import FormData from 'form-data'
|
||||
import fs from 'fs'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { storage } from './utils/helpers'
|
||||
|
||||
describe('test upload', () => {
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @nhost/nextjs
|
||||
|
||||
## 1.13.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- 35d52aab: chore(deps): replace `cross-fetch` with `isomorphic-unfetch`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- @nhost/react@2.0.6
|
||||
|
||||
## 1.13.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nextjs",
|
||||
"version": "1.13.11",
|
||||
"version": "1.13.12",
|
||||
"description": "Nhost NextJS library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -64,7 +64,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@nhost/react": "workspace:*",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"isomorphic-unfetch": "^3.1.0",
|
||||
"js-cookie": "^3.0.1",
|
||||
"xstate": "^4.33.5"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { NhostClient, NhostSession } from '@nhost/react'
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
export const refresh = async (nhostUrl: string, refreshToken: string): Promise<NhostSession> => {
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @nhost/nhost-js
|
||||
|
||||
## 2.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- 35d52aab: chore(deps): replace `cross-fetch` with `isomorphic-unfetch`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- Updated dependencies [35d52aab]
|
||||
- @nhost/graphql-js@0.0.4
|
||||
- @nhost/hasura-auth-js@2.0.1
|
||||
- @nhost/hasura-storage-js@2.0.2
|
||||
|
||||
## 2.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nhost-js",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"description": "Nhost JavaScript SDK",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -61,7 +61,7 @@
|
||||
"@nhost/graphql-js": "workspace:*",
|
||||
"@nhost/hasura-auth-js": "workspace:*",
|
||||
"@nhost/hasura-storage-js": "workspace:*",
|
||||
"cross-fetch": "^3.1.5"
|
||||
"isomorphic-unfetch": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"graphql": "16.6.0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fetch from 'cross-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
import { buildUrl, urlFromSubdomain } from '../../utils/helpers'
|
||||
import { NhostClientConstructorParams } from '../../utils/types'
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @nhost/react
|
||||
|
||||
## 2.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- Updated dependencies [35d52aab]
|
||||
- @nhost/nhost-js@2.0.6
|
||||
|
||||
## 2.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"description": "Nhost React library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/sync-versions
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 549c7cb7: chore(deps): bump `glob` to v9
|
||||
|
||||
## 0.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "@nhost/sync-versions",
|
||||
"description": "Sync the versions of Nhost services in each of the packages of a pnpm workspace",
|
||||
"private": true,
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.cjs.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@@ -27,14 +27,14 @@
|
||||
"devDependencies": {
|
||||
"@swc-node/register": "^1.5.4",
|
||||
"@swc/core": "^1.3.11",
|
||||
"@types/glob": "^8.0.0",
|
||||
"@types/glob": "^8.1.0",
|
||||
"@types/node": "^16.11.7",
|
||||
"@types/object-path": "^0.11.1",
|
||||
"typescript": "^4.8.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/find-workspace-dir": "^5.0.0",
|
||||
"glob": "^8.0.3",
|
||||
"glob": "^9.0.0",
|
||||
"object-path": "^0.11.8",
|
||||
"yaml": "^2.1.1"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
import { findWorkspaceDir } from '@pnpm/find-workspace-dir'
|
||||
import fs from 'fs'
|
||||
import glob from 'glob'
|
||||
import { globSync } from 'glob'
|
||||
import { set } from 'object-path'
|
||||
import path from 'path'
|
||||
import yaml from 'yaml'
|
||||
@@ -19,7 +19,7 @@ const main = async () => {
|
||||
fs.readFileSync(path.join(root!, 'nhost-cloud.yaml'), 'utf-8')
|
||||
)
|
||||
|
||||
const nhostConfigs = glob.sync('**/nhost/config.yaml', {
|
||||
const nhostConfigs = globSync('**/nhost/config.yaml', {
|
||||
cwd: root,
|
||||
absolute: true,
|
||||
realpath: true
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @nhost/vue
|
||||
|
||||
## 1.13.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4bf40995: chore(deps): bump `typescript` to `4.9.5`
|
||||
- 8bb097c9: chore(deps): bump `vitest`
|
||||
- Updated dependencies [4bf40995]
|
||||
- Updated dependencies [8bb097c9]
|
||||
- Updated dependencies [35d52aab]
|
||||
- @nhost/nhost-js@2.0.6
|
||||
|
||||
## 1.13.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/vue",
|
||||
"version": "1.13.11",
|
||||
"version": "1.13.12",
|
||||
"description": "Nhost Vue library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
1350
pnpm-lock.yaml
generated
1350
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user