@spica-devkit/storage 0.9.25 → 0.9.27
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 +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/dist/src/storage.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6241,6 +6241,14 @@ async function update(id, object, onUploadProgress) {
|
|
|
6241
6241
|
onUploadProgress
|
|
6242
6242
|
});
|
|
6243
6243
|
}
|
|
6244
|
+
async function updateMeta(id, meta) {
|
|
6245
|
+
internal_common.checkInitialized(authorization);
|
|
6246
|
+
return service.patch(`storage/${id}`, meta, {
|
|
6247
|
+
headers: {
|
|
6248
|
+
"Content-Type": "application/json"
|
|
6249
|
+
}
|
|
6250
|
+
});
|
|
6251
|
+
}
|
|
6244
6252
|
function remove(id) {
|
|
6245
6253
|
internal_common.checkInitialized(authorization);
|
|
6246
6254
|
return service.delete(`storage/${id}`);
|
|
@@ -6254,4 +6262,5 @@ exports.insert = insert;
|
|
|
6254
6262
|
exports.insertMany = insertMany;
|
|
6255
6263
|
exports.remove = remove;
|
|
6256
6264
|
exports.update = update;
|
|
6265
|
+
exports.updateMeta = updateMeta;
|
|
6257
6266
|
//# sourceMappingURL=index.js.map
|