one 1.1.284 → 1.1.286
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/cjs/vite/one.js +1 -1
- package/dist/cjs/vite/one.js.map +1 -1
- package/dist/cjs/vite/one.native.js +1 -1
- package/dist/cjs/vite/one.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/dist/esm/vite/one.js +1 -1
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +1 -1
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +1 -1
- package/dist/esm/vite/one.native.js.map +1 -1
- package/package.json +5 -5
- package/src/cleanUrl.ts +6 -1
- package/src/vite/one.ts +4 -3
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/vite/one.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/cjs/vite/one.js
CHANGED
@@ -73,7 +73,7 @@ function one(options = {}) {
|
|
73
73
|
...options.setupFile && {
|
74
74
|
"process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
|
75
75
|
},
|
76
|
-
...vxrnOptions && {
|
76
|
+
...process.env.NODE_ENV !== "production" && vxrnOptions && {
|
77
77
|
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
78
78
|
}
|
79
79
|
},
|
package/dist/cjs/vite/one.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/one.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAAoE,iBACpE,0BAAO,gCACP,qBAA4B,iCAC5B,wBAA+B,oCAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,iBAAwB,sBAExB,4BAAmD,iCACnD,0BAAiC;AAEjC,mBAAAA,QAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,aAER,wBAAQ,QAAQ,IAAI,CAAC,GAGtB,QAAQ,QAAQ,mBAAmB,UAChC,sCAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EAAE,aAAa,QAAI,6BAAgB,OAAO,GAC1C,cAAc,aAAa,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AAe,8BAAQ,0BAAQ,QAAQ,GAAG,EAAE,GAC5C,UAAU,aAAa,QAAQ,WAAW,EAAE,IAAI;AACtD,cAAI,YAAY,GAAI;AACpB,cAAI;AACF,kBAAM,gBAAgB,eAAe;AACrC,gBAAI,UAAM,gCAAY,aAAa;AACjC,qBAAO;AAET,gBAAI,UAAM,gCAAY,OAAO;AAC3B,qBAAO;AAAA,UAEX,SAAS,KAAK;AACZ,oBAAQ,KAAK,uBAAuB,GAAG;AAAA,UACzC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,QAEA,0CAAiB;AAAA,MACf,SAAS,CAAC,wCAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,uBAAuB;AAEzC,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,UAAM,gCAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,iBAAiB;AAEnC,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,+BAA+B;AAEjD,SAAO;AACT;",
|
5
5
|
"names": ["events", "tsconfigPaths", "path"]
|
6
6
|
}
|
@@ -73,7 +73,7 @@ function one() {
|
|
73
73
|
...options.setupFile && {
|
74
74
|
"process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
|
75
75
|
},
|
76
|
-
...vxrnOptions && {
|
76
|
+
...process.env.NODE_ENV !== "production" && vxrnOptions && {
|
77
77
|
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
78
78
|
}
|
79
79
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|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,KAAK,SAACC,GAAAA;iBAAMA,KAAMA,EAAU,SAAY;eAM7CZ,0BAAsBa,2BAAAA,SACpBN,eAAe,OAAOA,eAAgB,WAAWA,cAAc,CAAC,CAAA;MAEpE;MAEAO,iBAAAA;MAAkB;MAClBC,YAAAA;MAAa;IACf,GACA;MACEC,IAAIC,QAAQC,KAAKC,SAAO;AACtB,YAAID,QAAQ,YAAYA,QAAQ;AAC9B,iBAAOE,QAAQJ,IAAIC,QAAQC,KAAKC,OAAAA;AAGlC,YAAInB;AACF,iBAAOoB,QAAQJ,IAAIhB,qBAAqBkB,KAAKC,OAAAA;MAEjD;IACF,CAAA;IAGF;MACEd,MAAM;MAENjB,SAAAA;YAGUL;AAFR,eAAO;UACLsC,QAAQ;YACN,KAAItC,eAAAA,QAAQuC,SAAG,QAAXvC,iBAAAA,SAAAA,SAAAA,aAAawC,sBAAqB;cACpC,uCAAuCC,KAAKC,UAAU1C,QAAQuC,IAAIC,iBAAiB;YACrF;YAEA,GAAIxC,QAAQ2C,aAAa;cACvB,8BAA8BF,KAAKC,UAAU1C,QAAQ2C,SAAS;YAChE;YAEA,
|
5
|
-
"names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "loadEnv", "process", "cwd", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "devAndProdPlugins", "Proxy", "name", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "define", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "server", "url", "environments", "client", "ssr", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "path", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "clientTreeShakePlugin", "__vxrnAddWebPluginsProd", "createFileSystemRouter", "generateTypesForRoutes", "fixDependenciesPlugin", "deps", "createVirtualEntry", "app", "enforce", "sharedNativeConfig", "resolve", "alias", "react", "requireResolve", "ios", "android", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "mode", "foundOptions"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;yBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAAoE,iBACpE,0BAAO,gCACP,qBAA4B,iCAC5B,wBAA+B,oCAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,iBAAwB,sBAExB,4BAAmD,iCACnD,0BAAiC;AAEjCA,mBAAAA,QAAOC,gBAAgB,GAAA;AAGvBC,WAAWC,wBAAwB;AAE5B,SAASC,MAAAA;MAAIC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA6B,CAAC,GAM5CA;AALJC,eAAaD,aAERE,wBAAQC,QAAQC,IAAG,CAAA,KAGpBJ,kBAAAA,QAAQK,YAAM,QAAdL,oBAAAA,SAAAA,SAAAA,gBAAgBM,oBAAmB,UAChCA,sCAAAA,GAGPT,WAAW,uBAA0BG;AAGrC,MAAM,EAAEO,aAAY,QAAKC,6BAAgB,OAAA,GACnCC,cAAcF,aAAaG,SAC3BC,kBAAkB,IAAIC;;;IAG1B,GAAGH,YAAYI,IAAI,SAACC,IAAAA;aAAOA,GAAGC,QAAQ,uBAAuB,MAAA;OAASC,KAAK,GAAA,CAAA;EAAM,GAG/EC,sBAAqC,MAEnCC,kBAAcC,8BAA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nC,MAAMK,eAAeP,kBAAAA;AACrB,MAAI,CAACO;AACH,UAAM,IAAIL,MAAM,+BAA+B;AAEjD,SAAOK;AACT;",
|
5
|
+
"names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "loadEnv", "process", "cwd", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "devAndProdPlugins", "Proxy", "name", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "define", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "env", "NODE_ENV", "server", "url", "environments", "client", "ssr", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "path", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "clientTreeShakePlugin", "__vxrnAddWebPluginsProd", "createFileSystemRouter", "generateTypesForRoutes", "fixDependenciesPlugin", "deps", "createVirtualEntry", "app", "enforce", "sharedNativeConfig", "resolve", "alias", "react", "requireResolve", "ios", "android", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "mode", "foundOptions"]
|
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/dist/esm/vite/one.js
CHANGED
@@ -60,7 +60,7 @@ function one(options = {}) {
|
|
60
60
|
...options.setupFile && {
|
61
61
|
"process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
|
62
62
|
},
|
63
|
-
...vxrnOptions && {
|
63
|
+
...process.env.NODE_ENV !== "production" && vxrnOptions && {
|
64
64
|
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
65
65
|
}
|
66
66
|
},
|
package/dist/esm/vite/one.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/one.ts"],
|
4
|
-
"mappings": "AAAA,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAS,eAAe;A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B;AAKnE,MAAI,CAJU,MAAM,mBAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,iBAAiB;AAEnC,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,+BAA+B;AAEjD,SAAO;AACT;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/vite/one.mjs
CHANGED
@@ -54,7 +54,7 @@ function one(options = {}) {
|
|
54
54
|
...(options.setupFile && {
|
55
55
|
"process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
|
56
56
|
}),
|
57
|
-
...(vxrnOptions && {
|
57
|
+
...(process.env.NODE_ENV !== "production" && vxrnOptions && {
|
58
58
|
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
59
59
|
})
|
60
60
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","define","web","defaultRenderMode","JSON","stringify","setupFile","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","enforce","sharedNativeConfig","alias","react","ios","android","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","mode","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,QAAwB;AACpE,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,OAAA,QAAe;AAExB,SAASC,kBAAA,EAAoBC,cAAA,QAAsB;AACnD,SAASC,gBAAA,QAAwB;AAEjCnB,MAAA,CAAOoB,eAAA,CAAgB,GAAK;AAG5BC,UAAA,CAAWC,qBAAA,GAAwB;AAE5B,SAASC,IAAIC,OAAA,GAA6B,CAAC,GAAiB;EACjEC,UAAA,GAAaD,OAAA,EAERR,OAAA,CAAQU,OAAA,CAAQC,GAAA,CAAI,CAAC,GAGtBH,OAAA,CAAQI,MAAA,EAAQf,cAAA,KAAmB,MAChCA,cAAA,CAAe,GAGtBQ,UAAA,CAAWQ,oBAAA,GAA0BL,OAAA;EAGrC,MAAM;MAAEM;IAAa,IAAIxB,eAAA,CAAgB,OAAO;IAC1CyB,WAAA,GAAcD,YAAA,CAAaE,OAAA;IAC3BC,eAAA,GAAkB,IAAIC,MAAA;IAAA;IAAA;IAG1B,GAAGH,WAAA,CAAYI,GAAA,CAAKC,EAAA,IAAOA,EAAA,CAAGC,OAAA,CAAQ,uBAAuB,MAAM,CAAC,EAAEC,IAAA,CAAK,GAAG,CAAC,EACjF;EAEA,IAAIC,mBAAA,GAAqC;EAEzC,MAAMC,WAAA,GAAcjC,gBAAA,CAAiB;IAE/BkC,iBAAA,GAAoB;IAAA;IAExB,IAAIC,KAAA,CACF;MACEC,IAAA,EAAM;MACNf,OAAOgB,cAAA,EAAgB;QACrB,MAAMC,WAAA,GAAcrB,OAAA,CAAQI,MAAA,EAAQkB,aAAA;QAChCD,WAAA,KAAgB,OAIlBD,cAAA,CAAeG,OAAA,EACXC,IAAA,CAAK,EACNC,IAAA,CAAMC,CAAA,IAAMA,CAAA,IAAMA,CAAA,CAAUP,IAAA,KAAY,qBAAqB,MAMlEJ,mBAAA,GAAsBlC,aAAA,CACpBwC,WAAA,IAAe,OAAOA,WAAA,IAAgB,WAAWA,WAAA,GAAc,CAAC,CAClE;MACF;MAEAM,eAAA,EAAiB,CAAC;MAClBC,UAAA,EAAY,CAAC;IACf,GACA;MACEC,IAAIC,MAAA,EAAQC,GAAA,EAAKC,OAAA,EAAS;QACxB,IAAID,GAAA,KAAQ,YAAYA,GAAA,KAAQ,QAC9B,OAAOE,OAAA,CAAQJ,GAAA,CAAIC,MAAA,EAAQC,GAAA,EAAKC,OAAO;QAGzC,IAAIjB,mBAAA,EACF,OAAOkB,OAAA,CAAQJ,GAAA,CAAId,mBAAA,EAAqBgB,GAAA,EAAKC,OAAO;MAExD;IACF,CACF,GAEA;MACEb,IAAA,EAAM;MAENf,OAAA,EAAS;QACP,OAAO;UACL8B,MAAA,EAAQ;YACN,IAAIlC,OAAA,CAAQmC,GAAA,EAAKC,iBAAA,IAAqB;cACpC,uCAAuCC,IAAA,CAAKC,SAAA,CAAUtC,OAAA,CAAQmC,GAAA,CAAIC,iBAAiB;YACrF;YAEA,IAAIpC,OAAA,CAAQuC,SAAA,IAAa;cACvB,8BAA8BF,IAAA,CAAKC,SAAA,CAAUtC,OAAA,CAAQuC,SAAS;YAChE;YAEA,
|
1
|
+
{"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","define","web","defaultRenderMode","JSON","stringify","setupFile","env","NODE_ENV","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","enforce","sharedNativeConfig","alias","react","ios","android","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","mode","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,QAAwB;AACpE,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,OAAA,QAAe;AAExB,SAASC,kBAAA,EAAoBC,cAAA,QAAsB;AACnD,SAASC,gBAAA,QAAwB;AAEjCnB,MAAA,CAAOoB,eAAA,CAAgB,GAAK;AAG5BC,UAAA,CAAWC,qBAAA,GAAw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MG,YAAA,GAAeL,iBAAA,CAAkB;EACvC,IAAI,CAACK,YAAA,EACH,MAAM,IAAIH,KAAA,CAAM,+BAA+B;EAEjD,OAAOG,YAAA;AACT","ignoreList":[]}
|
@@ -63,7 +63,7 @@ function one() {
|
|
63
63
|
...(options.setupFile && {
|
64
64
|
"process.env.One_SETUP_FILE": JSON.stringify(options.setupFile)
|
65
65
|
}),
|
66
|
-
...(vxrnOptions && {
|
66
|
+
...(process.env.NODE_ENV !== "production" && vxrnOptions && {
|
67
67
|
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
68
68
|
})
|
69
69
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","arguments","length","_options_config","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","_options_config2","_configIncoming_plugins","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","_options_web","define","web","defaultRenderMode","JSON","stringify","setupFile","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","param","modules","m","relativePath","relative","root","rootDir","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","_options_app","app","enforce","sharedNativeConfig","alias","react","ios","android","applyToEnvironment","environment","importer","shouldOptimize","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","found","mode"],"sources":["../../../src/vite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","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","arguments","length","_options_config","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","_options_config2","_configIncoming_plugins","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","_options_web","define","web","defaultRenderMode","JSON","stringify","setupFile","env","NODE_ENV","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","param","modules","m","relativePath","relative","root","rootDir","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","_options_app","app","enforce","sharedNativeConfig","alias","react","ios","android","applyToEnvironment","environment","importer","shouldOptimize","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","found","mode"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,QAAwB;AACpE,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,OAAA,QAA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nC,OAAM1F,UAAA;AACN;AACE,eAAU2F,kBAAMA,CAAAF,OAAA;EAElB,IAAAG,KAAO,SAAApH,kBAAA;IACTqH,IAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.286",
|
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.286",
|
93
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.286",
|
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.286",
|
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.286",
|
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/src/vite/one.ts
CHANGED
@@ -100,9 +100,10 @@ export function one(options: One.PluginOptions = {}): PluginOption {
|
|
100
100
|
'process.env.One_SETUP_FILE': JSON.stringify(options.setupFile),
|
101
101
|
}),
|
102
102
|
|
103
|
-
...(
|
104
|
-
|
105
|
-
|
103
|
+
...(process.env.NODE_ENV !== 'production' &&
|
104
|
+
vxrnOptions && {
|
105
|
+
'process.env.ONE_SERVER_URL': JSON.stringify(vxrnOptions.server.url),
|
106
|
+
}),
|
106
107
|
},
|
107
108
|
|
108
109
|
environments: {
|
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"}
|
package/types/vite/one.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,YAAY,EAAuC,MAAM,MAAM,CAAA;AAG1F,OAAO,qBAAqB,CAAA;AAS5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,
|
1
|
+
{"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,YAAY,EAAuC,MAAM,MAAM,CAAA;AAG1F,OAAO,qBAAqB,CAAA;AAS5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,CA8PjE;AAeD,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,8BAalE"}
|