New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/sessions

Package Overview
Dependencies
Maintainers
5
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/sessions - npm Package Compare versions

Comparing version 0.0.0-20230621213028 to 0.0.0-20230621214515

7

dist/0xsequence-sessions.cjs.dev.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc