@marianmeres/http-utils 2.3.0 → 2.4.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.
- package/dist/api.js +7 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -188,6 +188,13 @@ export class HttpApi {
|
|
|
188
188
|
this.#base = base;
|
|
189
189
|
this.#defaults = defaults;
|
|
190
190
|
this.#factoryErrorMessageExtractor = factoryErrorMessageExtractor;
|
|
191
|
+
// Bind methods for destructuring support
|
|
192
|
+
this.get = this.get.bind(this);
|
|
193
|
+
this.post = this.post.bind(this);
|
|
194
|
+
this.put = this.put.bind(this);
|
|
195
|
+
this.patch = this.patch.bind(this);
|
|
196
|
+
this.del = this.del.bind(this);
|
|
197
|
+
this.url = this.url.bind(this);
|
|
191
198
|
}
|
|
192
199
|
#merge(a, b) {
|
|
193
200
|
return deepMerge(a, b);
|