@0xsequence/sessions
Advanced tools
Comparing version 0.0.0-20230621213028 to 0.0.0-20230621214515
@@ -404,9 +404,7 @@ 'use strict'; | ||
// if they share information | ||
const imageHash = core.v2.config.ConfigCoder.imageHashOf(config); | ||
// This is an optimization, it allows us to avoid splitting the tree if it's already complete | ||
let storeConfigFullPromise; | ||
if (!core.v2.config.isComplete(config.tree)) { | ||
storeConfigFullPromise = _this.store.saveConfig(imageHash, config); | ||
if (core.v2.config.isComplete(config.tree)) { | ||
return _this.store.saveConfig(imageHash, config); | ||
} | ||
@@ -421,3 +419,2 @@ const storeTree = _this.saveTopology(config.tree); | ||
await Promise.all([storeTree, storeConfig]); | ||
await storeConfigFullPromise; | ||
} | ||
@@ -424,0 +421,0 @@ return; |
@@ -404,9 +404,7 @@ 'use strict'; | ||
// if they share information | ||
const imageHash = core.v2.config.ConfigCoder.imageHashOf(config); | ||
// This is an optimization, it allows us to avoid splitting the tree if it's already complete | ||
let storeConfigFullPromise; | ||
if (!core.v2.config.isComplete(config.tree)) { | ||
storeConfigFullPromise = _this.store.saveConfig(imageHash, config); | ||
if (core.v2.config.isComplete(config.tree)) { | ||
return _this.store.saveConfig(imageHash, config); | ||
} | ||
@@ -421,3 +419,2 @@ const storeTree = _this.saveTopology(config.tree); | ||
await Promise.all([storeTree, storeConfig]); | ||
await storeConfigFullPromise; | ||
} | ||
@@ -424,0 +421,0 @@ return; |
@@ -400,9 +400,7 @@ import { v2, v1, universal, commons } from '@0xsequence/core'; | ||
// if they share information | ||
const imageHash = v2.config.ConfigCoder.imageHashOf(config); | ||
// This is an optimization, it allows us to avoid splitting the tree if it's already complete | ||
let storeConfigFullPromise; | ||
if (!v2.config.isComplete(config.tree)) { | ||
storeConfigFullPromise = _this.store.saveConfig(imageHash, config); | ||
if (v2.config.isComplete(config.tree)) { | ||
return _this.store.saveConfig(imageHash, config); | ||
} | ||
@@ -417,3 +415,2 @@ const storeTree = _this.saveTopology(config.tree); | ||
await Promise.all([storeTree, storeConfig]); | ||
await storeConfigFullPromise; | ||
} | ||
@@ -420,0 +417,0 @@ return; |
{ | ||
"name": "@0xsequence/sessions", | ||
"version": "0.0.0-20230621213028", | ||
"version": "0.0.0-20230621214515", | ||
"description": "tools for migrating sequence wallets to new versions", | ||
@@ -14,5 +14,5 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/sessions", | ||
"idb": "^7.1.1", | ||
"@0xsequence/core": "0.0.0-20230621213028", | ||
"@0xsequence/migration": "0.0.0-20230621213028", | ||
"@0xsequence/replacer": "0.0.0-20230621213028" | ||
"@0xsequence/core": "0.0.0-20230621214515", | ||
"@0xsequence/migration": "0.0.0-20230621214515", | ||
"@0xsequence/replacer": "0.0.0-20230621214515" | ||
}, | ||
@@ -23,4 +23,4 @@ "devDependencies": { | ||
"nyc": "^15.1.0", | ||
"@0xsequence/signhub": "0.0.0-20230621213028", | ||
"@0xsequence/tests": "0.0.0-20230621213028" | ||
"@0xsequence/tests": "0.0.0-20230621214515", | ||
"@0xsequence/signhub": "0.0.0-20230621214515" | ||
}, | ||
@@ -27,0 +27,0 @@ "files": [ |
@@ -106,9 +106,7 @@ import { commons, universal, v1, v2 } from '@0xsequence/core' | ||
// if they share information | ||
const imageHash = v2.config.ConfigCoder.imageHashOf(config) | ||
// This is an optimization, it allows us to avoid splitting the tree if it's already complete | ||
let storeConfigFullPromise: Promise<void> | undefined | ||
if (!v2.config.isComplete(config.tree)) { | ||
storeConfigFullPromise = this.store.saveConfig(imageHash, config) | ||
if (v2.config.isComplete(config.tree)) { | ||
return this.store.saveConfig(imageHash, config) | ||
} | ||
@@ -125,3 +123,2 @@ | ||
await Promise.all([storeTree, storeConfig]) | ||
await storeConfigFullPromise | ||
} | ||
@@ -128,0 +125,0 @@ |
288746
7409
+ Added@0xsequence/abi@0.0.0-20230621214515(transitive)
+ Added@0xsequence/core@0.0.0-20230621214515(transitive)
+ Added@0xsequence/guard@0.0.0-20230621214515(transitive)
+ Added@0xsequence/indexer@0.0.0-20230621214515(transitive)
+ Added@0xsequence/migration@0.0.0-20230621214515(transitive)
+ Added@0xsequence/network@0.0.0-20230621214515(transitive)
+ Added@0xsequence/relayer@0.0.0-20230621214515(transitive)
+ Added@0xsequence/replacer@0.0.0-20230621214515(transitive)
+ Added@0xsequence/signhub@0.0.0-20230621214515(transitive)
+ Added@0xsequence/utils@0.0.0-20230621214515(transitive)
+ Added@0xsequence/wallet@0.0.0-20230621214515(transitive)
- Removed@0xsequence/abi@0.0.0-20230621213028(transitive)
- Removed@0xsequence/core@0.0.0-20230621213028(transitive)
- Removed@0xsequence/guard@0.0.0-20230621213028(transitive)
- Removed@0xsequence/indexer@0.0.0-20230621213028(transitive)
- Removed@0xsequence/migration@0.0.0-20230621213028(transitive)
- Removed@0xsequence/network@0.0.0-20230621213028(transitive)
- Removed@0xsequence/relayer@0.0.0-20230621213028(transitive)
- Removed@0xsequence/replacer@0.0.0-20230621213028(transitive)
- Removed@0xsequence/signhub@0.0.0-20230621213028(transitive)
- Removed@0xsequence/utils@0.0.0-20230621213028(transitive)
- Removed@0xsequence/wallet@0.0.0-20230621213028(transitive)