browser-extension-manager 1.2.1 → 1.2.3
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/content.js +2 -1
- package/dist/gulp/tasks/webpack.js +30 -0
- package/firebase-debug.log +28 -0
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Libraries
|
|
2
2
|
import extension from './lib/extension.js';
|
|
3
3
|
import LoggerLite from './lib/logger-lite.js';
|
|
4
|
+
import Affiliatizer from './lib/affiliatizer.js';
|
|
4
5
|
|
|
5
6
|
// Class
|
|
6
7
|
class Manager {
|
|
@@ -17,7 +18,7 @@ class Manager {
|
|
|
17
18
|
this.extension = extension;
|
|
18
19
|
this.messenger = null;
|
|
19
20
|
this.logger = new LoggerLite('content');
|
|
20
|
-
this.affiliatizer =
|
|
21
|
+
this.affiliatizer = Affiliatizer.initialize(this);
|
|
21
22
|
|
|
22
23
|
// Log
|
|
23
24
|
this.logger.log('Initialized!', this);
|
|
@@ -264,6 +264,36 @@ function webpack(complete) {
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
// Check if we have a content component that needs special config
|
|
268
|
+
// Content scripts run in web page context and can't dynamically load chunks due to CSP
|
|
269
|
+
const hasContentComponent = Object.keys(mainEntries).some(key =>
|
|
270
|
+
key === 'components/content' || key.includes('components/content/')
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
if (hasContentComponent) {
|
|
274
|
+
// Create separate config for content scripts
|
|
275
|
+
const contentEntry = {};
|
|
276
|
+
Object.keys(mainEntries).forEach(key => {
|
|
277
|
+
if (key === 'components/content' || key.includes('components/content/')) {
|
|
278
|
+
contentEntry[key] = mainEntries[key];
|
|
279
|
+
delete mainEntries[key];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
configs.push({
|
|
284
|
+
...settings,
|
|
285
|
+
entry: contentEntry,
|
|
286
|
+
optimization: {
|
|
287
|
+
...settings.optimization,
|
|
288
|
+
// Disable runtime chunk for content scripts
|
|
289
|
+
runtimeChunk: false,
|
|
290
|
+
// Disable splitting for content scripts to avoid chunk loading issues
|
|
291
|
+
// Content scripts can't dynamically load chunks due to page CSP restrictions
|
|
292
|
+
splitChunks: false
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
267
297
|
// Compiler
|
|
268
298
|
wp(configs, (e, stats) => {
|
|
269
299
|
// Log
|
package/firebase-debug.log
CHANGED
|
@@ -852,3 +852,31 @@
|
|
|
852
852
|
[debug] [2025-11-26T11:15:17.166Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
853
853
|
[debug] [2025-11-26T11:15:17.167Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
854
854
|
[debug] [2025-11-26T11:15:17.167Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
855
|
+
[debug] [2025-11-26T20:54:27.300Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
856
|
+
[debug] [2025-11-26T20:54:27.347Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
857
|
+
[debug] [2025-11-26T20:54:27.347Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
858
|
+
[debug] [2025-11-26T20:54:27.347Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
859
|
+
[debug] [2025-11-26T20:54:27.485Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
860
|
+
[debug] [2025-11-26T20:54:27.485Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
861
|
+
[debug] [2025-11-26T20:54:27.602Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
862
|
+
[debug] [2025-11-26T20:54:27.602Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
863
|
+
[debug] [2025-11-26T20:54:27.604Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
864
|
+
[debug] [2025-11-26T20:54:27.604Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
865
|
+
[debug] [2025-11-26T20:54:27.606Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
866
|
+
[debug] [2025-11-26T20:54:27.606Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
867
|
+
[debug] [2025-11-26T20:54:27.607Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
868
|
+
[debug] [2025-11-26T20:54:27.607Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
869
|
+
[debug] [2025-11-26T20:54:28.197Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
870
|
+
[debug] [2025-11-26T20:54:28.201Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
871
|
+
[debug] [2025-11-26T20:54:28.201Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
872
|
+
[debug] [2025-11-26T20:54:28.202Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
873
|
+
[debug] [2025-11-26T20:54:28.352Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
874
|
+
[debug] [2025-11-26T20:54:28.352Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
875
|
+
[debug] [2025-11-26T20:54:28.462Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
876
|
+
[debug] [2025-11-26T20:54:28.463Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
877
|
+
[debug] [2025-11-26T20:54:28.464Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
878
|
+
[debug] [2025-11-26T20:54:28.479Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
879
|
+
[debug] [2025-11-26T20:54:28.482Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
880
|
+
[debug] [2025-11-26T20:54:28.483Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
881
|
+
[debug] [2025-11-26T20:54:28.483Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
882
|
+
[debug] [2025-11-26T20:54:28.483Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|