@modern-js/create-request 3.11.3 → 3.12.0

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.
@@ -54,7 +54,7 @@ const configure = (options)=>{
54
54
  }));
55
55
  realRequest.set(requestId, configuredRequest);
56
56
  };
57
- const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', fetch: fetch1 = originFetch, domain, requestId = 'default' })=>{
57
+ const createRequest = ({ path, method, httpMethodDecider = 'functionName', domain, requestId = 'default' })=>{
58
58
  const getFinalPath = (0, external_path_to_regexp_namespaceObject.compile)(path, {
59
59
  encode: encodeURIComponent
60
60
  });
package/dist/cjs/node.js CHANGED
@@ -55,7 +55,7 @@ const configure = (options)=>{
55
55
  }));
56
56
  realRequest.set(requestId, configuredRequest);
57
57
  };
58
- const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', fetch: fetch1 = originFetch, requestId = 'default' })=>{
58
+ const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', requestId = 'default' })=>{
59
59
  const getFinalPath = (0, external_path_to_regexp_namespaceObject.compile)(path, {
60
60
  encode: encodeURIComponent
61
61
  });
@@ -20,7 +20,7 @@ const configure = (options)=>{
20
20
  }));
21
21
  realRequest.set(requestId, configuredRequest);
22
22
  };
23
- const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', fetch: fetch1 = originFetch, domain, requestId = 'default' })=>{
23
+ const createRequest = ({ path, method, httpMethodDecider = 'functionName', domain, requestId = 'default' })=>{
24
24
  const getFinalPath = compile(path, {
25
25
  encode: encodeURIComponent
26
26
  });
package/dist/esm/node.mjs CHANGED
@@ -21,7 +21,7 @@ const configure = (options)=>{
21
21
  }));
22
22
  realRequest.set(requestId, configuredRequest);
23
23
  };
24
- const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', fetch: fetch1 = originFetch, requestId = 'default' })=>{
24
+ const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', requestId = 'default' })=>{
25
25
  const getFinalPath = compile(path, {
26
26
  encode: encodeURIComponent
27
27
  });
@@ -21,7 +21,7 @@ const configure = (options)=>{
21
21
  }));
22
22
  realRequest.set(requestId, configuredRequest);
23
23
  };
24
- const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', fetch: fetch1 = originFetch, domain, requestId = 'default' })=>{
24
+ const createRequest = ({ path, method, httpMethodDecider = 'functionName', domain, requestId = 'default' })=>{
25
25
  const getFinalPath = compile(path, {
26
26
  encode: encodeURIComponent
27
27
  });
@@ -22,7 +22,7 @@ const configure = (options)=>{
22
22
  }));
23
23
  realRequest.set(requestId, configuredRequest);
24
24
  };
25
- const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', fetch: fetch1 = originFetch, requestId = 'default' })=>{
25
+ const createRequest = ({ path, method, port, httpMethodDecider = 'functionName', requestId = 'default' })=>{
26
26
  const getFinalPath = compile(path, {
27
27
  encode: encodeURIComponent
28
28
  });
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.11.3",
18
+ "version": "3.12.0",
19
19
  "modern:source": "./src/node.ts",
20
20
  "types": "./dist/types/browser.d.ts",
21
21
  "main": "./dist/cjs/node.js",
@@ -59,17 +59,17 @@
59
59
  "encoding": "^0.1.14",
60
60
  "path-to-regexp": "^6.3.0",
61
61
  "qs": "^6.16.1",
62
- "@modern-js/utils": "3.11.3",
63
- "@modern-js/runtime-utils": "3.11.3"
62
+ "@modern-js/runtime-utils": "3.12.0",
63
+ "@modern-js/utils": "3.12.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "^20",
67
67
  "@types/qs": "^6.15.1",
68
68
  "nock": "^14.0.17",
69
69
  "typescript": "^5",
70
- "@modern-js/rslib": "3.11.3",
71
- "@modern-js/types": "3.11.3",
72
- "@scripts/rstest-config": "2.66.7"
70
+ "@modern-js/rslib": "3.12.0",
71
+ "@modern-js/types": "3.12.0",
72
+ "@scripts/rstest-config": "2.66.8"
73
73
  },
74
74
  "sideEffects": false,
75
75
  "publishConfig": {