graphlit-client 1.0.20250611013 → 1.0.20250611015
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/dist/client.js +2 -3
- package/package.json +3 -2
package/dist/client.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
import { sign } from "jsonwebtoken";
|
1
|
+
import jwt from "jsonwebtoken";
|
3
2
|
// Apollo core (React-free) via createRequire
|
4
3
|
import { createRequire } from "node:module";
|
5
4
|
const require = createRequire(import.meta.url);
|
@@ -183,7 +182,7 @@ class Graphlit {
|
|
183
182
|
iss: "graphlit",
|
184
183
|
aud: "https://portal.graphlit.io",
|
185
184
|
};
|
186
|
-
this.token = sign(payload, this.jwtSecret, { algorithm: "HS256" });
|
185
|
+
this.token = jwt.sign(payload, this.jwtSecret, { algorithm: "HS256" });
|
187
186
|
}
|
188
187
|
async getProject() {
|
189
188
|
return this.queryAndCheckError(Documents.GetProject, {});
|
package/package.json
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "graphlit-client",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.20250611015",
|
4
4
|
"description": "Graphlit API Client for TypeScript",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./dist/client.js",
|
7
7
|
"types": "./dist/client.d.ts",
|
8
8
|
"exports": {
|
9
9
|
".": "./dist/client.js",
|
10
|
-
"./generated/*": "./dist/generated/*.js"
|
10
|
+
"./generated/*": "./dist/generated/*.js",
|
11
|
+
"./dist/generated/*": "./dist/generated/*.js"
|
11
12
|
},
|
12
13
|
"files": [
|
13
14
|
"dist"
|