@browserless.io/browserless 2.22.0 → 2.23.0

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/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
- # [Latest](https://github.com/browserless/chrome/compare/v2.22.0...main)
1
+ # [Latest](https://github.com/browserless/chrome/compare/v2.23.0...main)
2
2
 
3
3
  - Dependency updates.
4
4
 
5
+ # [v2.23.0](https://github.com/browserless/chrome/compare/v2.23.0...v2.22.0)
6
+
7
+ - Dependency updates.
8
+ - Fixes `--proxy-bypass-list` CLI arguments not being passed through with function API.
9
+ - Addition of `fonts-open-sans` to image.
10
+
5
11
  # [v2.22.0](https://github.com/browserless/chrome/compare/v2.21.1...v2.22.0)
6
12
 
7
13
  - Dependency updates.
@@ -123,11 +123,21 @@ export class ChromiumCDP extends EventEmitter {
123
123
  ].filter((_) => !!_);
124
124
  // Bypass the host we bind to so things like /function can work with proxies
125
125
  if (options.args?.some((arg) => arg.includes('--proxy-server'))) {
126
- const bypassList = [
126
+ const defaultBypassList = [
127
127
  this.config.getHost(),
128
128
  new URL(this.config.getExternalAddress()).hostname,
129
129
  ];
130
- options.args.push(`--proxy-bypass-list=${bypassList.join(',')}`);
130
+ const bypassProxyListIdx = options.args?.findIndex((arg) => arg.includes('--proxy-bypass-list'));
131
+ if (bypassProxyListIdx !== -1) {
132
+ options.args[bypassProxyListIdx] =
133
+ `--proxy-bypass-list=` +
134
+ [options.args[bypassProxyListIdx].split('=')[1], ...defaultBypassList]
135
+ .filter((_) => !!_)
136
+ .join(';');
137
+ }
138
+ else {
139
+ options.args.push(`--proxy-bypass-list=${defaultBypassList.join(';')}`);
140
+ }
131
141
  }
132
142
  const finalOptions = {
133
143
  ...options,
@@ -438,14 +438,14 @@
438
438
  "length": {
439
439
  "type": "number"
440
440
  },
441
- "__@toStringTag@43209": {
441
+ "__@toStringTag@14497": {
442
442
  "type": "string",
443
443
  "const": "Uint8Array"
444
444
  }
445
445
  },
446
446
  "required": [
447
447
  "BYTES_PER_ELEMENT",
448
- "__@toStringTag@43209",
448
+ "__@toStringTag@14497",
449
449
  "buffer",
450
450
  "byteLength",
451
451
  "byteOffset",
@@ -480,13 +480,13 @@
480
480
  "byteLength": {
481
481
  "type": "number"
482
482
  },
483
- "__@toStringTag@43209": {
483
+ "__@toStringTag@14497": {
484
484
  "type": "string"
485
485
  }
486
486
  },
487
487
  "additionalProperties": false,
488
488
  "required": [
489
- "__@toStringTag@43209",
489
+ "__@toStringTag@14497",
490
490
  "byteLength"
491
491
  ]
492
492
  },
@@ -496,18 +496,18 @@
496
496
  "byteLength": {
497
497
  "type": "number"
498
498
  },
499
- "__@species@43247": {
499
+ "__@species@14535": {
500
500
  "$ref": "#/definitions/SharedArrayBuffer"
501
501
  },
502
- "__@toStringTag@43209": {
502
+ "__@toStringTag@14497": {
503
503
  "type": "string",
504
504
  "const": "SharedArrayBuffer"
505
505
  }
506
506
  },
507
507
  "additionalProperties": false,
508
508
  "required": [
509
- "__@species@43247",
510
- "__@toStringTag@43209",
509
+ "__@species@14535",
510
+ "__@toStringTag@14497",
511
511
  "byteLength"
512
512
  ]
513
513
  },
@@ -583,14 +583,14 @@
583
583
  "length": {
584
584
  "type": "number"
585
585
  },
586
- "__@toStringTag@100886": {
586
+ "__@toStringTag@115391": {
587
587
  "type": "string",
588
588
  "const": "Uint8Array"
589
589
  }
590
590
  },
591
591
  "required": [
592
592
  "BYTES_PER_ELEMENT",
593
- "__@toStringTag@100886",
593
+ "__@toStringTag@115391",
594
594
  "buffer",
595
595
  "byteLength",
596
596
  "byteOffset",
@@ -625,13 +625,13 @@
625
625
  "byteLength": {
626
626
  "type": "number"
627
627
  },
628
- "__@toStringTag@100886": {
628
+ "__@toStringTag@115391": {
629
629
  "type": "string"
630
630
  }
631
631
  },
632
632
  "additionalProperties": false,
633
633
  "required": [
634
- "__@toStringTag@100886",
634
+ "__@toStringTag@115391",
635
635
  "byteLength"
636
636
  ]
637
637
  },
@@ -641,18 +641,18 @@
641
641
  "byteLength": {
642
642
  "type": "number"
643
643
  },
644
- "__@species@100924": {
644
+ "__@species@115429": {
645
645
  "$ref": "#/definitions/SharedArrayBuffer"
646
646
  },
647
- "__@toStringTag@100886": {
647
+ "__@toStringTag@115391": {
648
648
  "type": "string",
649
649
  "const": "SharedArrayBuffer"
650
650
  }
651
651
  },
652
652
  "additionalProperties": false,
653
653
  "required": [
654
- "__@species@100924",
655
- "__@toStringTag@100886",
654
+ "__@species@115429",
655
+ "__@toStringTag@115391",
656
656
  "byteLength"
657
657
  ]
658
658
  },
@@ -485,14 +485,14 @@
485
485
  "length": {
486
486
  "type": "number"
487
487
  },
488
- "__@toStringTag@144147": {
488
+ "__@toStringTag@144367": {
489
489
  "type": "string",
490
490
  "const": "Uint8Array"
491
491
  }
492
492
  },
493
493
  "required": [
494
494
  "BYTES_PER_ELEMENT",
495
- "__@toStringTag@144147",
495
+ "__@toStringTag@144367",
496
496
  "buffer",
497
497
  "byteLength",
498
498
  "byteOffset",
@@ -527,13 +527,13 @@
527
527
  "byteLength": {
528
528
  "type": "number"
529
529
  },
530
- "__@toStringTag@144147": {
530
+ "__@toStringTag@144367": {
531
531
  "type": "string"
532
532
  }
533
533
  },
534
534
  "additionalProperties": false,
535
535
  "required": [
536
- "__@toStringTag@144147",
536
+ "__@toStringTag@144367",
537
537
  "byteLength"
538
538
  ]
539
539
  },
@@ -543,18 +543,18 @@
543
543
  "byteLength": {
544
544
  "type": "number"
545
545
  },
546
- "__@species@144185": {
546
+ "__@species@144405": {
547
547
  "$ref": "#/definitions/SharedArrayBuffer"
548
548
  },
549
- "__@toStringTag@144147": {
549
+ "__@toStringTag@144367": {
550
550
  "type": "string",
551
551
  "const": "SharedArrayBuffer"
552
552
  }
553
553
  },
554
554
  "additionalProperties": false,
555
555
  "required": [
556
- "__@species@144185",
557
- "__@toStringTag@144147",
556
+ "__@species@144405",
557
+ "__@toStringTag@144367",
558
558
  "byteLength"
559
559
  ]
560
560
  },
@@ -528,14 +528,14 @@
528
528
  "length": {
529
529
  "type": "number"
530
530
  },
531
- "__@toStringTag@158790": {
531
+ "__@toStringTag@159032": {
532
532
  "type": "string",
533
533
  "const": "Uint8Array"
534
534
  }
535
535
  },
536
536
  "required": [
537
537
  "BYTES_PER_ELEMENT",
538
- "__@toStringTag@158790",
538
+ "__@toStringTag@159032",
539
539
  "buffer",
540
540
  "byteLength",
541
541
  "byteOffset",
@@ -570,13 +570,13 @@
570
570
  "byteLength": {
571
571
  "type": "number"
572
572
  },
573
- "__@toStringTag@158790": {
573
+ "__@toStringTag@159032": {
574
574
  "type": "string"
575
575
  }
576
576
  },
577
577
  "additionalProperties": false,
578
578
  "required": [
579
- "__@toStringTag@158790",
579
+ "__@toStringTag@159032",
580
580
  "byteLength"
581
581
  ]
582
582
  },
@@ -586,18 +586,18 @@
586
586
  "byteLength": {
587
587
  "type": "number"
588
588
  },
589
- "__@species@158828": {
589
+ "__@species@159070": {
590
590
  "$ref": "#/definitions/SharedArrayBuffer"
591
591
  },
592
- "__@toStringTag@158790": {
592
+ "__@toStringTag@159032": {
593
593
  "type": "string",
594
594
  "const": "SharedArrayBuffer"
595
595
  }
596
596
  },
597
597
  "additionalProperties": false,
598
598
  "required": [
599
- "__@species@158828",
600
- "__@toStringTag@158790",
599
+ "__@species@159070",
600
+ "__@toStringTag@159032",
601
601
  "byteLength"
602
602
  ]
603
603
  },
@@ -438,14 +438,14 @@
438
438
  "length": {
439
439
  "type": "number"
440
440
  },
441
- "__@toStringTag@187707": {
441
+ "__@toStringTag@173607": {
442
442
  "type": "string",
443
443
  "const": "Uint8Array"
444
444
  }
445
445
  },
446
446
  "required": [
447
447
  "BYTES_PER_ELEMENT",
448
- "__@toStringTag@187707",
448
+ "__@toStringTag@173607",
449
449
  "buffer",
450
450
  "byteLength",
451
451
  "byteOffset",
@@ -480,13 +480,13 @@
480
480
  "byteLength": {
481
481
  "type": "number"
482
482
  },
483
- "__@toStringTag@187707": {
483
+ "__@toStringTag@173607": {
484
484
  "type": "string"
485
485
  }
486
486
  },
487
487
  "additionalProperties": false,
488
488
  "required": [
489
- "__@toStringTag@187707",
489
+ "__@toStringTag@173607",
490
490
  "byteLength"
491
491
  ]
492
492
  },
@@ -496,18 +496,18 @@
496
496
  "byteLength": {
497
497
  "type": "number"
498
498
  },
499
- "__@species@187745": {
499
+ "__@species@173645": {
500
500
  "$ref": "#/definitions/SharedArrayBuffer"
501
501
  },
502
- "__@toStringTag@187707": {
502
+ "__@toStringTag@173607": {
503
503
  "type": "string",
504
504
  "const": "SharedArrayBuffer"
505
505
  }
506
506
  },
507
507
  "additionalProperties": false,
508
508
  "required": [
509
- "__@species@187745",
510
- "__@toStringTag@187707",
509
+ "__@species@173645",
510
+ "__@toStringTag@173607",
511
511
  "byteLength"
512
512
  ]
513
513
  },
@@ -583,14 +583,14 @@
583
583
  "length": {
584
584
  "type": "number"
585
585
  },
586
- "__@toStringTag@317628": {
586
+ "__@toStringTag@260132": {
587
587
  "type": "string",
588
588
  "const": "Uint8Array"
589
589
  }
590
590
  },
591
591
  "required": [
592
592
  "BYTES_PER_ELEMENT",
593
- "__@toStringTag@317628",
593
+ "__@toStringTag@260132",
594
594
  "buffer",
595
595
  "byteLength",
596
596
  "byteOffset",
@@ -625,13 +625,13 @@
625
625
  "byteLength": {
626
626
  "type": "number"
627
627
  },
628
- "__@toStringTag@317628": {
628
+ "__@toStringTag@260132": {
629
629
  "type": "string"
630
630
  }
631
631
  },
632
632
  "additionalProperties": false,
633
633
  "required": [
634
- "__@toStringTag@317628",
634
+ "__@toStringTag@260132",
635
635
  "byteLength"
636
636
  ]
637
637
  },
@@ -641,18 +641,18 @@
641
641
  "byteLength": {
642
642
  "type": "number"
643
643
  },
644
- "__@species@317666": {
644
+ "__@species@260170": {
645
645
  "$ref": "#/definitions/SharedArrayBuffer"
646
646
  },
647
- "__@toStringTag@317628": {
647
+ "__@toStringTag@260132": {
648
648
  "type": "string",
649
649
  "const": "SharedArrayBuffer"
650
650
  }
651
651
  },
652
652
  "additionalProperties": false,
653
653
  "required": [
654
- "__@species@317666",
655
- "__@toStringTag@317628",
654
+ "__@species@260170",
655
+ "__@toStringTag@260132",
656
656
  "byteLength"
657
657
  ]
658
658
  },
@@ -485,14 +485,14 @@
485
485
  "length": {
486
486
  "type": "number"
487
487
  },
488
- "__@toStringTag@288412": {
488
+ "__@toStringTag@318046": {
489
489
  "type": "string",
490
490
  "const": "Uint8Array"
491
491
  }
492
492
  },
493
493
  "required": [
494
494
  "BYTES_PER_ELEMENT",
495
- "__@toStringTag@288412",
495
+ "__@toStringTag@318046",
496
496
  "buffer",
497
497
  "byteLength",
498
498
  "byteOffset",
@@ -527,13 +527,13 @@
527
527
  "byteLength": {
528
528
  "type": "number"
529
529
  },
530
- "__@toStringTag@288412": {
530
+ "__@toStringTag@318046": {
531
531
  "type": "string"
532
532
  }
533
533
  },
534
534
  "additionalProperties": false,
535
535
  "required": [
536
- "__@toStringTag@288412",
536
+ "__@toStringTag@318046",
537
537
  "byteLength"
538
538
  ]
539
539
  },
@@ -543,18 +543,18 @@
543
543
  "byteLength": {
544
544
  "type": "number"
545
545
  },
546
- "__@species@288450": {
546
+ "__@species@318084": {
547
547
  "$ref": "#/definitions/SharedArrayBuffer"
548
548
  },
549
- "__@toStringTag@288412": {
549
+ "__@toStringTag@318046": {
550
550
  "type": "string",
551
551
  "const": "SharedArrayBuffer"
552
552
  }
553
553
  },
554
554
  "additionalProperties": false,
555
555
  "required": [
556
- "__@species@288450",
557
- "__@toStringTag@288412",
556
+ "__@species@318084",
557
+ "__@toStringTag@318046",
558
558
  "byteLength"
559
559
  ]
560
560
  },
@@ -528,14 +528,14 @@
528
528
  "length": {
529
529
  "type": "number"
530
530
  },
531
- "__@toStringTag@303052": {
531
+ "__@toStringTag@303461": {
532
532
  "type": "string",
533
533
  "const": "Uint8Array"
534
534
  }
535
535
  },
536
536
  "required": [
537
537
  "BYTES_PER_ELEMENT",
538
- "__@toStringTag@303052",
538
+ "__@toStringTag@303461",
539
539
  "buffer",
540
540
  "byteLength",
541
541
  "byteOffset",
@@ -570,13 +570,13 @@
570
570
  "byteLength": {
571
571
  "type": "number"
572
572
  },
573
- "__@toStringTag@303052": {
573
+ "__@toStringTag@303461": {
574
574
  "type": "string"
575
575
  }
576
576
  },
577
577
  "additionalProperties": false,
578
578
  "required": [
579
- "__@toStringTag@303052",
579
+ "__@toStringTag@303461",
580
580
  "byteLength"
581
581
  ]
582
582
  },
@@ -586,18 +586,18 @@
586
586
  "byteLength": {
587
587
  "type": "number"
588
588
  },
589
- "__@species@303090": {
589
+ "__@species@303499": {
590
590
  "$ref": "#/definitions/SharedArrayBuffer"
591
591
  },
592
- "__@toStringTag@303052": {
592
+ "__@toStringTag@303461": {
593
593
  "type": "string",
594
594
  "const": "SharedArrayBuffer"
595
595
  }
596
596
  },
597
597
  "additionalProperties": false,
598
598
  "required": [
599
- "__@species@303090",
600
- "__@toStringTag@303052",
599
+ "__@species@303499",
600
+ "__@toStringTag@303461",
601
601
  "byteLength"
602
602
  ]
603
603
  },
@@ -24,7 +24,8 @@ RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula sele
24
24
  fonts-roboto \
25
25
  fonts-thai-tlwg \
26
26
  fonts-ubuntu \
27
- fonts-wqy-zenhei
27
+ fonts-wqy-zenhei \
28
+ fonts-open-sans
28
29
 
29
30
  # NOTE it's important to not use npx playwright-core here since it'll likely install
30
31
  # a more recent version than we potentially have in our own package.json
@@ -24,7 +24,8 @@ RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula sele
24
24
  fonts-roboto \
25
25
  fonts-thai-tlwg \
26
26
  fonts-ubuntu \
27
- fonts-wqy-zenhei
27
+ fonts-wqy-zenhei \
28
+ fonts-open-sans
28
29
 
29
30
  # NOTE it's important to not use npx playwright-core here since it'll likely install
30
31
  # a more recent version than we potentially have in our own package.json
@@ -24,7 +24,8 @@ RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula sele
24
24
  fonts-roboto \
25
25
  fonts-thai-tlwg \
26
26
  fonts-ubuntu \
27
- fonts-wqy-zenhei
27
+ fonts-wqy-zenhei \
28
+ fonts-open-sans
28
29
 
29
30
  # NOTE it's important to not use npx playwright-core here since it'll likely install
30
31
  # a more recent version than we potentially have in our own package.json
@@ -24,7 +24,8 @@ RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula sele
24
24
  fonts-roboto \
25
25
  fonts-thai-tlwg \
26
26
  fonts-ubuntu \
27
- fonts-wqy-zenhei
27
+ fonts-wqy-zenhei \
28
+ fonts-open-sans
28
29
 
29
30
  # Chrome stable is only supported on non-ARM builds
30
31
  # so it's installation is conditional on whether or not amd64
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserless.io/browserless",
3
- "version": "2.22.0",
3
+ "version": "2.23.0",
4
4
  "license": "SSPL",
5
5
  "description": "The browserless platform",
6
6
  "author": "browserless.io",
@@ -61,8 +61,8 @@
61
61
  "playwright-1.45": "npm:playwright-core@1.45.3",
62
62
  "playwright-1.46": "npm:playwright-core@1.46.1",
63
63
  "playwright-1.47": "npm:playwright-core@1.47.2",
64
- "playwright-core": "^1.48.1",
65
- "puppeteer-core": "^23.6.0",
64
+ "playwright-core": "^1.48.2",
65
+ "puppeteer-core": "^23.6.1",
66
66
  "puppeteer-extra": "^3.3.6",
67
67
  "puppeteer-extra-plugin-stealth": "^2.11.2",
68
68
  "queue": "^7.0.0",
@@ -70,18 +70,18 @@
70
70
  "tar-fs": "^3.0.6"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@types/chai": "^5.0.0",
73
+ "@types/chai": "^5.0.1",
74
74
  "@types/debug": "^4.1.12",
75
75
  "@types/gradient-string": "^1.1.6",
76
76
  "@types/http-proxy": "^1.17.15",
77
77
  "@types/micromatch": "^4.0.9",
78
78
  "@types/mocha": "^10.0.9",
79
- "@types/node": "^22.7.9",
79
+ "@types/node": "^22.8.4",
80
80
  "@types/sinon": "^17.0.3",
81
- "@typescript-eslint/eslint-plugin": "^8.11.0",
82
- "@typescript-eslint/parser": "^8.11.0",
81
+ "@typescript-eslint/eslint-plugin": "^8.12.2",
82
+ "@typescript-eslint/parser": "^8.12.2",
83
83
  "assert": "^2.0.0",
84
- "chai": "^5.1.1",
84
+ "chai": "^5.1.2",
85
85
  "cross-env": "^7.0.3",
86
86
  "env-cmd": "^10.1.0",
87
87
  "esbuild": "^0.24.0",
@@ -90,7 +90,7 @@
90
90
  "extract-zip": "^2.0.1",
91
91
  "gunzip-maybe": "^1.4.2",
92
92
  "marked": "^14.1.3",
93
- "mocha": "^10.7.3",
93
+ "mocha": "^10.8.2",
94
94
  "move-file": "^3.1.0",
95
95
  "prettier": "^3.3.3",
96
96
  "sinon": "^19.0.2",
@@ -195,11 +195,22 @@ export class ChromiumCDP extends EventEmitter {
195
195
 
196
196
  // Bypass the host we bind to so things like /function can work with proxies
197
197
  if (options.args?.some((arg) => arg.includes('--proxy-server'))) {
198
- const bypassList = [
198
+ const defaultBypassList = [
199
199
  this.config.getHost(),
200
200
  new URL(this.config.getExternalAddress()).hostname,
201
201
  ];
202
- options.args.push(`--proxy-bypass-list=${bypassList.join(',')}`);
202
+ const bypassProxyListIdx = options.args?.findIndex((arg) =>
203
+ arg.includes('--proxy-bypass-list'),
204
+ );
205
+ if (bypassProxyListIdx !== -1) {
206
+ options.args[bypassProxyListIdx] =
207
+ `--proxy-bypass-list=` +
208
+ [options.args[bypassProxyListIdx].split('=')[1], ...defaultBypassList]
209
+ .filter((_) => !!_)
210
+ .join(';');
211
+ } else {
212
+ options.args.push(`--proxy-bypass-list=${defaultBypassList.join(';')}`);
213
+ }
203
214
  }
204
215
 
205
216
  const finalOptions = {