Socket
Socket
Sign inDemoInstall

multiformats

Package Overview
Dependencies
Maintainers
2
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiformats - npm Package Compare versions

Comparing version 9.6.0 to 9.6.1

3

cjs/src/hashes/identity.js

@@ -17,5 +17,2 @@ 'use strict';

exports.code = code;
exports.digest = digest;
exports.identity = identity;
exports.name = name;

6

esm/src/hashes/identity.js
import { coerce } from '../bytes.js';
import * as Digest from './digest.js';
export const code = 0;
export const name = 'identity';
export const digest = input => Digest.create(code, coerce(input));
const code = 0;
const name = 'identity';
const digest = input => Digest.create(code, coerce(input));
export const identity = {

@@ -7,0 +7,0 @@ code,

{
"name": "multiformats",
"version": "9.6.0",
"version": "9.6.1",
"description": "Interface for multihash, multicodec, multibase and CID",

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

import { coerce } from '../bytes.js'
import * as Digest from './digest.js'
export const code = 0x0
export const name = 'identity'
const code = 0x0
const name = 'identity'

@@ -11,5 +11,5 @@ /**

*/
export const digest = (input) => Digest.create(code, coerce(input))
const digest = (input) => Digest.create(code, coerce(input))
/** @type {import('./interface').SyncMultihashHasher<typeof code>} */
export const identity = { code, name, digest }

@@ -7,5 +7,2 @@ import { CID } from "./index.js";

export const hashes: {
code: 0;
name: "identity";
digest: (input: Uint8Array) => digest.Digest<0, number>;
identity: import("./hashes/interface.js").SyncMultihashHasher<0>;

@@ -12,0 +9,0 @@ sha256: hasher.Hasher<"sha2-256", 18>;

@@ -1,7 +0,5 @@

export const code: 0;
export const name: "identity";
export function digest(input: Uint8Array): Digest.Digest<typeof code, number>;
/** @type {import('./interface').SyncMultihashHasher<typeof code>} */
export const identity: import('./interface').SyncMultihashHasher<typeof code>;
import * as Digest from "./digest.js";
declare const code: 0;
export {};
//# sourceMappingURL=identity.d.ts.map

Sorry, the diff of this file is not supported yet

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