miaoda-expo-devkit 0.1.1-beta.114 → 0.1.1-beta.115

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-beta.114",
3
+ "version": "0.1.1-beta.115",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -279,7 +279,7 @@ new file mode 100644
279
279
  + const errorBuildID = isHmrError ? activeBuildID : buildID ?? lastFailedBuildID ?? activeBuildID;
280
280
  + if (!isCurrentBuild(errorBuildID, true)) return;
281
281
  + if (isHmrError) {
282
- + // HMR errors do not carry Metro build IDs; keep the change token for its recovery event.
282
+ + // HMR 错误不携带 Metro build ID,保留变更标识以匹配后续恢复事件。
283
283
  + activeHmrChangeID = event.changeID ?? activeHmrChangeID;
284
284
  + }
285
285
  + lastFailedBuildID = errorBuildID;
@@ -303,3 +303,27 @@ new file mode 100644
303
303
  +}
304
304
  +
305
305
  +//# sourceMappingURL=aiErrorCollector.js.map
306
+ diff --git a/build/src/install/index.js b/build/src/install/index.js
307
+ --- a/build/src/install/index.js
308
+ +++ b/build/src/install/index.js
309
+ @@ -55,8 +55,18 @@
310
+ }
311
+ // Load modules after the help prompt so `npx expo install -h` shows as fast as possible.
312
+ const { installAsync } = require('./installAsync');
313
+ - const { logCmdError } = require('../utils/errors');
314
+ + const { logCmdError, SilentError } = require('../utils/errors');
315
+ const { resolveArgsAsync } = require('./resolveOptions');
316
+ const { variadic, options, extras } = await resolveArgsAsync(process.argv.slice(3)).catch(logCmdError);
317
+ - return installAsync(variadic, options, extras).catch(logCmdError);
318
+ + return installAsync(variadic, options, extras).catch((error)=>{
319
+ + if (
320
+ + error &&
321
+ + typeof error === 'object' &&
322
+ + typeof error.status === 'number' &&
323
+ + Array.isArray(error.output)
324
+ + ) {
325
+ + return logCmdError(new SilentError(error));
326
+ + }
327
+ + return logCmdError(error);
328
+ + });
329
+ };
package/pnpmfile.cjs CHANGED
@@ -136,7 +136,9 @@ function readPackage(pkg, context) {
136
136
  if (blockedPackage == null) return pkg;
137
137
 
138
138
  context.log(`Blocked installation of ${pkg.name}`);
139
- throw new Error(`Restricted: ${blockedPackage.reason}`);
139
+ const error = new Error(`Restricted: ${blockedPackage.reason}`);
140
+ error.code = 'ERR_PNPM_RESTRICTED_PACKAGE';
141
+ throw error;
140
142
  }
141
143
 
142
144
  module.exports = {