Skip to content

Commit

Permalink
feat: Add plugin proxy-router (#693)
Browse files Browse the repository at this point in the history
* feat: Add plugin proxy-router
  • Loading branch information
berstend authored Aug 8, 2022
1 parent f2b7ad2 commit 0e5184f
Show file tree
Hide file tree
Showing 16 changed files with 1,299 additions and 66 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ jobs:
# - 16
- 14
puppeteer_version:
# - 14.2.0 # Chromium 103.0.5059.0 # requires >=14.1.0
- 10.2.0 # Chromium 93.0.4577.0
# - 15.5.0
- 14.2.0 # Chromium 103.0.5059.0 # requires >=14.1.0
# - 10.2.0 # Chromium 93.0.4577.0
# - 7.0.0 # Chromium 90.0.4403.0, Feb 3, 2021
- 5.5.0 # Chromium 88.0.4298.0
# - 5.5.0 # Chromium 88.0.4298.0
# - 5.0.0 # Chromium 83.0.4103.0, Jul 2, 2020
# - 2.1.1 # Chromium 79.0.3942.0, Oct 24 2019
# - 2.0.0 # Chromium 79.0.3942.0, Oct 24 2019
Expand Down Expand Up @@ -78,10 +79,13 @@ jobs:

- name: debug
run: |
yarn list --pattern "puppeteer|puppeteer-extra"
yarn list --pattern "puppeteer|puppeteer-extra|playwright"
file node_modules/puppeteer-extra/dist/index.cjs.js
- uses: microsoft/playwright-github-action@v1

- name: playwright install
run: cd packages/playwright-extra && yarn playwright install

- name: test
uses: GabrielBB/xvfb-action@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-extra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"esbuild": "^0.14.47",
"esbuild-register": "^3.3.3",
"npm-run-all": "^4.1.5",
"playwright": "^1.22.2",
"playwright": "1.24.2",
"prettier": "^2.7.1",
"puppeteer-extra-plugin": "^3.2.2",
"puppeteer-extra-plugin-anonymize-ua": "^2.4.4",
Expand Down
86 changes: 86 additions & 0 deletions packages/plugin-proxy-router/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"name": "@extra/proxy-router",
"version": "3.1.1",
"description": "A plugin for playwright & puppeteer to route proxies dynamically.",
"repository": "berstend/puppeteer-extra",
"homepage": "https://github.com/berstend/puppeteer-extra/tree/master/packages/plugin-proxy-router",
"author": "berstend",
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "rimraf dist/*",
"tscheck": "tsc --pretty --noEmit",
"prebuild": "run-s clean",
"build": "run-s build:tsc build:rollup",
"build:tsc": "tsc --project tsconfig.json --module commonjs",
"build:rollup": "rollup -c rollup.config.ts",
"docs": "node -e 0",
"test": "run-s build",
"pretest-ci": "run-s build",
"test-ci": "run-s build"
},
"engines": {
"node": ">=14"
},
"prettier": {
"printWidth": 80,
"semi": false,
"singleQuote": true
},
"keywords": [
"puppeteer",
"playwright",
"puppeteer-extra",
"playwright-extra",
"proxy",
"proxy-router",
"headless",
"luminati"
],
"devDependencies": {
"@types/debug": "^4.1.5",
"@types/node": "14.17.6",
"@types/puppeteer": "*",
"ava": "2.4.0",
"copyfiles": "^2.1.1",
"npm-run-all": "^4.1.5",
"playwright-core": "1.24.2",
"prettier": "^2.7.1",
"puppeteer": "^15.5.0",
"puppeteer-extra": "^3.3.4",
"replace-in-files-cli": "^0.3.1",
"rimraf": "^3.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.25.2",
"ts-node": "^8.5.4",
"typescript": "^4.7.4"
},
"dependencies": {
"debug": "^4.1.1",
"merge-deep": "^3.0.2",
"proxy-chain": "^2.0.6",
"puppeteer-extra-plugin": "^3.2.2"
},
"peerDependencies": {
"playwright-extra": "*",
"puppeteer-extra": "*"
},
"peerDependenciesMeta": {
"puppeteer-extra": {
"optional": true
},
"playwright-extra": {
"optional": true
}
}
}
Loading

0 comments on commit 0e5184f

Please sign in to comment.