one 1.1.299 → 1.1.301
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.js +1 -1
- package/dist/cjs/cleanUrl.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js +1 -1
- package/dist/cjs/cleanUrl.native.js.map +1 -1
- package/dist/cjs/cli/runAndroid.js +34 -0
- package/dist/cjs/cli/runAndroid.js.map +6 -0
- package/dist/cjs/cli/runAndroid.native.js +39 -0
- package/dist/cjs/cli/runAndroid.native.js.map +6 -0
- package/dist/cjs/cli/runIos.js +34 -0
- package/dist/cjs/cli/runIos.js.map +6 -0
- package/dist/cjs/cli/runIos.native.js +39 -0
- package/dist/cjs/cli/runIos.native.js.map +6 -0
- package/dist/cjs/cli.js +23 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/cli.native.js +25 -1
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/createHandleRequest.js +2 -2
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/vite/createFileSystemRouter.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.js +1 -1
- package/dist/cjs/vite/replaceLoader.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js +1 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/esm/cleanUrl.js +1 -1
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +1 -1
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +1 -1
- package/dist/esm/cleanUrl.native.js.map +1 -1
- package/dist/esm/cli/runAndroid.js +10 -0
- package/dist/esm/cli/runAndroid.js.map +6 -0
- package/dist/esm/cli/runAndroid.mjs +10 -0
- package/dist/esm/cli/runAndroid.mjs.map +1 -0
- package/dist/esm/cli/runAndroid.native.js +10 -0
- package/dist/esm/cli/runAndroid.native.js.map +6 -0
- package/dist/esm/cli/runIos.js +10 -0
- package/dist/esm/cli/runIos.js.map +6 -0
- package/dist/esm/cli/runIos.mjs +10 -0
- package/dist/esm/cli/runIos.mjs.map +1 -0
- package/dist/esm/cli/runIos.native.js +10 -0
- package/dist/esm/cli/runIos.native.js.map +6 -0
- package/dist/esm/cli.js +23 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +33 -1
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +25 -1
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/createHandleRequest.js +2 -2
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -2
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +2 -2
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/esm/vite/replaceLoader.js +1 -1
- package/dist/esm/vite/replaceLoader.js.map +1 -1
- package/dist/esm/vite/replaceLoader.mjs +1 -1
- package/dist/esm/vite/replaceLoader.mjs.map +1 -1
- package/dist/esm/vite/replaceLoader.native.js +1 -1
- package/dist/esm/vite/replaceLoader.native.js.map +1 -1
- package/package.json +7 -7
- package/src/cleanUrl.ts +1 -1
- package/src/cli/runAndroid.ts +6 -0
- package/src/cli/runIos.ts +6 -0
- package/src/cli.ts +27 -1
- package/src/createHandleRequest.ts +7 -0
- package/src/vite/createFileSystemRouter.tsx +1 -2
- package/src/vite/replaceLoader.ts +1 -1
- package/types/cli/runAndroid.d.ts +2 -0
- package/types/cli/runAndroid.d.ts.map +1 -0
- package/types/cli/runIos.d.ts +2 -0
- package/types/cli/runIos.d.ts.map +1 -0
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/vite/createFileSystemRouter.d.ts.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","location","statusCode","statusMessage","statusText","value","key","cookies","split","cookie","appendHeader","setHeader","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,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AQ2D,IAAI;IACpC+C,SAAA,GAAYrD,GAAA,CAAImD,WAAA,IAAe;IAC/B7F,IAAA,GAAM,IAAI+C,GAAA,CAAIgD,SAAA,EAAWD,OAAO;IAEhCzG,OAAA,GAAU,IAAI2G,OAAA,CAAQ;EAC5B,WAAWxB,GAAA,IAAO9B,GAAA,CAAIrD,OAAA,EAChBqD,GAAA,CAAIrD,OAAA,CAAQmF,GAAG,KAAGnF,OAAA,CAAQ4G,MAAA,CAAOzB,GAAA,EAAK9B,GAAA,CAAIrD,OAAA,CAAQmF,GAAG,CAAW;EAGtE,OAAO,IAAI0B,OAAA,CAAQlG,IAAA,EAAK;IACtBmG,MAAA,EAAQzD,GAAA,CAAIyD,MAAA;IACZpB,IAAA,EAAM,CAAC,QAAQ,OAAO,SAAS,QAAQ,EAAEqB,QAAA,CAAS1D,GAAA,CAAIyD,MAAA,IAAU,EAAE,IAC9D,MAAME,UAAA,CAAW3D,GAAG,IACpB;IACJrD;EACF,CAAC;AACH;AAEA,SAASgH,WAAWlB,MAAA,EAAkD;EACpE,OAAO,IAAImB,OAAA,CAAQ,CAACC,QAAA,EAASC,MAAA,KAAW;IACtC,MAAMC,MAAA,GAAuB,EAAC;IAC9BtB,MAAA,CAAOuB,EAAA,CAAG,QAASC,KAAA,IAAsBF,MAAA,CAAOG,IAAA,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
1
|
+
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","location","statusCode","statusMessage","statusText","value","key","cookies","split","cookie","appendHeader","setHeader","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,MAAMC,cAAA,GAAiB;AAAM;AAEtB,SAASC,uBAAuBC,OAAA,EAAoC;EACzE,MAAMC,QAAA,GAAW,CAAC,iBAAiBL,mBAAmB;EAEtD,IAAIM,MAAA;IACAC,MAAA;IAEAC,aAAA,GAAgBC,oBAAA,CAAq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,OAAA,CAAQlG,IAAA,EAAK;IACtBmG,MAAA,EAAQzD,GAAA,CAAIyD,MAAA;IACZpB,IAAA,EAAM,CAAC,QAAQ,OAAO,SAAS,QAAQ,EAAEqB,QAAA,CAAS1D,GAAA,CAAIyD,MAAA,IAAU,EAAE,IAC9D,MAAME,UAAA,CAAW3D,GAAG,IACpB;IACJrD;EACF,CAAC;AACH;AAEA,SAASgH,WAAWlB,MAAA,EAAkD;EACpE,OAAO,IAAImB,OAAA,CAAQ,CAACC,QAAA,EAASC,MAAA,KAAW;IACtC,MAAMC,MAAA,GAAuB,EAAC;IAC9BtB,MAAA,CAAOuB,EAAA,CAAG,QAASC,KAAA,IAAsBF,MAAA,CAAOG,IAAA,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/createFileSystemRouter.tsx"],
|
4
|
-
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,uBAAuB;AAChC,SAASC,qBAAqB;AAC9B,SAASC,yBAAyB;AAElC,SAASC,qBAAqBC,sBAAsB;;;;;AAGpD,IAAMC,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;
|
4
|
+
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB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,IAAI,IACpCkD,YAAYxD,IAAIsD,eAAe,IAC/BpI,OAAM,IAAImF,IAAImD,WAAWD,OAAAA,GAEzB5G,UAAU,IAAI8G,QAAAA;AACpB,WAAW5B,OAAO7B,IAAIrD;AACpB,IAAIqD,IAAIrD,QAAQkF,GAAAA,KAAMlF,QAAQ+G,OAAO7B,KAAK7B,IAAIrD,QAAQkF,GAAAA,CAAI;AAG5D,SAAO,IAAI8B,QAAQzI,MAAK;IACtB0I,QAAQ5D,IAAI4D;IACZnB,MAAM;MAAC;MAAQ;MAAO;MAAS;MAAUoB,SAAS7D,IAAI4D,UAAU,EAAA,IAC5D,MAAME,WAAW9D,GAAAA,IACjB;IACJrD;EACF,CAAA;AACF;AAEA,SAASmH,WAAWjB,QAA+B;AACjD,SAAO,IAAIkB,QAAQ,SAACtI,UAASuI,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMzI,SAAQ4I,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
|
5
5
|
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "location", "statusCode", "statusMessage", "statusText", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
|
6
6
|
}
|
@@ -8,7 +8,7 @@ function replaceLoader({
|
|
8
8
|
// make sure this ' ' is added in front,
|
9
9
|
// minifiers will do `return"something"
|
10
10
|
// but if its null then it becomes returnnull
|
11
|
-
" " + stringifiedData
|
11
|
+
" " + stringifiedData.replace(/\$/g, "$$$$")
|
12
12
|
) : code + `
|
13
13
|
export const loader = () => (${stringifiedData})`;
|
14
14
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/replaceLoader.ts"],
|
4
|
-
"mappings": "AAAO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AACF,GAGG;AACD,QAAM,kBAAkB,KAAK,UAAU,UAAU;AAejD,SAZO,KAAK,SAAS,kBAAkB,IAG9B,KAAK;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAIA,MAAM;AAAA,
|
4
|
+
"mappings": "AAAO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AACF,GAGG;AACD,QAAM,kBAAkB,KAAK,UAAU,UAAU;AAejD,SAZO,KAAK,SAAS,kBAAkB,IAG9B,KAAK;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAIA,MAAM,gBAAgB,QAAQ,OAAO,MAAM;AAAA,EAC7C,IARS,OAAO;AAAA,+BAAkC,eAAe;AAYrE;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -7,7 +7,7 @@ function replaceLoader({
|
|
7
7
|
// make sure this ' ' is added in front,
|
8
8
|
// minifiers will do `return"something"
|
9
9
|
// but if its null then it becomes returnnull
|
10
|
-
" " + stringifiedData) : code + `
|
10
|
+
" " + stringifiedData.replace(/\$/g, "$$$$")) : code + `
|
11
11
|
export const loader = () => (${stringifiedData})`;
|
12
12
|
}
|
13
13
|
export { replaceLoader };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["replaceLoader","code","loaderData","stringifiedData","JSON","stringify","includes","replace"],"sources":["../../../src/vite/replaceLoader.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,cAAc;EAC5BC,IAAA;EACAC;AACF,GAGG;EACD,MAAMC,eAAA,GAAkBC,IAAA,CAAKC,SAAA,CAAUH,UAAU;EAejD,OAZOD,IAAA,CAAKK,QAAA,CAAS,kBAAkB,IAG9BL,IAAA,CAAKM,OAAA,CACV;EAAA;EAAA;EAAA;EAIA,MAAMJ,
|
1
|
+
{"version":3,"names":["replaceLoader","code","loaderData","stringifiedData","JSON","stringify","includes","replace"],"sources":["../../../src/vite/replaceLoader.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,cAAc;EAC5BC,IAAA;EACAC;AACF,GAGG;EACD,MAAMC,eAAA,GAAkBC,IAAA,CAAKC,SAAA,CAAUH,UAAU;EAejD,OAZOD,IAAA,CAAKK,QAAA,CAAS,kBAAkB,IAG9BL,IAAA,CAAKM,OAAA,CACV;EAAA;EAAA;EAAA;EAIA,MAAMJ,eAAA,CAAgBI,OAAA,CAAQ,OAAO,MAAM,CAC7C,IARSN,IAAA,GAAO;AAAA,+BAAkCE,eAAe;AAYrE","ignoreList":[]}
|
@@ -5,7 +5,7 @@ function replaceLoader(param) {
|
|
5
5
|
// make sure this ' ' is added in front,
|
6
6
|
// minifiers will do `return"something"
|
7
7
|
// but if its null then it becomes returnnull
|
8
|
-
" " + stringifiedData
|
8
|
+
" " + stringifiedData.replace(/\$/g, "$$$$")
|
9
9
|
) : code + `
|
10
10
|
export const loader = () => (${stringifiedData})`;
|
11
11
|
}();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/replaceLoader.ts"],
|
4
|
-
"mappings": "AAAO,SAASA,cAAc,OAM7B;MAN6B,EAC5BC,MACAC,WAAU,IAFkB,OAOtBC,kBAAkBC,KAAKC,UAAUH,UAAAA,GAEjCI,MAAO,WAAA;AACX,WAAKL,KAAKM,SAAS,kBAAA,IAGZN,KAAKO;MACV;;;;MAIA,MAAML;
|
4
|
+
"mappings": "AAAO,SAASA,cAAc,OAM7B;MAN6B,EAC5BC,MACAC,WAAU,IAFkB,OAOtBC,kBAAkBC,KAAKC,UAAUH,UAAAA,GAEjCI,MAAO,WAAA;AACX,WAAKL,KAAKM,SAAS,kBAAA,IAGZN,KAAKO;MACV;;;;MAIA,MAAML,gBAAgBK,QAAQ,OAAO,MAAA;IAAA,IAP9BP,OAAO;+BAAkCE,eAAAA;EASpD,EAAA;AAEA,SAAOG;AACT;",
|
5
5
|
"names": ["replaceLoader", "code", "loaderData", "stringifiedData", "JSON", "stringify", "out", "includes", "replace"]
|
6
6
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.301",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -89,13 +89,13 @@
|
|
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/tslib-lite": "1.1.
|
93
|
-
"@vxrn/universal-color-scheme": "1.1.
|
94
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
92
|
+
"@vxrn/tslib-lite": "1.1.301",
|
93
|
+
"@vxrn/universal-color-scheme": "1.1.301",
|
94
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.301",
|
95
95
|
"babel-dead-code-elimination": "^1.0.6",
|
96
96
|
"citty": "^0.1.6",
|
97
97
|
"core-js": "^3.38.1",
|
98
|
-
"create-vxrn": "1.1.
|
98
|
+
"create-vxrn": "1.1.301",
|
99
99
|
"dotenv": "^16.4.5",
|
100
100
|
"escape-string-regexp": "^5.0.0",
|
101
101
|
"expo-linking": "~6.3.1",
|
@@ -117,7 +117,7 @@
|
|
117
117
|
"url-parse": "^1.5.10",
|
118
118
|
"vite": "6.0.0-beta.1",
|
119
119
|
"vite-tsconfig-paths": "^5.0.1",
|
120
|
-
"vxrn": "1.1.
|
120
|
+
"vxrn": "1.1.301",
|
121
121
|
"ws": "^8.18.0",
|
122
122
|
"xxhashjs": "^0.2.2"
|
123
123
|
},
|
@@ -125,7 +125,7 @@
|
|
125
125
|
"react-native": "*"
|
126
126
|
},
|
127
127
|
"devDependencies": {
|
128
|
-
"@tamagui/build": "^1.
|
128
|
+
"@tamagui/build": "^1.114.2",
|
129
129
|
"@types/node": "^22.1.0",
|
130
130
|
"@types/react-dom": "^18.2.25",
|
131
131
|
"@types/url-parse": "^1.4.11",
|
package/src/cleanUrl.ts
CHANGED
package/src/cli.ts
CHANGED
@@ -121,6 +121,30 @@ const prebuild = defineCommand({
|
|
121
121
|
},
|
122
122
|
})
|
123
123
|
|
124
|
+
const runIos = defineCommand({
|
125
|
+
meta: {
|
126
|
+
name: 'run:ios',
|
127
|
+
version: version,
|
128
|
+
},
|
129
|
+
args: {},
|
130
|
+
async run({ args }) {
|
131
|
+
const { run } = await import('./cli/runIos')
|
132
|
+
await run(args)
|
133
|
+
},
|
134
|
+
})
|
135
|
+
|
136
|
+
const runAndroid = defineCommand({
|
137
|
+
meta: {
|
138
|
+
name: 'run:ios',
|
139
|
+
version: version,
|
140
|
+
},
|
141
|
+
args: {},
|
142
|
+
async run({ args }) {
|
143
|
+
const { run } = await import('./cli/runAndroid')
|
144
|
+
await run(args)
|
145
|
+
},
|
146
|
+
})
|
147
|
+
|
124
148
|
const clean = defineCommand({
|
125
149
|
meta: {
|
126
150
|
name: 'clean',
|
@@ -144,7 +168,7 @@ const main = defineCommand({
|
|
144
168
|
},
|
145
169
|
args: {},
|
146
170
|
async run({ args }) {
|
147
|
-
if (['clean', 'prebuild'].includes(args._[0])) {
|
171
|
+
if (['clean', 'prebuild', 'run:ios', 'run:android'].includes(args._[0])) {
|
148
172
|
// IDK why we're getting into here after a subcommand has been run
|
149
173
|
return
|
150
174
|
}
|
@@ -157,6 +181,8 @@ const main = defineCommand({
|
|
157
181
|
clean,
|
158
182
|
build: buildCommand,
|
159
183
|
prebuild,
|
184
|
+
'run:ios': runIos,
|
185
|
+
'run:android': runAndroid,
|
160
186
|
serve: serveCommand,
|
161
187
|
},
|
162
188
|
})
|
@@ -110,6 +110,11 @@ export function createHandleRequest(
|
|
110
110
|
const finalUrl = new URL(originalUrl, url.origin)
|
111
111
|
|
112
112
|
for (const route of pageRoutes) {
|
113
|
+
if (route.file === '') {
|
114
|
+
// ignore not found route
|
115
|
+
// TODO improve/remove when not found is fixed
|
116
|
+
continue
|
117
|
+
}
|
113
118
|
if (!route.workingRegex.test(finalUrl.pathname)) {
|
114
119
|
continue
|
115
120
|
}
|
@@ -137,6 +142,8 @@ export function createHandleRequest(
|
|
137
142
|
return err
|
138
143
|
}
|
139
144
|
|
145
|
+
console.error(`Error running loader: ${err}`)
|
146
|
+
|
140
147
|
throw err
|
141
148
|
}
|
142
149
|
}
|
@@ -18,8 +18,6 @@ import { virtalEntryIdClient, virtualEntryId } from './virtualEntryPlugin'
|
|
18
18
|
const USE_SERVER_ENV = false //!!process.env.USE_SERVER_ENV
|
19
19
|
|
20
20
|
export function createFileSystemRouter(options: One.PluginOptions): Plugin {
|
21
|
-
// const { optimizeDeps } = getOptimizeDeps('serve')
|
22
|
-
|
23
21
|
const preloads = ['/@vite/client', virtalEntryIdClient]
|
24
22
|
|
25
23
|
let runner: ModuleRunner
|
@@ -364,6 +362,7 @@ export function createFileSystemRouter(options: One.PluginOptions): Plugin {
|
|
364
362
|
res.end()
|
365
363
|
return
|
366
364
|
} catch (error) {
|
365
|
+
console.error(`One routing error: ${error}`)
|
367
366
|
// Forward the error to Vite
|
368
367
|
next(error)
|
369
368
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runAndroid.d.ts","sourceRoot":"","sources":["../../src/cli/runAndroid.ts"],"names":[],"mappings":"AAAA,wBAAsB,GAAG,CAAC,IAAI,EAAE,EAAE,iBAKjC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runIos.d.ts","sourceRoot":"","sources":["../../src/cli/runIos.ts"],"names":[],"mappings":"AAAA,wBAAsB,GAAG,CAAC,IAAI,EAAE,EAAE,iBAKjC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createHandleRequest.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,KAAK,mBAAmB,CAAC,eAAe,SAAS,MAAM,GAAG,EAAE,IAAI;IAC9D,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,eAAe,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE;QAAE,IAA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,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACzD;;uBAgCgD,OAAO,KAAG,OAAO,CAAC,sBAAsB,CAAC;EAiJ3F"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createFileSystemRouter.d.ts","sourceRoot":"","sources":["../../src/vite/createFileSystemRouter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,MAAM,EAAiB,MAAM,MAAM,CAAA;AAW1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAMlC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"createFileSystemRouter.d.ts","sourceRoot":"","sources":["../../src/vite/createFileSystemRouter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,MAAM,EAAiB,MAAM,MAAM,CAAA;AAW1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAMlC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,CAuWzE"}
|