@jhqn/utils-msw 0.0.3-beta.6 → 0.0.3-beta.8

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.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const msw = require('msw');
4
- const utilsFaker = require('@jhqn/utils-faker');
5
3
  const utilsCore = require('@jhqn/utils-core');
4
+ const utilsFaker = require('@jhqn/utils-faker');
5
+ const msw = require('msw');
6
6
 
7
7
  const getMockData = (data, code = 200, message = "success") => {
8
8
  return { data, code, message };
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { StrictResponse, http } from 'msw';
2
1
  import { Res, PageResData, PageRes } from '@jhqn/utils-core';
2
+ import { StrictResponse, http } from 'msw';
3
3
 
4
4
  type MaybeFn<T> = T | (() => T);
5
5
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { StrictResponse, http } from 'msw';
2
1
  import { Res, PageResData, PageRes } from '@jhqn/utils-core';
2
+ import { StrictResponse, http } from 'msw';
3
3
 
4
4
  type MaybeFn<T> = T | (() => T);
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { StrictResponse, http } from 'msw';
2
1
  import { Res, PageResData, PageRes } from '@jhqn/utils-core';
2
+ import { StrictResponse, http } from 'msw';
3
3
 
4
4
  type MaybeFn<T> = T | (() => T);
5
5
 
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { HttpResponse, delay } from 'msw';
2
- import { fakeIntRange } from '@jhqn/utils-faker';
3
1
  import { isNumber } from '@jhqn/utils-core';
2
+ import { fakeIntRange } from '@jhqn/utils-faker';
3
+ import { HttpResponse, delay } from 'msw';
4
4
 
5
5
  const getMockData = (data, code = 200, message = "success") => {
6
6
  return { data, code, message };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhqn/utils-msw",
3
3
  "type": "module",
4
- "version": "0.0.3-beta.6",
4
+ "version": "0.0.3-beta.8",
5
5
  "author": "jade-gjz <jiangang.zhang@jaderd.com>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/jaderd-jh/utils/tree/main/packages/msw#readme",
@@ -37,7 +37,7 @@
37
37
  "dist"
38
38
  ],
39
39
  "peerDependencies": {
40
- "msw": "^2.0.0"
40
+ "msw": "^2.4.9"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "msw": {
@@ -45,11 +45,11 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@jhqn/utils-faker": "0.0.3-beta.6",
49
- "@jhqn/utils-core": "0.0.3-beta.6"
48
+ "@jhqn/utils-core": "0.0.3-beta.8",
49
+ "@jhqn/utils-faker": "0.0.3-beta.8"
50
50
  },
51
51
  "devDependencies": {
52
- "msw": "^2.3.1"
52
+ "msw": "^2.4.9"
53
53
  },
54
54
  "scripts": {
55
55
  "test": "vitest",