@browserless.io/browserless 2.20.0-beta-3 → 2.20.0-beta-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.
@@ -36,23 +36,23 @@ process
36
36
  process.exit(1);
37
37
  })
38
38
  .once('SIGTERM', async () => {
39
- logger.info(`SIGTERM received, saving and closing down`);
39
+ console.debug(`SIGTERM received, saving and closing down`);
40
40
  process.exit(0);
41
41
  })
42
42
  .once('SIGINT', async () => {
43
- logger.info(`SIGINT received, saving and closing down`);
43
+ console.debug(`SIGINT received, saving and closing down`);
44
44
  process.exit(0);
45
45
  })
46
46
  .once('SIGHUP', async () => {
47
- logger.info(`SIGHUP received, saving and closing down`);
47
+ console.debug(`SIGHUP received, saving and closing down`);
48
48
  process.exit(0);
49
49
  })
50
50
  .once('SIGUSR2', async () => {
51
- logger.info(`SIGUSR2 received, saving and closing down`);
51
+ console.debug(`SIGUSR2 received, saving and closing down`);
52
52
  process.exit(0);
53
53
  })
54
54
  .once('exit', () => {
55
- logger.info(`Process is finished, exiting`);
55
+ console.debug(`Process is finished, exiting`);
56
56
  process.exit(0);
57
57
  });
58
58
 
@@ -583,14 +583,14 @@
583
583
  "length": {
584
584
  "type": "number"
585
585
  },
586
- "__@toStringTag@140595": {
586
+ "__@toStringTag@84401": {
587
587
  "type": "string",
588
588
  "const": "Uint8Array"
589
589
  }
590
590
  },
591
591
  "required": [
592
592
  "BYTES_PER_ELEMENT",
593
- "__@toStringTag@140595",
593
+ "__@toStringTag@84401",
594
594
  "buffer",
595
595
  "byteLength",
596
596
  "byteOffset",
@@ -625,13 +625,13 @@
625
625
  "byteLength": {
626
626
  "type": "number"
627
627
  },
628
- "__@toStringTag@140595": {
628
+ "__@toStringTag@84401": {
629
629
  "type": "string"
630
630
  }
631
631
  },
632
632
  "additionalProperties": false,
633
633
  "required": [
634
- "__@toStringTag@140595",
634
+ "__@toStringTag@84401",
635
635
  "byteLength"
636
636
  ]
637
637
  },
@@ -641,18 +641,18 @@
641
641
  "byteLength": {
642
642
  "type": "number"
643
643
  },
644
- "__@species@140633": {
644
+ "__@species@84439": {
645
645
  "$ref": "#/definitions/SharedArrayBuffer"
646
646
  },
647
- "__@toStringTag@140595": {
647
+ "__@toStringTag@84401": {
648
648
  "type": "string",
649
649
  "const": "SharedArrayBuffer"
650
650
  }
651
651
  },
652
652
  "additionalProperties": false,
653
653
  "required": [
654
- "__@species@140633",
655
- "__@toStringTag@140595",
654
+ "__@species@84439",
655
+ "__@toStringTag@84401",
656
656
  "byteLength"
657
657
  ]
658
658
  },
@@ -485,14 +485,14 @@
485
485
  "length": {
486
486
  "type": "number"
487
487
  },
488
- "__@toStringTag@112286": {
488
+ "__@toStringTag@112631": {
489
489
  "type": "string",
490
490
  "const": "Uint8Array"
491
491
  }
492
492
  },
493
493
  "required": [
494
494
  "BYTES_PER_ELEMENT",
495
- "__@toStringTag@112286",
495
+ "__@toStringTag@112631",
496
496
  "buffer",
497
497
  "byteLength",
498
498
  "byteOffset",
@@ -527,13 +527,13 @@
527
527
  "byteLength": {
528
528
  "type": "number"
529
529
  },
530
- "__@toStringTag@112286": {
530
+ "__@toStringTag@112631": {
531
531
  "type": "string"
532
532
  }
533
533
  },
534
534
  "additionalProperties": false,
535
535
  "required": [
536
- "__@toStringTag@112286",
536
+ "__@toStringTag@112631",
537
537
  "byteLength"
538
538
  ]
539
539
  },
@@ -543,18 +543,18 @@
543
543
  "byteLength": {
544
544
  "type": "number"
545
545
  },
