block-proxy 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- <img width="300" alt="image" src="https://github.com/user-attachments/assets/2bb069d8-508a-41b9-9fee-94a1e31cc0cb" />
2
+ <img width="287" alt="image" src="https://github.com/user-attachments/assets/2bb069d8-508a-41b9-9fee-94a1e31cc0cb" /> ![](https://nodei.co/npm/block-proxy.png?downloads=true&downloadRank=true&stars=true)
3
3
 
4
4
  ---------------------------
5
5
 
package/config.json CHANGED
@@ -255,4 +255,4 @@
255
255
  "mac": "14:C0:50:14:6E:A5"
256
256
  }
257
257
  ]
258
- }
258
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "block-proxy",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Small-scale network mitm proxy filter",
5
5
  "bin": {
6
6
  "block-proxy": "bin/start.js"
@@ -16,7 +16,7 @@
16
16
  "url": "git+https://github.com/jayli/block-proxy.git"
17
17
  },
18
18
  "scripts": {
19
- "cp": "cp ./hack-of-anyproxy/lib/requestHandler.js ./node_modules/anyproxy/lib/",
19
+ "cp": "echo '---- program start ----'",
20
20
  "craco": "craco start",
21
21
  "dev": "BLOCK_PROXY_DEV=1 npm run express",
22
22
  "start": "npm run express",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@craco/craco": "^7.1.0",
34
- "anyproxy": "^4.1.3",
34
+ "@bachi/anyproxy": "^0.1.1",
35
35
  "axios": "^1.13.2",
36
36
  "commander": "^14.0.2",
37
37
  "express": "^5.1.0",
package/proxy/proxy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // 文件名: proxy/proxy.js
2
- const AnyProxy = require('anyproxy');
2
+ const AnyProxy = require('@bachi/anyproxy');
3
3
  const { exec } = require('child_process');
4
4
  const fs = require('fs');
5
5
  const _fs = require('./fs.js');