@webstudio-is/http-client 0.50.0 → 0.52.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/http-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "Webstudio HTTP Client",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"@jest/globals": "^29.3.1",
|
|
10
10
|
"@types/isomorphic-fetch": "^0.0.36",
|
|
11
11
|
"jest": "^29.3.1",
|
|
12
|
-
"typescript": "
|
|
12
|
+
"typescript": "5.0.3",
|
|
13
13
|
"@webstudio-is/jest-config": "^1.0.2",
|
|
14
|
-
"@webstudio-is/prisma-client": "^0.
|
|
15
|
-
"@webstudio-is/
|
|
14
|
+
"@webstudio-is/prisma-client": "^0.52.0",
|
|
15
|
+
"@webstudio-is/react-sdk": "^0.52.0",
|
|
16
16
|
"@webstudio-is/scripts": "^0.0.0",
|
|
17
17
|
"@webstudio-is/tsconfig": "^1.0.1"
|
|
18
18
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"source": "./src/index.ts",
|
|
24
24
|
"import": "./lib/index.js"
|
|
25
25
|
},
|
|
26
|
-
"types": "
|
|
26
|
+
"types": "lib/types/index.d.ts",
|
|
27
27
|
"files": [
|
|
28
28
|
"lib/*",
|
|
29
29
|
"src/*",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "build-package --watch",
|
|
37
37
|
"build": "build-package",
|
|
38
|
+
"dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",
|
|
38
39
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
39
40
|
"typecheck": "tsc --noEmit",
|
|
40
41
|
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fetch from "isomorphic-fetch";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Data } from "@webstudio-is/react-sdk";
|
|
3
3
|
|
|
4
4
|
export const loadProject = async ({
|
|
5
5
|
apiUrl,
|
|
@@ -7,7 +7,7 @@ export const loadProject = async ({
|
|
|
7
7
|
}: {
|
|
8
8
|
apiUrl: string;
|
|
9
9
|
projectId: string;
|
|
10
|
-
}): Promise<Array<
|
|
10
|
+
}): Promise<Array<Data>> => {
|
|
11
11
|
if (apiUrl === undefined) {
|
|
12
12
|
throw new Error("Webstudio API URL is required.");
|
|
13
13
|
}
|
|
File without changes
|