extension-develop 3.8.13 → 3.8.14

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.
Files changed (2) hide show
  1. package/dist/module.cjs +10 -4
  2. package/package.json +1 -1
package/dist/module.cjs CHANGED
@@ -131512,6 +131512,10 @@ var __webpack_modules__ = {
131512
131512
  const err = error;
131513
131513
  return err?.code === 'ENOENT' || String(err?.message || '').includes('ENOENT') || String(err?.message || '').includes('not found');
131514
131514
  }
131515
+ function isInstallExitFailure(error) {
131516
+ const message = String(error?.message || error || '');
131517
+ return /Install failed with exit code \d+/.test(message);
131518
+ }
131515
131519
  function parseWslUncPath(value) {
131516
131520
  const match = /^\\\\wsl(?:\.localhost)?\\([^\\]+)\\(.+)$/.exec(value);
131517
131521
  if (!match) return null;
@@ -131571,7 +131575,7 @@ var __webpack_modules__ = {
131571
131575
  });
131572
131576
  return;
131573
131577
  } catch (error) {
131574
- if (options.fallbackNpmCommand && isMissingManagerError(error)) return void await (0, _webpack_lib_package_manager__rspack_import_5.Qt)(options.fallbackNpmCommand.command, options.fallbackNpmCommand.args, {
131578
+ if (options.fallbackNpmCommand && (isMissingManagerError(error) || options.allowFallbackOnFailure && isInstallExitFailure(error))) return void await (0, _webpack_lib_package_manager__rspack_import_5.Qt)(options.fallbackNpmCommand.command, options.fallbackNpmCommand.args, {
131575
131579
  cwd: options.cwd,
131576
131580
  stdio: 'inherit'
131577
131581
  });
@@ -131715,7 +131719,8 @@ var __webpack_modules__ = {
131715
131719
  ]);
131716
131720
  await execInstallWithFallback(execCommand, {
131717
131721
  cwd: wslContext.useWsl ? void 0 : installBaseDir,
131718
- fallbackNpmCommand
131722
+ fallbackNpmCommand,
131723
+ allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== fallbackNpmCommand
131719
131724
  });
131720
131725
  }
131721
131726
  await new Promise((resolve)=>setTimeout(resolve, 500));
@@ -131731,7 +131736,8 @@ var __webpack_modules__ = {
131731
131736
  ]);
131732
131737
  await execInstallWithFallback(rootCommand, {
131733
131738
  cwd: wslContext.useWsl ? void 0 : installBaseDir,
131734
- fallbackNpmCommand: rootFallbackCommand
131739
+ fallbackNpmCommand: rootFallbackCommand,
131740
+ allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== rootFallbackCommand
131735
131741
  });
131736
131742
  console.log(_messages__rspack_import_2.ys(integration));
131737
131743
  }
@@ -135100,7 +135106,7 @@ var __webpack_modules__ = {
135100
135106
  },
135101
135107
  "./package.json" (module) {
135102
135108
  "use strict";
135103
- module.exports = JSON.parse('{"rE":"3.8.13","El":{"@rspack/core":"^1.7.5","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.19.0"}}');
135109
+ module.exports = JSON.parse('{"rE":"3.8.14","El":{"@rspack/core":"^1.7.5","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.19.0"}}');
135104
135110
  }
135105
135111
  };
135106
135112
  var __webpack_module_cache__ = {};
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "webpack/webpack-lib/build-dependencies.json"
25
25
  ],
26
26
  "name": "extension-develop",
27
- "version": "3.8.13",
27
+ "version": "3.8.14",
28
28
  "description": "Develop, build, preview, and package Extension.js projects.",
29
29
  "author": {
30
30
  "name": "Cezar Augusto",