@expo/cli 58.0.3 → 58.0.4
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.
- package/build/bin/cli +1 -1
- package/build/src/api/rest/wrapFetchWithUserAgent.js +1 -1
- package/build/src/index.js +2 -2
- package/build/src/start/server/metro/createExpoFallbackResolver.js +0 -18
- package/build/src/start/server/metro/createExpoFallbackResolver.js.map +1 -1
- package/build/src/start/server/metro/resolveEvents.d.ts +0 -5
- package/build/src/start/server/metro/resolveEvents.js.map +1 -1
- package/build/src/utils/telemetry/clients/FetchClient.js +1 -1
- package/build/src/utils/telemetry/utils/context.js +1 -1
- package/package.json +18 -18
package/build/bin/cli
CHANGED
|
@@ -25,7 +25,7 @@ function wrapFetchWithUserAgent(fetch) {
|
|
|
25
25
|
return (url, init = {})=>{
|
|
26
26
|
const headers = new _fetch.Headers(init.headers);
|
|
27
27
|
// Version is added in the build script
|
|
28
|
-
headers.append('User-Agent', `expo-cli/${"58.0.
|
|
28
|
+
headers.append('User-Agent', `expo-cli/${"58.0.4"}`);
|
|
29
29
|
init.headers = headers;
|
|
30
30
|
return fetch(url, init);
|
|
31
31
|
};
|
package/build/src/index.js
CHANGED
|
@@ -89,11 +89,11 @@ const commandArgs = isSubcommand ? args._.slice(1) : args._;
|
|
|
89
89
|
// LOG_EVENTS targets, parent IPC, and bounded command sessions in 2g's precedence order.
|
|
90
90
|
(0, _2g().installEventLogger)({
|
|
91
91
|
command: args['--version'] ? 'expo --version' : args['--help'] && !isSubcommand ? 'expo --help' : `expo ${command}`,
|
|
92
|
-
version: "58.0.
|
|
92
|
+
version: "58.0.4"
|
|
93
93
|
});
|
|
94
94
|
if (args['--version']) {
|
|
95
95
|
// Version is added in the build script.
|
|
96
|
-
console.log("58.0.
|
|
96
|
+
console.log("58.0.4");
|
|
97
97
|
process.exit(0);
|
|
98
98
|
}
|
|
99
99
|
if (args['--non-interactive']) {
|
|
@@ -151,24 +151,6 @@ function createFallbackModuleResolver({ projectRoot, originModuleNames, getStric
|
|
|
151
151
|
return res;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
// Self-resolution
|
|
155
|
-
const pkg = immutableContext.getPackageForModule(immutableContext.originModulePath);
|
|
156
|
-
const pkgName = pkg?.packageJson.name;
|
|
157
|
-
if (pkgName && dependenciesToRegex([
|
|
158
|
-
pkgName
|
|
159
|
-
]).test(moduleName)) {
|
|
160
|
-
const context = {
|
|
161
|
-
...immutableContext,
|
|
162
|
-
nodeModulesPaths: [],
|
|
163
|
-
// NOTE(@kitten): Metro currently fails self-resolution, so if the package failed to resolve itself
|
|
164
|
-
// from within itself, we add a hint to where to find itself to the `extraNodeModules` lookups
|
|
165
|
-
extraNodeModules: {
|
|
166
|
-
[pkgName]: pkg.rootPath
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
const res = getStrictResolver(context, platform)(moduleName);
|
|
170
|
-
return res;
|
|
171
|
-
}
|
|
172
154
|
return null;
|
|
173
155
|
};
|
|
174
156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["start/server/metro/createExpoFallbackResolver.ts"],"sourcesContent":[null],"names":["createFallbackModuleResolver","EXCLUDE_ORIGIN_MODULES","semver","dependenciesToRegex","dependencies","RegExp","join","getModuleDescriptionWithResolver","context","resolve","originModuleName","filePath","packageMeta","resolution","path","type","getPackage","error","push","Object","keys","peerDependencies","peerDependenciesMeta","filter","dependency","peerMeta","optional","moduleName","index","dependenciesArr","indexOf","originModulePath","dirname","length","moduleTestRe","projectRoot","originModuleNames","getStrictResolver","_moduleDescriptionsCache","getModuleDescription","immutableContext","platform","undefined","fileSpecifierRe","requestFallbackModule","test","nodeModulesPaths","res","moduleDescription"
|
|
1
|
+
{"version":3,"sources":["start/server/metro/createExpoFallbackResolver.ts"],"sourcesContent":[null],"names":["createFallbackModuleResolver","EXCLUDE_ORIGIN_MODULES","semver","dependenciesToRegex","dependencies","RegExp","join","getModuleDescriptionWithResolver","context","resolve","originModuleName","filePath","packageMeta","resolution","path","type","getPackage","error","push","Object","keys","peerDependencies","peerDependenciesMeta","filter","dependency","peerMeta","optional","moduleName","index","dependenciesArr","indexOf","originModulePath","dirname","length","moduleTestRe","projectRoot","originModuleNames","getStrictResolver","_moduleDescriptionsCache","getModuleDescription","immutableContext","platform","undefined","fileSpecifierRe","requestFallbackModule","test","nodeModulesPaths","res","moduleDescription"],"mappings":"AAAA,0CAA0C;AAC1C,uFAAuF;AACvF,wFAAwF;AACxF,sFAAsF;AACtF,mFAAmF;AACnF,kFAAkF;AAClF,oBAAoB;AACpB,+CAA+C;;;;;+BAsH/BA;;;eAAAA;;;;gEAnHC;;;;;;;;;;;AAKjB;;;;;;;;;CASC,GACD,MAAMC,yBAA2D;IAC/D,gBAAgB;IAChB,wBAAwB;IACxB,gBAAgB;IAChBC,QAAQ;AACV;AAsBA,iHAAiH,GACjH,MAAMC,sBAAsB,CAACC,eAC3B,IAAIC,OAAO,CAAC,IAAI,EAAED,aAAaE,IAAI,CAAC,KAAK,QAAQ,CAAC;AAEpD,gFAAgF,GAChF,MAAMC,mCAAmC,CACvCC,SACAC,SACAC;IAEA,IAAIC;IACJ,IAAIC;IACJ,IAAI;QACF,MAAMC,aAAaJ,QAAQK,eAAI,CAACR,IAAI,CAACI,kBAAkB;QACvD,IAAIG,WAAWE,IAAI,KAAK,cAAc;YACpC,OAAO;QACT;QACAJ,WAAWE,WAAWF,QAAQ;QAC9B,oCAAoC;QACpCC,cAAcJ,QAAQQ,UAAU,CAACL;QACjC,IAAI,CAACC,aAAa;YAChB,OAAO;QACT;IACF,EAAE,OAAOK,OAAY;QACnB,OAAO;IACT;IACA,IAAIb,eAAyB,EAAE;IAC/B,IAAIQ,YAAYR,YAAY,EAAEA,aAAac,IAAI,IAAIC,OAAOC,IAAI,CAACR,YAAYR,YAAY;IACvF,IAAIQ,YAAYS,gBAAgB,EAAE;QAChC,MAAMC,uBAAuBV,YAAYU,oBAAoB;QAC7D,IAAID,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gB,EAAEb,UAAU,EAAEc,QAAQ;QAC1E,IAAId,eAAe,aAAa;YAC9B,6GAA6G;YAC7G,qFAAqF;YACrF,IAAI,+CAA+CkB,IAAI,CAACL,iBAAiBT,gBAAgB,GAAG;gBAC1F,2CAA2C;gBAC3C,MAAMvB,UAA6B;oBACjC,GAAGgC,gBAAgB;oBACnBM,kBAAkB,EAAE;oBACpB,mGAAmG;oBACnG,kGAAkG;oBAClG,wDAAwD;oBACxDf,kBAAkBjB,eAAI,CAACR,IAAI,CAAC6B,aAAa;gBAC3C;gBACA,MAAMY,MAAMV,kBAAkB7B,SAASiC,UAAU;gBACjD,OAAOM;YACT,OAAO;gBACL,OAAO;YACT;QACF;QAEA,4DAA4D;QAC5D,6FAA6F;QAC7F,6DAA6D;QAC7D,IAAIJ,gBAAgBE,IAAI,CAAClB,aAAa;YACpC,OAAO;QACT;QAEA,KAAK,MAAMjB,oBAAoB0B,kBAAmB;YAChD,MAAMY,oBAAoBT,qBAAqBC,kBAAkB9B,kBAAkB+B;YACnF,IAAIO,qBAAqBA,kBAAkBd,YAAY,CAACW,IAAI,CAAClB,aAAa;gBACxE,kHAAkH;gBAClH,MAAMnB,UAA6B;oBACjC,GAAGgC,gBAAgB;oBACnBM,kBAAkB,EAAE;oBACpB,mGAAmG;oBACnG,kGAAkG;oBAClG,wDAAwD;oBACxDf,kBAAkBjB,eAAI,CAACR,IAAI,CAAC0C,kBAAkBjB,gBAAgB,EAAE;gBAClE;gBACA,MAAMgB,MAAMV,kBAAkB7B,SAASiC,UAAUd;gBACjD,OAAOoB;YACT;QACF;QAEA,OAAO;IACT;AACF"}
|
|
@@ -22,11 +22,6 @@ declare module '2g' {
|
|
|
22
22
|
platform: string | null;
|
|
23
23
|
projectRoot: string;
|
|
24
24
|
};
|
|
25
|
-
'resolve:fallback_self_resolved': {
|
|
26
|
-
platform: string | null;
|
|
27
|
-
module: string;
|
|
28
|
-
root: string;
|
|
29
|
-
};
|
|
30
25
|
'resolve:tsconfig_alias': {
|
|
31
26
|
module: string;
|
|
32
27
|
resolved: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["start/server/metro/resolveEvents.ts"],"sourcesContent":[null],"names":["event","events","debug"],"mappings":";;;;+
|
|
1
|
+
{"version":3,"sources":["start/server/metro/resolveEvents.ts"],"sourcesContent":[null],"names":["event","events","debug"],"mappings":";;;;+BAgCaA;;;eAAAA;;;;yBAhCU;;;;;;AAgChB,MAAMA,QAAQC,YAAM,CAACC,KAAK,CAAC"}
|
|
@@ -29,7 +29,7 @@ class FetchClient {
|
|
|
29
29
|
this.headers = {
|
|
30
30
|
accept: 'application/json',
|
|
31
31
|
'content-type': 'application/json',
|
|
32
|
-
'user-agent': `expo-cli/${"58.0.
|
|
32
|
+
'user-agent': `expo-cli/${"58.0.4"}`,
|
|
33
33
|
authorization: 'Basic ' + _nodebuffer().Buffer.from(`${target}:`).toString('base64')
|
|
34
34
|
};
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/cli",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.4",
|
|
4
4
|
"description": "The Expo CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"2g": "^0.4.3",
|
|
44
44
|
"@expo/code-signing-certificates": "^0.0.6",
|
|
45
45
|
"@expo/config": "~58.0.0",
|
|
46
|
-
"@expo/config-plugins": "~58.0.
|
|
46
|
+
"@expo/config-plugins": "~58.0.2",
|
|
47
47
|
"@expo/devcert": "^1.2.1",
|
|
48
48
|
"@expo/env": "~2.5.0",
|
|
49
|
-
"@expo/image-utils": "^0.12.
|
|
49
|
+
"@expo/image-utils": "^0.12.1",
|
|
50
50
|
"@expo/inline-modules": "^0.2.0",
|
|
51
|
-
"@expo/json-file": "^11.
|
|
52
|
-
"@expo/log-box": "^58.0.
|
|
51
|
+
"@expo/json-file": "^11.2.0",
|
|
52
|
+
"@expo/log-box": "^58.0.4",
|
|
53
53
|
"@expo/log-box-utils": "^58.0.0",
|
|
54
54
|
"@expo/metro": "~58.0.0-rc.0",
|
|
55
|
-
"@expo/metro-config": "~58.0.
|
|
55
|
+
"@expo/metro-config": "~58.0.4",
|
|
56
56
|
"@expo/metro-file-map": "^58.0.1",
|
|
57
57
|
"@expo/osascript": "^2.8.0",
|
|
58
58
|
"@expo/package-manager": "^1.14.0",
|
|
59
|
-
"@expo/plist": "^0.
|
|
60
|
-
"@expo/prebuild-config": "^58.0.
|
|
61
|
-
"@expo/require-utils": "^58.0.
|
|
62
|
-
"@expo/router-server": "^58.0.
|
|
59
|
+
"@expo/plist": "^0.10.0",
|
|
60
|
+
"@expo/prebuild-config": "^58.0.3",
|
|
61
|
+
"@expo/require-utils": "^58.0.1",
|
|
62
|
+
"@expo/router-server": "^58.0.3",
|
|
63
63
|
"@expo/schema-utils": "^58.0.0",
|
|
64
64
|
"@expo/spawn-async": "^1.8.0",
|
|
65
65
|
"@expo/ws-tunnel": "^2.0.0",
|
|
66
66
|
"@expo/xcpretty": "^4.4.4",
|
|
67
|
-
"@react-native/dev-middleware": "0.88.0-rc.
|
|
68
|
-
"@react-native/js-polyfills": "0.88.0-rc.
|
|
67
|
+
"@react-native/dev-middleware": "0.88.0-rc.1",
|
|
68
|
+
"@react-native/js-polyfills": "0.88.0-rc.1",
|
|
69
69
|
"accepts": "^1.3.8",
|
|
70
70
|
"agent-cli-detector": "0.1.7",
|
|
71
71
|
"arg": "^5.0.2",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"compression": "^1.7.4",
|
|
77
77
|
"connect": "^3.7.0",
|
|
78
78
|
"dnssd-advertise": "^1.1.6",
|
|
79
|
-
"expo-server": "^58.0.
|
|
79
|
+
"expo-server": "^58.0.1",
|
|
80
80
|
"fetch-nodeshim": "^0.4.10",
|
|
81
81
|
"getenv": "^2.0.0",
|
|
82
82
|
"glob": "^13.0.0",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@types/picomatch": "^4.0.2",
|
|
124
124
|
"@types/progress": "^2.0.5",
|
|
125
125
|
"@types/prompts": "^2.0.6",
|
|
126
|
-
"@types/react": "~19.
|
|
126
|
+
"@types/react": "~19.3.0",
|
|
127
127
|
"@types/react-test-renderer": "^19.1.0",
|
|
128
128
|
"@types/resolve": "^1.20.2",
|
|
129
129
|
"@types/semver": "^7.5.8",
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"expect": "^29.7.0",
|
|
138
138
|
"expo-atlas": "^0.4.1",
|
|
139
139
|
"expo-module-scripts": "56.0.3",
|
|
140
|
-
"expo-modules-autolinking": "58.0.
|
|
141
|
-
"expo-router": "58.0.
|
|
140
|
+
"expo-modules-autolinking": "58.0.3",
|
|
141
|
+
"expo-router": "58.0.5",
|
|
142
142
|
"find-process": "^1.4.7",
|
|
143
143
|
"jest-matcher-utils": "^29.7.0",
|
|
144
144
|
"klaw-sync": "^6.0.0",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"playwright": "^1.59.0",
|
|
149
149
|
"react": "*",
|
|
150
150
|
"react-refresh": "^0.14.2",
|
|
151
|
-
"react-test-renderer": "19.
|
|
151
|
+
"react-test-renderer": "19.3.0",
|
|
152
152
|
"tree-kill": "^1.2.2"
|
|
153
153
|
},
|
|
154
154
|
"peerDependencies": {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"optional": true
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
-
"gitHead": "
|
|
167
|
+
"gitHead": "ebb1fd7569c9c9e172cb9abd73dfede027c1d674",
|
|
168
168
|
"scripts": {
|
|
169
169
|
"build": "pnpm run build:cli && pnpm run build:metro-require",
|
|
170
170
|
"build:cli": "expo-build cjs:src=build/src",
|