puppyproxy 1.1.4 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppyproxy",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Node.js library for managing, scraping, and using proxies with fetch and WebSocket support",
5
5
  "type": "module",
6
6
  "types": "./src/index.d.ts",
@@ -93,10 +93,10 @@ export default class Scraper {
93
93
 
94
94
  // Worker Orchestration
95
95
  async runCollector(force = false) {
96
- let lastSaved = (Date.now() - getLastSavedTimestamp(this.outputPath)) / 1000;
96
+ let lastSaved = (Date.now() - getLastSavedTimestamp(this.outputPath)) / 1000; // ms to seconds
97
97
  if (lastSaved && !force) {
98
98
  console.log("lastSaved", lastSaved);
99
- let timeBetweenScrapes = this.config.scraper.timeBetweenScrapes * 60e3; // 25 mins
99
+ let timeBetweenScrapes = this.config.scraper.timeBetweenScrapes * 60; // mins to seconds
100
100
  if (lastSaved < timeBetweenScrapes) {
101
101
  console.log(`Proxies saved < ${timeBetweenScrapes}s ago, skipping.`);
102
102
  return;