@nhost/nhost-js 0.2.3 → 0.3.2
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
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
<h2 align="center">Nhost JavaScript SDK</h2>
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<img src="https://img.shields.io/
|
|
5
|
+
<img alt="npm" src="https://img.shields.io/npm/v/@nhost/nhost-js">
|
|
6
|
+
<img alt="npm" src="https://img.shields.io/npm/dm/@nhost/nhost-js">
|
|
6
7
|
<a href="LICENSE">
|
|
7
8
|
<img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="license: MIT" />
|
|
8
9
|
</a>
|
|
9
|
-
<a href="https://commitizen.github.io/cz-cli">
|
|
10
|
-
<img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="commitizen: friendly" />
|
|
11
|
-
</a>
|
|
12
10
|
<a href="https://prettier.io">
|
|
13
11
|
<img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg" alt="code style: prettier" />
|
|
14
12
|
</a>
|
|
@@ -67,7 +67,7 @@ var NhostFunctionsClient = /** @class */ (function () {
|
|
|
67
67
|
return __generator(this, function (_a) {
|
|
68
68
|
switch (_a.label) {
|
|
69
69
|
case 0:
|
|
70
|
-
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers)
|
|
70
|
+
headers = __assign(__assign({}, this.generateAccessTokenHeaders()), config === null || config === void 0 ? void 0 : config.headers);
|
|
71
71
|
_a.label = 1;
|
|
72
72
|
case 1:
|
|
73
73
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/clients/functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAiE;AAOjE;IAIE,8BAAY,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;oCACL,GAAG,EAAE,IAAI;oCACT,KAAK,EAAE,KAAK,CAAC,wCAAwC,CAAC;iCACvD,EAAC;yBACH;wBAED,sBAAO,EAAE,GAAG,KAAA,EAAE,KAAK,EAAE,IAAI,EAAE,EAAC;;;;KAC7B;IAEM,6CAAc,GAArB,UAAsB,WAA+B;QACnD,IAAI,CAAC,WAAW,EAAE;YAChB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,OAAO;SACR;QAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEO,yDAA0B,GAAlC;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,OAAO;SACR;QAED,OAAO;YACL,aAAa,EAAE,YAAU,IAAI,CAAC,WAAa;SAC5C,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AA7DD,IA6DC;AA7DY,oDAAoB"}
|
|
@@ -61,7 +61,7 @@ var NhostFunctionsClient = /** @class */ (function () {
|
|
|
61
61
|
return __generator(this, function (_a) {
|
|
62
62
|
switch (_a.label) {
|
|
63
63
|
case 0:
|
|
64
|
-
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers)
|
|
64
|
+
headers = __assign(__assign({}, this.generateAccessTokenHeaders()), config === null || config === void 0 ? void 0 : config.headers);
|
|
65
65
|
_a.label = 1;
|
|
66
66
|
case 1:
|
|
67
67
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/clients/functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAOjE;IAIE,8BAAY,MAAuC;QACzC,IAAA,GAAG,GAAK,MAAM,IAAX,CAAY;QAEvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAA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A,EAAE,KAAK,EAAE,IAAI,EAAE,EAAC;;;;KAC7B;IAEM,6CAAc,GAArB,UAAsB,WAA+B;QACnD,IAAI,CAAC,WAAW,EAAE;YAChB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,OAAO;SACR;QAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEO,yDAA0B,GAAlC;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,OAAO;SACR;QAED,OAAO;YACL,aAAa,EAAE,YAAU,IAAI,CAAC,WAAa;SAC5C,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AA7DD,IA6DC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nhost/nhost-js",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Nhost JavaScript SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhost"
|
|
@@ -19,18 +19,19 @@
|
|
|
19
19
|
"dist/"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "run-
|
|
22
|
+
"build": "run-p build:esm build:cjs",
|
|
23
23
|
"build:esm": "tsc",
|
|
24
24
|
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
|
25
25
|
"test:backend:start": "cd test/backend; nhost dev -d",
|
|
26
|
-
"test": "jest --runInBand"
|
|
26
|
+
"test": "jest --runInBand",
|
|
27
|
+
"semantic-release": "semantic-release"
|
|
27
28
|
},
|
|
28
29
|
"repository": {
|
|
29
30
|
"type": "git",
|
|
30
31
|
"url": "git+https://github.com/nhost/nhost-js.git"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@nhost/hasura-auth-js": "^0.1.
|
|
34
|
+
"@nhost/hasura-auth-js": "^0.1.8",
|
|
34
35
|
"@nhost/hasura-storage-js": "^0.0.5",
|
|
35
36
|
"axios": "^0.23.0",
|
|
36
37
|
"jwt-decode": "^3.1.2",
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@types/jest": "^27.0.2",
|
|
41
|
-
"np": "^7.5.0",
|
|
42
42
|
"npm-run-all": "^4.1.5",
|
|
43
|
+
"semantic-release": "^18.0.1",
|
|
43
44
|
"ts-jest": "^27.0.7",
|
|
44
45
|
"typedoc": "^0.22.6",
|
|
45
46
|
"typescript": "^4.4.2"
|