@spica-devkit/storage 0.9.25 → 0.9.26
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.mjs
CHANGED
|
@@ -6232,10 +6232,18 @@ async function update(id, object, onUploadProgress) {
|
|
|
6232
6232
|
onUploadProgress
|
|
6233
6233
|
});
|
|
6234
6234
|
}
|
|
6235
|
+
async function updateMeta(id, meta) {
|
|
6236
|
+
internal_common.checkInitialized(authorization);
|
|
6237
|
+
return service.patch(`storage/${id}`, meta, {
|
|
6238
|
+
headers: {
|
|
6239
|
+
"Content-Type": "application/json"
|
|
6240
|
+
}
|
|
6241
|
+
});
|
|
6242
|
+
}
|
|
6235
6243
|
function remove(id) {
|
|
6236
6244
|
internal_common.checkInitialized(authorization);
|
|
6237
6245
|
return service.delete(`storage/${id}`);
|
|
6238
6246
|
}
|
|
6239
6247
|
|
|
6240
|
-
export { download, get, getAll, initialize, insert, insertMany, remove, update };
|
|
6248
|
+
export { download, get, getAll, initialize, insert, insertMany, remove, update, updateMeta };
|
|
6241
6249
|
//# sourceMappingURL=index.mjs.map
|