@nhost/nhost-js
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -107,3 +107,3 @@ "use strict"; | ||
return { | ||
Authorization: "Bearer " + this.accessToken, | ||
Authorization: "Bearer ".concat(this.accessToken), | ||
}; | ||
@@ -110,0 +110,0 @@ }; |
@@ -127,3 +127,3 @@ "use strict"; | ||
return { | ||
Authorization: "Bearer " + this.accessToken, | ||
Authorization: "Bearer ".concat(this.accessToken), | ||
}; | ||
@@ -130,0 +130,0 @@ }; |
@@ -23,3 +23,3 @@ "use strict"; | ||
this.auth = new hasura_auth_js_1.HasuraAuthClient({ | ||
url: backendUrl + "/v1/auth", | ||
url: "".concat(backendUrl, "/v1/auth"), | ||
refreshIntervalTime: refreshIntervalTime, | ||
@@ -32,9 +32,9 @@ clientStorage: clientStorage, | ||
this.storage = new hasura_storage_js_1.HasuraStorageClient({ | ||
url: backendUrl + "/v1/storage", | ||
url: "".concat(backendUrl, "/v1/storage"), | ||
}); | ||
this.functions = new functions_1.NhostFunctionsClient({ | ||
url: backendUrl + "/v1/functions", | ||
url: "".concat(backendUrl, "/v1/functions"), | ||
}); | ||
this.graphql = new graphql_1.NhostGraphqlClient({ | ||
url: backendUrl + "/v1/graphql", | ||
url: "".concat(backendUrl, "/v1/graphql"), | ||
}); | ||
@@ -41,0 +41,0 @@ // set current token if token is already accessable |
@@ -0,1 +1,5 @@ | ||
import { NhostClient } from '.'; | ||
import { NhostClientConstructorParams } from '.'; | ||
declare const createClient: (config: NhostClientConstructorParams) => NhostClient; | ||
export * from './core'; | ||
export { createClient }; |
@@ -13,3 +13,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createClient = void 0; | ||
var _1 = require("."); | ||
var createClient = function (config) { | ||
return new _1.NhostClient(config); | ||
}; | ||
exports.createClient = createClient; | ||
__exportStar(require("./core"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -101,3 +101,3 @@ var __assign = (this && this.__assign) || function () { | ||
return { | ||
Authorization: "Bearer " + this.accessToken, | ||
Authorization: "Bearer ".concat(this.accessToken), | ||
}; | ||
@@ -104,0 +104,0 @@ }; |
@@ -121,3 +121,3 @@ var __assign = (this && this.__assign) || function () { | ||
return { | ||
Authorization: "Bearer " + this.accessToken, | ||
Authorization: "Bearer ".concat(this.accessToken), | ||
}; | ||
@@ -124,0 +124,0 @@ }; |
@@ -20,3 +20,3 @@ import { HasuraAuthClient } from '@nhost/hasura-auth-js'; | ||
this.auth = new HasuraAuthClient({ | ||
url: backendUrl + "/v1/auth", | ||
url: "".concat(backendUrl, "/v1/auth"), | ||
refreshIntervalTime: refreshIntervalTime, | ||
@@ -29,9 +29,9 @@ clientStorage: clientStorage, | ||
this.storage = new HasuraStorageClient({ | ||
url: backendUrl + "/v1/storage", | ||
url: "".concat(backendUrl, "/v1/storage"), | ||
}); | ||
this.functions = new NhostFunctionsClient({ | ||
url: backendUrl + "/v1/functions", | ||
url: "".concat(backendUrl, "/v1/functions"), | ||
}); | ||
this.graphql = new NhostGraphqlClient({ | ||
url: backendUrl + "/v1/graphql", | ||
url: "".concat(backendUrl, "/v1/graphql"), | ||
}); | ||
@@ -38,0 +38,0 @@ // set current token if token is already accessable |
@@ -0,1 +1,5 @@ | ||
import { NhostClient } from '.'; | ||
import { NhostClientConstructorParams } from '.'; | ||
declare const createClient: (config: NhostClientConstructorParams) => NhostClient; | ||
export * from './core'; | ||
export { createClient }; |
@@ -0,2 +1,7 @@ | ||
import { NhostClient } from '.'; | ||
var createClient = function (config) { | ||
return new NhostClient(config); | ||
}; | ||
export * from './core'; | ||
export { createClient }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@nhost/nhost-js", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Nhost JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -56,1 +56,2 @@ <h1 align="center">@nhost/nhost-js</h1> | ||
[Coming soon](https://docs.nhost.io) | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50092
793
57