@nhost/nhost-js 1.4.3 → 1.4.6
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/README.md +2 -2
- package/package.json +5 -4
- package/umd/nhost-js.umd.js +6 -6
- package/umd/nhost-js.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,8 @@ yarn add @nhost/nhost-js
|
|
|
28
28
|
import { NhostClient } from '@nhost/nhost-js'
|
|
29
29
|
|
|
30
30
|
const nhost = new NhostClient({
|
|
31
|
-
|
|
31
|
+
subdomain: '<Your Nhost app subdomain>',
|
|
32
|
+
region: '<Your Nhost app region>'
|
|
32
33
|
})
|
|
33
34
|
```
|
|
34
35
|
|
|
@@ -49,4 +50,3 @@ Access Nhost Storage methods using `nhost.storage`.
|
|
|
49
50
|
### Functions
|
|
50
51
|
|
|
51
52
|
Access Nhost Functions methods via `nhost.functions`.
|
|
52
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nhost/nhost-js",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Nhost JavaScript SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@nhost/hasura-auth-js": "1.3.
|
|
46
|
-
"@nhost/hasura-storage-js": "0.
|
|
45
|
+
"@nhost/hasura-auth-js": "1.3.4",
|
|
46
|
+
"@nhost/hasura-storage-js": "0.5.2",
|
|
47
47
|
"axios": "^0.27.2",
|
|
48
48
|
"jwt-decode": "^3.1.2",
|
|
49
49
|
"query-string": "^7.0.1"
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"ci:test": "vitest run --config ../../config/vite.lib.config.js",
|
|
66
66
|
"e2e:backend": "nhost dev --no-browser",
|
|
67
67
|
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
|
68
|
+
"test:coverage": "vitest run --coverage --config ../../config/vite.lib.config.js",
|
|
68
69
|
"prettier": "prettier --check src/",
|
|
69
70
|
"prettier:fix": "prettier --write src/",
|
|
70
71
|
"lint": "eslint . --ext .ts,.tsx",
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
"typedoc": "typedoc --options ./nhost-js.typedoc.json --tsconfig ./typedoc.tsconfig.json",
|
|
75
76
|
"docgen": "pnpm typedoc && docgen --config ./nhost-js.docgen.json"
|
|
76
77
|
},
|
|
77
|
-
"readme": "<h1 align=\"center\">@nhost/nhost-js</h1>\n<h2 align=\"center\">Nhost JavaScript SDK</h2>\n\n<p align=\"center\">\n <img alt=\"npm\" src=\"https://img.shields.io/npm/v/@nhost/nhost-js\">\n <img alt=\"npm\" src=\"https://img.shields.io/npm/dm/@nhost/nhost-js\">\n <a href=\"LICENSE\">\n <img src=\"https://img.shields.io/badge/license-MIT-yellow.svg\" alt=\"license: MIT\" />\n </a>\n</p>\n\n## Documentation\n\n[Reference documentation](https://docs.nhost.io/reference/javascript)\n\n## Install\n\n```\nnpm install @nhost/nhost-js\n\n# or yarn\nyarn add @nhost/nhost-js\n```\n\n### Initialise\n\n```js\nimport { NhostClient } from '@nhost/nhost-js'\n\nconst nhost = new NhostClient({\n
|
|
78
|
+
"readme": "<h1 align=\"center\">@nhost/nhost-js</h1>\n<h2 align=\"center\">Nhost JavaScript SDK</h2>\n\n<p align=\"center\">\n <img alt=\"npm\" src=\"https://img.shields.io/npm/v/@nhost/nhost-js\">\n <img alt=\"npm\" src=\"https://img.shields.io/npm/dm/@nhost/nhost-js\">\n <a href=\"LICENSE\">\n <img src=\"https://img.shields.io/badge/license-MIT-yellow.svg\" alt=\"license: MIT\" />\n </a>\n</p>\n\n## Documentation\n\n[Reference documentation](https://docs.nhost.io/reference/javascript)\n\n## Install\n\n```\nnpm install @nhost/nhost-js\n\n# or yarn\nyarn add @nhost/nhost-js\n```\n\n### Initialise\n\n```js\nimport { NhostClient } from '@nhost/nhost-js'\n\nconst nhost = new NhostClient({\n subdomain: '<Your Nhost app subdomain>',\n region: '<Your Nhost app region>'\n})\n```\n\n## Features\n\n### GraphQL\n\nAccess Nhost GraphQL methods using `nhost.graphql`.\n\n### Authentication\n\nAccess Nhost Auth methods using `nhost.auth`.\n\n### Storage\n\nAccess Nhost Storage methods using `nhost.storage`.\n\n### Functions\n\nAccess Nhost Functions methods via `nhost.functions`.\n"
|
|
78
79
|
}
|