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.
@@ -29,30 +29,32 @@ const delay = 250;
29
29
  let index = -1;
30
30
 
31
31
  // Main task
32
- async function distribute(complete) {
33
- // Increment index
34
- index++;
32
+ function distribute() {
33
+ return new Promise(async function(resolve, reject) {
34
+ // Increment index
35
+ index++;
35
36
 
36
- // Log
37
- logger.log('Starting...');
38
-
39
- // Create build JSON
40
- await createBuildJSON();
41
-
42
- // Complete
43
- return src(input, { base: 'src' })
44
- // .pipe(customPathTransform())
45
- .pipe(dest(output))
46
- .on('end', () => {
47
- // Log
48
- logger.log('Finished!');
49
-
50
- // Complete
51
- return complete();
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 customPathTransform() {
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
+ }
@@ -25,7 +25,7 @@ const delay = 250;
25
25
  let index = -1;
26
26
 
27
27
  // Main task
28
- async function themes(complete) {
28
+ function themes(complete) {
29
29
  // Increment index
30
30
  index++;
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-manager",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Browser Extension Manager dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {