Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cids

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cids - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

dist/index.js

12

CHANGELOG.md

@@ -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)

7

package.json
{
"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
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