web3-core-promievent
Advanced tools
Comparing version 1.2.9 to 1.2.10-rc.0
{ | ||
"name": "web3-core-promievent", | ||
"version": "1.2.9", | ||
"version": "1.2.10-rc.0", | ||
"description": "This package extends the EventEmitter with the Promise class to allow chaining as well as multiple final states of a function.", | ||
@@ -12,5 +12,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-promievent", | ||
"dependencies": { | ||
"eventemitter3": "3.1.2" | ||
"eventemitter3": "4.0.4" | ||
}, | ||
"gitHead": "0e7ee3325437f73f4bace6c2df06aefafd72c716" | ||
"gitHead": "ef81e78b2eed69dd386e0d2cb9bd22d8af998c34" | ||
} |
@@ -19,22 +19,9 @@ # web3-core-promievent | ||
### In the Browser | ||
Build running the following in the [web3.js][repo] repository: | ||
```bash | ||
npm run-script build-all | ||
``` | ||
Then include `dist/web3-core-promievent.js` in your html file. | ||
This will expose the `Web3PromiEvent` object on the window object. | ||
## Usage | ||
```js | ||
// in node.js | ||
var Web3PromiEvent = require('web3-core-promievent'); | ||
const Web3PromiEvent = require('web3-core-promievent'); | ||
var myFunc = function(){ | ||
var promiEvent = Web3PromiEvent(); | ||
const myFunc = function(){ | ||
const promiEvent = Web3PromiEvent(); | ||
@@ -49,3 +36,2 @@ setTimeout(function() { | ||
// and run it | ||
@@ -52,0 +38,0 @@ myFunc() |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4776
1
2
49
+ Addedeventemitter3@4.0.4(transitive)
- Removedeventemitter3@3.1.2(transitive)
Updatedeventemitter3@4.0.4