@frui.ts/apiclient
Advanced tools
Comparing version 0.15.0-beta.5 to 0.15.0-beta.6
@@ -93,6 +93,6 @@ "use strict"; | ||
FetchApiConnector.prototype.get = function (url, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "get" })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "GET" })).then(this.middleware); | ||
}; | ||
FetchApiConnector.prototype.postText = function (url, text, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "post", body: text })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "POST", body: text })).then(this.middleware); | ||
}; | ||
@@ -103,3 +103,3 @@ FetchApiConnector.prototype.postJson = function (url, content, params) { | ||
FetchApiConnector.prototype.postFormData = function (url, data, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "post", body: data })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "POST", body: data })).then(this.middleware); | ||
}; | ||
@@ -110,6 +110,6 @@ FetchApiConnector.prototype.putJson = function (url, content, params) { | ||
FetchApiConnector.prototype.putText = function (url, text, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "put", body: text })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "PUT", body: text })).then(this.middleware); | ||
}; | ||
FetchApiConnector.prototype.putFormData = function (url, data, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "put", body: data })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "PUT", body: data })).then(this.middleware); | ||
}; | ||
@@ -120,9 +120,9 @@ FetchApiConnector.prototype.patchJson = function (url, content, params) { | ||
FetchApiConnector.prototype.patchText = function (url, text, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "patch", body: text })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "PATCH", body: text })).then(this.middleware); | ||
}; | ||
FetchApiConnector.prototype.patchFormData = function (url, data, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "patch", body: data })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "PATCH", body: data })).then(this.middleware); | ||
}; | ||
FetchApiConnector.prototype.delete = function (url, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "delete" })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "DELETE" })).then(this.middleware); | ||
}; | ||
@@ -133,3 +133,3 @@ FetchApiConnector.prototype.deleteJson = function (url, content, params) { | ||
FetchApiConnector.prototype.deleteText = function (url, text, params) { | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "delete", body: text })).then(this.middleware); | ||
return this.fetchFunction(url, __assign(__assign({}, params), { method: "DELETE", body: text })).then(this.middleware); | ||
}; | ||
@@ -136,0 +136,0 @@ return FetchApiConnector; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.15.0-beta.5", | ||
"version": "0.15.0-beta.6", | ||
"description": "Frui.ts helpers for HTTP communication", | ||
@@ -36,5 +36,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@frui.ts/helpers": "^0.15.0-beta.5" | ||
"@frui.ts/helpers": "^0.15.0-beta.6" | ||
}, | ||
"gitHead": "e9e49d06ec4ffabd162f27edadce019b4031d2c9" | ||
"gitHead": "80cf5a737f5eb5403a155fd4a2e2f36d81c50264" | ||
} |
Sorry, the diff of this file is not supported yet