browser-extension-manager 1.0.13 → 1.0.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.
- package/dist/gulp/tasks/distribute.js +23 -21
- package/dist/gulp/tasks/package.js +14 -14
- package/dist/gulp/tasks/themes.js +1 -1
- package/package.json +1 -1
|
@@ -29,30 +29,32 @@ const delay = 250;
|
|
|
29
29
|
let index = -1;
|
|
30
30
|
|
|
31
31
|
// Main task
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
function distribute() {
|
|
33
|
+
return new Promise(async function(resolve, reject) {
|
|
34
|
+
// Increment index
|
|
35
|
+
index++;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
// Log
|
|
38
|
+
logger.log('Starting...');
|
|
39
|
+
|
|
40
|
+
// Create build JSON
|
|
41
|
+
await createBuildJSON();
|
|
42
|
+
|
|
43
|
+
// Complete
|
|
44
|
+
return src(input, { base: 'src' })
|
|
45
|
+
// .pipe(customTransform())
|
|
46
|
+
.pipe(dest(output))
|
|
47
|
+
.on('end', () => {
|
|
48
|
+
// Log
|
|
49
|
+
logger.log('Finished!');
|
|
50
|
+
|
|
51
|
+
// Complete
|
|
52
|
+
return resolve();
|
|
53
|
+
});
|
|
54
|
+
});
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
function
|
|
57
|
+
function customTransform() {
|
|
56
58
|
return through2.obj(function (file, _, callback) {
|
|
57
59
|
// Skip if it's a directory
|
|
58
60
|
if (file.isDirectory()) {
|
|
@@ -13,20 +13,6 @@ const project = Manager.getPackage('project');
|
|
|
13
13
|
const rootPathPackage = Manager.getRootPath('main');
|
|
14
14
|
const rootPathProject = Manager.getRootPath('project');
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
function getRedactions() {
|
|
18
|
-
const REDACTED = './REDACTED_REMOTE_CODE';
|
|
19
|
-
|
|
20
|
-
return {
|
|
21
|
-
'https://app.chatsy.ai/resources/script.js': REDACTED + 1,
|
|
22
|
-
// '/https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js\\?[^"\'\\s]*/g': REDACTED + 2,
|
|
23
|
-
'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js': REDACTED + 2,
|
|
24
|
-
'https://www.google.com/recaptcha/enterprise.js': REDACTED + 3,
|
|
25
|
-
'https://apis.google.com/js/api.js': REDACTED + 4,
|
|
26
|
-
'https://www.google.com/recaptcha/api.js': REDACTED + 5,
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
16
|
// Glob
|
|
31
17
|
const input = [
|
|
32
18
|
// Files to include
|
|
@@ -250,3 +236,17 @@ function packageFnWatcher(complete) {
|
|
|
250
236
|
|
|
251
237
|
// Export tasks
|
|
252
238
|
module.exports = series(packageFn, packageFnWatcher);
|
|
239
|
+
|
|
240
|
+
// Get redactions
|
|
241
|
+
function getRedactions() {
|
|
242
|
+
const REDACTED = './REDACTED_REMOTE_CODE';
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
'https://app.chatsy.ai/resources/script.js': REDACTED + 1,
|
|
246
|
+
// '/https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js\\?[^"\'\\s]*/g': REDACTED + 2,
|
|
247
|
+
'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js': REDACTED + 2,
|
|
248
|
+
'https://www.google.com/recaptcha/enterprise.js': REDACTED + 3,
|
|
249
|
+
'https://apis.google.com/js/api.js': REDACTED + 4,
|
|
250
|
+
'https://www.google.com/recaptcha/api.js': REDACTED + 5,
|
|
251
|
+
}
|
|
252
|
+
}
|