proxy-rotator-js 1.0.1 → 1.0.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": "proxy-rotator-js",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Proxy Rotator",
6
6
  "main": "index.js",
@@ -39,6 +39,7 @@
39
39
  "fill-range": "^7.0.1",
40
40
  "find-up": "^5.0.0",
41
41
  "flat": "^5.0.2",
42
+ "fs": "^0.0.1-security",
42
43
  "fs.realpath": "^1.0.0",
43
44
  "get-caller-file": "^2.0.5",
44
45
  "get-func-name": "^2.0.0",
@@ -107,6 +107,10 @@ class ProxyRotator {
107
107
  setTimeout( () => this.resurect(proxy), this.revive_timer );
108
108
  }
109
109
 
110
+ kill(proxy){ // kill a proxy
111
+ return this.setDead(proxy);
112
+ }
113
+
110
114
  next(){
111
115
  // resurect a proxy from the graveyard
112
116
  if(this.check_on_next) _resurection();