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

electrum-store

Package Overview
Dependencies
Maintainers
1
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 0.9.2 to 1.0.0

32

lib/store/state.js

@@ -49,2 +49,4 @@ 'use strict';

/******************************************************************************/
var State = (function () {

@@ -82,2 +84,11 @@ function State(key, id, store, generation, values) {

}, {
key: 'set',
value: function set() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return State.withValues.apply(State, [this].concat(args));
}
}, {
key: 'select',

@@ -123,4 +134,4 @@ value: function select(id) {

value: function create() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}

@@ -151,4 +162,4 @@

value: function join() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}

@@ -187,3 +198,3 @@

} else {
return State.withValues(state, id, value);
return State._withValues(state, [id, value]);
}

@@ -194,4 +205,4 @@ }

value: function withValues(state) {
for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
args[_key3 - 1] = arguments[_key3];
for (var _len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
args[_key4 - 1] = arguments[_key4];
}

@@ -206,2 +217,7 @@

return State._withValues(state, args);
}
}, {
key: '_withValues',
value: function _withValues(state, args) {
var values;

@@ -256,2 +272,4 @@

/******************************************************************************/
module.exports = State;
{
"name": "electrum-store",
"version": "0.9.2",
"version": "1.0.0",
"description": "Electrum store provides a store implementation tailored for Electrum.",

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

@@ -22,2 +22,4 @@ 'use strict';

/******************************************************************************/
class State {

@@ -67,2 +69,6 @@ constructor (key, id, store, generation, values) {

set (...args) {
return State.withValues (this, ...args);
}
select (id) {

@@ -137,3 +143,3 @@ if ((id === undefined) && (arguments.length === 0)) {

} else {
return State.withValues (state, id, value);
return State._withValues (state, [id, value]);
}

@@ -150,2 +156,6 @@ }

return State._withValues (state, args);
}
static _withValues (state, args) {
var values;

@@ -198,2 +208,4 @@

/******************************************************************************/
module.exports = State;
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