puppeteer-pro 1.6.1 → 1.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppeteer-pro",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "A simple puppeteer wrapper to enable useful plugins with ease",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,24 +37,24 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "axios": "^0.27.2",
40
- "ghost-cursor": "^1.1.11",
41
- "user-agents": "^1.0.1046"
40
+ "ghost-cursor": "^1.1.13",
41
+ "user-agents": "^1.0.1074"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/jest": "^28.1.4",
45
- "@types/node": "^18.0.0",
44
+ "@types/jest": "^28.1.6",
45
+ "@types/node": "^18.6.2",
46
46
  "@types/user-agents": "^1.0.2",
47
- "@typescript-eslint/eslint-plugin": "^5.30.0",
48
- "@typescript-eslint/parser": "^5.30.0",
47
+ "@typescript-eslint/eslint-plugin": "^5.31.0",
48
+ "@typescript-eslint/parser": "^5.31.0",
49
49
  "copyfiles": "^2.4.1",
50
50
  "dotenv-safe": "^8.2.0",
51
- "eslint": "^8.18.0",
51
+ "eslint": "^8.20.0",
52
52
  "eslint-plugin-deprecation": "^1.3.2",
53
- "jest": "^28.1.2",
54
- "mocha": "^10.0.0",
55
- "puppeteer": "^15.3.0",
53
+ "jest": "^28.1.3",
54
+ "puppeteer": "^15.5.0",
56
55
  "rimraf": "^3.0.2",
57
- "ts-jest": "^28.0.5",
56
+ "ts-jest": "^28.0.7",
57
+ "ts-node": "^10.9.1",
58
58
  "typescript": "^4.7.4"
59
59
  }
60
60
  }
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.AvoidDetectionPlugin = void 0;
3
- const fs = require("fs");
4
- const path = require("path");
3
+ const fs_1 = require("fs");
4
+ const path_1 = require("path");
5
5
  const index_1 = require("../../index");
6
6
  const index_2 = require("./../anonymize.user.agent/index");
7
- const injectionsFolder = path.resolve(`${__dirname}/injections`);
8
- const injections = fs.readdirSync(injectionsFolder).map(fileName => require(`${injectionsFolder}/${fileName}`));
7
+ const injectionsFolder = (0, path_1.resolve)(`${__dirname}/injections`);
8
+ const injections = (0, fs_1.readdirSync)(injectionsFolder).map(fileName => require(`${injectionsFolder}/${fileName}`));
9
9
  class AvoidDetectionPlugin extends index_1.Plugin {
10
10
  constructor() {
11
11
  super(...arguments);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/avoid.detection/index.ts"],"names":[],"mappings":";;AAAA,yBAAyB;AACzB,6BAA6B;AAG7B,uCAAqC;AACrC,2DAA2E;AAE3E,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,SAAS,aAAa,CAAC,CAAC;AACjE,MAAM,UAAU,GAAG,EAAE,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,gBAAgB,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEhH,MAAa,oBAAqB,SAAQ,cAAM;IAAhD;;QACE,iBAAY,GAAG,CAAC,IAAI,gCAAwB,EAAE,CAAC,CAAC;IAOlD,CAAC;IALW,KAAK,CAAC,aAAa,CAAC,IAAoB;QAChD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAAE,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;SACtF;IACH,CAAC;CACF;AARD,oDAQC","sourcesContent":["import * as fs from 'fs';\nimport * as path from 'path';\nimport * as Puppeteer from 'puppeteer';\n\nimport { Plugin } from '../../index';\nimport { AnonymizeUserAgentPlugin } from './../anonymize.user.agent/index';\n\nconst injectionsFolder = path.resolve(`${__dirname}/injections`);\nconst injections = fs.readdirSync(injectionsFolder).map(fileName => require(`${injectionsFolder}/${fileName}`));\n\nexport class AvoidDetectionPlugin extends Plugin {\n dependencies = [new AnonymizeUserAgentPlugin()];\n\n protected async onPageCreated(page: Puppeteer.Page) {\n for (const injection of injections) {\n if (!this.isStopped && !page.isClosed()) await page.evaluateOnNewDocument(injection);\n }\n }\n}"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/avoid.detection/index.ts"],"names":[],"mappings":";;AAAA,2BAAiC;AACjC,+BAA8C;AAG9C,uCAAqC;AACrC,2DAA2E;AAE3E,MAAM,gBAAgB,GAAG,IAAA,cAAW,EAAC,GAAG,SAAS,aAAa,CAAC,CAAC;AAChE,MAAM,UAAU,GAAG,IAAA,gBAAW,EAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,gBAAgB,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC;AAE7G,MAAa,oBAAqB,SAAQ,cAAM;IAAhD;;QACE,iBAAY,GAAG,CAAC,IAAI,gCAAwB,EAAE,CAAC,CAAC;IAOlD,CAAC;IALW,KAAK,CAAC,aAAa,CAAC,IAAoB;QAChD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAAE,MAAM,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;SACtF;IACH,CAAC;CACF;AARD,oDAQC","sourcesContent":["import { readdirSync } from 'fs';\nimport { resolve as resolvePath } from 'path';\nimport * as Puppeteer from 'puppeteer';\n\nimport { Plugin } from '../../index';\nimport { AnonymizeUserAgentPlugin } from './../anonymize.user.agent/index';\n\nconst injectionsFolder = resolvePath(`${__dirname}/injections`);\nconst injections = readdirSync(injectionsFolder).map(fileName => require(`${injectionsFolder}/${fileName}`));\n\nexport class AvoidDetectionPlugin extends Plugin {\n dependencies = [new AnonymizeUserAgentPlugin()];\n\n protected async onPageCreated(page: Puppeteer.Page) {\n for (const injection of injections) {\n if (!this.isStopped && !page.isClosed()) await page.evaluateOnNewDocument(injection);\n }\n }\n}"]}