one 1.1.312 → 1.1.314
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.cjs +1 -1
- package/dist/cjs/cleanUrl.cjs.map +1 -1
- package/dist/cjs/cleanUrl.native.js +1 -1
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- package/dist/cjs/constants.cjs +2 -0
- package/dist/cjs/constants.cjs.map +1 -1
- package/dist/cjs/constants.native.js +3 -1
- package/dist/cjs/constants.native.js.map +2 -2
- package/dist/cjs/createHandleRequest.cjs +1 -1
- package/dist/cjs/createHandleRequest.cjs.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +1 -1
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/serve.cjs +41 -23
- package/dist/cjs/serve.cjs.map +2 -2
- package/dist/cjs/serve.native.js +22 -19
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/vite/build.cjs +6 -2
- package/dist/cjs/vite/build.cjs.map +1 -1
- package/dist/cjs/vite/build.native.js +5 -2
- package/dist/cjs/vite/build.native.js.map +2 -2
- package/dist/esm/cleanUrl.js +2 -2
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +2 -2
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +2 -2
- package/dist/esm/cleanUrl.native.js.map +2 -2
- package/dist/esm/constants.js +2 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +2 -1
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +2 -1
- package/dist/esm/constants.native.js.map +2 -2
- package/dist/esm/createHandleRequest.js +1 -1
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +1 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +1 -1
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/serve.js +14 -14
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +33 -15
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +15 -19
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/vite/build.js +3 -1
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +5 -1
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +5 -1
- package/dist/esm/vite/build.native.js.map +2 -2
- package/package.json +7 -7
- package/src/cleanUrl.ts +2 -2
- package/src/constants.ts +1 -0
- package/src/createHandleRequest.ts +3 -1
- package/src/serve.ts +37 -15
- package/src/vite/build.ts +2 -0
- package/src/vite/types.ts +5 -1
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/constants.d.ts +1 -0
- package/types/constants.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/serve.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
- package/types/vite/types.d.ts +5 -1
- package/types/vite/types.d.ts.map +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/build.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;sBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAMO,iBACP,kBAA8C,wBAC9C,uBAA6B,iCAG7B,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B;AApB9B;AAuBA,IAAM,EAAEA,WAAWC,UAAUC,WAAU,IAAKC,gBAAAA;AAE5CC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBI,MAAMC,MAG3B;MAI4BC,2BAAAA,oBAseVA,kBAA2BC;AAze5CC,yCAAa,O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vI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASrC,wBAAwB6K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKnL,IAAI,SAACqL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAcvK,KAAK,GAAA,GAEtC0K,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
-
"names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "labelProcess", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;gBAA2B,qCAC3B,kBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAMO,iBACP,kBAA8C,wBAC9C,uBAA6B,iCAG7B,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B;AArB9B;AAwBA,IAAM,EAAEA,WAAWC,UAAUC,WAAU,IAAKC,gBAAAA;AAE5CC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;AAChC,CAAA;AAEA,eAAsBI,MAAMC,MAG3B;MAI4BC,2BAAAA,oBAueVA,kBAA2BC;AA1e5CC,yCA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AAA,GAAiBrI,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASwI,YAAYC,QAAc;AACjC,SAAOA,OAAOzI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASrC,wBAAwB+K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKrL,IAAI,SAACuL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAczK,KAAK,GAAA,GAEtC4K,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
+
"names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "labelProcess", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "constants", "parse", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
6
6
|
}
|
package/dist/esm/cleanUrl.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
isNative,
|
3
3
|
LOADER_JS_POSTFIX,
|
4
|
-
|
4
|
+
LOADER_JS_POSTFIX_REGEX,
|
5
5
|
PRELOAD_JS_POSTFIX
|
6
6
|
} from "./constants";
|
7
7
|
import { getURL } from "./getURL";
|
@@ -22,7 +22,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
|
|
22
22
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
|
23
23
|
}
|
24
24
|
function getPathFromLoaderPath(loaderPath) {
|
25
|
-
return loaderPath.replace(
|
25
|
+
return loaderPath.replace(LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
26
26
|
}
|
27
27
|
export {
|
28
28
|
getLoaderPath,
|
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;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,
|
4
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OACK;AACP,SAAS,cAAc;AACvB,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,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,GAAG,kBAAkB;AACvF;AAEO,SAAS,cACd,aAEA,aAAa,UACb;AACA,QAAM,UAAU,aAAa,OAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBAAgB,UAAU,IAE7D,iBAAiB,IAAI;AAAA,IACzB;AAAA,IACA;AAAA;AAAA,EACF;AAEA,SAAO,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,CAAC,CAAC,CAAC,GAAG,iBAAiB;AACtG;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,yBAAyB,EAAE,EACnC,QAAQ,sBAAsB,EAAE,EAChC,WAAW,MAAM,GAAG;AACzB;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/cleanUrl.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isNative, LOADER_JS_POSTFIX,
|
1
|
+
import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_REGEX, PRELOAD_JS_POSTFIX } from "./constants.mjs";
|
2
2
|
import { getURL } from "./getURL.mjs";
|
3
3
|
import { removeSearch } from "./utils/removeSearch.mjs";
|
4
4
|
function cleanUrl(path) {
|
@@ -17,7 +17,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
|
|
17
17
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
|
18
18
|
}
|
19
19
|
function getPathFromLoaderPath(loaderPath) {
|
20
|
-
return loaderPath.replace(
|
20
|
+
return loaderPath.replace(LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
21
21
|
}
|
22
22
|
export { getLoaderPath, getPathFromLoaderPath, getPreloadPath };
|
23
23
|
//# sourceMappingURL=cleanUrl.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["isNative","LOADER_JS_POSTFIX","
|
1
|
+
{"version":3,"names":["isNative","LOADER_JS_POSTFIX","LOADER_JS_POSTFIX_REGEX","PRELOAD_JS_POSTFIX","getURL","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,QAAA,EACAC,iBAAA,EACAC,uBAAA,EAEAC,kBAAA,QACK;AACP,SAASC,MAAA,QAAc;AACvB,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,aAAA,GAAgBF,QAAA,GAAWN,MAAA,CAAO,IAAI;AAErC,SAASS,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWN,QAAA,CAASQ,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGZ,kBAAkB;AACvF;AAEO,SAASa,cACdF,WAAA,EAEAG,UAAA,GAAajB,QAAA,EACb;EACA,MAAMkB,OAAA,GAAUD,UAAA,GAAab,MAAA,CAAO,IAAI;IAClCe,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWb,QAAA,CAASiB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGd,iBAAiB;AACtG;AAEO,SAASyB,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJlB,OAAA,CAAQP,uBAAA,EAAyB,EAAE,EACnCO,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isNative, LOADER_JS_POSTFIX,
|
1
|
+
import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_REGEX, PRELOAD_JS_POSTFIX } from "./constants";
|
2
2
|
import { getURL } from "./getURL";
|
3
3
|
import { removeSearch } from "./utils/removeSearch";
|
4
4
|
function cleanUrl(path) {
|
@@ -13,7 +13,7 @@ function getLoaderPath(currentPath) {
|
|
13
13
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
|
14
14
|
}
|
15
15
|
function getPathFromLoaderPath(loaderPath) {
|
16
|
-
return loaderPath.replace(
|
16
|
+
return loaderPath.replace(LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
17
17
|
}
|
18
18
|
export {
|
19
19
|
getLoaderPath,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/cleanUrl.ts"],
|
4
|
-
"mappings": "AAAA,SACEA,UACAC,mBACAC,
|
5
|
-
"names": ["isNative", "LOADER_JS_POSTFIX", "
|
4
|
+
"mappings": "AAAA,SACEA,UACAC,mBACAC,yBAEAC,0BACK;AACP,SAASC,cAAc;AACvB,SAASC,oBAAoB;AAE7B,SAASC,SAASC,MAAY;AAC5B,SACEF,aAAaE,IAAAA,EACVC,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,gBAAgBF,WAAWN,OAAAA,IAAW;AAErC,SAASS,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBN,SAASQ,YAAYC,MAAM,CAAA,CAAA,CAAA,GAAMZ,kBAAAA;AACrE;AAEO,SAASa,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAajB,UAEPkB,UAAUD,aAAab,OAAAA,IAAW,IAClCe,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBb,SAASiB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,GAAMd,iBAAAA;AACrF;AAEO,SAASyB,sBAAsBC,YAAkB;AACtD,SAAOA,WACJlB,QAAQP,yBAAyB,EAAA,EACjCO,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;",
|
5
|
+
"names": ["isNative", "LOADER_JS_POSTFIX", "LOADER_JS_POSTFIX_REGEX", "PRELOAD_JS_POSTFIX", "getURL", "removeSearch", "cleanUrl", "path", "replaceAll", "replace", "isClient", "window", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getPathFromLoaderPath", "loaderPath"]
|
6
6
|
}
|
package/dist/esm/constants.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1, CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
1
|
+
const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1, CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`), LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
2
2
|
export {
|
3
3
|
CACHE_KEY,
|
4
4
|
LOADER_JS_POSTFIX,
|
5
|
+
LOADER_JS_POSTFIX_REGEX,
|
5
6
|
LOADER_JS_POSTFIX_UNCACHED,
|
6
7
|
PRELOAD_JS_POSTFIX,
|
7
8
|
isNative,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/constants.ts"],
|
4
|
-
"mappings": "AAAO,MAAM,cAAyD,OAAO,SAAW,KAC3E,cAAyD,OAAO,SAAW,KAC3E,WAAW,IAEX,YAAY,GAAG,QAAQ,IAAI,iBAAiB,KAAK,MAAM,KAAK,OAAO,IAAI,GAAW,CAAC,IAEnF,6BAA6B,mBAC7B,oBAAoB,IAAI,SAAS,GAAG,0BAA0B,IAC9D,qBAAqB,IAAI,SAAS;",
|
4
|
+
"mappings": "AAAO,MAAM,cAAyD,OAAO,SAAW,KAC3E,cAAyD,OAAO,SAAW,KAC3E,WAAW,IAEX,YAAY,GAAG,QAAQ,IAAI,iBAAiB,KAAK,MAAM,KAAK,OAAO,IAAI,GAAW,CAAC,IAEnF,6BAA6B,mBAC7B,0BAA0B,IAAI,OAAO,QAAQ,0BAA0B,GAAG,GAC1E,oBAAoB,IAAI,SAAS,GAAG,0BAA0B,IAC9D,qBAAqB,IAAI,SAAS;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/constants.mjs
CHANGED
@@ -3,7 +3,8 @@ const isWebClient = typeof window < "u",
|
|
3
3
|
isNative = !1,
|
4
4
|
CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`,
|
5
5
|
LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js",
|
6
|
+
LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`),
|
6
7
|
LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`,
|
7
8
|
PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
8
|
-
export { CACHE_KEY, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX, isNative, isWebClient, isWebServer };
|
9
|
+
export { CACHE_KEY, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_REGEX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX, isNative, isWebClient, isWebServer };
|
9
10
|
//# sourceMappingURL=constants.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["isWebClient","window","isWebServer","isNative","CACHE_KEY","process","env","ONE_CACHE_KEY","Math","round","random","LOADER_JS_POSTFIX_UNCACHED","LOADER_JS_POSTFIX","PRELOAD_JS_POSTFIX"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,WAAA,GAAyD,OAAOC,MAAA,GAAW;EAC3EC,WAAA,GAAyD,OAAOD,MAAA,GAAW;EAC3EE,QAAA,GAAW;EAEXC,SAAA,GAAY,GAAGC,OAAA,CAAQC,GAAA,CAAIC,aAAA,IAAiBC,IAAA,CAAKC,KAAA,CAAMD,IAAA,CAAKE,MAAA,CAAO,IAAI,GAAW,CAAC;EAEnFC,0BAAA,GAA6B;EAC7BC,iBAAA,GAAoB,
|
1
|
+
{"version":3,"names":["isWebClient","window","isWebServer","isNative","CACHE_KEY","process","env","ONE_CACHE_KEY","Math","round","random","LOADER_JS_POSTFIX_UNCACHED","LOADER_JS_POSTFIX_REGEX","RegExp","LOADER_JS_POSTFIX","PRELOAD_JS_POSTFIX"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,WAAA,GAAyD,OAAOC,MAAA,GAAW;EAC3EC,WAAA,GAAyD,OAAOD,MAAA,GAAW;EAC3EE,QAAA,GAAW;EAEXC,SAAA,GAAY,GAAGC,OAAA,CAAQC,GAAA,CAAIC,aAAA,IAAiBC,IAAA,CAAKC,KAAA,CAAMD,IAAA,CAAKE,MAAA,CAAO,IAAI,GAAW,CAAC;EAEnFC,0BAAA,GAA6B;EAC7BC,uBAAA,GAA0B,IAAIC,MAAA,CAAO,QAAQF,0BAA0B,GAAG;EAC1EG,iBAAA,GAAoB,IAAIV,SAAS,GAAGO,0BAA0B;EAC9DI,kBAAA,GAAqB,IAAIX,SAAS","ignoreList":[]}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
var isWebClient = !1, isWebServer = !1, isNative = !0, _process_env_ONE_CACHE_KEY, CACHE_KEY = `${(_process_env_ONE_CACHE_KEY = process.env.ONE_CACHE_KEY) !== null && _process_env_ONE_CACHE_KEY !== void 0 ? _process_env_ONE_CACHE_KEY : Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
1
|
+
var isWebClient = !1, isWebServer = !1, isNative = !0, _process_env_ONE_CACHE_KEY, CACHE_KEY = `${(_process_env_ONE_CACHE_KEY = process.env.ONE_CACHE_KEY) !== null && _process_env_ONE_CACHE_KEY !== void 0 ? _process_env_ONE_CACHE_KEY : Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`), LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
2
2
|
export {
|
3
3
|
CACHE_KEY,
|
4
4
|
LOADER_JS_POSTFIX,
|
5
|
+
LOADER_JS_POSTFIX_REGEX,
|
5
6
|
LOADER_JS_POSTFIX_UNCACHED,
|
6
7
|
PRELOAD_JS_POSTFIX,
|
7
8
|
isNative,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/constants.ts"],
|
4
|
-
"mappings": "AAAO,IAAMA,cAAcC,IACdC,cAAcD,IACdE,WAAWF,IAEIA,4BAAfG,YAAY,IAAGH,6BAAAA,QAAQI,IAAIC,mBAAa,QAAzBL,+BAAAA,SAAAA,6BAA6BM,KAAKC,MAAMD,KAAKE,OAAM,IAAK,GAAA,CAAA,IAEvEC,6BAA6B,mBAC7BC,oBAAoB,
|
5
|
-
"names": ["isWebClient", "process", "isWebServer", "isNative", "CACHE_KEY", "env", "ONE_CACHE_KEY", "Math", "round", "random", "LOADER_JS_POSTFIX_UNCACHED", "LOADER_JS_POSTFIX", "PRELOAD_JS_POSTFIX"]
|
4
|
+
"mappings": "AAAO,IAAMA,cAAcC,IACdC,cAAcD,IACdE,WAAWF,IAEIA,4BAAfG,YAAY,IAAGH,6BAAAA,QAAQI,IAAIC,mBAAa,QAAzBL,+BAAAA,SAAAA,6BAA6BM,KAAKC,MAAMD,KAAKE,OAAM,IAAK,GAAA,CAAA,IAEvEC,6BAA6B,mBAC7BC,0BAA0B,IAAIC,OAAO,QAAQF,0BAAAA,GAA6B,GAC1EG,oBAAoB,IAAIT,SAAAA,GAAYM,0BAAAA,IACpCI,qBAAqB,IAAIV,SAAAA;",
|
5
|
+
"names": ["isWebClient", "process", "isWebServer", "isNative", "CACHE_KEY", "env", "ONE_CACHE_KEY", "Math", "round", "random", "LOADER_JS_POSTFIX_UNCACHED", "LOADER_JS_POSTFIX_REGEX", "RegExp", "LOADER_JS_POSTFIX", "PRELOAD_JS_POSTFIX"]
|
6
6
|
}
|
@@ -107,7 +107,7 @@ function createHandleRequest(options, handlers) {
|
|
107
107
|
}
|
108
108
|
function getLoaderParams(url, config) {
|
109
109
|
const params = {}, match = new RegExp(config.workingRegex).exec(url.pathname);
|
110
|
-
if (match?.groups)
|
110
|
+
if (console.log("getting loader params", url), match?.groups)
|
111
111
|
for (const [key, value] of Object.entries(match.groups)) {
|
112
112
|
const namedKey = config.routeKeys[key];
|
113
113
|
params[namedKey] = value;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/createHandleRequest.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,6BAA6B;AACtC,
|
4
|
+
"mappings": "AAAA,SAAS,6BAA6B;AACtC,SAAkC,kCAAkC;AAEpE,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,mBAA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AAA,cACA;AAAA,cACA,aAAa;AAAA,gBACX,MAAM,WAAW;AAAA,gBACjB,QAAQ,gBAAgB,KAAK,KAAK;AAAA,cACpC;AAAA,YACF,CAAC;AAED,2BAAQ,WAAW,GACZ;AAAA,UACT;AAAA,QACF,SAAS,KAAK;AACZ,uBAAO,GAAG,GACJ;AAAA,QACR,UAAE;AACA,iBAAO,eAAe,QAAQ;AAAA,QAChC;AAAA,MACF;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,SAAS,gBACP,KACA,QACA;AACA,QAAM,SAAiC,CAAC,GAClC,QAAQ,IAAI,OAAO,OAAO,YAAY,EAAE,KAAK,IAAI,QAAQ;AAE/D,MADA,QAAQ,IAAI,yBAAyB,GAAG,GACpC,OAAO;AACT,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,MAAM,MAAM,GAAG;AACvD,YAAM,WAAW,OAAO,UAAU,GAAG;AACrC,aAAO,QAAQ,IAAI;AAAA,IACrB;AAEF,SAAO;AACT;AAGA,SAAS,eAAe,UAAkB,OAA0B;AAElE,QAAM,QADQ,IAAI,OAAO,MAAM,UAAU,EACrB,KAAK,QAAQ;AACjC,SAAK,QACE,OAAO;AAAA,IACZ,OAAO,QAAQ,MAAM,SAAS,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,CAAC,CAAC;AAAA,EACpF,IAHmB,CAAC;AAItB;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -113,7 +113,7 @@ function createHandleRequest(options, handlers) {
|
|
113
113
|
function getLoaderParams(url, config) {
|
114
114
|
const params = {},
|
115
115
|
match = new RegExp(config.workingRegex).exec(url.pathname);
|
116
|
-
if (match?.groups) for (const [key, value] of Object.entries(match.groups)) {
|
116
|
+
if (console.log("getting loader params", url), match?.groups) for (const [key, value] of Object.entries(match.groups)) {
|
117
117
|
const namedKey = config.routeKeys[key];
|
118
118
|
params[namedKey] = value;
|
119
119
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","Error","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","env","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AACtC,
|
1
|
+
{"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","Error","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","env","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","log","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AACtC,SAAkCC,0BAAA,QAAkC;AAEpE,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,MA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,OAAO;IACT;EACF;AACF;AAEA,SAAS2B,gBACP/B,GAAA,EACAwC,MAAA,EACA;EACA,MAAM1B,MAAA,GAAiC,CAAC;IAClC2B,KAAA,GAAQ,IAAItD,MAAA,CAAOqD,MAAA,CAAO5C,YAAY,EAAE8C,IAAA,CAAK1C,GAAA,CAAII,QAAQ;EAE/D,IADAsB,OAAA,CAAQiB,GAAA,CAAI,yBAAyB3C,GAAG,GACpCyC,KAAA,EAAOG,MAAA,EACT,WAAW,CAACC,GAAA,EAAKC,KAAK,KAAKxD,MAAA,CAAOyD,OAAA,CAAQN,KAAA,CAAMG,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWR,MAAA,CAAOS,SAAA,CAAUJ,GAAG;IACrC/B,MAAA,CAAOkC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAOhC,MAAA;AACT;AAGA,SAASC,eAAeX,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM8C,KAAA,GADQ,IAAItD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBsD,IAAA,CAAKtC,QAAQ;EACjC,OAAKqC,KAAA,GACEnD,MAAA,CAAO4D,WAAA,CACZ5D,MAAA,CAAOyD,OAAA,CAAQpD,KAAA,CAAMsD,SAAS,EAAEvD,GAAA,CAAI,CAAC,CAACmD,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOL,KAAA,CAAMG,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
|
@@ -142,7 +142,7 @@ function createHandleRequest(options, handlers) {
|
|
142
142
|
}
|
143
143
|
function getLoaderParams(url, config) {
|
144
144
|
var params = {}, match = new RegExp(config.workingRegex).exec(url.pathname);
|
145
|
-
if (match?.groups) {
|
145
|
+
if (console.log("getting loader params", url), match?.groups) {
|
146
146
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
147
147
|
try {
|
148
148
|
for (var _iterator = Object.entries(match.groups)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/createHandleRequest.ts"],
|
4
|
-
"mappings": "AAAA,SAASA,6BAA6B;AACtC,
|
5
|
-
"names": ["getPathFromLoaderPath", "LOADER_JS_POSTFIX_UNCACHED", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
4
|
+
"mappings": "AAAA,SAASA,6BAA6B;AACtC,SAAkCC,kCAAkC;AAEpE,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAmB;AAYrB,SAASC,oBACdC,SACAC,UAIC;AAED,MAAMC,WAAWJ,YAAAA;AACjB,MAAI,CAACI;AACH,UAAM,IAAIC,MAAM,oBAAoB;AAGtC,MAAMC,eACJF,SAASG,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH,IAAII,UAAU;IAAE,GAC7DL;EACT,GAAG,CAAC,CAAA,GAEAM,gBAAgBC,OAAOC,OAAO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AwB;AAChE,MAAMkB,QAAQ,IAAI1B,OAAOQ,MAAMP,UAAU,GACnCuD,QAAQ9B,MAAM+B,KAAKxC,QAAAA;AACzB,SAAKuC,QACErD,OAAO8D,YACZ9D,OAAOyD,QAAQpD,MAAMwD,SAAS,EAAEzD,IAAI,SAAA,OAAA;QAAC,CAACsD,KAAKC,KAAAA,IAAM,OAAaN;WAAR;MAACM;OAAON,gBAAAA,MAAMG,YAAM,QAAZH,kBAAAA,SAAAA,SAAAA,cAAeK,GAAAA;;QAF5D,CAAC;AAItB;",
|
5
|
+
"names": ["getPathFromLoaderPath", "LOADER_JS_POSTFIX_UNCACHED", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "log", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
6
6
|
}
|
package/dist/esm/serve.js
CHANGED
@@ -1,18 +1,14 @@
|
|
1
1
|
import "./polyfills-server";
|
2
2
|
import FSExtra from "fs-extra";
|
3
|
-
import
|
3
|
+
import { join } from "node:path";
|
4
4
|
import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
|
5
|
-
import { labelProcess } from "./cli/label-process";
|
6
|
-
import { createHandleRequest } from "./createHandleRequest";
|
7
|
-
import { isResponse } from "./utils/isResponse";
|
8
|
-
import { isStatusRedirect } from "./utils/isStatus";
|
9
|
-
import { removeUndefined } from "./utils/removeUndefined";
|
10
|
-
import { loadUserOneOptions } from "./vite/one";
|
11
|
-
import { resolveAPIRequest } from "./vite/resolveAPIRequest";
|
12
5
|
process.on("uncaughtException", (err) => {
|
13
6
|
console.error("[one] Uncaught exception", err?.stack || err);
|
14
7
|
});
|
15
8
|
async function serve(args = {}) {
|
9
|
+
const buildInfo = await FSExtra.readJSON("dist/buildInfo.json");
|
10
|
+
process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
|
11
|
+
const { labelProcess } = await import("./cli/label-process"), { removeUndefined } = await import("./utils/removeUndefined"), { loadUserOneOptions } = await import("./vite/one");
|
16
12
|
labelProcess("serve"), loadEnv("production");
|
17
13
|
const oneOptions = await loadUserOneOptions("serve");
|
18
14
|
return process.env.VXRN_REACT_19 = "1", await vxrnServe({
|
@@ -28,13 +24,13 @@ async function serve(args = {}) {
|
|
28
24
|
cacheHeaders: args.cacheHeaders
|
29
25
|
}),
|
30
26
|
async beforeStart(options, app) {
|
31
|
-
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, app);
|
27
|
+
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, buildInfo, app);
|
32
28
|
}
|
33
29
|
}
|
34
30
|
});
|
35
31
|
}
|
36
|
-
async function oneServe(options, vxrnOptions, app) {
|
37
|
-
const
|
32
|
+
async function oneServe(options, vxrnOptions, buildInfo, app) {
|
33
|
+
const { createHandleRequest } = await import("./createHandleRequest"), { isResponse } = await import("./utils/isResponse"), { isStatusRedirect } = await import("./utils/isStatus"), { resolveAPIRequest } = await import("./vite/resolveAPIRequest"), isAPIRequest = /* @__PURE__ */ new WeakMap(), root = vxrnOptions.root || ".", redirects = options.web?.redirects;
|
38
34
|
if (redirects)
|
39
35
|
for (const redirect of redirects)
|
40
36
|
app.get(redirect.source, (context) => {
|
@@ -44,12 +40,14 @@ async function oneServe(options, vxrnOptions, app) {
|
|
44
40
|
});
|
45
41
|
return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
|
46
42
|
});
|
47
|
-
const buildInfo = await FSExtra.readJSON(toAbsolute("dist/buildInfo.json"));
|
48
43
|
if (!buildInfo)
|
49
44
|
throw new Error("No build info found, have you run build?");
|
50
45
|
const { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {};
|
51
|
-
for (const route of builtRoutes)
|
46
|
+
for (const route of builtRoutes) {
|
52
47
|
routeToBuildInfo[route.cleanPath] = route;
|
48
|
+
const bracketRoutePath = route.cleanPath.split("/").map((part) => part[0] === ":" ? `[${part.slice(1)}]` : part).join("/");
|
49
|
+
routeToBuildInfo[bracketRoutePath] = route;
|
50
|
+
}
|
53
51
|
const serverOptions = {
|
54
52
|
...options,
|
55
53
|
root
|
@@ -91,7 +89,9 @@ async function oneServe(options, vxrnOptions, app) {
|
|
91
89
|
if (route.type === "ssr") {
|
92
90
|
const buildInfo2 = routeToBuildInfo[route.page];
|
93
91
|
if (!buildInfo2)
|
94
|
-
throw new Error(
|
92
|
+
throw new Error(
|
93
|
+
`No buildinfo found for ${url}, route: ${route.page}, in keys: ${Object.keys(routeToBuildInfo)}`
|
94
|
+
);
|
95
95
|
try {
|
96
96
|
const loaderData = await (await import(buildInfo2.serverJsPath)).loader?.(loaderProps), preloads = buildInfo2.preloads, headers = new Headers();
|
97
97
|
return headers.set("content-type", "text/html"), new Response(
|
package/dist/esm/serve.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/serve.ts"],
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,OAAO,aAAa;AAEpB,
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,OAAO,aAAa;AAEpB,SAAS,YAAY;AAErB,SAAS,gBAAgB,SAAS,SAAS,iBAAiB;AAK5D,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,4BAA4B,KAAK,SAAS,GAAG;AAC7D,CAAC;A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AAW,QAAQ,GAAG;AACxB,cAAI,iBAAiB,SAAS,MAAM,GAAG;AACrC,kBAAM,WAAW,GAAG,SAAS,QAAQ,IAAI,UAAU,KAAK,EAAE;AAC1D,mBAAO,QAAQ,SAAS,UAAU,SAAS,MAAM;AAAA,UACnD;AAEA,cAAI,aAAa,IAAI,OAAO;AAC1B,gBAAI;AAEF,uBAAS,QAAQ,IAAI,iBAAiB,UAAU;AAAA,YAClD,SAAS,KAAK;AACZ,sBAAQ;AAAA,gBACN,6CACE,QAAQ,IAAI,IACd,wBAAwB,SAAS,QAAQ,IAAI,eAAe,CAAC;AAAA,gBAC7D;AAAA,cACF;AAAA,YACF;AAGF,iBAAO;AAAA,QACT;AAEA,eAAO,QAAQ;AAAA,UACb;AAAA,UACA;AAAA,UACA,aAAa,IAAI,OAAO,IACpB;AAAA,YACE,iBAAiB;AAAA,UACnB,IACA;AAAA,QACN;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,cAAQ,MAAM,kCAAmC,IAAY,KAAQ,EAAE;AAAA,IACzE;AAEA,UAAM,KAAK;AAAA,EACb,CAAC;AACH;",
|
5
5
|
"names": ["buildInfo"]
|
6
6
|
}
|
package/dist/esm/serve.mjs
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
import "./polyfills-server.mjs";
|
2
2
|
import FSExtra from "fs-extra";
|
3
|
-
import
|
3
|
+
import { join } from "node:path";
|
4
4
|
import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
|
5
|
-
import { labelProcess } from "./cli/label-process.mjs";
|
6
|
-
import { createHandleRequest } from "./createHandleRequest.mjs";
|
7
|
-
import { isResponse } from "./utils/isResponse.mjs";
|
8
|
-
import { isStatusRedirect } from "./utils/isStatus.mjs";
|
9
|
-
import { removeUndefined } from "./utils/removeUndefined.mjs";
|
10
|
-
import { loadUserOneOptions } from "./vite/one.mjs";
|
11
|
-
import { resolveAPIRequest } from "./vite/resolveAPIRequest.mjs";
|
12
5
|
process.on("uncaughtException", err => {
|
13
6
|
console.error("[one] Uncaught exception", err?.stack || err);
|
14
7
|
});
|
15
8
|
async function serve(args = {}) {
|
9
|
+
const buildInfo = await FSExtra.readJSON("dist/buildInfo.json");
|
10
|
+
process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
|
11
|
+
const {
|
12
|
+
labelProcess
|
13
|
+
} = await import("./cli/label-process.mjs"),
|
14
|
+
{
|
15
|
+
removeUndefined
|
16
|
+
} = await import("./utils/removeUndefined.mjs"),
|
17
|
+
{
|
18
|
+
loadUserOneOptions
|
19
|
+
} = await import("./vite/one.mjs");
|
16
20
|
labelProcess("serve"), loadEnv("production");
|
17
21
|
const oneOptions = await loadUserOneOptions("serve");
|
18
22
|
return process.env.VXRN_REACT_19 = "1", await vxrnServe({
|
@@ -28,15 +32,26 @@ async function serve(args = {}) {
|
|
28
32
|
cacheHeaders: args.cacheHeaders
|
29
33
|
}),
|
30
34
|
async beforeStart(options, app) {
|
31
|
-
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, app);
|
35
|
+
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, buildInfo, app);
|
32
36
|
}
|
33
37
|
}
|
34
38
|
});
|
35
39
|
}
|
36
|
-
async function oneServe(options, vxrnOptions, app) {
|
37
|
-
const
|
40
|
+
async function oneServe(options, vxrnOptions, buildInfo, app) {
|
41
|
+
const {
|
42
|
+
createHandleRequest
|
43
|
+
} = await import("./createHandleRequest.mjs"),
|
44
|
+
{
|
45
|
+
isResponse
|
46
|
+
} = await import("./utils/isResponse.mjs"),
|
47
|
+
{
|
48
|
+
isStatusRedirect
|
49
|
+
} = await import("./utils/isStatus.mjs"),
|
50
|
+
{
|
51
|
+
resolveAPIRequest
|
52
|
+
} = await import("./vite/resolveAPIRequest.mjs"),
|
38
53
|
isAPIRequest = /* @__PURE__ */new WeakMap(),
|
39
|
-
|
54
|
+
root = vxrnOptions.root || ".",
|
40
55
|
redirects = options.web?.redirects;
|
41
56
|
if (redirects) for (const redirect of redirects) app.get(redirect.source, context => {
|
42
57
|
const destinationUrl = redirect.destination.replace(/:\w+/g, param => {
|
@@ -45,14 +60,17 @@ async function oneServe(options, vxrnOptions, app) {
|
|
45
60
|
});
|
46
61
|
return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
|
47
62
|
});
|
48
|
-
const buildInfo = await FSExtra.readJSON(toAbsolute("dist/buildInfo.json"));
|
49
63
|
if (!buildInfo) throw new Error("No build info found, have you run build?");
|
50
64
|
const {
|
51
65
|
routeMap,
|
52
66
|
builtRoutes
|
53
67
|
} = buildInfo,
|
54
68
|
routeToBuildInfo = {};
|
55
|
-
for (const route of builtRoutes)
|
69
|
+
for (const route of builtRoutes) {
|
70
|
+
routeToBuildInfo[route.cleanPath] = route;
|
71
|
+
const bracketRoutePath = route.cleanPath.split("/").map(part => part[0] === ":" ? `[${part.slice(1)}]` : part).join("/");
|
72
|
+
routeToBuildInfo[bracketRoutePath] = route;
|
73
|
+
}
|
56
74
|
const serverOptions = {
|
57
75
|
...options,
|
58
76
|
root
|
@@ -93,7 +111,7 @@ async function oneServe(options, vxrnOptions, app) {
|
|
93
111
|
}) {
|
94
112
|
if (route.type === "ssr") {
|
95
113
|
const buildInfo2 = routeToBuildInfo[route.page];
|
96
|
-
if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route.page}`);
|
114
|
+
if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route.page}, in keys: ${Object.keys(routeToBuildInfo)}`);
|
97
115
|
try {
|
98
116
|
const loaderData = await (await import(buildInfo2.serverJsPath)).loader?.(loaderProps),
|
99
117
|
preloads = buildInfo2.preloads,
|
package/dist/esm/serve.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","
|
1
|
+
{"version":3,"names":["FSExtra","join","getServerEntry","loadEnv","serve","vxrnServe","process","on","err","console","error","stack","args","buildInfo","readJSON","env","ONE_CACHE_KEY","constants","CACHE_KEY","labelProcess","removeUndefined","loadUserOneOptions","oneOptions","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","createHandleRequest","isResponse","isStatusRedirect","resolveAPIRequest","isAPIRequest","WeakMap","root","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","bracketRoutePath","split","map","part","slice","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","Object","keys","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,SAASC,IAAA,QAAY;AAErB,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAK5DC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBJ,MAAMQ,IAAA,GAA8B,CAAC,GAAG;EAC5D,MAAMC,SAAA,GAAa,MAAMb,OAAA,CAAQc,QAAA,CAAS,qBAAqB;EAG/DR,OAAA,CAAQS,GAAA,CAAIC,aAAA,GAAgBH,SAAA,CAAUI,SAAA,CAAUC,SAAA;EAGhD,MAAM;MAAEC;IAAa,IAAI,MAAM,OAAO,yBAAqB;IACrD;MAAEC;IAAgB,IAAI,MAAM,OAAO,6BAAyB;IAC5D;MAAEC;IAAmB,IAAI,MAAM,OAAO,gBAAY;EAExDF,YAAA,CAAa,OAAO,GACpBhB,OAAA,CAAQ,YAAY;EAEpB,MAAMmB,UAAA,GAAa,MAAMD,kBAAA,CAAmB,OAAO;EAGnD,OAAAf,OAA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