@nhost/nhost-js 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nhost/nhost-js",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Nhost JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "url": "git+https://github.com/nhost/nhost.git"
22
22
  },
23
23
  "main": "dist/index.cjs.js",
24
- "module": "dist/index.esm.mjs",
24
+ "module": "dist/index.esm.js",
25
25
  "types": "dist/index.d.ts",
26
26
  "source": "src/index.ts",
27
27
  "files": [
@@ -31,26 +31,24 @@
31
31
  ],
32
32
  "exports": {
33
33
  ".": {
34
- "node": {
35
- "import": "./dist/index.esm.mjs",
36
- "require": "./dist/index.cjs.js"
37
- },
38
- "default": "./dist/index.esm.js"
34
+ "import": "./dist/index.esm.js",
35
+ "require": "./dist/index.cjs.js"
39
36
  }
40
37
  },
41
38
  "publishConfig": {
42
39
  "access": "public"
43
40
  },
44
41
  "dependencies": {
45
- "@nhost/hasura-auth-js": "1.1.12",
46
- "@nhost/hasura-storage-js": "0.3.2",
42
+ "@nhost/hasura-auth-js": "1.2.0",
43
+ "@nhost/hasura-storage-js": "0.3.3",
47
44
  "axios": "^0.27.2",
48
45
  "jwt-decode": "^3.1.2",
49
46
  "query-string": "^7.0.1"
50
47
  },
51
48
  "devDependencies": {
52
- "@nhost/docgen": "0.1.1",
53
- "graphql": "16"
49
+ "@nhost/docgen": "0.1.2",
50
+ "graphql": "16",
51
+ "start-server-and-test": "^1.14.0"
54
52
  },
55
53
  "peerDependencies": {
56
54
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
@@ -60,7 +58,9 @@
60
58
  "build": "run-p build:lib build:umd",
61
59
  "build:lib": "vite build --config ../../config/vite.lib.config.js",
62
60
  "build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
63
- "test": "vitest run --config ../../config/vite.lib.config.js",
61
+ "e2e": "start-test e2e:backend :1337/v1/auth/healthz ci:test",
62
+ "ci:test": "vitest run --config ../../config/vite.lib.config.js",
63
+ "e2e:backend": "nhost dev --no-browser",
64
64
  "test:watch": "vitest --config ../../config/vite.lib.config.js",
65
65
  "prettier": "prettier --check src/",
66
66
  "prettier:fix": "prettier --write src/",