@modern-js/create-request 2.21.1 → 2.22.1
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/cjs/browser.js +6 -2
- package/dist/cjs/handleRes.js +3 -1
- package/dist/cjs/node.js +6 -2
- package/package.json +5 -5
package/dist/cjs/browser.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
configure: ()
|
|
14
|
-
|
|
13
|
+
configure: function() {
|
|
14
|
+
return configure;
|
|
15
|
+
},
|
|
16
|
+
createRequest: function() {
|
|
17
|
+
return createRequest;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _pathtoregexp = require("path-to-regexp");
|
package/dist/cjs/handleRes.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "handleRes", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return handleRes;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const handleRes = async (res) => {
|
|
10
12
|
const contentType = res.headers.get("content-type");
|
package/dist/cjs/node.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
configure: ()
|
|
14
|
-
|
|
13
|
+
configure: function() {
|
|
14
|
+
return configure;
|
|
15
|
+
},
|
|
16
|
+
createRequest: function() {
|
|
17
|
+
return createRequest;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _nodefetch = /* @__PURE__ */ _interop_require_default._(require("node-fetch"));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"path-to-regexp": "^6.2.0",
|
|
65
65
|
"query-string": "^7.1.1",
|
|
66
66
|
"@swc/helpers": "0.5.1",
|
|
67
|
-
"@modern-js/utils": "2.
|
|
67
|
+
"@modern-js/utils": "2.22.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/jest": "^29",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"jest": "^29",
|
|
75
75
|
"nock": "^13.2.1",
|
|
76
76
|
"typescript": "^5",
|
|
77
|
-
"@modern-js/types": "2.
|
|
78
|
-
"@scripts/
|
|
79
|
-
"@scripts/
|
|
77
|
+
"@modern-js/types": "2.22.1",
|
|
78
|
+
"@scripts/build": "2.22.1",
|
|
79
|
+
"@scripts/jest-config": "2.22.1"
|
|
80
80
|
},
|
|
81
81
|
"sideEffects": false,
|
|
82
82
|
"publishConfig": {
|