electrum-store
Advanced tools
Comparing version 0.9.2 to 1.0.0
@@ -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; |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
73076
1666
0