nodejs_chromium 1.1.18 → 1.1.21
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/index.js +3 -3
- package/package.json +1 -1
- package/src/chrome.js +2 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'nodejs_patch';
|
|
2
2
|
import puppeteer from "puppeteer";
|
|
3
|
-
import {KnownDevices} from "puppeteer";
|
|
4
|
-
import {exec} from "child_process";
|
|
3
|
+
import { KnownDevices } from "puppeteer";
|
|
4
|
+
import { exec } from "child_process";
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import chrome from "./src/chrome.js";
|
|
7
7
|
|
|
@@ -208,4 +208,4 @@ async function checkInstall(install = false) {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
|
|
211
|
-
export
|
|
211
|
+
export { newChrome, checkInstall }
|
package/package.json
CHANGED
package/src/chrome.js
CHANGED
|
@@ -698,7 +698,8 @@ export default class {
|
|
|
698
698
|
}, domain);
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
|
|
701
|
+
//'document',
|
|
702
|
+
skipTypes = ['image', 'font', 'other', 'script', 'stylesheet', 'ping'];
|
|
702
703
|
|
|
703
704
|
setSkipType(items) {
|
|
704
705
|
this.skipTypes.length = 0;
|