Skip to content

Commit

Permalink
Renames package to @jalik/observer
Browse files Browse the repository at this point in the history
  • Loading branch information
jalik committed Mar 12, 2018
1 parent ff697f5 commit 10c7a00
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jk-observer
# Observer

The classic observer design pattern.

Expand All @@ -14,7 +14,7 @@ For example, your can attach listeners to a form text field, then when the text
The following code shows how to attach a listener and how to notify it of events.

```js
import {Observer} from "jk-observer";
import Observer from "@jalik/observer";

class Person {
constructor(name) {
Expand Down Expand Up @@ -49,7 +49,7 @@ karl.on("say", function(words, date) {
In the case that you need to remove a previously attached listener, here is the code.

```js
import {Observer} from "jk-observer";
import Observer from "@jalik/observer";

const doubleClickListener = function() {
console.log("double click detected");
Expand All @@ -71,6 +71,9 @@ observer.notify("doubleClick");

## Changelog

### v1.0.2
- Exports `Observer` using ES6 default export

### v1.0.1
- Updates documentation

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jk-observer",
"version": "1.0.1",
"name": "@jalik/observer",
"version": "1.0.2",
"description": "A library to observe events and trigger callbacks.",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.3",
"babel-loader": "^7.1.4",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"gulp": "^3.9.1",
Expand Down

0 comments on commit 10c7a00

Please sign in to comment.