Socket
Socket
Sign inDemoInstall

multiformats

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiformats - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

2

cjs/browser-test/test-cid.js

@@ -467,3 +467,3 @@ 'use strict';

const cid$1 = cid.CID.create(1, 112, hash);
const msg = 'To parse non base32 or base56btc encoded CID multibase decoder must be provided';
const msg = 'To parse non base32 or base58btc encoded CID multibase decoder must be provided';
await testThrow(() => cid.CID.parse(cid$1.toString(base64Browser.base64)), msg);

@@ -470,0 +470,0 @@ });

@@ -467,3 +467,3 @@ 'use strict';

const cid$1 = cid.CID.create(1, 112, hash);
const msg = 'To parse non base32 or base56btc encoded CID multibase decoder must be provided';
const msg = 'To parse non base32 or base58btc encoded CID multibase decoder must be provided';
await testThrow(() => cid.CID.parse(cid$1.toString(base64Import.base64)), msg);

@@ -470,0 +470,0 @@ });

@@ -235,3 +235,3 @@ 'use strict';

if (base == null) {
throw Error('To parse non base32 or base56btc encoded CID multibase decoder must be provided');
throw Error('To parse non base32 or base58btc encoded CID multibase decoder must be provided');
}

@@ -238,0 +238,0 @@ return [

@@ -466,3 +466,3 @@ import OLDCID from 'cids';

const cid = CID.create(1, 112, hash);
const msg = 'To parse non base32 or base56btc encoded CID multibase decoder must be provided';
const msg = 'To parse non base32 or base58btc encoded CID multibase decoder must be provided';
await testThrow(() => CID.parse(cid.toString(base64)), msg);

@@ -469,0 +469,0 @@ });

@@ -466,3 +466,3 @@ import OLDCID from 'cids';

const cid = CID.create(1, 112, hash);
const msg = 'To parse non base32 or base56btc encoded CID multibase decoder must be provided';
const msg = 'To parse non base32 or base58btc encoded CID multibase decoder must be provided';
await testThrow(() => CID.parse(cid.toString(base64)), msg);

@@ -469,0 +469,0 @@ });

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

if (base == null) {
throw Error('To parse non base32 or base56btc encoded CID multibase decoder must be provided');
throw Error('To parse non base32 or base58btc encoded CID multibase decoder must be provided');
}

@@ -233,0 +233,0 @@ return [

{
"name": "multiformats",
"version": "9.0.0",
"version": "9.0.1",
"description": "Interface for multihash, multicodec, multibase and CID",

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

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

if (base == null) {
throw Error('To parse non base32 or base56btc encoded CID multibase decoder must be provided')
throw Error('To parse non base32 or base58btc encoded CID multibase decoder must be provided')
}

@@ -402,0 +402,0 @@ return [source[0], base.decode(source)]

@@ -509,3 +509,3 @@ /* globals describe, it */

const cid = CID.create(1, 112, hash)
const msg = 'To parse non base32 or base56btc encoded CID multibase decoder must be provided'
const msg = 'To parse non base32 or base58btc encoded CID multibase decoder must be provided'

@@ -512,0 +512,0 @@ await testThrow(() => CID.parse(cid.toString(base64)), msg)

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc