@expo/router-server 58.0.19 → 58.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,7 +75,7 @@ function getWatchHandler(outputDir, { ctx = defaultCtx, regenerateFn = regenerat
|
|
|
75
75
|
if (!process.env.EXPO_ROUTER_APP_ROOT) return;
|
|
76
76
|
let shouldRegenerate = false;
|
|
77
77
|
let relativePath = _nodepath().default.relative(process.env.EXPO_ROUTER_APP_ROOT, filePath);
|
|
78
|
-
const isInsideAppRoot = !relativePath.startsWith(
|
|
78
|
+
const isInsideAppRoot = relativePath && relativePath !== '..' && !relativePath.startsWith(`..${_nodepath().default.sep}`) && !_nodepath().default.isAbsolute(relativePath);
|
|
79
79
|
const basename = _nodepath().default.basename(relativePath);
|
|
80
80
|
if (!isInsideAppRoot) return;
|
|
81
81
|
// require.context paths always start with './' when relative to the root
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["typed-routes/index.ts"],"sourcesContent":[null],"names":["getWatchHandler","regenerateDeclarations","version","defaultCtx","requireContext","process","env","EXPO_ROUTER_APP_ROOT","EXPO_ROUTER_CTX_IGNORE","outputDir","ctx","regenerateFn","routeFiles","Set","keys","filter","key","isTypedRoute","callback","filePath","type","shouldRegenerate","relativePath","path","relative","isInsideAppRoot","startsWith","basename","__delete","has","delete","__add","add","debounce","options","file","getTypedRoutesDeclarationFile","fs","writeFileSync","resolve","error","console","fn","timeout","timer","args","clearTimeout","setTimeout"],"mappings":";;;;;;;;;;;;;;;;QAqBgBA;eAAAA;;
|
|
1
|
+
{"version":3,"sources":["typed-routes/index.ts"],"sourcesContent":[null],"names":["getWatchHandler","regenerateDeclarations","version","defaultCtx","requireContext","process","env","EXPO_ROUTER_APP_ROOT","EXPO_ROUTER_CTX_IGNORE","outputDir","ctx","regenerateFn","routeFiles","Set","keys","filter","key","isTypedRoute","callback","filePath","type","shouldRegenerate","relativePath","path","relative","isInsideAppRoot","startsWith","sep","isAbsolute","basename","__delete","has","delete","__add","add","debounce","options","file","getTypedRoutesDeclarationFile","fs","writeFileSync","resolve","error","console","fn","timeout","timer","args","clearTimeout","setTimeout"],"mappings":";;;;;;;;;;;;;;;;QAqBgBA;eAAAA;;QA4DHC;eAAAA;;QAjEAC;eAAAA;;;;yBAhB0B;;;;;;;yBACV;;;;;;;yBAC+B;;;;;;;gEAC7C;;;;;;;gEACE;;;;;;0BAE6B;;;;;;AAE9C,MAAMC,aAAaC,IAAAA,yBAAc,EAACC,QAAQC,GAAG,CAACC,oBAAoB,EAAE,MAAMC,mCAAsB;AAQzF,MAAMN,UAAU;AAKhB,SAASF,gBACdS,SAAiB,EACjB,EAAEC,MAAMP,UAAU,EAAEQ,eAAeV,sBAAsB,EAAE,GAAG,CAAC,EAAE,sBAAsB;AAAvB;IAEhE,MAAMW,aAAa,IAAIC,IAAIH,IAAII,IAAI,GAAGC,MAAM,CAAC,CAACC,MAAQC,IAAAA,uBAAY,EAACD;IAEnE,OAAO,eAAeE,SAASC,QAAgB,EAAEC,IAAiC;QAChF,qDAAqD;QACrD,IAAI,CAACf,QAAQC,GAAG,CAACC,oBAAoB,EAAE;QAEvC,IAAIc,mBAAmB;QACvB,IAAIC,eAAeC,mBAAI,CAACC,QAAQ,CAACnB,QAAQC,GAAG,CAACC,oBAAoB,EAAEY;QACnE,MAAMM,kBACJH,gBACAA,iBAAiB,QACjB,CAACA,aAAaI,UAAU,CAAC,CAAC,EAAE,EAAEH,mBAAI,CAACI,GAAG,EAAE,KACxC,CAACJ,mBAAI,CAACK,UAAU,CAACN;QACnB,MAAMO,WAAWN,mBAAI,CAACM,QAAQ,CAACP;QAE/B,IAAI,CAACG,iBAAiB;QAEtB,yEAAyE;QACzEH,eAAe,CAAC,EAAE,EAAEA,cAAc;QAElC,IAAIF,SAAS,UAAU;YACrBV,IAAIoB,QAAQ,CAACR;YACb,IAAIV,WAAWmB,GAAG,CAACT,eAAe;gBAChCV,WAAWoB,MAAM,CAACV;gBAClBD,mBAAmB;YACrB;QACF,OAAO,IAAID,SAAS,OAAO;YACzBV,IAAIuB,KAAK,CAACX;YACV,IAAIL,IAAAA,uBAAY,EAACY,WAAW;gBAC1BjB,WAAWsB,GAAG,CAACZ;gBACfD,mBAAmB;YACrB;QACF,OAAO;YACLA,mBAAmBT,WAAWmB,GAAG,CAACT;QACpC;QAEA,IAAID,kBAAkB;YACpB,4GAA4G;YAC5G,4EAA4E;YAC5EV,aAAaF,WAAW,CAAC,GAAGC;QAC9B;IACF;AACF;AAcO,MAAMT,yBAAyBkC,SACpC,CACE1B,WACA2B,UAA4C,CAAC,CAAC,EAC9C1B,MAA8BP,UAAU;IAExC,6FAA6F;IAC7F,IAAI;QACF,MAAMkC,OAAOC,IAAAA,uCAA6B,EAAC5B,KAAK0B;QAChD,IAAI,CAACC,MAAM;QACXE,iBAAE,CAACC,aAAa,CAACjB,mBAAI,CAACkB,OAAO,CAAChC,WAAW,kBAAkB4B;IAC7D,EAAE,OAAOK,OAAO;QACdC,QAAQD,KAAK,CAACA;IAChB;AACF;AAGF;;;CAGC,GACD,SAASP,SACPS,EAAK,EACLC,UAAkB,IAAI;IAEtB,IAAIC;IACJ,OAAO,CAAC,GAAGC;QACTC,aAAaF;QACbA,QAAQG,WAAW;YACjBL,MAAMG;QACR,GAAGF;IACL;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/router-server",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.21",
|
|
4
4
|
"description": "Expo Router is a file-based router for React Native and web applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"debug": "^4.3.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@expo/internal-scripts": "58.0.
|
|
33
|
+
"@expo/internal-scripts": "58.0.6",
|
|
34
34
|
"@types/debug": "^4.1.7",
|
|
35
35
|
"@types/jest": "^30.0.0",
|
|
36
36
|
"@types/node": "^22.14.0",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@types/react-dom": "^19.1.7",
|
|
39
39
|
"@typescript/vfs": "^1.6.4",
|
|
40
40
|
"expect-type": "^1.3.0",
|
|
41
|
-
"expo-router": "58.0.
|
|
41
|
+
"expo-router": "58.0.30",
|
|
42
42
|
"node-html-parser": "^6.1.5",
|
|
43
43
|
"react-server-dom-webpack": "~19.0.8"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@expo/metro-runtime": "^58.0.
|
|
46
|
+
"@expo/metro-runtime": "^58.0.17",
|
|
47
47
|
"expo": "*",
|
|
48
|
-
"expo-constants": "^58.0.
|
|
48
|
+
"expo-constants": "^58.0.15",
|
|
49
49
|
"expo-font": "^58.0.11",
|
|
50
50
|
"expo-router": "*",
|
|
51
51
|
"expo-server": "^58.0.6",
|