Socket
Socket
Sign inDemoInstall

multiformats

Package Overview
Dependencies
0
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.6.3 to 9.6.4

2

package.json
{
"name": "multiformats",
"version": "9.6.3",
"version": "9.6.4",
"description": "Interface for multihash, multicodec, multibase and CID",

@@ -5,0 +5,0 @@ "main": "./cjs/src/index.js",

@@ -104,3 +104,5 @@ # multiformats

This library defines [`BlockEncoder`, `BlockDecoder` and `BlockCodec` interfaces](https://github.com/multiformats/js-multiformats/blob/master/src/codecs/interface.ts). Codec implementations should conform to the `BlockCodec` interface which implements both `BlockEncoder` and `BlockDecoder`.
This library defines [`BlockEncoder`, `BlockDecoder` and `BlockCodec` interfaces](https://github.com/multiformats/js-multiformats/blob/master/src/codecs/interface.ts).
Codec implementations should conform to the `BlockCodec` interface which implements both `BlockEncoder` and `BlockDecoder`.
Here is an example implementation of JSON `BlockCodec`.

@@ -186,3 +188,3 @@ ```js

By default, no base encodings (other than base32 & base58btc), hash functions,
or codec implementations are included exposed by `multiformats`, you need to
or codec implementations are exposed by `multiformats`, you need to
import the ones you need yourself.

@@ -189,0 +191,0 @@

@@ -208,3 +208,3 @@ import * as varint from './varint.js'

// If value is a CID from older implementation that used to be tagged via
// symbol we still rebase it to the this `CID` implementation by
// symbol we still rebase it to this `CID` implementation by
// delegating that to a constructor.

@@ -211,0 +211,0 @@ const { version, multihash, code } = value

@@ -29,3 +29,3 @@ // # Multihash

/**
* Binary representation of the this multihash digest.
* Binary representation of this multihash digest.
*/

@@ -32,0 +32,0 @@ bytes: Uint8Array

@@ -19,3 +19,3 @@ /**

/**
* Binary representation of the this multihash digest.
* Binary representation of this multihash digest.
*/

@@ -22,0 +22,0 @@ bytes: Uint8Array;

Sorry, the diff of this file is not supported yet

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