Comparing version 0.5.0 to 0.5.1
@@ -41,2 +41,29 @@ "use strict"; | ||
var _loop = function _loop(op) { | ||
_this[op] = function () { | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(prop, value) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.next = 2; | ||
return _this.store({ op: op, prop: prop, value: value }); | ||
case 2: | ||
return _context.abrupt("return", _context.sent); | ||
case 3: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, _this); | ||
})); | ||
return function (_x2, _x3) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
}(); | ||
}; | ||
var _iteratorNormalCompletion = true; | ||
@@ -47,33 +74,6 @@ var _didIteratorError = false; | ||
try { | ||
var _loop = function _loop() { | ||
for (var _iterator = ops[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var op = _step.value; | ||
_this[op] = function () { | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(prop, value) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.next = 2; | ||
return _this.store({ op: op, prop: prop, value: value }); | ||
case 2: | ||
return _context.abrupt("return", _context.sent); | ||
case 3: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, _this); | ||
})); | ||
return function (_x2, _x3) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
}(); | ||
}; | ||
for (var _iterator = ops[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
_loop(); | ||
_loop(op); | ||
} | ||
@@ -80,0 +80,0 @@ } catch (err) { |
{ | ||
"name": "dot-store", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Like Redux, but easy", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"babel-plugin-transform-object-rest-spread": "6", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-env": "^1.6.1", | ||
"fxtr": "1", | ||
@@ -39,0 +39,0 @@ "jest": "22", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18604