ywana-core8 0.0.850 → 0.0.851
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/http/client.js +3 -3
package/dist/index.modern.js
CHANGED
@@ -119,15 +119,15 @@ var HTTPClient = function HTTPClient(domain, securityCtx) {
|
|
119
119
|
var token = securityCtx ? securityCtx.token() : null;
|
120
120
|
return fetchAsync('POST', domain + URL, body, token, headers);
|
121
121
|
},
|
122
|
-
PUT: function PUT(URL, body) {
|
122
|
+
PUT: function PUT(URL, body, headers) {
|
123
123
|
var token = securityCtx ? securityCtx.token() : null;
|
124
124
|
return fetchAsync('PUT', domain + URL, body, token, headers);
|
125
125
|
},
|
126
|
-
PATCH: function PATCH(URL, body) {
|
126
|
+
PATCH: function PATCH(URL, body, headers) {
|
127
127
|
var token = securityCtx ? securityCtx.token() : null;
|
128
128
|
return fetchAsync('PATCH', domain + URL, body, token, headers);
|
129
129
|
},
|
130
|
-
DELETE: function DELETE(URL) {
|
130
|
+
DELETE: function DELETE(URL, headers) {
|
131
131
|
var token = securityCtx ? securityCtx.token() : null;
|
132
132
|
return fetchAsync('DELETE', domain + URL, undefined, token, headers);
|
133
133
|
}
|