Catalog npm
Back to packageRELEASE DETAILS

2.0.0

npm

3f-web3-core-subscriptions

Manages web3 subscriptions. This is an internal package.

Published27 Sept 2022
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

3f-web3-core-subscriptions

NPM Package Dependency Status Dev Dependency Statustus]deps-image]deps-url Dev Dependency Status

This is a sub-package of web3.js

This subscriptions package is used within some web3.js packages.

Please read the documentation for more.

Installation

Node.js

npm install 3f-web3-core-subscriptions

Usage

const Web3Subscriptions = require('3f-web3-core-subscriptions');

const sub = new Web3Subscriptions({
    name: 'subscribe',
    type: 'eth',
    subscriptions: {
        'newBlockHeaders': {
            subscriptionName: 'newHeads',
            params: 0,
            outputFormatter: formatters.outputBlockFormatter
        },
        'pendingTransactions': {
            params: 0,
            outputFormatter: formatters.outputTransactionFormatter
        }
    }
});
sub.attachToObject(myCoolLib);

myCoolLib.subscribe('newBlockHeaders', function(){ ... });

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
eventemitter3
Environment
{
  "local_name": "eventemitter3",
  "alias": false,
  "peer_metadata": null
}
4.0.4runtime
3f-web3-core-helpers
Environment
{
  "local_name": "3f-web3-core-helpers",
  "alias": false,
  "peer_metadata": null
}
2.0.0runtime
dtslint
Environment
{
  "local_name": "dtslint",
  "alias": false,
  "peer_metadata": null
}
^3.4.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
4.8.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-0mSff1BXAgIbQGktc0fqMmsPshJtB0ayxMThe3eXo3AYJ5N/wVcAmdiAg2i1HRUjmSV0q/2d7RVNozc4apRlgw==",
  "shasum": "9e53211e51156f02cd065d919c2dad08ed8dceec",
  "tarball": "https://registry.npmjs.org/3f-web3-core-subscriptions/-/3f-web3-core-subscriptions-2.0.0.tgz",
  "fileCount": 11,
  "unpackedSize": 33120,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIDE8eto6dqikVy5+qY+MvmbO8kIGiorMVM3mjqMCvIdrAiEAnFSOwiIDqCB9e5XHvsP3cxKuu+jS5eVIiZVsmIAfkgs="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMrnRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodJw/9GcnsjGTnIdlgZVur0x7cH5FHOdDuhd0GLyfl/xUx05qoHhUC\r\nfsOTW2CzpR1kHVRe1Lg4mSiE+/Qkzmsh2wM0ZugSFBJbOFhzPpm7xqvRDHDb\r\nMov2b1qlw5T24VtgJyZIxo0Ri+pTqqs+ooCqZC0ec4rcD/MDqgPyTqVzCfJ3\r\nE9Y+TqbU2of6aH/ktwJPKirVh+SgDVqc2j4H2XCZZ51ZZs3n4XmQc/gOikXX\r\nakuUSvXMQRCmm6N8qqzl+fvZytvWZo4DuY6hsjagyNhV5uav50Wx9KF/Hqd7\r\nbsjiATGPolOZbDBWE9SgrBO5hlT1DOQtR10c6R5kpll6+OVRxMu61Hmk3cbl\r\nhR/WepUEVas1eeSpF6hCoOC+nAS12oojwaAX+C2+wOUQda7TzcfgvKyz5oKc\r\nEfposrVFIdpFdDc8fSa//R3JsvtRs3QQ0H+fuU+ysSF3YZ2hERD81m/zLWQ2\r\n5fA7duQkfbB861XO5DMOmq1A7tJILHoFzxI7TmpyL3l1EKa4qStH1Q8IctER\r\n9bnQvBkoJji7B4xXajHW45A4k+In35wb8RshIE/fu2U/wEeSn0AjDECMLFuv\r\nfUJ78PLq5L64MEQc0SU5bMEkqKQOdcPoczBPguBbvuF0JTjNQTBAxe2Yhf1O\r\nIIttJfS4WGh6+5BIWw555feHsV1ESq7fDbA=\r\n=CQpG\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
financefuturefactory/3f-web3.js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:42 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ea19e2fb273c5cf675758cb57b25e36f523fd5178fd252f8d641a71bdafc40ec

Other collected versions

1.7.626 Sept1.7.523 Sept1.0.022 SeptView all collected versions →