@expo/cli 0.10.6 → 0.10.8
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 +2 -2
- package/build/src/prebuild/updatePackageJson.js +1 -1
- package/build/src/prebuild/updatePackageJson.js.map +1 -1
- package/build/src/start/server/metro/inspector-proxy/device.js +21 -2
- package/build/src/start/server/metro/inspector-proxy/device.js.map +1 -1
- package/build/src/start/server/metro/inspector-proxy/handlers/DebuggerScriptSource.js.map +1 -1
- package/build/src/start/server/metro/inspector-proxy/handlers/NetworkResponse.js.map +1 -1
- package/build/src/start/server/metro/inspector-proxy/handlers/PageReload.js.map +1 -1
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeDebuggerGetPossibleBreakpoints.js +22 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeDebuggerGetPossibleBreakpoints.js.map +1 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeDebuggerScriptParsed.js +55 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeDebuggerScriptParsed.js.map +1 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeDebuggerSetBreakpointByUrl.js +17 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeDebuggerSetBreakpointByUrl.js.map +1 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeRuntimeGetProperties.js +39 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeRuntimeGetProperties.js.map +1 -0
- package/build/src/start/server/metro/inspector-proxy/handlers/types.js.map +1 -1
- package/build/src/start/server/metro/inspector-proxy/proxy.js +14 -6
- package/build/src/start/server/metro/inspector-proxy/proxy.js.map +1 -1
- package/build/src/start/server/metro/runServer-fork.js +4 -5
- package/build/src/start/server/metro/runServer-fork.js.map +1 -1
- package/build/src/start/server/metro/withMetroMultiPlatform.js +2 -1
- package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
- package/build/src/start/server/middleware/ClassicManifestMiddleware.js +1 -1
- package/build/src/start/server/middleware/HistoryFallbackMiddleware.js +0 -29
- package/build/src/start/server/middleware/HistoryFallbackMiddleware.js.map +1 -1
- package/build/src/start/server/middleware/server.types.js.map +1 -1
- package/build/src/start/server/type-generation/__typetests__/fixtures/basic.js +38 -0
- package/build/src/start/server/type-generation/__typetests__/fixtures/basic.js.map +1 -0
- package/build/src/start/server/type-generation/__typetests__/generateFixtures.js +38 -0
- package/build/src/start/server/type-generation/__typetests__/generateFixtures.js.map +1 -0
- package/build/src/start/server/type-generation/__typetests__/route.test.js +165 -0
- package/build/src/start/server/type-generation/__typetests__/route.test.js.map +1 -0
- package/build/src/start/server/type-generation/routes.js +175 -62
- package/build/src/start/server/type-generation/routes.js.map +1 -1
- package/build/src/utils/analytics/rudderstackClient.js +2 -2
- package/package.json +11 -9
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeCompat.js +0 -63
- package/build/src/start/server/metro/inspector-proxy/handlers/VscodeCompat.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"description": "The Expo CLI",
|
|
5
5
|
"main": "build/bin/cli",
|
|
6
6
|
"bin": {
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"@babel/runtime": "^7.20.0",
|
|
41
41
|
"@expo/code-signing-certificates": "0.0.5",
|
|
42
42
|
"@expo/config": "~8.1.0",
|
|
43
|
-
"@expo/env": "0.0.4",
|
|
44
43
|
"@expo/config-plugins": "~7.2.0",
|
|
45
|
-
"@expo/dev-server": "0.5.
|
|
44
|
+
"@expo/dev-server": "0.5.3",
|
|
46
45
|
"@expo/devcert": "^1.0.0",
|
|
46
|
+
"@expo/env": "0.0.5",
|
|
47
47
|
"@expo/json-file": "^8.2.37",
|
|
48
48
|
"@expo/metro-config": "~0.10.0",
|
|
49
49
|
"@expo/osascript": "^2.0.31",
|
|
50
50
|
"@expo/package-manager": "~1.0.0",
|
|
51
51
|
"@expo/plist": "^0.0.20",
|
|
52
|
-
"@expo/prebuild-config": "6.2.
|
|
52
|
+
"@expo/prebuild-config": "6.2.6",
|
|
53
53
|
"@expo/rudder-sdk-node": "1.1.1",
|
|
54
54
|
"@expo/spawn-async": "1.5.0",
|
|
55
55
|
"@expo/xcpretty": "^4.2.1",
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@graphql-codegen/cli": "2.16.3",
|
|
111
|
-
"@graphql-codegen/typescript": "2.8.7",
|
|
112
|
-
"@graphql-codegen/typescript-operations": "2.5.12",
|
|
113
110
|
"@expo/multipart-body-parser": "^1.0.0",
|
|
114
111
|
"@expo/ngrok": "4.1.0",
|
|
115
112
|
"@expo/webpack-config": "^0.17.4",
|
|
113
|
+
"@graphql-codegen/cli": "2.16.3",
|
|
114
|
+
"@graphql-codegen/typescript": "2.8.7",
|
|
115
|
+
"@graphql-codegen/typescript-operations": "2.5.12",
|
|
116
116
|
"@swc/core": "^1.2.126",
|
|
117
117
|
"@taskr/clear": "1.1.0",
|
|
118
118
|
"@taskr/esnext": "1.1.0",
|
|
@@ -146,7 +146,9 @@
|
|
|
146
146
|
"nullthrows": "^1.1.1",
|
|
147
147
|
"structured-headers": "^0.4.1",
|
|
148
148
|
"taskr": "1.1.0",
|
|
149
|
-
"tree-kill": "^1.2.2"
|
|
149
|
+
"tree-kill": "^1.2.2",
|
|
150
|
+
"jest-runner-tsd": "^6.0.0",
|
|
151
|
+
"tsd": "^0.28.1"
|
|
150
152
|
},
|
|
151
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "cf90d5c30c2a08a6493ebfa8aa3791aa70666759"
|
|
152
154
|
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
class VscodeCompatHandler {
|
|
6
|
-
/** Keep track of `Runtime.getProperties` responses to intercept, by request id */ interceptGetProperties = new Set();
|
|
7
|
-
onDebuggerMessage(message, { socket }) {
|
|
8
|
-
// Hermes doesn't seem to handle this request, but `locations` have to be returned.
|
|
9
|
-
// Respond with an empty location to make it "spec compliant" with Chrome DevTools.
|
|
10
|
-
if (message.method === "Debugger.getPossibleBreakpoints") {
|
|
11
|
-
const response = {
|
|
12
|
-
id: message.id,
|
|
13
|
-
result: {
|
|
14
|
-
locations: []
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
socket.send(JSON.stringify(response));
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
// Vscode doesn't seem to work nicely with missing `description` fields on `RemoteObject` instances.
|
|
21
|
-
// See: https://github.com/microsoft/vscode-js-debug/issues/1583
|
|
22
|
-
if (message.method === "Runtime.getProperties") {
|
|
23
|
-
this.interceptGetProperties.add(message.id);
|
|
24
|
-
}
|
|
25
|
-
// Hermes and vscode have trouble setting breakpoints by `urlRegex` through `Debugger.setBreakpointByUrl`.
|
|
26
|
-
// Vscode adds `file://` to a URL containing `http://`, which confuses Hermes and sets it to the wrong location.
|
|
27
|
-
// Hermes needs to create the breakpoint to get the proper ID, but it must be unbounded.
|
|
28
|
-
// Once the sourcemap is loaded, vscode will rebind the unbounded breakpoint to the correct location (using `Debugger.setBreakpoint`).
|
|
29
|
-
if (message.method === "Debugger.setBreakpointByUrl" && message.params.urlRegex) {
|
|
30
|
-
// Explicitly force the breakpoint to be unbounded
|
|
31
|
-
message.params.url = "file://__invalid_url__";
|
|
32
|
-
delete message.params.urlRegex;
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
onDeviceMessage(message) {
|
|
37
|
-
// Vscode doesn't seem to work nicely with missing `description` fields on `RemoteObject` instances.
|
|
38
|
-
// See: https://github.com/microsoft/vscode-js-debug/issues/1583
|
|
39
|
-
if ("id" in message && this.interceptGetProperties.has(message.id)) {
|
|
40
|
-
this.interceptGetProperties.delete(message.id);
|
|
41
|
-
var _result;
|
|
42
|
-
for (const item of (_result = message.result.result) != null ? _result : []){
|
|
43
|
-
var ref;
|
|
44
|
-
// Force-fully format the properties description to be an empty string
|
|
45
|
-
// See: https://github.com/facebook/hermes/issues/114
|
|
46
|
-
if (item.value) {
|
|
47
|
-
var _description;
|
|
48
|
-
item.value.description = (_description = item.value.description) != null ? _description : "";
|
|
49
|
-
}
|
|
50
|
-
// Avoid passing the `objectId` for symbol types.
|
|
51
|
-
// When collapsing in vscode, it will fetch information about the symbol using the `objectId`.
|
|
52
|
-
// The `Runtime.getProperties` request of the symbol hard-crashes Hermes.
|
|
53
|
-
if (((ref = item.value) == null ? void 0 : ref.type) === "symbol" && item.value.objectId) {
|
|
54
|
-
delete item.value.objectId;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.VscodeCompatHandler = VscodeCompatHandler;
|
|
62
|
-
|
|
63
|
-
//# sourceMappingURL=VscodeCompat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/start/server/metro/inspector-proxy/handlers/VscodeCompat.ts"],"sourcesContent":["import type { Protocol } from 'devtools-protocol';\nimport type { DebuggerInfo } from 'metro-inspector-proxy';\n\nimport { CdpMessage, DebuggerRequest, DeviceResponse, InspectorHandler } from './types';\n\nexport class VscodeCompatHandler implements InspectorHandler {\n /** Keep track of `Runtime.getProperties` responses to intercept, by request id */\n interceptGetProperties = new Set<number>();\n\n onDebuggerMessage(\n message:\n | DebuggerRequest<DebuggerGetPossibleBreakpoints>\n | DebuggerRequest<DebuggerSetBreakpointByUrl>\n | DebuggerRequest<RuntimeGetProperties>,\n { socket }: Pick<DebuggerInfo, 'socket'>\n ) {\n // Hermes doesn't seem to handle this request, but `locations` have to be returned.\n // Respond with an empty location to make it \"spec compliant\" with Chrome DevTools.\n if (message.method === 'Debugger.getPossibleBreakpoints') {\n const response: DeviceResponse<DebuggerGetPossibleBreakpoints> = {\n id: message.id,\n result: { locations: [] },\n };\n socket.send(JSON.stringify(response));\n return true;\n }\n\n // Vscode doesn't seem to work nicely with missing `description` fields on `RemoteObject` instances.\n // See: https://github.com/microsoft/vscode-js-debug/issues/1583\n if (message.method === 'Runtime.getProperties') {\n this.interceptGetProperties.add(message.id);\n }\n\n // Hermes and vscode have trouble setting breakpoints by `urlRegex` through `Debugger.setBreakpointByUrl`.\n // Vscode adds `file://` to a URL containing `http://`, which confuses Hermes and sets it to the wrong location.\n // Hermes needs to create the breakpoint to get the proper ID, but it must be unbounded.\n // Once the sourcemap is loaded, vscode will rebind the unbounded breakpoint to the correct location (using `Debugger.setBreakpoint`).\n if (message.method === 'Debugger.setBreakpointByUrl' && message.params.urlRegex) {\n // Explicitly force the breakpoint to be unbounded\n message.params.url = 'file://__invalid_url__';\n delete message.params.urlRegex;\n }\n\n return false;\n }\n\n onDeviceMessage(message: DeviceResponse<RuntimeGetProperties>) {\n // Vscode doesn't seem to work nicely with missing `description` fields on `RemoteObject` instances.\n // See: https://github.com/microsoft/vscode-js-debug/issues/1583\n if ('id' in message && this.interceptGetProperties.has(message.id)) {\n this.interceptGetProperties.delete(message.id);\n\n for (const item of message.result.result ?? []) {\n // Force-fully format the properties description to be an empty string\n // See: https://github.com/facebook/hermes/issues/114\n if (item.value) {\n item.value.description = item.value.description ?? '';\n }\n\n // Avoid passing the `objectId` for symbol types.\n // When collapsing in vscode, it will fetch information about the symbol using the `objectId`.\n // The `Runtime.getProperties` request of the symbol hard-crashes Hermes.\n if (item.value?.type === 'symbol' && item.value.objectId) {\n delete item.value.objectId;\n }\n }\n }\n\n return false;\n }\n}\n\n/** @see https://chromedevtools.github.io/devtools-protocol/v8/Debugger/#method-getPossibleBreakpoints */\nexport type DebuggerGetPossibleBreakpoints = CdpMessage<\n 'Debugger.getPossibleBreakpoints',\n Protocol.Debugger.GetPossibleBreakpointsRequest,\n Protocol.Debugger.GetPossibleBreakpointsResponse\n>;\n\n/** @see https://chromedevtools.github.io/devtools-protocol/v8/Debugger/#method-setBreakpointByUrl */\nexport type DebuggerSetBreakpointByUrl = CdpMessage<\n 'Debugger.setBreakpointByUrl',\n Protocol.Debugger.SetBreakpointByUrlRequest,\n Protocol.Debugger.SetBreakpointByUrlResponse\n>;\n\n/** @see https://chromedevtools.github.io/devtools-protocol/v8/Runtime/#method-getProperties */\nexport type RuntimeGetProperties = CdpMessage<\n 'Runtime.getProperties',\n Protocol.Runtime.GetPropertiesRequest,\n Protocol.Runtime.GetPropertiesResponse\n>;\n"],"names":["VscodeCompatHandler","interceptGetProperties","Set","onDebuggerMessage","message","socket","method","response","id","result","locations","send","JSON","stringify","add","params","urlRegex","url","onDeviceMessage","has","delete","item","value","description","type","objectId"],"mappings":"AAAA;;;;AAKO,MAAMA,mBAAmB;IAC9B,kFAAkF,CAClFC,sBAAsB,GAAG,IAAIC,GAAG,EAAU,CAAC;IAE3CC,iBAAiB,CACfC,OAGyC,EACzC,EAAEC,MAAM,CAAA,EAAgC,EACxC;QACA,mFAAmF;QACnF,mFAAmF;QACnF,IAAID,OAAO,CAACE,MAAM,KAAK,iCAAiC,EAAE;YACxD,MAAMC,QAAQ,GAAmD;gBAC/DC,EAAE,EAAEJ,OAAO,CAACI,EAAE;gBACdC,MAAM,EAAE;oBAAEC,SAAS,EAAE,EAAE;iBAAE;aAC1B,AAAC;YACFL,MAAM,CAACM,IAAI,CAACC,IAAI,CAACC,SAAS,CAACN,QAAQ,CAAC,CAAC,CAAC;YACtC,OAAO,IAAI,CAAC;SACb;QAED,oGAAoG;QACpG,gEAAgE;QAChE,IAAIH,OAAO,CAACE,MAAM,KAAK,uBAAuB,EAAE;YAC9C,IAAI,CAACL,sBAAsB,CAACa,GAAG,CAACV,OAAO,CAACI,EAAE,CAAC,CAAC;SAC7C;QAED,0GAA0G;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