electrum-store
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116546
1