Comparing version 0.5.5 to 0.5.6
@@ -0,1 +1,13 @@ | ||
<a name="0.5.6"></a> | ||
## [0.5.6](https://github.com/ipld/js-cid/compare/v0.5.5...v0.5.6) (2018-11-22) | ||
### Bug Fixes | ||
* add class name ([b9fc845](https://github.com/ipld/js-cid/commit/b9fc845)) | ||
* generated docs, re-add isCID ([5b826fc](https://github.com/ipld/js-cid/commit/5b826fc)) | ||
* **package:** update multibase to version 0.6.0 ([e4e6508](https://github.com/ipld/js-cid/commit/e4e6508)) | ||
<a name="0.5.5"></a> | ||
@@ -2,0 +14,0 @@ ## [0.5.5](https://github.com/ipld/js-cid/compare/v0.5.4...v0.5.5) (2018-09-25) |
{ | ||
"name": "cids", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "CID Implementation in JavaScript", | ||
@@ -17,3 +17,2 @@ "leadMaintainer": "Volker Mische <volker.mische@gmail.com>", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage --provider coveralls", | ||
"docs": "aegir docs" | ||
@@ -40,3 +39,3 @@ }, | ||
"class-is": "^1.1.0", | ||
"multibase": "~0.5.0", | ||
"multibase": "~0.6.0", | ||
"multicodec": "~0.2.7", | ||
@@ -46,3 +45,3 @@ "multihashes": "~0.4.14" | ||
"devDependencies": { | ||
"aegir": "^15.2.0", | ||
"aegir": "^17.0.0", | ||
"chai": "^4.1.2", | ||
@@ -49,0 +48,0 @@ "dirty-chai": "^2.0.1", |
@@ -8,2 +8,3 @@ # js-cid | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/ipld/js-cid.svg)](https://greenkeeper.io/) | ||
@@ -73,3 +74,3 @@ > [CID](https://github.com/ipld/cid) implementation in JavaScript. | ||
### CID.isCid(cid) | ||
### CID.isCID(cid) | ||
@@ -76,0 +77,0 @@ Returns true if object is a valid CID instance, false if not valid. |
@@ -20,2 +20,11 @@ 'use strict' | ||
/** | ||
* Test if the given input is a CID. | ||
* @function isCID | ||
* @memberof CID | ||
* @static | ||
* @param {any} other | ||
* @returns {bool} | ||
*/ | ||
/** | ||
* Class representing a CID `<mbase><version><mcodec><mhash>` | ||
@@ -25,3 +34,3 @@ * , as defined in [ipld/cid](https://github.com/ipld/cid). | ||
*/ | ||
const CID = withIs(class { | ||
class CID { | ||
/** | ||
@@ -157,3 +166,3 @@ * Create a new CID. | ||
return new CID(0, this.codec, this.multihash) | ||
return new _CID(0, this.codec, this.multihash) | ||
} | ||
@@ -167,3 +176,3 @@ | ||
toV1 () { | ||
return new CID(1, this.codec, this.multihash) | ||
return new _CID(1, this.codec, this.multihash) | ||
} | ||
@@ -236,3 +245,5 @@ | ||
} | ||
}, { | ||
} | ||
const _CID = withIs(CID, { | ||
className: 'CID', | ||
@@ -242,4 +253,4 @@ symbolName: '@ipld/js-cid/CID' | ||
CID.codecs = codecs | ||
_CID.codecs = codecs | ||
module.exports = CID | ||
module.exports = _CID |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
519947
13
5162
155
1
+ Addedmultibase@0.6.1(transitive)
- Removedbase-x@3.0.4(transitive)
- Removedmultibase@0.5.0(transitive)
Updatedmultibase@~0.6.0