New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atcute/cid

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atcute/cid - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/index.js

@@ -11,3 +11,3 @@ /**

*/
import * as base32 from '@atcute/base32';
import { fromBase32, toBase32 } from '@atcute/multibase';
import * as varint from '@atcute/varint';

@@ -21,3 +21,3 @@ /**

}
const bytes = base32.decode(cid.slice(1));
const bytes = fromBase32(cid.slice(1));
return decode(bytes);

@@ -109,3 +109,3 @@ };

export const format = (cid) => {
return 'b' + base32.encode(cid.bytes);
return 'b' + toBase32(cid.bytes);
};

@@ -112,0 +112,0 @@ export const createDigest = (code, digest) => {

@@ -12,3 +12,3 @@ /**

import * as base32 from '@atcute/base32';
import { fromBase32, toBase32 } from '@atcute/multibase';
import * as varint from '@atcute/varint';

@@ -56,3 +56,3 @@

const bytes = base32.decode(cid.slice(1));
const bytes = fromBase32(cid.slice(1));
return decode(bytes);

@@ -160,3 +160,3 @@ };

export const format = (cid: CID): string => {
return 'b' + base32.encode(cid.bytes);
return 'b' + toBase32(cid.bytes);
};

@@ -163,0 +163,0 @@

{
"type": "module",
"name": "@atcute/cid",
"version": "1.0.2",
"version": "1.0.3",
"description": "create and parse AT Protocol-blessed CIDv1 format",

@@ -25,3 +25,3 @@ "license": "MIT",

"dependencies": {
"@atcute/base32": "^1.0.1",
"@atcute/multibase": "^1.0.0",
"@atcute/varint": "^1.0.1"

@@ -28,0 +28,0 @@ },

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