@spica-devkit/storage 0.9.16 → 0.9.19

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.mjs CHANGED
@@ -84,6 +84,9 @@ class Axios {
84
84
  delete(url, config) {
85
85
  return this.instance.delete(url, config);
86
86
  }
87
+ request(config) {
88
+ return this.instance.request(config);
89
+ }
87
90
  }
88
91
  exports.Axios = Axios;
89
92
 
@@ -6188,9 +6191,11 @@ function initialize(options) {
6188
6191
  async function insert(object, onUploadProgress) {
6189
6192
  internal_common.checkInitialized(authorization);
6190
6193
  const body = await preparePostBody([object]);
6191
- return service.post("storage", body, {
6194
+ return service
6195
+ .post("storage", body, {
6192
6196
  onUploadProgress
6193
- });
6197
+ })
6198
+ .then(([r]) => r);
6194
6199
  }
6195
6200
  async function insertMany(objects, onUploadProgress) {
6196
6201
  internal_common.checkInitialized(authorization);