546
- "__@species@112324": {
546
+ "__@species@112669": {
547
547
  "$ref": "#/definitions/SharedArrayBuffer"
548
548
  },
549
- "__@toStringTag@112286": {
549
+ "__@toStringTag@112631": {
550
550
  "type": "string",
551
551
  "const": "SharedArrayBuffer"
552
552
  }
553
553
  },
554
554
  "additionalProperties": false,
555
555
  "required": [
556
- "__@species@112324",
557
- "__@toStringTag@112286",
556
+ "__@species@112669",
557
+ "__@toStringTag@112631",
558
558
  "byteLength"
559
559
  ]
560
560
  },
@@ -528,14 +528,14 @@
528
528
  "length": {
529
529
  "type": "number"
530
530
  },
531
- "__@toStringTag@168834": {
531
+ "__@toStringTag@140864": {
532
532
  "type": "string",
533
533
  "const": "Uint8Array"
534
534
  }
535
535
  },
536
536
  "required": [
537
537
  "BYTES_PER_ELEMENT",
538
- "__@toStringTag@168834",
538
+ "__@toStringTag@140864",
539
539
  "buffer",
540
540
  "byteLength",
541
541
  "byteOffset",
@@ -570,13 +570,13 @@
570
570
  "byteLength": {
571
571
  "type": "number"
572
572
  },
573
- "__@toStringTag@168834": {
573
+ "__@toStringTag@140864": {
574
574
  "type": "string"
575
575
  }
576
576
  },
577
577
  "additionalProperties": false,
578
578
  "required": [
579
- "__@toStringTag@168834",
579
+ "__@toStringTag@140864",
580
580
  "byteLength"
581
581
  ]
582
582
  },
@@ -586,18 +586,18 @@
586
586
  "byteLength": {
587
587
  "type": "number"
588
588
  },
589
- "__@species@168872": {
589
+ "__@species@140902": {
590
590
  "$ref": "#/definitions/SharedArrayBuffer"
591
591
  },
592
- "__@toStringTag@168834": {
592
+ "__@toStringTag@140864": {
593
593
  "type": "string",
594
594
  "const": "SharedArrayBuffer"
595
595
  }
596
596
  },
597
597
  "additionalProperties": false,
598
598
  "required": [
599
- "__@species@168872",
600
- "__@toStringTag@168834",
599
+ "__@species@140902",
600
+ "__@toStringTag@140864",
601
601
  "byteLength"
602
602
  ]
603
603
  },
@@ -438,14 +438,14 @@
438
438
  "length": {
439
439
  "type": "number"
440
440
  },
441
- "__@toStringTag@211039": {
441
+ "__@toStringTag@169023": {
442
442
  "type": "string",
443
443
  "const": "Uint8Array"
444
444
  }
445
445
  },
446
446
  "required": [
447
447
  "BYTES_PER_ELEMENT",
448
- "__@toStringTag@211039",
448
+ "__@toStringTag@169023",
449
449
  "buffer",
450
450
  "byteLength",
451
451
  "byteOffset",
@@ -480,13 +480,13 @@
480
480
  "byteLength": {
481
481
  "type": "number"
482
482
  },
483
- "__@toStringTag@211039": {
483
+ "__@toStringTag@169023": {
484
484
  "type": "string"
485
485
  }
486
486
  },
487
487
  "additionalProperties": false,
488
488
  "required": [
489
- "__@toStringTag@211039",
489
+ "__@toStringTag@169023",
490
490
  "byteLength"
491
491
  ]
492
492
  },
@@ -496,18 +496,18 @@
496
496
  "byteLength": {
497
497
  "type": "number"
498
498
  },
499
- "__@species@211077": {
499
+ "__@species@169061": {
500
500
  "$ref": "#/definitions/SharedArrayBuffer"
501
501
  },
502
- "__@toStringTag@211039": {
502
+ "__@toStringTag@169023": {
503
503
  "type": "string",
504
504
  "const": "SharedArrayBuffer"
505
505
  }
506
506
  },
507
507
  "additionalProperties": false,
508
508
  "required": [
509
- "__@species@211077",
510
- "__@toStringTag@211039",
509
+ "__@species@169061",
510
+ "__@toStringTag@169023",
511
511
  "byteLength"
512
512
  ]
513
513
  },
