@plyaz/api 1.4.0 → 1.4.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/api/client/createApiClient.d.ts.map +1 -1
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -23085,6 +23085,27 @@ function enhanceClientWithMethods(params) {
|
|
|
23085
23085
|
client,
|
|
23086
23086
|
eventManager2
|
|
23087
23087
|
);
|
|
23088
|
+
clientWithEvents.get = (url, config) => {
|
|
23089
|
+
return client.request(url, { ...config, method: "GET" });
|
|
23090
|
+
};
|
|
23091
|
+
clientWithEvents.post = (url, data, config) => {
|
|
23092
|
+
return client.request(url, { ...config, method: "POST", data });
|
|
23093
|
+
};
|
|
23094
|
+
clientWithEvents.put = (url, data, config) => {
|
|
23095
|
+
return client.request(url, { ...config, method: "PUT", data });
|
|
23096
|
+
};
|
|
23097
|
+
clientWithEvents.patch = (url, data, config) => {
|
|
23098
|
+
return client.request(url, { ...config, method: "PATCH", data });
|
|
23099
|
+
};
|
|
23100
|
+
clientWithEvents.delete = (url, config) => {
|
|
23101
|
+
return client.request(url, { ...config, method: "DELETE" });
|
|
23102
|
+
};
|
|
23103
|
+
clientWithEvents.head = (url, config) => {
|
|
23104
|
+
return client.request(url, { ...config, method: "HEAD" });
|
|
23105
|
+
};
|
|
23106
|
+
clientWithEvents.options = (url, config) => {
|
|
23107
|
+
return client.request(url, { ...config, method: "OPTIONS" });
|
|
23108
|
+
};
|
|
23088
23109
|
}
|
|
23089
23110
|
__name(enhanceClientWithMethods, "enhanceClientWithMethods");
|
|
23090
23111
|
function initializeClientSystems(options) {
|