extension 4.0.18 → 4.0.19
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/dist/49.cjs +17 -8
- package/dist/browsers.cjs +661 -14
- package/dist/cli.cjs +1821 -1731
- package/dist/extension/browsers/browsers-lib/banner.d.ts +2 -0
- package/dist/extension/browsers/browsers-lib/messages.d.ts +1 -0
- package/dist/extension/browsers/index.d.ts +4 -0
- package/dist/extension/browsers/run-safari/safari-launch/index.d.ts +14 -1
- package/dist/extension/browsers/run-safari/safari-packager.d.ts +30 -0
- package/package.json +4 -4
package/dist/49.cjs
CHANGED
|
@@ -1066,8 +1066,9 @@ exports.modules = {
|
|
|
1066
1066
|
const chromeRemoteDebugPort = remoteDebugPortFlag ? parseInt(remoteDebugPortFlag.split('=')[1], 10) : (0, shared_utils.jl)(plugin.port, plugin.instanceId);
|
|
1067
1067
|
const userDataDirFlag = chromiumArgs.find((flag)=>flag.startsWith('--user-data-dir='));
|
|
1068
1068
|
const userDataDir = userDataDirFlag ? userDataDirFlag.replace('--user-data-dir=', '').replace(/^"|"$/g, '') : '';
|
|
1069
|
+
const profileOnCard = Boolean(extensionOutputPath) && !(0, messaging.VR)(`${plugin.browser}::${external_node_path_.resolve(extensionOutputPath)}`);
|
|
1069
1070
|
if ((0, messaging._o)()) {
|
|
1070
|
-
if (userDataDir) console.log(messages.aI(userDataDir));
|
|
1071
|
+
if (userDataDir && !profileOnCard) console.log(messages.aI(userDataDir));
|
|
1071
1072
|
console.log(messages.CY(chromeRemoteDebugPort, chromeRemoteDebugPort));
|
|
1072
1073
|
}
|
|
1073
1074
|
const cdpExtensionController = new CDPExtensionController({
|
|
@@ -1106,6 +1107,7 @@ exports.modules = {
|
|
|
1106
1107
|
source: 'browser'
|
|
1107
1108
|
});
|
|
1108
1109
|
(0, ready_stamp.sf)(extensionOutputPath, loadOutcome.reason);
|
|
1110
|
+
if ((0, messaging._o)() && userDataDir && profileOnCard) console.log(messages.aI(userDataDir));
|
|
1109
1111
|
plugin.extensionLoadRefused = loadOutcome.reason;
|
|
1110
1112
|
plugin.cdpController = cdpExtensionController;
|
|
1111
1113
|
plugin.printBannerOnRecovery = async ()=>{
|
|
@@ -1117,7 +1119,8 @@ exports.modules = {
|
|
|
1117
1119
|
port: chromeRemoteDebugPort
|
|
1118
1120
|
},
|
|
1119
1121
|
getInfo: async ()=>cdpExtensionController.getInfoBestEffort(),
|
|
1120
|
-
browserVersionLine: plugin.browserVersionLine
|
|
1122
|
+
browserVersionLine: plugin.browserVersionLine,
|
|
1123
|
+
profilePath: userDataDir || void 0
|
|
1121
1124
|
});
|
|
1122
1125
|
};
|
|
1123
1126
|
return;
|
|
@@ -1133,7 +1136,8 @@ exports.modules = {
|
|
|
1133
1136
|
port: chromeRemoteDebugPort
|
|
1134
1137
|
},
|
|
1135
1138
|
getInfo: async ()=>null,
|
|
1136
|
-
browserVersionLine: plugin.browserVersionLine
|
|
1139
|
+
browserVersionLine: plugin.browserVersionLine,
|
|
1140
|
+
profilePath: userDataDir || void 0
|
|
1137
1141
|
});
|
|
1138
1142
|
} catch {}
|
|
1139
1143
|
if ('development' === mode) try {
|
|
@@ -1145,7 +1149,8 @@ exports.modules = {
|
|
|
1145
1149
|
port: chromeRemoteDebugPort
|
|
1146
1150
|
},
|
|
1147
1151
|
getInfo: async ()=>cdpExtensionController.getInfoBestEffort(),
|
|
1148
|
-
browserVersionLine: plugin.browserVersionLine
|
|
1152
|
+
browserVersionLine: plugin.browserVersionLine,
|
|
1153
|
+
profilePath: userDataDir || void 0
|
|
1149
1154
|
});
|
|
1150
1155
|
} catch {}
|
|
1151
1156
|
let extensionControllerInfo = null;
|
|
@@ -1171,7 +1176,8 @@ exports.modules = {
|
|
|
1171
1176
|
port: chromeRemoteDebugPort
|
|
1172
1177
|
},
|
|
1173
1178
|
getInfo: async ()=>extensionControllerInfo,
|
|
1174
|
-
browserVersionLine: plugin.browserVersionLine
|
|
1179
|
+
browserVersionLine: plugin.browserVersionLine,
|
|
1180
|
+
profilePath: userDataDir || void 0
|
|
1175
1181
|
});
|
|
1176
1182
|
if (!bannerPrinted) await (0, banner.ai)({
|
|
1177
1183
|
outPath: extensionOutputPath,
|
|
@@ -1181,7 +1187,8 @@ exports.modules = {
|
|
|
1181
1187
|
port: chromeRemoteDebugPort
|
|
1182
1188
|
},
|
|
1183
1189
|
getInfo: async ()=>cdpExtensionController.getInfoBestEffort(),
|
|
1184
|
-
browserVersionLine: plugin.browserVersionLine
|
|
1190
|
+
browserVersionLine: plugin.browserVersionLine,
|
|
1191
|
+
profilePath: userDataDir || void 0
|
|
1185
1192
|
});
|
|
1186
1193
|
}
|
|
1187
1194
|
} else if ('production' === mode) {
|
|
@@ -1194,7 +1201,8 @@ exports.modules = {
|
|
|
1194
1201
|
browser: plugin.browser,
|
|
1195
1202
|
outPath: extensionOutputPath,
|
|
1196
1203
|
browserVersionLine: plugin.browserVersionLine,
|
|
1197
|
-
runtime
|
|
1204
|
+
runtime,
|
|
1205
|
+
profilePath: userDataDir || void 0
|
|
1198
1206
|
});
|
|
1199
1207
|
}
|
|
1200
1208
|
} catch (bannerErr) {
|
|
@@ -1204,7 +1212,8 @@ exports.modules = {
|
|
|
1204
1212
|
if ('production' === mode) await (0, banner.MK)({
|
|
1205
1213
|
browser: plugin.browser,
|
|
1206
1214
|
outPath: extensionOutputPath,
|
|
1207
|
-
browserVersionLine: plugin.browserVersionLine
|
|
1215
|
+
browserVersionLine: plugin.browserVersionLine,
|
|
1216
|
+
profilePath: userDataDir || void 0
|
|
1208
1217
|
});
|
|
1209
1218
|
} catch {}
|
|
1210
1219
|
}
|