@apps-in-toss/framework 0.0.0-dev.1741859884482 → 0.0.0-dev.1742183674302
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/index.cjs +8 -5
- package/dist/index.js +8 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -271,7 +271,12 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
271
271
|
if (__DEV__) {
|
|
272
272
|
return `http://${local.host}:${local.port}`;
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
const url = new URL(`https://${import_react_native_bedrock4.Bedrock.appName}.alpha-apps.tossmini.com`);
|
|
275
|
+
const deploymentId = env.getDeploymentId();
|
|
276
|
+
if (deploymentId) {
|
|
277
|
+
url.searchParams.set("_deploymentId", deploymentId);
|
|
278
|
+
}
|
|
279
|
+
return url.toString();
|
|
275
280
|
}, [local]);
|
|
276
281
|
const handler = (0, import_react_native_bedrock4.useBridgeHandler)({
|
|
277
282
|
onMessage,
|
|
@@ -293,14 +298,12 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
293
298
|
ref: handler.ref,
|
|
294
299
|
...props,
|
|
295
300
|
source: {
|
|
296
|
-
uri
|
|
297
|
-
headers: {
|
|
298
|
-
"x-mini-deployment-id": env.getDeploymentId()
|
|
299
|
-
}
|
|
301
|
+
uri
|
|
300
302
|
},
|
|
301
303
|
sharedCookiesEnabled: true,
|
|
302
304
|
thirdPartyCookiesEnabled: true,
|
|
303
305
|
cacheEnabled: false,
|
|
306
|
+
cacheMode: "LOAD_NO_CACHE",
|
|
304
307
|
onMessage: handler.onMessage,
|
|
305
308
|
injectedJavaScript: handler.injectedJavaScript,
|
|
306
309
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
|
package/dist/index.js
CHANGED
|
@@ -231,7 +231,12 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
231
231
|
if (__DEV__) {
|
|
232
232
|
return `http://${local.host}:${local.port}`;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
const url = new URL(`https://${Bedrock2.appName}.alpha-apps.tossmini.com`);
|
|
235
|
+
const deploymentId = env.getDeploymentId();
|
|
236
|
+
if (deploymentId) {
|
|
237
|
+
url.searchParams.set("_deploymentId", deploymentId);
|
|
238
|
+
}
|
|
239
|
+
return url.toString();
|
|
235
240
|
}, [local]);
|
|
236
241
|
const handler = useBridgeHandler({
|
|
237
242
|
onMessage,
|
|
@@ -253,14 +258,12 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
253
258
|
ref: handler.ref,
|
|
254
259
|
...props,
|
|
255
260
|
source: {
|
|
256
|
-
uri
|
|
257
|
-
headers: {
|
|
258
|
-
"x-mini-deployment-id": env.getDeploymentId()
|
|
259
|
-
}
|
|
261
|
+
uri
|
|
260
262
|
},
|
|
261
263
|
sharedCookiesEnabled: true,
|
|
262
264
|
thirdPartyCookiesEnabled: true,
|
|
263
265
|
cacheEnabled: false,
|
|
266
|
+
cacheMode: "LOAD_NO_CACHE",
|
|
264
267
|
onMessage: handler.onMessage,
|
|
265
268
|
injectedJavaScript: handler.injectedJavaScript,
|
|
266
269
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.1742183674302",
|
|
5
5
|
"description": "The framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ait": "./bin/ait.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@apps-in-toss/cli": "0.0.0-dev.
|
|
48
|
+
"@apps-in-toss/cli": "0.0.0-dev.1742183674302"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@react-native-bedrock/mpack-next": "0.0.12",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "5a8eb85bc04851921cdcfcf76fce48bfe5115245"
|
|
84
84
|
}
|