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

@uxland/event-aggregator

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxland/event-aggregator - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-alpha.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.0.1-alpha.0](https://github.com/uxland/uxland/compare/@uxland/event-aggregator@1.0.0...@uxland/event-aggregator@1.0.1-alpha.0) (2021-03-10)
**Note:** Version bump only for package @uxland/event-aggregator
# [1.0.0](https://github.com/uxland/uxland/compare/@uxland/event-aggregator@1.0.0-alpha.19...@uxland/event-aggregator@1.0.0) (2021-03-09)

@@ -8,0 +16,0 @@

3

es/index.js

@@ -0,1 +1,2 @@

var l=1;l=1;l=1;var c=class{constructor(e,t){this.messageType=e,this.callback=t}handle(e){e instanceof this.messageType&&this.callback.call(null,e)}},b=(i,e,t)=>{try{i(e,t)}catch(s){console.error(s)}},p=(i,e)=>{try{i.handle(e)}catch(t){console.error(t)}},o=class{constructor(){this.eventLookup={},this.messageHandlers=[]}publish(e,t){let s,n;if(!e)throw new Error("Event channel/type is invalid.");if(typeof e=="string"){if(s=this.eventLookup[e],s)for(s=s.slice(),n=s.length;n--;)b(s[n],t,e)}else for(s=this.messageHandlers.slice(),n=s.length;n--;)p(s[n],e)}subscribe(e,t){let s,n;if(!e)throw new Error("Event channel/type is invalid.");return typeof e=="string"?(s=t,n=this.eventLookup[e]||(this.eventLookup[e]=[])):(s=new c(e,t),n=this.messageHandlers),n.push(s),{dispose(){let a=n.indexOf(s);a!==-1&&n.splice(a,1)}}}subscribeOnce(e,t){let s=this.subscribe(e,(n,a)=>(s.dispose(),t(n,a)));return s}},r=new o,d=r.subscribe.bind(r),u=r.subscribeOnce.bind(r),h=r.publish.bind(r);console.log("@uxland/event-aggregator loaded");export{o as EventAggregator,r as eventAggregator,h as publish,d as subscribe,u as subscribeOnce};
/*

@@ -18,3 +19,1 @@ * @license

*/
/** @namespace EventAggregator */
export * from './event-aggregator';

@@ -1,2 +0,2 @@

"use strict";
(()=>{var o=1;o=1;o=1;var l=class{constructor(e,t){this.messageType=e,this.callback=t}handle(e){e instanceof this.messageType&&this.callback.call(null,e)}},b=(i,e,t)=>{try{i(e,t)}catch(s){console.error(s)}},p=(i,e)=>{try{i.handle(e)}catch(t){console.error(t)}},c=class{constructor(){this.eventLookup={},this.messageHandlers=[]}publish(e,t){let s,n;if(!e)throw new Error("Event channel/type is invalid.");if(typeof e=="string"){if(s=this.eventLookup[e],s)for(s=s.slice(),n=s.length;n--;)b(s[n],t,e)}else for(s=this.messageHandlers.slice(),n=s.length;n--;)p(s[n],e)}subscribe(e,t){let s,n;if(!e)throw new Error("Event channel/type is invalid.");return typeof e=="string"?(s=t,n=this.eventLookup[e]||(this.eventLookup[e]=[])):(s=new l(e,t),n=this.messageHandlers),n.push(s),{dispose(){let a=n.indexOf(s);a!==-1&&n.splice(a,1)}}}subscribeOnce(e,t){let s=this.subscribe(e,(n,a)=>(s.dispose(),t(n,a)));return s}},r=new c,u=r.subscribe.bind(r),h=r.subscribeOnce.bind(r),g=r.publish.bind(r);console.log("@uxland/event-aggregator loaded");})();
/*

@@ -19,5 +19,1 @@ * @license

*/
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
/** @namespace EventAggregator */
tslib_1.__exportStar(require("./event-aggregator"), exports);
{
"name": "@uxland/event-aggregator",
"version": "1.0.0",
"version": "1.0.1-alpha.0",
"description": "Event Aggregator",

@@ -45,3 +45,7 @@ "author": "UXLand <dev@uxland.es>",

"jsdoc:mv": "mkdirp ../../docs/$npm_package_name/$npm_package_version && ncp docs/$npm_package_name/$npm_package_version ../../docs/$npm_package_name/$npm_package_version",
"postjsdoc": "yarn jsdoc:styles && yarn jsdoc:mv"
"postjsdoc": "yarn jsdoc:styles && yarn jsdoc:mv",
"esbuild:dts": "tsc --emitDeclarationOnly --noEmit false --declaration --removeComments false --outDir lib",
"esbuild:cjs": "esbuild src/index.ts --bundle --minify --target=es2018 --outfile=lib/index.js && yarn esbuild:dts",
"esbuild:es": "esbuild src/index.ts --bundle --minify --format=esm --outfile=es/index.js",
"esbuild": "npm-run-all --parallel esbuild:es esbuild:cjs"
},

@@ -61,2 +65,3 @@ "bugs": {

"cucumber": "^6.0.5",
"esbuild": "^0.9.0",
"jest": "^26.4.2",

@@ -77,3 +82,3 @@ "jest-cucumber": "^3.0.0",

},
"gitHead": "37a9a5a4c7bfade3e33dd14a09927c50298d005b"
"gitHead": "9e778804c70f26afdd596974b8cfa67f52ec97fe"
}

@@ -5,3 +5,3 @@ # UXL Event Aggregator [![npm version](https://badge.fury.io/js/%40uxland%2Fevent-aggregator.svg)](https://badge.fury.io/js/%40uxland%2Fevent-aggregator)

| ----------------------------------------------- | --------------------------------------------- | ----------------------------------------- | ------------------------------------------- | ----------------------------------- |
| ![BuildStatus](#buildstatus# "Building Status") | ![Statements](#statements# "Make me better!") | ![Branches](#branches# "Make me better!") | ![Functions](#functions# "Make me better!") | ![Lines](#lines# "Make me better!") |
| ![BuildStatus](#buildstatus# "Building Status") | ![Statements](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg "Make me better!") | ![Branches](https://img.shields.io/badge/Coverage-81.25%25-yellow.svg "Make me better!") | ![Functions](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg "Make me better!") | ![Lines](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg "Make me better!") |

@@ -8,0 +8,0 @@ ## Installation

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