Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electrum-store

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrum-store - npm Package Compare versions

Comparing version 3.3.1 to 3.3.2

10

lib/store/state.js

@@ -71,7 +71,7 @@ 'use strict';

} else {
Object.freeze(values);
for (let key of Object.getOwnPropertyNames(values)) {
State.freezeTop(values[key]);
}
Object.freeze(values);
for (let key of Object.getOwnPropertyNames(values)) {
State.freezeTop(values[key]);
}
}

@@ -260,3 +260,3 @@ this._id = id;

value: function createRootState(store, values) {
let initialGeneration = arguments.length <= 2 || arguments[2] === undefined ? 0 : arguments[2];
let initialGeneration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

@@ -263,0 +263,0 @@ return new State(secretKey, '', store, initialGeneration, values || emptyValues);

@@ -192,3 +192,3 @@ 'use strict';

value: function applyChanges(id, obj) {
let defaultKey = arguments.length <= 2 || arguments[2] === undefined ? '' : arguments[2];
let defaultKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

@@ -227,3 +227,3 @@ if (typeof obj === 'undefined') {

// {x: ..., y: ...} or {$apply: ..., x: ..., y: ...}
if (typeof obj === 'object') {
if (obj && typeof obj === 'object') {
const keys = Object.keys(obj);

@@ -230,0 +230,0 @@ const type = obj.$apply;

{
"name": "electrum-store",
"version": "3.3.1",
"version": "3.3.2",
"description": "Electrum store provides a store implementation tailored for Electrum.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -214,3 +214,3 @@ 'use strict';

// {x: ..., y: ...} or {$apply: ..., x: ..., y: ...}
if (typeof obj === 'object') {
if (obj && typeof obj === 'object') {
const keys = Object.keys (obj);

@@ -217,0 +217,0 @@ const type = obj.$apply;

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