@tronweb3/tronwallet-abstract-adapter
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -15,2 +15,6 @@ "use strict"; | ||
/** | ||
* If adapter is checking the wallet, the state is Loading. | ||
*/ | ||
AdapterState["Loading"] = "Loading"; | ||
/** | ||
* If wallet is not installed, the state is NotFound. | ||
@@ -17,0 +21,0 @@ */ |
@@ -31,3 +31,3 @@ "use strict"; | ||
} | ||
const interval = setInterval(checkAndDispose, 3000); | ||
const interval = setInterval(checkAndDispose, 500); | ||
disposers.push(() => clearInterval(interval)); | ||
@@ -43,4 +43,4 @@ if (document.readyState === 'loading') { | ||
checkAndDispose(); | ||
// stop all task after 5min | ||
setTimeout(dispose, 5 * 60 * 1000); | ||
// stop all task after 1min | ||
setTimeout(dispose, 60 * 1000); | ||
} | ||
@@ -47,0 +47,0 @@ exports.checkAdapterState = checkAdapterState; |
@@ -9,2 +9,6 @@ import EventEmitter from 'eventemitter3'; | ||
/** | ||
* If adapter is checking the wallet, the state is Loading. | ||
*/ | ||
AdapterState["Loading"] = "Loading"; | ||
/** | ||
* If wallet is not installed, the state is NotFound. | ||
@@ -11,0 +15,0 @@ */ |
@@ -27,3 +27,3 @@ /** | ||
} | ||
const interval = setInterval(checkAndDispose, 3000); | ||
const interval = setInterval(checkAndDispose, 500); | ||
disposers.push(() => clearInterval(interval)); | ||
@@ -39,4 +39,4 @@ if (document.readyState === 'loading') { | ||
checkAndDispose(); | ||
// stop all task after 5min | ||
setTimeout(dispose, 5 * 60 * 1000); | ||
// stop all task after 1min | ||
setTimeout(dispose, 60 * 1000); | ||
} | ||
@@ -43,0 +43,0 @@ /** |
@@ -35,2 +35,6 @@ import EventEmitter from 'eventemitter3'; | ||
/** | ||
* If adapter is checking the wallet, the state is Loading. | ||
*/ | ||
Loading = "Loading", | ||
/** | ||
* If wallet is not installed, the state is NotFound. | ||
@@ -37,0 +41,0 @@ */ |
{ | ||
"name": "@tronweb3/tronwallet-abstract-adapter", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "tronprotocol", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -39,2 +39,6 @@ import EventEmitter from 'eventemitter3'; | ||
/** | ||
* If adapter is checking the wallet, the state is Loading. | ||
*/ | ||
Loading = 'Loading', | ||
/** | ||
* If wallet is not installed, the state is NotFound. | ||
@@ -41,0 +45,0 @@ */ |
@@ -30,3 +30,3 @@ /** | ||
const interval = setInterval(checkAndDispose, 3000); | ||
const interval = setInterval(checkAndDispose, 500); | ||
disposers.push(() => clearInterval(interval)); | ||
@@ -44,4 +44,4 @@ | ||
checkAndDispose(); | ||
// stop all task after 5min | ||
setTimeout(dispose, 5 * 60 * 1000); | ||
// stop all task after 1min | ||
setTimeout(dispose, 60 * 1000); | ||
} | ||
@@ -48,0 +48,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
41048
866
1