Socket
Socket
Sign inDemoInstall

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 1.0.1 to 1.0.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="1.0.2"></a>
## [1.0.2](https://github.com/multiformats/js-cid/compare/v1.0.1...v1.0.2) (2020-10-14)
### Bug Fixes
* improve CID typings ([4948267](https://github.com/multiformats/js-cid/commit/4948267))
<a name="1.0.1"></a>

@@ -2,0 +12,0 @@ ## [1.0.1](https://github.com/multiformats/js-cid/compare/v1.0.0...v1.0.1) (2020-09-25)

4

package.json
{
"name": "cids",
"version": "1.0.1",
"version": "1.0.2",
"description": "CID Implementation in JavaScript",

@@ -60,4 +60,4 @@ "leadMaintainer": "Volker Mische <volker.mische@gmail.com>",

"Enrico Marino <enrico.marino@email.com>",
"Irakli Gozalishvili <contact@gozala.io>",
"Oli Evans <oli@tableflip.io>",
"Irakli Gozalishvili <contact@gozala.io>",
"Alex Potsides <alex@achingbrain.net>",

@@ -64,0 +64,0 @@ "Hugo Dias <hugomrdias@gmail.com>",

@@ -32,3 +32,3 @@ /**

constructor(
version: 0 | 1,
version: CIDVersion,
codec: string | number,

@@ -38,5 +38,3 @@ multhash: Uint8Array,

);
constructor(cid: CID);
constructor(str: string);
constructor(buf: Uint8Array);
constructor(cid: CID|string|Uint8Array);

@@ -46,8 +44,9 @@ /**

*/
version: number;
readonly version: CIDVersion;
/**
* The codec of the CID.
* @deprecated
*/
codec: string;
readonly codec: string;

@@ -57,3 +56,3 @@ /**

*/
code: number;
readonly code: number;

@@ -63,8 +62,9 @@ /**

*/
multihash: Uint8Array;
readonly multihash: Uint8Array;
/**
* Multibase name as string.
* @deprecated
*/
multibaseName: string;
readonly multibaseName: string;

@@ -78,2 +78,3 @@ /**

* The prefix of the CID.
* @deprecated
*/

@@ -129,2 +130,4 @@ readonly prefix: Uint8Array;

type CIDVersion = 0|1
export = CID

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