@expo/cli 0.25.1 → 0.25.2
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/start/server/DevToolsPluginManager.js +7 -35
- package/build/src/start/server/DevToolsPluginManager.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 +15 -15
package/build/bin/cli
CHANGED
|
@@ -16,25 +16,6 @@ _export(exports, {
|
|
|
16
16
|
return DevToolsPluginManager;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
function _path() {
|
|
20
|
-
const data = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
21
|
-
_path = function() {
|
|
22
|
-
return data;
|
|
23
|
-
};
|
|
24
|
-
return data;
|
|
25
|
-
}
|
|
26
|
-
function _resolvefrom() {
|
|
27
|
-
const data = /*#__PURE__*/ _interop_require_default(require("resolve-from"));
|
|
28
|
-
_resolvefrom = function() {
|
|
29
|
-
return data;
|
|
30
|
-
};
|
|
31
|
-
return data;
|
|
32
|
-
}
|
|
33
|
-
function _interop_require_default(obj) {
|
|
34
|
-
return obj && obj.__esModule ? obj : {
|
|
35
|
-
default: obj
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
19
|
const debug = require('debug')('expo:start:server:devtools');
|
|
39
20
|
const DevToolsPluginEndpoint = '/_expo/plugins';
|
|
40
21
|
class DevToolsPluginManager {
|
|
@@ -59,23 +40,14 @@ class DevToolsPluginManager {
|
|
|
59
40
|
return (plugin == null ? void 0 : plugin.webpageRoot) ?? null;
|
|
60
41
|
}
|
|
61
42
|
async queryAutolinkedPluginsAsync(projectRoot) {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
const resolvedPath = _resolvefrom().default.silent(_path().default.dirname(expoPackagePath), 'expo-modules-autolinking/exports');
|
|
67
|
-
if (!resolvedPath) {
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
const autolinkingModule = require(resolvedPath);
|
|
71
|
-
if (!autolinkingModule.queryAutolinkingModulesFromProjectAsync) {
|
|
72
|
-
throw new Error('Missing exported `queryAutolinkingModulesFromProjectAsync()` function from `expo-modules-autolinking`');
|
|
73
|
-
}
|
|
74
|
-
const plugins = await autolinkingModule.queryAutolinkingModulesFromProjectAsync(projectRoot, {
|
|
75
|
-
platform: 'devtools',
|
|
76
|
-
onlyProjectDeps: false
|
|
43
|
+
const autolinking = require('expo/internal/unstable-autolinking-exports');
|
|
44
|
+
const linker = autolinking.makeCachedDependenciesLinker({
|
|
45
|
+
projectRoot
|
|
77
46
|
});
|
|
78
|
-
|
|
47
|
+
const revisions = await autolinking.scanExpoModuleResolutionsForPlatform(linker, 'devtools');
|
|
48
|
+
const { resolveModuleAsync } = autolinking.getLinkingImplementationForPlatform('devtools');
|
|
49
|
+
const plugins = (await Promise.all(Object.values(revisions).map((revision)=>resolveModuleAsync(revision.name, revision)))).filter((maybePlugin)=>maybePlugin != null);
|
|
50
|
+
debug('Found autolinked plugins', plugins);
|
|
79
51
|
return plugins;
|
|
80
52
|
}
|
|
81
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/start/server/DevToolsPluginManager.ts"],"sourcesContent":["import type { ModuleDescriptorDevTools } from 'expo-modules-autolinking/exports';\
|
|
1
|
+
{"version":3,"sources":["../../../../src/start/server/DevToolsPluginManager.ts"],"sourcesContent":["import type { ModuleDescriptorDevTools } from 'expo-modules-autolinking/exports';\n\nconst debug = require('debug')('expo:start:server:devtools');\n\nexport const DevToolsPluginEndpoint = '/_expo/plugins';\n\ninterface AutolinkingPlugin {\n packageName: string;\n packageRoot: string;\n webpageRoot: string;\n}\n\nexport interface DevToolsPlugin extends AutolinkingPlugin {\n webpageEndpoint: string;\n}\n\nexport default class DevToolsPluginManager {\n private plugins: DevToolsPlugin[] | null = null;\n\n constructor(private projectRoot: string) {}\n\n public async queryPluginsAsync(): Promise<DevToolsPlugin[]> {\n if (this.plugins) {\n return this.plugins;\n }\n const plugins = (await this.queryAutolinkedPluginsAsync(this.projectRoot)).map((plugin) => ({\n ...plugin,\n webpageEndpoint: `${DevToolsPluginEndpoint}/${plugin.packageName}`,\n }));\n this.plugins = plugins;\n return this.plugins;\n }\n\n public async queryPluginWebpageRootAsync(pluginName: string): Promise<string | null> {\n const plugins = await this.queryPluginsAsync();\n const plugin = plugins.find((p) => p.packageName === pluginName);\n return plugin?.webpageRoot ?? null;\n }\n\n private async queryAutolinkedPluginsAsync(projectRoot: string): Promise<AutolinkingPlugin[]> {\n const autolinking: typeof import('expo/internal/unstable-autolinking-exports') = require('expo/internal/unstable-autolinking-exports');\n const linker = autolinking.makeCachedDependenciesLinker({ projectRoot });\n const revisions = await autolinking.scanExpoModuleResolutionsForPlatform(linker, 'devtools');\n const { resolveModuleAsync } = autolinking.getLinkingImplementationForPlatform('devtools');\n const plugins: ModuleDescriptorDevTools[] = (\n await Promise.all(\n Object.values(revisions).map((revision) => resolveModuleAsync(revision.name, revision))\n )\n ).filter((maybePlugin) => maybePlugin != null);\n debug('Found autolinked plugins', plugins);\n return plugins;\n }\n}\n"],"names":["DevToolsPluginEndpoint","DevToolsPluginManager","debug","require","constructor","projectRoot","plugins","queryPluginsAsync","queryAutolinkedPluginsAsync","map","plugin","webpageEndpoint","packageName","queryPluginWebpageRootAsync","pluginName","find","p","webpageRoot","autolinking","linker","makeCachedDependenciesLinker","revisions","scanExpoModuleResolutionsForPlatform","resolveModuleAsync","getLinkingImplementationForPlatform","Promise","all","Object","values","revision","name","filter","maybePlugin"],"mappings":";;;;;;;;;;;IAIaA,sBAAsB;eAAtBA;;IAYb,OAoCC;eApCoBC;;;AAdrB,MAAMC,QAAQC,QAAQ,SAAS;AAExB,MAAMH,yBAAyB;AAYvB,MAAMC;IAGnBG,YAAY,AAAQC,WAAmB,CAAE;aAArBA,cAAAA;aAFZC,UAAmC;IAED;IAE1C,MAAaC,oBAA+C;QAC1D,IAAI,IAAI,CAACD,OAAO,EAAE;YAChB,OAAO,IAAI,CAACA,OAAO;QACrB;QACA,MAAMA,UAAU,AAAC,CAAA,MAAM,IAAI,CAACE,2BAA2B,CAAC,IAAI,CAACH,WAAW,CAAA,EAAGI,GAAG,CAAC,CAACC,SAAY,CAAA;gBAC1F,GAAGA,MAAM;gBACTC,iBAAiB,GAAGX,uBAAuB,CAAC,EAAEU,OAAOE,WAAW,EAAE;YACpE,CAAA;QACA,IAAI,CAACN,OAAO,GAAGA;QACf,OAAO,IAAI,CAACA,OAAO;IACrB;IAEA,MAAaO,4BAA4BC,UAAkB,EAA0B;QACnF,MAAMR,UAAU,MAAM,IAAI,CAACC,iBAAiB;QAC5C,MAAMG,SAASJ,QAAQS,IAAI,CAAC,CAACC,IAAMA,EAAEJ,WAAW,KAAKE;QACrD,OAAOJ,CAAAA,0BAAAA,OAAQO,WAAW,KAAI;IAChC;IAEA,MAAcT,4BAA4BH,WAAmB,EAAgC;QAC3F,MAAMa,cAA2Ef,QAAQ;QACzF,MAAMgB,SAASD,YAAYE,4BAA4B,CAAC;YAAEf;QAAY;QACtE,MAAMgB,YAAY,MAAMH,YAAYI,oCAAoC,CAACH,QAAQ;QACjF,MAAM,EAAEI,kBAAkB,EAAE,GAAGL,YAAYM,mCAAmC,CAAC;QAC/E,MAAMlB,UAAsC,AAC1C,CAAA,MAAMmB,QAAQC,GAAG,CACfC,OAAOC,MAAM,CAACP,WAAWZ,GAAG,CAAC,CAACoB,WAAaN,mBAAmBM,SAASC,IAAI,EAAED,WAC/E,EACAE,MAAM,CAAC,CAACC,cAAgBA,eAAe;QACzC9B,MAAM,4BAA4BI;QAClC,OAAOA;IACT;AACF"}
|
|
@@ -33,7 +33,7 @@ class FetchClient {
|
|
|
33
33
|
this.headers = {
|
|
34
34
|
accept: 'application/json',
|
|
35
35
|
'content-type': 'application/json',
|
|
36
|
-
'user-agent': `expo-cli/${"0.25.
|
|
36
|
+
'user-agent': `expo-cli/${"0.25.2"}`,
|
|
37
37
|
authorization: 'Basic ' + _nodebuffer().Buffer.from(`${target}:`).toString('base64')
|
|
38
38
|
};
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/cli",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"description": "The Expo CLI",
|
|
5
5
|
"main": "build/bin/cli",
|
|
6
6
|
"bin": {
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"@0no-co/graphql.web": "^1.0.8",
|
|
44
44
|
"@babel/runtime": "^7.20.0",
|
|
45
45
|
"@expo/code-signing-certificates": "^0.0.5",
|
|
46
|
-
"@expo/config": "~12.0.
|
|
47
|
-
"@expo/config-plugins": "~11.0.
|
|
46
|
+
"@expo/config": "~12.0.2",
|
|
47
|
+
"@expo/config-plugins": "~11.0.2",
|
|
48
48
|
"@expo/devcert": "^1.1.2",
|
|
49
|
-
"@expo/env": "~2.0.
|
|
50
|
-
"@expo/image-utils": "^0.8.
|
|
51
|
-
"@expo/json-file": "^10.0.
|
|
49
|
+
"@expo/env": "~2.0.2",
|
|
50
|
+
"@expo/image-utils": "^0.8.2",
|
|
51
|
+
"@expo/json-file": "^10.0.2",
|
|
52
52
|
"@expo/metro": "~0.1.1",
|
|
53
|
-
"@expo/metro-config": "~0.21.
|
|
54
|
-
"@expo/osascript": "^2.3.
|
|
55
|
-
"@expo/package-manager": "^1.9.
|
|
56
|
-
"@expo/plist": "^0.4.
|
|
57
|
-
"@expo/prebuild-config": "^10.0.
|
|
58
|
-
"@expo/schema-utils": "^0.1.
|
|
59
|
-
"@expo/server": "^0.7.
|
|
53
|
+
"@expo/metro-config": "~0.21.2",
|
|
54
|
+
"@expo/osascript": "^2.3.2",
|
|
55
|
+
"@expo/package-manager": "^1.9.2",
|
|
56
|
+
"@expo/plist": "^0.4.2",
|
|
57
|
+
"@expo/prebuild-config": "^10.0.2",
|
|
58
|
+
"@expo/schema-utils": "^0.1.2",
|
|
59
|
+
"@expo/server": "^0.7.2",
|
|
60
60
|
"@expo/spawn-async": "^1.7.2",
|
|
61
61
|
"@expo/ws-tunnel": "^1.0.1",
|
|
62
62
|
"@expo/xcpretty": "^4.3.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@types/ws": "^8.5.4",
|
|
156
156
|
"devtools-protocol": "^0.0.1113120",
|
|
157
157
|
"expo-atlas": "^0.4.1",
|
|
158
|
-
"expo-module-scripts": "^5.0.
|
|
158
|
+
"expo-module-scripts": "^5.0.2",
|
|
159
159
|
"find-process": "^1.4.7",
|
|
160
160
|
"jest-runner-tsd": "^6.0.0",
|
|
161
161
|
"klaw-sync": "^6.0.0",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"tree-kill": "^1.2.2",
|
|
169
169
|
"tsd": "^0.28.1"
|
|
170
170
|
},
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "eaa9b645058cf2233fbb27bb21a19bc605c90a88"
|
|
172
172
|
}
|