Socket
Socket
Sign inDemoInstall

web3-core-promievent

Package Overview
Dependencies
1
Maintainers
2
Versions
124
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.9 to 1.2.10-rc.0

6

package.json
{
"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()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc