@apps-in-toss/framework 0.0.0-dev.1742869301025 → 0.0.0-dev.1742871497217
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 +4 -5
- package/dist/index.js +4 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -273,20 +273,19 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
|
273
273
|
function mergeSchemeQueryParamsInto(url) {
|
|
274
274
|
const baseUrl = new URL(url);
|
|
275
275
|
const schemeUrl = new URL((0, import_react_native_bedrock4.getSchemeUri)());
|
|
276
|
+
baseUrl.pathname = schemeUrl.pathname;
|
|
276
277
|
for (const [key, value] of schemeUrl.searchParams.entries()) {
|
|
277
278
|
baseUrl.searchParams.set(key, value);
|
|
278
279
|
}
|
|
279
280
|
return baseUrl;
|
|
280
281
|
}
|
|
281
282
|
function getWebViewUri(local) {
|
|
282
|
-
let url;
|
|
283
283
|
if (__DEV__) {
|
|
284
284
|
const devUrl = `http://${local.host}:${local.port}`;
|
|
285
|
-
|
|
286
|
-
} else {
|
|
287
|
-
const { url: rawUrl } = AppsInTossModule.getWebBundleURL({});
|
|
288
|
-
url = mergeSchemeQueryParamsInto(rawUrl);
|
|
285
|
+
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
289
286
|
}
|
|
287
|
+
const { url: rawUrl } = AppsInTossModule.getWebBundleURL({});
|
|
288
|
+
const url = mergeSchemeQueryParamsInto(rawUrl);
|
|
290
289
|
const deploymentId = env.getDeploymentId();
|
|
291
290
|
if (deploymentId) {
|
|
292
291
|
url.searchParams.set("_deploymentId", deploymentId);
|
package/dist/index.js
CHANGED
|
@@ -232,20 +232,19 @@ import { jsx as jsx2 } from "react/jsx-runtime";
|
|
|
232
232
|
function mergeSchemeQueryParamsInto(url) {
|
|
233
233
|
const baseUrl = new URL(url);
|
|
234
234
|
const schemeUrl = new URL(getSchemeUri());
|
|
235
|
+
baseUrl.pathname = schemeUrl.pathname;
|
|
235
236
|
for (const [key, value] of schemeUrl.searchParams.entries()) {
|
|
236
237
|
baseUrl.searchParams.set(key, value);
|
|
237
238
|
}
|
|
238
239
|
return baseUrl;
|
|
239
240
|
}
|
|
240
241
|
function getWebViewUri(local) {
|
|
241
|
-
let url;
|
|
242
242
|
if (__DEV__) {
|
|
243
243
|
const devUrl = `http://${local.host}:${local.port}`;
|
|
244
|
-
|
|
245
|
-
} else {
|
|
246
|
-
const { url: rawUrl } = AppsInTossModule.getWebBundleURL({});
|
|
247
|
-
url = mergeSchemeQueryParamsInto(rawUrl);
|
|
244
|
+
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
248
245
|
}
|
|
246
|
+
const { url: rawUrl } = AppsInTossModule.getWebBundleURL({});
|
|
247
|
+
const url = mergeSchemeQueryParamsInto(rawUrl);
|
|
249
248
|
const deploymentId = env.getDeploymentId();
|
|
250
249
|
if (deploymentId) {
|
|
251
250
|
url.searchParams.set("_deploymentId", deploymentId);
|
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.1742871497217",
|
|
5
5
|
"description": "The framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"ait": "./bin/ait.js"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@apps-in-toss/cli": "0.0.0-dev.
|
|
58
|
+
"@apps-in-toss/cli": "0.0.0-dev.1742871497217"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@react-native-bedrock/mpack-next": "0.0.13",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "06619dc6a09e04a64327cc74886f69ee34b77a99"
|
|
94
94
|
}
|