@jhqn/utils-msw 0.4.4 → 0.4.6

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/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { PageRes, Res } from "@jhqn/utils-core";
2
2
  import { HttpResponse, http } from "msw";
3
-
4
3
  //#region types/index.d.ts
5
4
  type MaybeFn<T> = T | (() => T);
6
5
  //#endregion
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { getMockData, getMockDataList, isNumber } from "@jhqn/utils-core";
2
2
  import { fakeIntRange } from "@jhqn/utils-faker";
3
3
  import { HttpResponse, delay } from "msw";
4
-
5
4
  //#region src/msw.ts
6
5
  const randomDelay = () => delay(fakeIntRange(100, 1e3));
7
6
  const fnRes = (fn) => fn instanceof Function ? fn() : fn;
@@ -29,6 +28,5 @@ const commonPageRes = async (fn, resolver, total = 42) => {
29
28
  searchCount: false
30
29
  }));
31
30
  };
32
-
33
31
  //#endregion
34
- export { commonArrRes, commonPageRes, commonRes };
32
+ export { commonArrRes, commonPageRes, commonRes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhqn/utils-msw",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "keywords": [
5
5
  "jade",
6
6
  "utils"
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@jhqn/utils-faker": "0.4.4",
37
- "@jhqn/utils-core": "0.4.4"
36
+ "@jhqn/utils-core": "0.4.6",
37
+ "@jhqn/utils-faker": "0.4.6"
38
38
  },
39
39
  "devDependencies": {
40
- "msw": "^2.12.10"
40
+ "msw": "^2.15.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "msw": "^2.7.5"