windowed-observable
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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) { |
{ | ||
"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 }) => ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11033
7
9
184