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

@digix/multi-hash

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digix/multi-hash - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

@@ -39,3 +39,3 @@ "use strict";

decode: function (hash) {
if (hash && hash.constructor === String && hash.slice(0, 2) === "Dg") {
if (hash && hash.constructor === String && (hash.slice(0, 2) === "Dg" || hash.slice(0, 2) === "Qm")) {
if (hash.length !== 46) {

@@ -42,0 +42,0 @@ throw new Error("length error: expected hash+tag length of 46");

{
"name": "@digix/multi-hash",
"version": "0.0.1",
"version": "0.0.2",
"description": "Digix Fork of Multi-hash encoder/decoder",

@@ -5,0 +5,0 @@ "main": "index.js",

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