@spica-devkit/storage 0.9.17 → 0.9.20
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.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -93,6 +93,9 @@ class Axios {
|
|
|
93
93
|
delete(url, config) {
|
|
94
94
|
return this.instance.delete(url, config);
|
|
95
95
|
}
|
|
96
|
+
request(config) {
|
|
97
|
+
return this.instance.request(config);
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
100
|
exports.Axios = Axios;
|
|
98
101
|
|
|
@@ -6197,9 +6200,11 @@ function initialize(options) {
|
|
|
6197
6200
|
async function insert(object, onUploadProgress) {
|
|
6198
6201
|
internal_common.checkInitialized(authorization);
|
|
6199
6202
|
const body = await preparePostBody([object]);
|
|
6200
|
-
return service
|
|
6203
|
+
return service
|
|
6204
|
+
.post("storage", body, {
|
|
6201
6205
|
onUploadProgress
|
|
6202
|
-
})
|
|
6206
|
+
})
|
|
6207
|
+
.then(([r]) => r);
|
|
6203
6208
|
}
|
|
6204
6209
|
async function insertMany(objects, onUploadProgress) {
|
|
6205
6210
|
internal_common.checkInitialized(authorization);
|