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.1-alpha.2 to 1.0.1-alpha.3

lib/event-aggregator.js

8

CHANGELOG.md

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

## [1.0.1-alpha.3](https://github.com/uxland/uxland/compare/@uxland/event-aggregator@1.0.1-alpha.2...@uxland/event-aggregator@1.0.1-alpha.3) (2021-03-11)
**Note:** Version bump only for package @uxland/event-aggregator
## [1.0.1-alpha.2](https://github.com/uxland/uxland/compare/@uxland/event-aggregator@1.0.1-alpha.1...@uxland/event-aggregator@1.0.1-alpha.2) (2021-03-10)

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

3

lib/index.js

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

(()=>{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");})();
/*

@@ -18,2 +17,2 @@ * @license

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/export*from"./event-aggregator";console.log("@uxland/event-aggregator loaded");
{
"name": "@uxland/event-aggregator",
"version": "1.0.1-alpha.2",
"version": "1.0.1-alpha.3",
"description": "Event Aggregator",

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

"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:cjs": "esbuild src/*.ts --minify --target=es2018 --outdir=lib && yarn esbuild:dts",
"esbuild:es": "esbuild src/index.ts --bundle --minify --format=esm --outfile=es/index.js",

@@ -81,3 +81,3 @@ "esbuild": "npm-run-all --parallel esbuild:es esbuild:cjs"

},
"gitHead": "848ebddec4fca3546d0a83c2a16f7695a8ea9b14"
"gitHead": "239514ec19903794f966a7ec1c1ff8646932e160"
}
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