fetchfox-sdk 1.0.26 → 1.0.27

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.
Files changed (2) hide show
  1. package/package.json +1 -4
  2. package/src/detach.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetchfox-sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "AI scraper",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -33,8 +33,5 @@
33
33
  },
34
34
  "lint-staged": {
35
35
  "*.{js,jsx,ts,tsx,css,md}": "prettier --write"
36
- },
37
- "dependencies": {
38
- "socket.io-client": "^4.8.1"
39
36
  }
40
37
  }
package/src/detach.js CHANGED
@@ -33,12 +33,6 @@ export const Job = class {
33
33
  };
34
34
 
35
35
  this.#seen = {};
36
- this.#socket = new io(ws(options));
37
- this.#socket.on('progress', (data) => {
38
- this.handleProgress(data);
39
- });
40
- this.#socket.emit('sub', this.id);
41
-
42
36
  this.#socket2 = new WebSocket(ws(options) + '/ws/jobs/' + id);
43
37
  this.#socket2.onmessage = (data) => {
44
38
  let parsed;
@@ -146,8 +140,6 @@ export const Job = class {
146
140
  );
147
141
  }
148
142
 
149
- this.#socket.disconnect();
150
-
151
143
  console.log('Set timeout before triggering completion');
152
144
  setTimeout(() => {
153
145
  this.get()