multiformats
Advanced tools
Comparing version 9.6.0 to 9.6.1
@@ -17,5 +17,2 @@ 'use strict'; | ||
exports.code = code; | ||
exports.digest = digest; | ||
exports.identity = identity; | ||
exports.name = name; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
507851
14567