Comparing version 0.7.1 to 0.7.2
@@ -0,1 +1,18 @@ | ||
<a name="0.7.2"></a> | ||
## [0.7.2](https://github.com/multiformats/js-cid/compare/v0.7.1...v0.7.2) (2020-01-14) | ||
### Bug Fixes | ||
* codecs -> record of codec: buffer ([4cf17bb](https://github.com/multiformats/js-cid/commit/4cf17bb)) | ||
* explicitly require .json ext of base-table ([a9898ff](https://github.com/multiformats/js-cid/commit/a9898ff)), closes [#96](https://github.com/multiformats/js-cid/issues/96) | ||
### Features | ||
* typescript types ([3b27338](https://github.com/multiformats/js-cid/commit/3b27338)) | ||
* update types in package.json ([e01f19d](https://github.com/multiformats/js-cid/commit/e01f19d)) | ||
<a name="0.7.1"></a> | ||
@@ -2,0 +19,0 @@ ## [0.7.1](https://github.com/multiformats/js-cid/compare/v0.7.0...v0.7.1) (2019-05-14) |
{ | ||
"name": "cids", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "CID Implementation in JavaScript", | ||
"leadMaintainer": "Volker Mische <volker.mische@gmail.com>", | ||
"main": "src/index.js", | ||
"types": "src/index.d.ts", | ||
"scripts": { | ||
@@ -39,11 +40,11 @@ "lint": "aegir lint", | ||
"multibase": "~0.6.0", | ||
"multicodec": "~0.5.1", | ||
"multihashes": "~0.4.14" | ||
"multicodec": "^1.0.0", | ||
"multihashes": "~0.4.15" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^18.2.0", | ||
"aegir": "^20.5.0", | ||
"chai": "^4.2.0", | ||
"dirty-chai": "^2.0.1", | ||
"multihashing": "~0.3.3", | ||
"multihashing-async": "~0.7.0" | ||
"multihashing-async": "~0.8.0" | ||
}, | ||
@@ -57,2 +58,3 @@ "engines": { | ||
"Alan Shaw <alan@tableflip.io>", | ||
"Carson Farmer <carson.farmer@gmail.com>", | ||
"David Dias <daviddias.p@gmail.com>", | ||
@@ -64,2 +66,3 @@ "Enrico Marino <enrico.marino@email.com>", | ||
"Irakli Gozalishvili <rfobic@gmail.com>", | ||
"Marcin Rataj <lidel@lidel.org>", | ||
"Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -70,2 +73,3 @@ "Mitar <mitar.github@tnode.com>", | ||
"Richard Littauer <richard.littauer@gmail.com>", | ||
"Rod Vagg <rod@vagg.org>", | ||
"Victor Bjelkholm <victorbjelkholm@gmail.com>", | ||
@@ -72,0 +76,0 @@ "Volker Mische <volker.mische@gmail.com>", |
@@ -114,3 +114,3 @@ # js-cid | ||
Validates the different components (version, codec, multihash, multibaseName) of the CID | ||
instance. Returns true if valid, false if not valid. | ||
instance. Throws an `Error` if not valid. | ||
@@ -117,0 +117,0 @@ ### new CID(version, codec, multihash, [multibaseName]) |
@@ -29,6 +29,6 @@ 'use strict' | ||
if (other.codec !== 'dag-pb') { | ||
return `codec must be 'dag-pb' for CIDv0` | ||
return "codec must be 'dag-pb' for CIDv0" | ||
} | ||
if (other.multibaseName !== 'base58btc') { | ||
return `multibaseName must be 'base58btc' for CIDv0` | ||
return "multibaseName must be 'base58btc' for CIDv0" | ||
} | ||
@@ -35,0 +35,0 @@ } |
@@ -6,3 +6,3 @@ 'use strict' | ||
const multicodec = require('multicodec') | ||
const codecs = require('multicodec/src/base-table') | ||
const codecs = require('multicodec/src/base-table.json') | ||
const CIDUtil = require('./cid-util') | ||
@@ -285,3 +285,3 @@ const withIs = require('class-is') | ||
static validateCID (other) { | ||
let errorMsg = CIDUtil.checkCIDComponents(other) | ||
const errorMsg = CIDUtil.checkCIDComponents(other) | ||
if (errorMsg) { | ||
@@ -288,0 +288,0 @@ throw new Error(errorMsg) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 4 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
2144272
41
6508
2
90
4
+ Addedmulticodec@1.0.4(transitive)
- Removedmulticodec@0.5.7(transitive)
Updatedmulticodec@^1.0.0
Updatedmultihashes@~0.4.15