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

irish-pub-sub

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

irish-pub-sub - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

index.ts

2

dist/index.min.js

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

export default(f={})=>[(o,p)=>(f[o]||(f[o]=[])).push(p)&&(()=>f[o].sort(f=>f===p?1:-1).pop()&&"eff off"),(o,p)=>(f[o]||[]).forEach(f=>f(p))];
export default(e={})=>[(p,t)=>(e[p]||(e[p]=[]),e[p].push(t),()=>(e[p]=e[p].filter(e=>e!==t),!0)),(p,t)=>{(e[p]||[]).map(e=>e(t))}];

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

!function(e,f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define(f):(e=e||self).irishPubSub=f()}(this,function(){"use strict";return(e={})=>[(f,o)=>(e[f]||(e[f]=[])).push(o)&&(()=>e[f].sort(e=>e===o?1:-1).pop()&&"eff off"),(f,o)=>(e[f]||[]).forEach(e=>e(o))]});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).irishPubSub=t()}(this,function(){"use strict";return(e={})=>[(t,f)=>(e[t]||(e[t]=[]),e[t].push(f),()=>(e[t]=e[t].filter(e=>e!==f),!0)),(t,f)=>{(e[t]||[]).map(e=>e(f))}]});
{
"name": "irish-pub-sub",
"version": "1.0.5",
"description": "🍀146b Pubsub system",
"version": "1.1.0",
"description": "🍀131b Pubsub system",
"main": "index.js",

@@ -13,5 +13,8 @@ "repository": "https://github.com/bratsos/irish-pubsub",

"devDependencies": {
"rollup": "^1.1.1",
"rollup-plugin-terser": "^4.0.2"
"@rollup/plugin-typescript": "^5.0.1",
"rollup": "^2.0.0",
"rollup-plugin-terser": "^4.0.2",
"tslib": "^2.0.0",
"typescript": "^3.9.6"
}
}
<p align="center">
<h1>🍀 Irish PubSub - 133b pubsub system</h1>
<h1>🍀 Irish PubSub - 131b pubsub system</h1>
<br>

@@ -8,3 +8,3 @@ <a href="https://www.npmjs.org/package/irish-pub-sub"><a href="https://unpkg.com/irish-pub-sub/dist/index.min.umd.js"><img src="http://img.badgesize.io/https://unpkg.com/irish-pub-sub/dist/index.min.js?compression=gzip" alt="gzip size"></a> <a href="https://packagephobia.now.sh/result?p=irish-pub-sub"><img src="https://packagephobia.now.sh/badge?p=irish-pub-sub" alt="install size"></a>

Modern (es6) functional Pubsub system (no `class`, or `this`), weights about 133b minified + gzipped.
Modern (es6) functional Pubsub system (no `class`, or `this`), weights about 131b minified + gzipped.

@@ -17,3 +17,3 @@ <h2>Install</h2>

`<script scr="https://unpkg.com/irish-pub-sub/dist/index.min.umd.js"></script>`
`<script scr="https://unpkg.com/irish-pub-sub/dist/index.umd.js"></script>`

@@ -25,3 +25,3 @@ <h2>Usage</h2>

const [subscribe, emit] = pubsub()
const [subscribe, send] = pubsub()

@@ -28,0 +28,0 @@ const unsbuscribe = subscribe('The Dreadnoughts', (val) => console.log('The Dreadnoughts: ', val)) // returns unsubscribe method

import { terser } from "rollup-plugin-terser";
import typescript from '@rollup/plugin-typescript';
module.exports = [
{
input: './index.js',
plugins: [terser({ecma: 5})],
output: {
module.exports = {
input: './index.ts',
output: [
{
file: 'dist/index.min.js',
format: 'esm',
name: "irishPubSub"
}
},
{
input: './index.js',
plugins: [terser({ecma: 5})],
output: {
},
{
file: 'dist/index.umd.js',

@@ -21,3 +17,7 @@ format: 'umd',

}
}
]
],
plugins: [
typescript(),
terser()
]
}
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