@modern-js/create-request 2.17.1 → 2.18.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.
@@ -210,7 +210,7 @@ export var createRequest = function(path, method, port) {
210
210
  if (httpMethodDecider === "inputParams") {
211
211
  finalURL = path;
212
212
  body = JSON.stringify({
213
- args
213
+ args: args
214
214
  });
215
215
  headers = {
216
216
  "Content-Type": "application/json"
@@ -260,9 +260,9 @@ export var createRequest = function(path, method, port) {
260
260
  return [
261
261
  2,
262
262
  fetcher(finalURL, {
263
- method,
264
- body,
265
- headers
263
+ method: method,
264
+ body: body,
265
+ headers: headers
266
266
  })
267
267
  ];
268
268
  });
package/dist/esm/node.js CHANGED
@@ -142,9 +142,9 @@ export var createRequest = function(path, method, port) {
142
142
  }
143
143
  headers.accept = "application/json,*/*;q=0.8";
144
144
  return fetcher(url, {
145
- method,
146
- body,
147
- headers
145
+ method: method,
146
+ body: body,
147
+ headers: headers
148
148
  });
149
149
  };
150
150
  return sender;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.17.1",
18
+ "version": "2.18.0",
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
  "node-fetch": "^2.6.1",
65
65
  "path-to-regexp": "^6.2.0",
66
66
  "query-string": "^7.1.1",
67
- "@modern-js/utils": "2.17.1"
67
+ "@modern-js/utils": "2.18.0"
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": "^4",
77
- "@modern-js/types": "2.17.1",
78
- "@scripts/build": "2.17.1",
79
- "@scripts/jest-config": "2.17.1"
77
+ "@modern-js/types": "2.18.0",
78
+ "@scripts/build": "2.18.0",
79
+ "@scripts/jest-config": "2.18.0"
80
80
  },
81
81
  "sideEffects": false,
82
82
  "publishConfig": {