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.7.1 to 0.7.2

dist/index.min.js.LICENSE

17

CHANGELOG.md

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

14

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

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