@makeswift/runtime 0.27.0-canary.3 → 0.27.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.
|
@@ -28,7 +28,7 @@ async function manifestHandler(req, { apiKey, manifest }) {
|
|
|
28
28
|
return import_request_response.ApiResponse.json({ message: "Unauthorized" }, { status: 401 });
|
|
29
29
|
}
|
|
30
30
|
return import_request_response.ApiResponse.json({
|
|
31
|
-
version: "0.27.0
|
|
31
|
+
version: "0.27.0",
|
|
32
32
|
interactionMode: true,
|
|
33
33
|
clientSideNavigation: false,
|
|
34
34
|
elementFromPoint: false,
|
package/dist/cjs/client/index.js
CHANGED
|
@@ -204,7 +204,7 @@ Received "${apiKey}" instead.`
|
|
|
204
204
|
}
|
|
205
205
|
this.apiKey = apiKey;
|
|
206
206
|
this.graphqlClient = new import_client.GraphQLClient(new URL("graphql", runtime.apiOrigin).href, {
|
|
207
|
-
"makeswift-runtime-version": "0.27.0
|
|
207
|
+
"makeswift-runtime-version": "0.27.0"
|
|
208
208
|
});
|
|
209
209
|
this.runtime = runtime;
|
|
210
210
|
}
|
|
@@ -216,7 +216,7 @@ Received "${apiKey}" instead.`
|
|
|
216
216
|
const requestHeaders = new Headers({
|
|
217
217
|
"x-api-key": this.apiKey,
|
|
218
218
|
"makeswift-site-api-key": this.apiKey,
|
|
219
|
-
"makeswift-runtime-version": "0.27.0
|
|
219
|
+
"makeswift-runtime-version": "0.27.0"
|
|
220
220
|
});
|
|
221
221
|
if (siteVersion?.token) {
|
|
222
222
|
requestUrl.searchParams.set("version", siteVersion.version);
|
|
@@ -663,7 +663,7 @@ Received "${apiKey}" instead.`
|
|
|
663
663
|
headers: {
|
|
664
664
|
"x-api-key": this.apiKey,
|
|
665
665
|
"makeswift-site-api-key": this.apiKey,
|
|
666
|
-
"makeswift-runtime-version": "0.27.0
|
|
666
|
+
"makeswift-runtime-version": "0.27.0",
|
|
667
667
|
"content-type": "application/json"
|
|
668
668
|
},
|
|
669
669
|
body: JSON.stringify({ token }),
|
|
@@ -8,7 +8,7 @@ async function manifestHandler(req, { apiKey, manifest }) {
|
|
|
8
8
|
return ApiResponse.json({ message: "Unauthorized" }, { status: 401 });
|
|
9
9
|
}
|
|
10
10
|
return ApiResponse.json({
|
|
11
|
-
version: "0.27.0
|
|
11
|
+
version: "0.27.0",
|
|
12
12
|
interactionMode: true,
|
|
13
13
|
clientSideNavigation: false,
|
|
14
14
|
elementFromPoint: false,
|
package/dist/esm/client/index.js
CHANGED
|
@@ -188,7 +188,7 @@ Received "${apiKey}" instead.`
|
|
|
188
188
|
}
|
|
189
189
|
this.apiKey = apiKey;
|
|
190
190
|
this.graphqlClient = new GraphQLClient(new URL("graphql", runtime.apiOrigin).href, {
|
|
191
|
-
"makeswift-runtime-version": "0.27.0
|
|
191
|
+
"makeswift-runtime-version": "0.27.0"
|
|
192
192
|
});
|
|
193
193
|
this.runtime = runtime;
|
|
194
194
|
}
|
|
@@ -200,7 +200,7 @@ Received "${apiKey}" instead.`
|
|
|
200
200
|
const requestHeaders = new Headers({
|
|
201
201
|
"x-api-key": this.apiKey,
|
|
202
202
|
"makeswift-site-api-key": this.apiKey,
|
|
203
|
-
"makeswift-runtime-version": "0.27.0
|
|
203
|
+
"makeswift-runtime-version": "0.27.0"
|
|
204
204
|
});
|
|
205
205
|
if (siteVersion?.token) {
|
|
206
206
|
requestUrl.searchParams.set("version", siteVersion.version);
|
|
@@ -647,7 +647,7 @@ Received "${apiKey}" instead.`
|
|
|
647
647
|
headers: {
|
|
648
648
|
"x-api-key": this.apiKey,
|
|
649
649
|
"makeswift-site-api-key": this.apiKey,
|
|
650
|
-
"makeswift-runtime-version": "0.27.0
|
|
650
|
+
"makeswift-runtime-version": "0.27.0",
|
|
651
651
|
"content-type": "application/json"
|
|
652
652
|
},
|
|
653
653
|
body: JSON.stringify({ token }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/runtime",
|
|
3
|
-
"version": "0.27.0
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "makeswift/makeswift",
|
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
"use-sync-external-store": "^1.5.0",
|
|
233
233
|
"uuid": "^9.0.0",
|
|
234
234
|
"zod": "^3.21.4",
|
|
235
|
-
"@makeswift/next-plugin": "0.6.1",
|
|
236
235
|
"@makeswift/controls": "0.1.16",
|
|
236
|
+
"@makeswift/next-plugin": "0.6.1",
|
|
237
237
|
"@makeswift/prop-controllers": "0.4.10"
|
|
238
238
|
},
|
|
239
239
|
"devDependencies": {
|