@near-eth/client
Advanced tools
Comparing version 1.1.1-0 to 1.1.1
@@ -27,3 +27,5 @@ import { Transfer, DecoratedTransfer, UnsavedTransfer } from './types'; | ||
/** | ||
* Record a transfer to be removed at the next status check | ||
* Record a transfer to be removed at the next status check. | ||
* This remove request will not be processed immediatly (at the next checkStatus loop) | ||
* so apps may want to manually hide the transfer until it actually gets removed from storage. | ||
* @param transferId | ||
@@ -30,0 +32,0 @@ */ |
@@ -135,3 +135,5 @@ "use strict"; | ||
/** | ||
* Record a transfer to be removed at the next status check | ||
* Record a transfer to be removed at the next status check. | ||
* This remove request will not be processed immediatly (at the next checkStatus loop) | ||
* so apps may want to manually hide the transfer until it actually gets removed from storage. | ||
* @param transferId | ||
@@ -147,3 +149,3 @@ */ | ||
async function checkPendingTransferRemovals() { | ||
transfersToRemove.forEach(async (transferId) => await storage.clear(transferId)); | ||
await Promise.all(transfersToRemove.map(async (transferId) => await storage.clear(transferId))); | ||
transfersToRemove.splice(0, transfersToRemove.length); | ||
@@ -150,0 +152,0 @@ } |
{ | ||
"name": "@near-eth/client", | ||
"version": "1.1.1-0", | ||
"version": "1.1.1", | ||
"license": "(MIT AND Apache-2.0)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
50754
703
1