npm package diff
Package: @forge/kvs
Versions: 1.1.1-next.1-experimental-994fcd3 - 1.1.1-next.1-experimental-cd26ead
File: package/out/storage-api.js
Index: package/out/storage-api.js
===================================================================
--- package/out/storage-api.js
+++ package/out/storage-api.js
@@ -64,8 +64,15 @@
results: rs.data,
nextCursor: rs.cursor
};
}
+ async batchSet(body) {
+ const rs = await this.request('/api/v1/batch/set', body, true);
+ return {
+ successfulKeys: rs.successfulKeys,
+ failedKeys: rs.failedKeys
+ };
+ }
async transact(transactionRequest) {
await this.request('/api/v1/transaction', transactionRequest, false);
}
async handleKeyNotFound(fn) {