one 1.1.284 → 1.1.285
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.js +3 -3
- package/dist/cjs/cleanUrl.js.map +2 -2
- package/dist/cjs/cleanUrl.native.js +3 -3
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- package/dist/esm/cleanUrl.js +2 -1
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +2 -1
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +2 -1
- package/dist/esm/cleanUrl.native.js.map +1 -1
- package/package.json +5 -5
- package/src/cleanUrl.ts +6 -1
- package/types/cleanUrl.d.ts.map +1 -1
package/dist/cjs/cleanUrl.js
CHANGED
@@ -19,15 +19,15 @@ __export(cleanUrl_exports, {
|
|
19
19
|
getPreloadPath: () => getPreloadPath
|
20
20
|
});
|
21
21
|
module.exports = __toCommonJS(cleanUrl_exports);
|
22
|
-
var import_getURL = require("./getURL"),
|
22
|
+
var import_constants = require("./constants"), import_getURL = require("./getURL"), import_constants2 = require("./router/constants"), import_removeSearch = require("./utils/removeSearch");
|
23
23
|
function cleanUrl(path) {
|
24
24
|
return (0, import_removeSearch.removeSearch)(path).replaceAll("/", "_").replace(/_$/, "");
|
25
25
|
}
|
26
|
-
const isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${
|
26
|
+
const isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${import_constants2.CACHE_KEY}` : "", clientSideURL = isClient ? (0, import_getURL.getURL)() : "";
|
27
27
|
function getPreloadPath(currentPath) {
|
28
28
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
|
29
29
|
}
|
30
|
-
function getLoaderPath(currentPath, includeUrl =
|
30
|
+
function getLoaderPath(currentPath, includeUrl = import_constants.isNative) {
|
31
31
|
const baseURL = includeUrl ? (0, import_getURL.getURL)() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "";
|
32
32
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`;
|
33
33
|
}
|
package/dist/cjs/cleanUrl.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cleanUrl.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
5
|
-
"names": []
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAyB,wBACzB,gBAAuB,qBACvBA,oBAA0B,+BAC1B,sBAA6B;AAE7B,SAAS,SAAS,MAAc;AAC9B,aACE,kCAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,2BAAS,KAAK,IACtD,gBAAgB,eAAW,sBAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,cACd,aAEA,aAAa,2BACb;AACA,QAAM,UAAU,iBAAa,sBAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBAAgB,UAAU;AACnE,SAAO,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,kBAAkB,gBAAgB;AACxG;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,mBAAmB,EAAE,EAC7B,QAAQ,sBAAsB,EAAE,EAChC,QAAQ,KAAK,GAAG;AACrB;",
|
5
|
+
"names": ["import_constants"]
|
6
6
|
}
|
@@ -20,16 +20,16 @@ __export(cleanUrl_exports, {
|
|
20
20
|
getPreloadPath: () => getPreloadPath
|
21
21
|
});
|
22
22
|
module.exports = __toCommonJS(cleanUrl_exports);
|
23
|
-
var import_getURL = require("./getURL"),
|
23
|
+
var import_constants = require("./constants"), import_getURL = require("./getURL"), import_constants2 = require("./router/constants"), import_removeSearch = require("./utils/removeSearch");
|
24
24
|
function cleanUrl(path) {
|
25
25
|
return (0, import_removeSearch.removeSearch)(path).replaceAll("/", "_").replace(/_$/, "");
|
26
26
|
}
|
27
|
-
var isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${
|
27
|
+
var isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${import_constants2.CACHE_KEY}` : "", clientSideURL = isClient ? (0, import_getURL.getURL)() : "";
|
28
28
|
function getPreloadPath(currentPath) {
|
29
29
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
|
30
30
|
}
|
31
31
|
function getLoaderPath(currentPath) {
|
32
|
-
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
32
|
+
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : import_constants.isNative, baseURL = includeUrl ? (0, import_getURL.getURL)() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "";
|
33
33
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`;
|
34
34
|
}
|
35
35
|
function getPathFromLoaderPath(loaderPath) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/vxrn/packages/one/src/cleanUrl.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;
|
5
|
-
"names": ["cleanUrl", "path", "removeSearch", "replaceAll", "replace", "isClient", "window", "clientSideSearch", "CACHE_KEY", "clientSideURL", "getURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "getPathFromLoaderPath", "loaderPath"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;uBAAyB,wBACzB,gBAAuB,qBACvBA,oBAA0B,+BAC1B,sBAA6B;AAE7B,SAASC,SAASC,MAAY;AAC5B,aACEC,kCAAaD,IAAAA,EACVE,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,mBAAmBF,WAAW,UAAUG,2BAAAA,KAAc,IACtDC,gBAAgBJ,eAAWK,sBAAAA,IAAW;AAErC,SAASC,eAAeC,aAAmB;AAChD,SAAO,GAAGH,aAAAA,WAAwBT,SAASY,YAAYC,MAAM,CAAA,CAAA,CAAA,cAAiBN,gBAAAA;AAChF;AAEO,SAASO,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAaC,2BAEPC,UAAUF,iBAAaL,sBAAAA,IAAW,IAClCQ,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU;AACnE,SAAO,GAAGJ,OAAAA,GAAUC,OAAAA,WAAkBlB,SAASY,YAAYC,MAAM,CAAA,CAAA,CAAA,kBAAqBN,gBAAAA;AACxF;AAEO,SAASe,sBAAsBC,YAAkB;AACtD,SAAOA,WACJnB,QAAQ,mBAAmB,EAAA,EAC3BA,QAAQ,sBAAsB,EAAA,EAC9BA,QAAQ,KAAK,GAAA;AAClB;",
|
5
|
+
"names": ["import_constants", "cleanUrl", "path", "removeSearch", "replaceAll", "replace", "isClient", "window", "clientSideSearch", "CACHE_KEY", "clientSideURL", "getURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "isNative", "baseURL", "devPath", "process", "env", "NODE_ENV", "getPathFromLoaderPath", "loaderPath"]
|
6
6
|
}
|
package/dist/esm/cleanUrl.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { isNative } from "./constants";
|
1
2
|
import { getURL } from "./getURL";
|
2
3
|
import { CACHE_KEY } from "./router/constants";
|
3
4
|
import { removeSearch } from "./utils/removeSearch";
|
@@ -8,7 +9,7 @@ const isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${CA
|
|
8
9
|
function getPreloadPath(currentPath) {
|
9
10
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
|
10
11
|
}
|
11
|
-
function getLoaderPath(currentPath, includeUrl =
|
12
|
+
function getLoaderPath(currentPath, includeUrl = isNative) {
|
12
13
|
const baseURL = includeUrl ? getURL() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "";
|
13
14
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`;
|
14
15
|
}
|
package/dist/esm/cleanUrl.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cleanUrl.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,SAAS,KAAK,IACtD,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,
|
4
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,SAAS,KAAK,IACtD,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,cACd,aAEA,aAAa,UACb;AACA,QAAM,UAAU,aAAa,OAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBAAgB,UAAU;AACnE,SAAO,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,kBAAkB,gBAAgB;AACxG;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,mBAAmB,EAAE,EAC7B,QAAQ,sBAAsB,EAAE,EAChC,QAAQ,KAAK,GAAG;AACrB;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/cleanUrl.mjs
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { isNative } from "./constants.mjs";
|
1
2
|
import { getURL } from "./getURL.mjs";
|
2
3
|
import { CACHE_KEY } from "./router/constants.mjs";
|
3
4
|
import { removeSearch } from "./utils/removeSearch.mjs";
|
@@ -10,7 +11,7 @@ const isClient = typeof window < "u",
|
|
10
11
|
function getPreloadPath(currentPath) {
|
11
12
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
|
12
13
|
}
|
13
|
-
function getLoaderPath(currentPath, includeUrl =
|
14
|
+
function getLoaderPath(currentPath, includeUrl = isNative) {
|
14
15
|
const baseURL = includeUrl ? getURL() : "",
|
15
16
|
devPath = process.env.NODE_ENV === "development" ? "/_one" : "";
|
16
17
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,
|
1
|
+
{"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEAG,UAAA,GAAahB,QAAA,EACb;EACA,MAAMiB,OAAA,GAAUD,UAAA,GAAaf,MAAA,CAAO,IAAI;IAClCiB,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;EACnE,OAAO,GAAGJ,OAAO,GAAGC,OAAO,WAAWd,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBJ,gBAAgB;AACxG;AAEO,SAASY,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJhB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,EAChCA,OAAA,CAAQ,KAAK,GAAG;AACrB","ignoreList":[]}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { isNative } from "./constants.native.js";
|
1
2
|
import { getURL } from "./getURL.native.js";
|
2
3
|
import { CACHE_KEY } from "./router/constants.native.js";
|
3
4
|
import { removeSearch } from "./utils/removeSearch.native.js";
|
@@ -11,7 +12,7 @@ function getPreloadPath(currentPath) {
|
|
11
12
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
|
12
13
|
}
|
13
14
|
function getLoaderPath(currentPath) {
|
14
|
-
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
15
|
+
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : isNative,
|
15
16
|
baseURL = includeUrl ? getURL() : "",
|
16
17
|
devPath = process.env.NODE_ENV === "development" ? "/_one" : "";
|
17
18
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","arguments","length","baseURL","devPath","process","env","NODE_ENV","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,IAAAC,QAAM,UAAWC,MAAO,MAAW;EAAAC,gBAC7B,GAAAF,QAAmB,aAAWN,SAAU,EAAS,KAAK;EAAAS,aACtD,GAAAH,QAAgB,GAAAP,MAAW,KAAO,EAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,
|
1
|
+
{"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","arguments","length","baseURL","devPath","process","env","NODE_ENV","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,IAAAC,QAAM,UAAWC,MAAO,MAAW;EAAAC,gBAC7B,GAAAF,QAAmB,aAAWN,SAAU,EAAS,KAAK;EAAAS,aACtD,GAAAH,QAAgB,GAAAP,MAAW,KAAO,EAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEA;EAEA,IAAAG,UAAM,GAAUC,SAAA,CAAAC,MAAa,GAAO,KAAID,SAClC,QAAU,KAAQ,IAAIA,SAAA,GAAa,GAAAjB,QAAA;IAAAmB,OAAgB,GAAAH,UAAU,GAAAf,MAAA;IAAAmB,OAAA,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EACnE,OAAO,GAAGJ,OAAO,GAAGC,OAAO,WAAWhB,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBJ,gBAAgB;AACxG;AAEO,SAASc,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJlB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,EAChCA,OAAA,CAAQ,KAAK,GAAG;AACrB","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.285",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -89,12 +89,12 @@
|
|
89
89
|
"@react-navigation/native-stack": "~6.9.13",
|
90
90
|
"@react-navigation/routers": "~6.1.9",
|
91
91
|
"@ungap/structured-clone": "^1.2.0",
|
92
|
-
"@vxrn/universal-color-scheme": "1.1.
|
93
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
92
|
+
"@vxrn/universal-color-scheme": "1.1.285",
|
93
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.285",
|
94
94
|
"babel-dead-code-elimination": "^1.0.6",
|
95
95
|
"citty": "^0.1.6",
|
96
96
|
"core-js": "^3.38.1",
|
97
|
-
"create-vxrn": "1.1.
|
97
|
+
"create-vxrn": "1.1.285",
|
98
98
|
"dotenv": "^16.4.5",
|
99
99
|
"escape-string-regexp": "^5.0.0",
|
100
100
|
"expo-linking": "~6.3.1",
|
@@ -116,7 +116,7 @@
|
|
116
116
|
"url-parse": "^1.5.10",
|
117
117
|
"vite": "6.0.0-beta.1",
|
118
118
|
"vite-tsconfig-paths": "^5.0.1",
|
119
|
-
"vxrn": "1.1.
|
119
|
+
"vxrn": "1.1.285",
|
120
120
|
"ws": "^8.18.0",
|
121
121
|
"xxhashjs": "^0.2.2"
|
122
122
|
},
|
package/src/cleanUrl.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { isNative } from './constants'
|
1
2
|
import { getURL } from './getURL'
|
2
3
|
import { CACHE_KEY } from './router/constants'
|
3
4
|
import { removeSearch } from './utils/removeSearch'
|
@@ -19,7 +20,11 @@ export function getPreloadPath(currentPath: string) {
|
|
19
20
|
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`
|
20
21
|
}
|
21
22
|
|
22
|
-
export function getLoaderPath(
|
23
|
+
export function getLoaderPath(
|
24
|
+
currentPath: string,
|
25
|
+
// browser can be relative
|
26
|
+
includeUrl = isNative
|
27
|
+
) {
|
23
28
|
const baseURL = includeUrl ? getURL() : ''
|
24
29
|
const devPath = process.env.NODE_ENV === 'development' ? '/_one' : ''
|
25
30
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`
|
package/types/cleanUrl.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"AAkBA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAEjD;AAED,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EAEnB,UAAU,UAAW,UAKtB;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,UAKvD"}
|