@modern-js/create-request 2.58.0 → 2.58.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/dist/cjs/browser.js
CHANGED
|
@@ -93,7 +93,6 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
|
|
|
93
93
|
} else if (payload.formUrlencoded) {
|
|
94
94
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
95
95
|
if (typeof payload.formUrlencoded === "object" && // @ts-expect-error
|
|
96
|
-
// eslint-disable-next-line node/prefer-global/url-search-params,node/no-unsupported-features/node-builtins
|
|
97
96
|
!(payload.formUrlencoded instanceof URLSearchParams)) {
|
|
98
97
|
body = (0, import_query_string.stringify)(payload.formUrlencoded);
|
|
99
98
|
} else {
|
package/dist/esm/browser.js
CHANGED
|
@@ -81,7 +81,6 @@ var createRequest = function(path, method, port) {
|
|
|
81
81
|
} else if (payload.formUrlencoded) {
|
|
82
82
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
83
83
|
if (typeof payload.formUrlencoded === "object" && // @ts-expect-error
|
|
84
|
-
// eslint-disable-next-line node/prefer-global/url-search-params,node/no-unsupported-features/node-builtins
|
|
85
84
|
!_instanceof(payload.formUrlencoded, URLSearchParams)) {
|
|
86
85
|
body = stringify(payload.formUrlencoded);
|
|
87
86
|
} else {
|
package/dist/esm-node/browser.js
CHANGED
|
@@ -69,7 +69,6 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
|
|
|
69
69
|
} else if (payload.formUrlencoded) {
|
|
70
70
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
71
71
|
if (typeof payload.formUrlencoded === "object" && // @ts-expect-error
|
|
72
|
-
// eslint-disable-next-line node/prefer-global/url-search-params,node/no-unsupported-features/node-builtins
|
|
73
72
|
!(payload.formUrlencoded instanceof URLSearchParams)) {
|
|
74
73
|
body = stringify(payload.formUrlencoded);
|
|
75
74
|
} else {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.58.
|
|
18
|
+
"version": "2.58.2",
|
|
19
19
|
"jsnext:source": "./src/node.ts",
|
|
20
20
|
"types": "./dist/types/browser.d.ts",
|
|
21
21
|
"main": "./dist/cjs/node.js",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"
|
|
63
|
+
"@swc/helpers": "0.5.3",
|
|
64
64
|
"encoding": "^0.1.0",
|
|
65
|
+
"node-fetch": "^2.6.1",
|
|
65
66
|
"path-to-regexp": "^6.2.0",
|
|
66
67
|
"query-string": "^7.1.1",
|
|
67
|
-
"@
|
|
68
|
-
"@modern-js/utils": "2.58.
|
|
69
|
-
"@modern-js/runtime-utils": "2.58.0"
|
|
68
|
+
"@modern-js/runtime-utils": "2.58.2",
|
|
69
|
+
"@modern-js/utils": "2.58.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/jest": "^29",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"jest": "^29",
|
|
77
77
|
"nock": "^13.2.1",
|
|
78
78
|
"typescript": "^5",
|
|
79
|
-
"@modern-js/types": "2.58.
|
|
80
|
-
"@scripts/build": "2.58.
|
|
81
|
-
"@scripts/jest-config": "2.58.
|
|
79
|
+
"@modern-js/types": "2.58.2",
|
|
80
|
+
"@scripts/build": "2.58.2",
|
|
81
|
+
"@scripts/jest-config": "2.58.2"
|
|
82
82
|
},
|
|
83
83
|
"sideEffects": false,
|
|
84
84
|
"publishConfig": {
|