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

windowed-observable

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windowed-observable - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

dist/observable.js

@@ -57,3 +57,2 @@ "use strict";

}
;
};

@@ -67,3 +66,2 @@ Observable.prototype.publish = function (data) {

}
;
};

@@ -70,0 +68,0 @@ Observable.prototype.subscribe = function (observer, options) {

9

package.json
{
"name": "windowed-observable",
"version": "0.3.0",
"version": "0.3.1",
"description": "Simple messaging api",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"files": [

@@ -12,2 +12,4 @@ "/dist"

"test": "jest",
"lint": "eslint --ignore-path .gitignore '*/**/*.{js,ts,tsx}' --quiet --fix",
"prebuild": "yarn test && yarn lint",
"build": "tsc",

@@ -28,2 +30,5 @@ "prepare": "yarn run build"

"@types/jest": "^24.0.24",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"eslint": "^6.8.0",
"jest": "^24.9.0",

@@ -30,0 +35,0 @@ "ts-jest": "^24.2.0",

@@ -31,3 +31,3 @@ # windowed-observable

observable.dispatch('Uchiha Shisui');
observable.publish('Uchiha Shisui');
// > Uchiha Shisui

@@ -41,3 +41,3 @@ ```

observable.dispatch('Senju Tobirama');
observable.publish('Senju Tobirama');

@@ -57,3 +57,3 @@ observable.subscribe((ninja) => console.log(ninja), { latest: true });

observable.subscribe(observer)
observable.dispatch('Uzumaki Naruto');
observable.publish('Uzumaki Naruto');
// > Uzumaki Naruto

@@ -103,3 +103,3 @@

#### Dispatcher component
#### Publisher component

@@ -112,3 +112,3 @@ ```tsx

const handleClick = ninja = () => observable.dispatch(ninja);
const handleClick = ninja = () => observable.publish(ninja);

@@ -115,0 +115,0 @@ const AddNinjaButton = ({ ninja }) => (

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