multiformats
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package