@@ -583,14 +583,14 @@
583
583
  "length": {
584
584
  "type": "number"
585
585
  },
586
- "__@toStringTag@253173": {
586
+ "__@toStringTag@253239": {
587
587
  "type": "string",
588
588
  "const": "Uint8Array"
589
589
  }
590
590
  },
591
591
  "required": [
592
592
  "BYTES_PER_ELEMENT",
593
- "__@toStringTag@253173",
593
+ "__@toStringTag@253239",
594
594
  "buffer",
595
595
  "byteLength",
596
596
  "byteOffset",
@@ -625,13 +625,13 @@
625
625
  "byteLength": {
626
626
  "type": "number"
627
627
  },
628
- "__@toStringTag@253173": {
628
+ "__@toStringTag@253239": {
629
629
  "type": "string"
630
630
  }
631
631
  },
632
632
  "additionalProperties": false,
633
633
  "required": [
634
- "__@toStringTag@253173",
634
+ "__@toStringTag@253239",
635
635
  "byteLength"
636
636
  ]
637
637
  },
@@ -641,18 +641,18 @@
641
641
  "byteLength": {
642
642
  "type": "number"
643
643
  },
644
- "__@species@253211": {
644
+ "__@species@253277": {
645
645
  "$ref": "#/definitions/SharedArrayBuffer"
646
646
  },
647
- "__@toStringTag@253173": {
647
+ "__@toStringTag@253239": {
648
648
  "type": "string",
649
649
  "const": "SharedArrayBuffer"
650
650
  }
651
651
  },
652
652
  "additionalProperties": false,
653
653
  "required": [
654
- "__@species@253211",
655
- "__@toStringTag@253173",
654
+ "__@species@253277",
655
+ "__@toStringTag@253239",
656
656
  "byteLength"
657
657
  ]
658
658
  },
@@ -485,14 +485,14 @@
485
485
  "length": {
486
486
  "type": "number"
487
487
  },
488
- "__@toStringTag@281389": {
488
+ "__@toStringTag@281463": {
489
489
  "type": "string",
490
490
  "const": "Uint8Array"
491
491
  }
492
492
  },
493
493
  "required": [
494
494
  "BYTES_PER_ELEMENT",
495
- "__@toStringTag@281389",
495
+ "__@toStringTag@281463",
496
496
  "buffer",
497
497
  "byteLength",
498
498
  "byteOffset",
@@ -527,13 +527,13 @@
527
527
  "byteLength": {
528
528
  "type": "number"
529
529
  },
530
- "__@toStringTag@281389": {
530
+ "__@toStringTag@281463": {
531
531
  "type": "string"
532
532
  }
533
533
  },
534
534
  "additionalProperties": false,
535
535
  "required": [
536
- "__@toStringTag@281389",
536
+ "__@toStringTag@281463",
537
537
  "byteLength"
538
538
  ]
539
539
  },
@@ -543,18 +543,18 @@
543
543
  "byteLength": {
544
544
  "type": "number"
545
545
  },
546
- "__@species@281427": {
546
+ "__@species@281501": {
547
547
  "$ref": "#/definitions/SharedArrayBuffer"
548
548
  },
549
- "__@toStringTag@281389": {
549
+ "__@toStringTag@281463": {
550
550
  "type": "string",
551
551
  "const": "SharedArrayBuffer"
552
552
  }
553
553
  },
554
554
  "additionalProperties": false,
555
555
  "required": [
556
- "__@species@281427",
557
- "__@toStringTag@281389",
556
+ "__@species@281501",
557
+ "__@toStringTag@281463",
558
558
  "byteLength"
559
559
  ]
560
560
  },
@@ -528,14 +528,14 @@
528
528
  "length": {
529
529
  "type": "number"
530
530
  },
531
- "__@toStringTag@309690": {
531
+ "__@toStringTag@323656": {
532
532
  "type": "string",
533
533
  "const": "Uint8Array"
534
534
  }
535
535
  },
536
536
  "required": [
537
537
  "BYTES_PER_ELEMENT",
538
- "__@toStringTag@309690",
538
+ "__@toStringTag@323656",
539
539
  "buffer",
540
540
  "byteLength",
541
541
  "byteOffset",
@@ -570,13 +570,13 @@
570
570
  "byteLength": {
571
571
  "type": "number"
572
572
  },
573
- "__@toStringTag@309690": {
573
+ "__@toStringTag@323656": {
574
574
  "type": "string"
575
575
  }
576
576
  },
577
577
  "additionalProperties": false,
578
578
  "required": [
579
- "__@toStringTag@309690",
579
+ "__@toStringTag@323656",
580
580
  "byteLength"
581
581
  ]
582
582
  },
@@ -586,18 +586,18 @@
586
586
  "byteLength": {
587
587
  "type": "number"
588
588
  },
589
- "__@species@309728": {
589
+ "__@species@323694": {
590
590
  "$ref": "#/definitions/SharedArrayBuffer"
591
591
  },
592
- "__@toStringTag@309690": {
592
+ "__@toStringTag@323656": {
593
593
  "type": "string",
594
594
  "const": "SharedArrayBuffer"
595
595
  }
596
596
  },
597
597
  "additionalProperties": false,
598
598
  "required": [
599
- "__@species@309728",
600
- "__@toStringTag@309690",
599
+ "__@species@323694",
600
+ "__@toStringTag@323656",
601
601
  "byteLength"
602
602
  ]
603
603
  },
@@ -5,12 +5,12 @@ import path from 'path';
5
5
  import { promisify } from 'util';
6
6
  import { exec } from 'child_process';
7
7
  const execAsync = promisify(exec);
8
- const waitForCommand = async (cmd, workingDirectory) => new Promise((resolve, reject) => execAsync(cmd, { cwd: workingDirectory }).then(({ stderr }) => {
8
+ const waitForCommand = async (cmd, workingDirectory) => execAsync(cmd, { cwd: workingDirectory }).then(({ stderr }) => {
9
9
  if (stderr) {
10
- return reject(`Error running ${cmd}. See output for more details: \n${stderr}`);
10
+ console.warn(`Command produced the following stderr entries: \n${stderr}`);
11
11
  }
12
- return resolve();
13
- }));
12
+ return;
13
+ });
14
14
  export const getArgSwitches = () => {
15
15
  return process.argv.reduce((accum, arg, idx) => {
16
16
  if (!arg.startsWith('--')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserless.io/browserless",
3
- "version": "2.20.0-beta-3",
3
+ "version": "2.20.0-beta-4",
4
4
  "license": "SSPL",
5
5
  "description": "The browserless platform",
6
6
  "author": "browserless.io",
package/src/sdk-utils.ts CHANGED
@@ -8,18 +8,19 @@ import { exec } from 'child_process';
8
8
 
9
9
  const execAsync = promisify(exec);
10
10
 
11
- const waitForCommand = async (cmd: string, workingDirectory: string) =>
12
- new Promise<void>((resolve, reject) =>
13
- execAsync(cmd, { cwd: workingDirectory }).then(({ stderr }) => {
14
- if (stderr) {
15
- return reject(
16
- `Error running ${cmd}. See output for more details: \n${stderr}`,
17
- );
18
- }
19
-
20
- return resolve();
21
- }),
22
- );
11
+ const waitForCommand = async (
12
+ cmd: string,
13
+ workingDirectory: string,
14
+ ): Promise<void> =>
15
+ execAsync(cmd, { cwd: workingDirectory }).then(({ stderr }) => {
16
+ if (stderr) {
17
+ console.warn(
18
+ `Command produced the following stderr entries: \n${stderr}`,
19
+ );
20
+ }
21
+
22
+ return;
23
+ });
23
24
 
24
25
  export const getArgSwitches = () => {
25
26
  return process.argv.reduce(
@@ -969,7 +969,7 @@
969
969
  },
970
970
  "info": {
971
971
  "title": "Browserless",
972
- "version": "2.20.0-beta-3",
972
+ "version": "2.20.0-beta-4",
973
973
  "x-logo": {
974
974
  "altText": "browserless logo",
975
975
  "url": "./docs/browserless-logo-inline.svg"
@@ -969,7 +969,7 @@
969
969
  },
970
970
  "info": {
971
971
  "title": "Browserless",
972
- "version": "2.20.0-beta-3",
972
+ "version": "2.20.0-beta-4",
973
973
  "x-logo": {
974
974
  "altText": "browserless logo",
975
975
  "url": "./docs/browserless-logo-inline.svg"