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

dot-store

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-store - npm Package Compare versions

Comparing version 2.4.9 to 2.5.0

43

dist/index.js

@@ -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

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