Catalog npm
Back to packageRELEASE DETAILS

1.7.5

npm

3f-web3-core-subscriptions

Manages web3 subscriptions. This is an internal package.

Published23 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
}
1.0.2runtime
dtslint
Environment
{
  "local_name": "dtslint",
  "alias": false,
  "peer_metadata": null
}
^3.4.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.9.5development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-5Yj1mIA2rxrsQF8/Ys26AbMvcxR9a8ho8a7qRtwkWz4QCO7ZtIx7pUg3FORYZpXEIf88K+jCbSrTLqt5tTDx3g==",
  "shasum": "ca2f5072ce7928b2edbf670f32c00f247a0f4fd8",
  "tarball": "https://registry.npmjs.org/3f-web3-core-subscriptions/-/3f-web3-core-subscriptions-1.7.5.tgz",
  "fileCount": 11,
  "unpackedSize": 33121,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCvPIlurmsgZO6lCzGu4jvpaLakdXcqTUXQ5eH57X07cwIhAL6cRx9yafQ5CX6M7Ex+BK8vRBx4wXk21d0rydXH54ns"
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLU2kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpm1A//b1q6q/eDcXvqx5JmEPlVp6S1eP+1qGTWKP5KjT/uG0jKvQow\r\nUAu9C3q/npwY+tqOXzWcdoKUiHl/bOaYcVRbIdK/lJ/F9MDoaQgwNKlUdI6l\r\nseKXc6cTop8J0R5pakO6hvkdz5iKxTnx2+3+kosjLZ+awtTWkJC0H/eusQEv\r\nPAmiLw4K0lN0pl8F0NIqv+e581kV4AfrK+PI0wW3EzEm0xoec5U/ZjtDhQka\r\n02fDcCG7csKA2inocQSAZe9aL3xuxUAvDSOA4OC0X2kjzi6WfdvrDrsdIKdd\r\njuU8F1SKPEoiCtjNJZCOioLfsyNPX//i8ukwTES3IJHSXeupdy+xGA4mFCys\r\nBOpTDNDtwv/Qh4y6izQcGBHGInnpJJKnC82G27P54zvcQjEjTFbqXflZ5ar0\r\nH/9Hu6xmDdfZFlpQtWPzrvlBUg2SkpylQF73oCy0zeStviTNweHl/yIBz4Zd\r\n66mwwJnNcV3LLLPOIwUIzm5d05a3fC7Egfaw0hcwIcvx/Y5RnbKVfzPiFoL3\r\nEdP8bscgaDxjQNf29kMb1ENzaC4rAmtB0BviQ6F8D517te8zGUBvL9gmrSGW\r\n6psjPOmjzlkk7/bWulROu47TYX8P6o1DNrA95KJdbOgy5fqE62HvtXF8D0fo\r\nYp7C30dw6ROOlNBZThQfb+HKKifyraqiDo0=\r\n=juco\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:acdfceca36809160ca490dc259d2e5561bdfc7178038111420e9e176ee90fe3e

Other collected versions

2.0.027 Sept1.7.626 Sept1.0.022 SeptView all collected versions →