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

dot-event

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-event - npm Package Compare versions

Comparing version 2.7.0 to 2.8.0

23

dist/multi.js

@@ -14,2 +14,4 @@ "use strict";

var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));

@@ -87,4 +89,8 @@

var listener,
_listener$if,
condition,
then,
ok,
_args = arguments;
return _regenerator.default.wrap(function _callee$(_context) {

@@ -95,19 +101,18 @@ while (1) {

listener = this.listener;
_context.next = 3;
return listener.if.apply(listener, _args);
_listener$if = (0, _slicedToArray2.default)(listener.if, 2), condition = _listener$if[0], then = _listener$if[1];
_context.next = 4;
return condition.apply(void 0, _args);
case 3:
case 4:
ok = _context.sent;
if (!ok) {
_context.next = 7;
_context.next = 8;
break;
}
_context.next = 7;
return allChain.bind({
listener: listener
}).apply(void 0, _args);
_context.next = 8;
return makeChain(typeof then === "function" ? then() : then).apply(void 0, _args);
case 7:
case 8:
case "end":

@@ -114,0 +119,0 @@ return _context.stop();

@@ -46,6 +46,9 @@ import { isObject } from "./util"

const { listener } = this
const ok = await listener.if(...args)
const [condition, then] = listener.if
const ok = await condition(...args)
if (ok) {
await allChain.bind({ listener })(...args)
await makeChain(
typeof then === "function" ? then() : then
)(...args)
}

@@ -52,0 +55,0 @@ }

{
"name": "dot-event",
"starters": [
"basics",
"babel",
"babel-scripts",
"babel-web",
"eslint",
"husky",
"jest",
"jest-browser",
"jest-scripts",
"watchman-babel"
],
"version": "2.7.0",
"version": "2.8.0",
"description": "Powerful event emitter",

@@ -30,2 +18,17 @@ "keywords": [

"homepage": "https://github.com/dot-event/core#readme",
"cyclops": {
"version-tasks": {}
},
"starters": [
"basics",
"babel",
"babel-scripts",
"babel-web",
"eslint",
"husky",
"jest",
"jest-browser",
"jest-scripts",
"watchman-babel"
],
"dependencies": {

@@ -41,13 +44,13 @@ "@babel/runtime": "7.1.2"

"@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 +57,0 @@ "main": "dist/core.js",

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