extension-develop 3.3.3-next.3 → 3.3.3-next.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/README.md +1 -0
- package/dist/547.js +55 -54
- package/dist/928.js +4 -0
- package/dist/extension-js-devtools/chrome/assets/local-network-permission.4fae40a7.png +0 -0
- package/dist/extension-js-devtools/chrome/pages/centralized-logger.css +1 -1
- package/dist/extension-js-devtools/chrome/pages/welcome.css +1 -1
- package/dist/extension-js-devtools/chrome/pages/welcome.js +82 -4
- package/dist/extension-js-devtools/chromium/assets/local-network-permission.4fae40a7.png +0 -0
- package/dist/extension-js-devtools/chromium/pages/centralized-logger.css +1 -1
- package/dist/extension-js-devtools/chromium/pages/welcome.css +1 -1
- package/dist/extension-js-devtools/chromium/pages/welcome.js +82 -4
- package/dist/extension-js-devtools/edge/assets/local-network-permission.4fae40a7.png +0 -0
- package/dist/extension-js-devtools/edge/pages/centralized-logger.css +1 -1
- package/dist/extension-js-devtools/edge/pages/welcome.css +1 -1
- package/dist/extension-js-devtools/edge/pages/welcome.js +82 -4
- package/dist/extension-js-devtools/firefox/assets/local-network-permission.4fae40a7.png +0 -0
- package/dist/extension-js-devtools/firefox/pages/centralized-logger.css +1 -1
- package/dist/extension-js-devtools/firefox/pages/welcome.css +1 -1
- package/dist/extension-js-devtools/firefox/pages/welcome.js +82 -4
- package/dist/module.js +66 -21
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -130862,13 +130862,26 @@ var __webpack_modules__ = {
|
|
|
130862
130862
|
}
|
|
130863
130863
|
async function resolvePackageManager() {
|
|
130864
130864
|
const envPm = getPackageManagerFromEnv();
|
|
130865
|
-
|
|
130865
|
+
const execPath = process.env.npm_execpath || process.env.NPM_EXEC_PATH;
|
|
130866
|
+
if (envPm) return {
|
|
130867
|
+
name: envPm,
|
|
130868
|
+
execPath
|
|
130869
|
+
};
|
|
130866
130870
|
const candidates = [
|
|
130867
130871
|
'pnpm',
|
|
130868
130872
|
'yarn',
|
|
130869
130873
|
'npm'
|
|
130870
130874
|
];
|
|
130871
|
-
for (const candidate of candidates)if (commandExists(candidate)) return
|
|
130875
|
+
for (const candidate of candidates)if (commandExists(candidate)) return {
|
|
130876
|
+
name: candidate
|
|
130877
|
+
};
|
|
130878
|
+
if (execPath) {
|
|
130879
|
+
const inferred = execPath.includes('pnpm') ? 'pnpm' : execPath.includes('yarn') ? 'yarn' : execPath.includes('npm') ? 'npm' : 'npm';
|
|
130880
|
+
return {
|
|
130881
|
+
name: inferred,
|
|
130882
|
+
execPath
|
|
130883
|
+
};
|
|
130884
|
+
}
|
|
130872
130885
|
throw new Error(_messages__rspack_import_3.Vo('Optional'));
|
|
130873
130886
|
}
|
|
130874
130887
|
function commandExists(command) {
|
|
@@ -130901,9 +130914,20 @@ var __webpack_modules__ = {
|
|
|
130901
130914
|
return;
|
|
130902
130915
|
}
|
|
130903
130916
|
}
|
|
130917
|
+
function maybeWrapExecPath(command, pmName, execPath) {
|
|
130918
|
+
if (!execPath) return command;
|
|
130919
|
+
if (commandExists(pmName)) return command;
|
|
130920
|
+
return {
|
|
130921
|
+
command: process.execPath,
|
|
130922
|
+
args: [
|
|
130923
|
+
execPath,
|
|
130924
|
+
...command.args
|
|
130925
|
+
]
|
|
130926
|
+
};
|
|
130927
|
+
}
|
|
130904
130928
|
function getOptionalInstallCommand(pm, dependencies, installBaseDir) {
|
|
130905
|
-
const pmName = pm;
|
|
130906
|
-
if ('yarn' === pmName) return {
|
|
130929
|
+
const pmName = pm.name;
|
|
130930
|
+
if ('yarn' === pmName) return maybeWrapExecPath({
|
|
130907
130931
|
command: 'yarn',
|
|
130908
130932
|
args: [
|
|
130909
130933
|
'--silent',
|
|
@@ -130913,8 +130937,8 @@ var __webpack_modules__ = {
|
|
|
130913
130937
|
installBaseDir,
|
|
130914
130938
|
'--optional'
|
|
130915
130939
|
]
|
|
130916
|
-
};
|
|
130917
|
-
if ('npm' === pmName || isFromNpx()) return {
|
|
130940
|
+
}, pmName, pm.execPath);
|
|
130941
|
+
if ('npm' === pmName || isFromNpx()) return maybeWrapExecPath({
|
|
130918
130942
|
command: 'npm',
|
|
130919
130943
|
args: [
|
|
130920
130944
|
'--silent',
|
|
@@ -130924,8 +130948,8 @@ var __webpack_modules__ = {
|
|
|
130924
130948
|
installBaseDir,
|
|
130925
130949
|
'--save-optional'
|
|
130926
130950
|
]
|
|
130927
|
-
};
|
|
130928
|
-
if ('pnpm' === pmName || isFromPnpx()) return {
|
|
130951
|
+
}, pmName, pm.execPath);
|
|
130952
|
+
if ('pnpm' === pmName || isFromPnpx()) return maybeWrapExecPath({
|
|
130929
130953
|
command: 'pnpm',
|
|
130930
130954
|
args: [
|
|
130931
130955
|
'add',
|
|
@@ -130935,9 +130959,19 @@ var __webpack_modules__ = {
|
|
|
130935
130959
|
'--save-optional',
|
|
130936
130960
|
'--silent'
|
|
130937
130961
|
]
|
|
130938
|
-
};
|
|
130962
|
+
}, pmName, pm.execPath);
|
|
130963
|
+
if ('bun' === pmName) return maybeWrapExecPath({
|
|
130964
|
+
command: 'bun',
|
|
130965
|
+
args: [
|
|
130966
|
+
'add',
|
|
130967
|
+
...dependencies,
|
|
130968
|
+
'--cwd',
|
|
130969
|
+
installBaseDir,
|
|
130970
|
+
'--optional'
|
|
130971
|
+
]
|
|
130972
|
+
}, pmName, pm.execPath);
|
|
130939
130973
|
const fallback = pmName || 'npm';
|
|
130940
|
-
return {
|
|
130974
|
+
return maybeWrapExecPath({
|
|
130941
130975
|
command: fallback,
|
|
130942
130976
|
args: [
|
|
130943
130977
|
'--silent',
|
|
@@ -130947,38 +130981,44 @@ var __webpack_modules__ = {
|
|
|
130947
130981
|
installBaseDir,
|
|
130948
130982
|
'--optional'
|
|
130949
130983
|
]
|
|
130950
|
-
};
|
|
130984
|
+
}, pmName, pm.execPath);
|
|
130951
130985
|
}
|
|
130952
130986
|
function getRootInstallCommand(pm) {
|
|
130953
|
-
const pmName = pm;
|
|
130954
|
-
if ('yarn' === pmName) return {
|
|
130987
|
+
const pmName = pm.name;
|
|
130988
|
+
if ('yarn' === pmName) return maybeWrapExecPath({
|
|
130955
130989
|
command: 'yarn',
|
|
130956
130990
|
args: [
|
|
130957
130991
|
'install',
|
|
130958
130992
|
'--silent'
|
|
130959
130993
|
]
|
|
130960
|
-
};
|
|
130961
|
-
if ('npm' === pmName || isFromNpx()) return {
|
|
130994
|
+
}, pmName, pm.execPath);
|
|
130995
|
+
if ('npm' === pmName || isFromNpx()) return maybeWrapExecPath({
|
|
130962
130996
|
command: 'npm',
|
|
130963
130997
|
args: [
|
|
130964
130998
|
'install',
|
|
130965
130999
|
'--silent'
|
|
130966
131000
|
]
|
|
130967
|
-
};
|
|
130968
|
-
if (isFromPnpx()) return {
|
|
131001
|
+
}, pmName, pm.execPath);
|
|
131002
|
+
if ('pnpm' === pmName || isFromPnpx()) return maybeWrapExecPath({
|
|
130969
131003
|
command: 'pnpm',
|
|
130970
131004
|
args: [
|
|
130971
131005
|
'install',
|
|
130972
131006
|
'--silent'
|
|
130973
131007
|
]
|
|
130974
|
-
};
|
|
130975
|
-
return {
|
|
131008
|
+
}, pmName, pm.execPath);
|
|
131009
|
+
if ('bun' === pmName) return maybeWrapExecPath({
|
|
131010
|
+
command: 'bun',
|
|
131011
|
+
args: [
|
|
131012
|
+
'install'
|
|
131013
|
+
]
|
|
131014
|
+
}, pmName, pm.execPath);
|
|
131015
|
+
return maybeWrapExecPath({
|
|
130976
131016
|
command: pmName || 'npm',
|
|
130977
131017
|
args: [
|
|
130978
131018
|
'install',
|
|
130979
131019
|
'--silent'
|
|
130980
131020
|
]
|
|
130981
|
-
};
|
|
131021
|
+
}, pmName, pm.execPath);
|
|
130982
131022
|
}
|
|
130983
131023
|
async function installOptionalDependencies(integration, dependencies) {
|
|
130984
131024
|
if (!dependencies.length) return;
|
|
@@ -132562,6 +132602,7 @@ var __webpack_modules__ = {
|
|
|
132562
132602
|
um: ()=>buildDependenciesInstallFailed,
|
|
132563
132603
|
v_: ()=>writingTypeDefinitionsError,
|
|
132564
132604
|
vo: ()=>buildDependenciesManualInstall,
|
|
132605
|
+
wH: ()=>previewSkippedNoRunner,
|
|
132565
132606
|
xK: ()=>installingBuildDependencies,
|
|
132566
132607
|
yp: ()=>noCompanionExtensionsResolved,
|
|
132567
132608
|
zM: ()=>unpackagedSuccessfully
|
|
@@ -132622,6 +132663,9 @@ var __webpack_modules__ = {
|
|
|
132622
132663
|
function previewing(browser) {
|
|
132623
132664
|
return `${getLoggingPrefix('info')} Previewing the extension on ${capitalizedBrowserName(browser)}...`;
|
|
132624
132665
|
}
|
|
132666
|
+
function previewSkippedNoRunner(browser) {
|
|
132667
|
+
return `${getLoggingPrefix('info')} Skipping browser runner for ${capitalizedBrowserName(browser)} (no-runner).`;
|
|
132668
|
+
}
|
|
132625
132669
|
function installingRequiredDependencies() {
|
|
132626
132670
|
return `${getLoggingPrefix('info')} Installing required dependencies...`;
|
|
132627
132671
|
}
|
|
@@ -133051,7 +133095,7 @@ var __webpack_modules__ = {
|
|
|
133051
133095
|
},
|
|
133052
133096
|
"./package.json" (module) {
|
|
133053
133097
|
"use strict";
|
|
133054
|
-
module.exports = JSON.parse('{"rE":"3.3.3-next.
|
|
133098
|
+
module.exports = JSON.parse('{"rE":"3.3.3-next.4","El":{"@rspack/core":"^1.7.2","@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","firefox-location2":"3.0.0","go-git-it":"^5.0.3","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"}}');
|
|
133055
133099
|
}
|
|
133056
133100
|
};
|
|
133057
133101
|
var __webpack_module_cache__ = {};
|
|
@@ -134147,6 +134191,7 @@ export {}
|
|
|
134147
134191
|
const commandConfig = await (0, config_loader.eY)(packageJsonDir, 'preview');
|
|
134148
134192
|
const browserConfig = await (0, config_loader.xY)(packageJsonDir, browser);
|
|
134149
134193
|
console.log(messages.V_(browser));
|
|
134194
|
+
if (previewOptions.noRunner) return void console.log(messages.wH(browser));
|
|
134150
134195
|
const safeBrowserConfig = (0, sanitize.a)(browserConfig);
|
|
134151
134196
|
const safeCommandConfig = (0, sanitize.a)(commandConfig);
|
|
134152
134197
|
const safePreviewOptions = (0, sanitize.a)(previewOptions);
|
package/package.json
CHANGED