Comparing version 0.1.2 to 0.2.0
109
package.json
{ | ||
"name": "emittery", | ||
"version": "0.1.2", | ||
"description": "Simple and modern async event emitter", | ||
"license": "MIT", | ||
"repository": "sindresorhus/emittery", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"event", | ||
"emitter", | ||
"eventemitter", | ||
"events", | ||
"async", | ||
"emit", | ||
"on", | ||
"once", | ||
"off", | ||
"listener", | ||
"subscribe", | ||
"unsubscribe", | ||
"pubsub", | ||
"tiny", | ||
"addlistener", | ||
"addeventlistener", | ||
"dispatch", | ||
"dispatcher", | ||
"observer", | ||
"trigger", | ||
"await", | ||
"promise" | ||
], | ||
"devDependencies": { | ||
"ava": "*", | ||
"delay": "^2.0.0", | ||
"xo": "*" | ||
} | ||
"name": "emittery", | ||
"version": "0.2.0", | ||
"description": "Simple and modern async event emitter", | ||
"license": "MIT", | ||
"repository": "sindresorhus/emittery", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"build": "babel --out-file=legacy.js index.js", | ||
"prepack": "npm install && npm run build", | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"legacy.js" | ||
], | ||
"keywords": [ | ||
"event", | ||
"emitter", | ||
"eventemitter", | ||
"events", | ||
"async", | ||
"emit", | ||
"on", | ||
"once", | ||
"off", | ||
"listener", | ||
"subscribe", | ||
"unsubscribe", | ||
"pubsub", | ||
"tiny", | ||
"addlistener", | ||
"addeventlistener", | ||
"dispatch", | ||
"dispatcher", | ||
"observer", | ||
"trigger", | ||
"await", | ||
"promise" | ||
], | ||
"devDependencies": { | ||
"ava": "*", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-plugin-transform-async-to-generator": "^6.24.1", | ||
"babel-plugin-transform-es2015-spread": "^6.22.0", | ||
"delay": "^2.0.0", | ||
"xo": "*" | ||
}, | ||
"babel": { | ||
"plugins": [ | ||
"transform-async-to-generator", | ||
"transform-es2015-spread" | ||
] | ||
} | ||
} |
@@ -33,3 +33,7 @@ # <img src="media/header.png" width="1000"> | ||
### Node.js 4 and 6 | ||
The above only works in Node.js 8 or newer. For older Node.js versions you can use `require('emittery/legacy')`. | ||
## API | ||
@@ -82,3 +86,3 @@ | ||
#### onAll(listener) | ||
#### onAny(listener) | ||
@@ -85,0 +89,0 @@ Subscribe to be notified about any event. |
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
11638
5
173
153
7