Comparing version 2.4.9 to 2.5.0
@@ -10,2 +10,4 @@ "use strict"; | ||
var _promise = _interopRequireDefault(require("@babel/runtime/core-js/promise")); | ||
var _getIterator2 = _interopRequireDefault(require("@babel/runtime/core-js/get-iterator")); | ||
@@ -318,4 +320,6 @@ | ||
_regenerator.default.mark(function _callee4(event, prop) { | ||
var _ref7, options, changed, vars; | ||
var _this2 = this; | ||
var _ref7; | ||
return _regenerator.default.wrap(function _callee4$(_context4) { | ||
@@ -333,36 +337,21 @@ while (1) { | ||
if (!prop) { | ||
_context4.next = 12; | ||
_context4.next = 3; | ||
break; | ||
} | ||
_context4.next = 4; | ||
return (0, _get2.default)(DotStore.prototype.__proto__ || (0, _getPrototypeOf.default)(DotStore.prototype), "once", this).call(this, event); | ||
return _context4.abrupt("return", new _promise.default(function (resolve) { | ||
var unsub = _this2.on(event, prop, function (options) { | ||
resolve(options); | ||
unsub(); | ||
}); | ||
})); | ||
case 4: | ||
options = _context4.sent; | ||
changed = options.changed; | ||
vars = changed(prop); | ||
if (!vars) { | ||
_context4.next = 9; | ||
break; | ||
} | ||
return _context4.abrupt("return", (0, _objectSpread2.default)({}, options, vars)); | ||
case 9: | ||
_context4.next = 11; | ||
return this.once(event, prop); | ||
case 11: | ||
return _context4.abrupt("return", _context4.sent); | ||
case 12: | ||
_context4.next = 14; | ||
case 3: | ||
_context4.next = 5; | ||
return (0, _get2.default)(DotStore.prototype.__proto__ || (0, _getPrototypeOf.default)(DotStore.prototype), "once", this).call(this, event); | ||
case 14: | ||
case 5: | ||
return _context4.abrupt("return", _context4.sent); | ||
case 15: | ||
case 6: | ||
case "end": | ||
@@ -369,0 +358,0 @@ return _context4.stop(); |
{ | ||
"name": "dot-store", | ||
"version": "2.4.9", | ||
"version": "2.5.0", | ||
"description": "Like Redux, but easy", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
3
54030
839