@hyper-fetch/core 5.0.0 → 5.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": "@hyper-fetch/core",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "private": false,
5
5
  "description": "Cache, Queue and Persist your requests no matter if you are online or offline!",
6
6
  "author": "Maciej Pyrc <m.pyrc@interia.pl>",
@@ -31,7 +31,6 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "scripts": {
34
- "prepublishOnly": "yarn build",
35
34
  "clean": "npx rimraf dist",
36
35
  "test": "jest --watchAll --maxWorkers=3",
37
36
  "test-pipeline": "jest --watchAll=false --maxWorkers=1 --no-cache",
@@ -296,7 +296,7 @@ export class Dispatcher {
296
296
  */
297
297
  addRunningRequest = (queueKey: string, requestId: string, request: RequestInstance) => {
298
298
  const runningRequests = this.getRunningRequests(queueKey);
299
- runningRequests.push({ requestId, request });
299
+ runningRequests.push({ requestId, request, timestamp: Date.now() });
300
300
  this.runningRequests.set(queueKey, runningRequests);
301
301
  };
302
302
 
@@ -36,4 +36,5 @@ export type DispatcherStorageType = {
36
36
  export type RunningRequestValueType = {
37
37
  requestId: string;
38
38
  request: RequestInstance;
39
+ timestamp: number;
39
40
  };