Comparing version 5.4.0 to 5.5.0
@@ -47,3 +47,4 @@ "use strict"; | ||
function get(props) { | ||
function get() { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
var state = this.state, | ||
@@ -59,3 +60,3 @@ store = this.store; | ||
function del(_x) { | ||
function del() { | ||
return _del.apply(this, arguments); | ||
@@ -67,4 +68,8 @@ } | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee(props) { | ||
var events, store, state; | ||
_regenerator.default.mark(function _callee() { | ||
var props, | ||
events, | ||
store, | ||
state, | ||
_args = arguments; | ||
return _regenerator.default.wrap(function _callee$(_context) { | ||
@@ -74,6 +79,7 @@ while (1) { | ||
case 0: | ||
props = _args.length > 0 && _args[0] !== undefined ? _args[0] : []; | ||
events = this.events, store = this.store; | ||
state = store.state; | ||
store.setState(_dotPropImmutable.default.delete(state, props)); | ||
_context.next = 5; | ||
_context.next = 6; | ||
return emitStore({ | ||
@@ -86,3 +92,3 @@ events: events, | ||
case 5: | ||
case 6: | ||
case "end": | ||
@@ -97,3 +103,3 @@ return _context.stop(); | ||
function merge(_x2, _x3) { | ||
function merge() { | ||
return _merge.apply(this, arguments); | ||
@@ -105,4 +111,9 @@ } | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee2(props, value) { | ||
var events, store, state; | ||
_regenerator.default.mark(function _callee2() { | ||
var props, | ||
value, | ||
events, | ||
store, | ||
state, | ||
_args2 = arguments; | ||
return _regenerator.default.wrap(function _callee2$(_context2) { | ||
@@ -112,4 +123,6 @@ while (1) { | ||
case 0: | ||
props = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : []; | ||
value = _args2.length > 1 ? _args2[1] : undefined; | ||
events = this.events, store = this.store; | ||
_context2.next = 3; | ||
_context2.next = 5; | ||
return enqueue({ | ||
@@ -123,5 +136,5 @@ events: events, | ||
case 3: | ||
case 5: | ||
if (!_context2.sent) { | ||
_context2.next = 5; | ||
_context2.next = 7; | ||
break; | ||
@@ -132,6 +145,6 @@ } | ||
case 5: | ||
case 7: | ||
state = store.state; | ||
store.setState(_dotPropImmutable.default.merge(state, props, value)); | ||
_context2.next = 9; | ||
_context2.next = 11; | ||
return emitStore({ | ||
@@ -145,3 +158,3 @@ events: events, | ||
case 9: | ||
case 11: | ||
case "end": | ||
@@ -156,3 +169,3 @@ return _context2.stop(); | ||
function set(_x4, _x5) { | ||
function set() { | ||
return _set.apply(this, arguments); | ||
@@ -164,4 +177,9 @@ } | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee3(props, value) { | ||
var events, store, state; | ||
_regenerator.default.mark(function _callee3() { | ||
var props, | ||
value, | ||
events, | ||
store, | ||
state, | ||
_args3 = arguments; | ||
return _regenerator.default.wrap(function _callee3$(_context3) { | ||
@@ -171,4 +189,6 @@ while (1) { | ||
case 0: | ||
props = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : []; | ||
value = _args3.length > 1 ? _args3[1] : undefined; | ||
events = this.events, store = this.store; | ||
_context3.next = 3; | ||
_context3.next = 5; | ||
return enqueue({ | ||
@@ -182,5 +202,5 @@ events: events, | ||
case 3: | ||
case 5: | ||
if (!_context3.sent) { | ||
_context3.next = 5; | ||
_context3.next = 7; | ||
break; | ||
@@ -191,6 +211,6 @@ } | ||
case 5: | ||
case 7: | ||
state = store.state; | ||
store.setState(_dotPropImmutable.default.set(state, props, value)); | ||
_context3.next = 9; | ||
_context3.next = 11; | ||
return emitStore({ | ||
@@ -204,3 +224,3 @@ events: events, | ||
case 9: | ||
case 11: | ||
case "end": | ||
@@ -215,3 +235,3 @@ return _context3.stop(); | ||
function setState(_x6) { | ||
function setState(_x) { | ||
return _setState.apply(this, arguments); | ||
@@ -242,7 +262,8 @@ } | ||
function time(props) { | ||
function time() { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
return set.call(this, props, new Date().getTime()); | ||
} | ||
function enqueue(_x7) { | ||
function enqueue(_x2) { | ||
return _enqueue.apply(this, arguments); | ||
@@ -316,3 +337,3 @@ } | ||
function emitStore(_x8) { | ||
function emitStore(_x3) { | ||
return _emitStore.apply(this, arguments); | ||
@@ -319,0 +340,0 @@ } |
{ | ||
"name": "dot-store", | ||
"version": "5.5.0", | ||
"description": "Event emitter & store that promotes decoupled and readable code", | ||
"keywords": [ | ||
"immutable", | ||
"store" | ||
], | ||
"author": "dot-store <oss@dot-store.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/dot-store/core.git" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/dot-store/core#readme", | ||
"cyclops": { | ||
"git": {}, | ||
"link": {}, | ||
"starter": {}, | ||
"version": {} | ||
}, | ||
"starters": [ | ||
@@ -15,19 +34,6 @@ "basics", | ||
], | ||
"version": "5.4.0", | ||
"description": "Event emitter & store that promotes decoupled and readable code", | ||
"keywords": [ | ||
"immutable", | ||
"store" | ||
], | ||
"author": "dot-store <oss@dot-store.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/dot-store/core.git" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/dot-store/core#readme", | ||
"dependencies": { | ||
"@babel/runtime": "7.1.2", | ||
"@dot-store/dot-prop-immutable": "^3.1.0", | ||
"dot-event": "^2.7.0" | ||
"@dot-store/dot-prop-immutable": "3.1.0", | ||
"dot-event": "2.9.0" | ||
}, | ||
@@ -41,13 +47,13 @@ "devDependencies": { | ||
"@babel/preset-env": "7.1.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.8.0", | ||
"eslint-config-prettier": "^3.1.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"eslint-plugin-react": "^7.11.1", | ||
"husky": "1.1.2", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-eslint": "10.0.1", | ||
"eslint": "5.8.0", | ||
"eslint-config-prettier": "3.1.0", | ||
"eslint-plugin-prettier": "3.0.0", | ||
"eslint-plugin-react": "7.11.1", | ||
"husky": "1.1.3", | ||
"jest": "23.6.0", | ||
"lint-staged": "^8.0.3", | ||
"prettier": "^1.14.3", | ||
"rimraf": "^2.6.2" | ||
"lint-staged": "8.0.4", | ||
"prettier": "1.14.3", | ||
"rimraf": "2.6.2" | ||
}, | ||
@@ -54,0 +60,0 @@ "main": "dist/core.js", |
Sorry, the diff of this file is not supported yet
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
22080
308
+ Addeddot-event@2.9.0(transitive)
- Removed@babel/runtime@7.2.0(transitive)
- Removeddot-event@2.12.11(transitive)
Updateddot-event@2.9.0