From 9ea7cb3880467c7d6edfdad5751465b90b12d87b Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 3 Jan 2025 03:06:57 +0000 Subject: [PATCH] Try to fix jsr --- jsr.json | 2 +- src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jsr.json b/jsr.json index 19860de..0c20fb7 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@noble/hashes", - "version": "1.7.0-2", + "version": "1.7.0-3", "exports": { ".": "./src/index.ts", "./crypto": "./src/crypto.ts", diff --git a/src/index.ts b/src/index.ts index 987a051..bd1520b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,7 @@ * Audited & minimal JS implementation of hash functions, MACs and KDFs. Check out individual modules. * @module * @example +```js import { sha256, sha384, sha512, sha224, sha512_256, sha512_384 } from '@noble/hashes/sha2'; import { sha3_224, sha3_256, sha3_384, sha3_512, @@ -25,5 +26,6 @@ import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; import { scrypt, scryptAsync } from '@noble/hashes/scrypt'; import { sha1 } from '@noble/hashes/sha1'; // legacy import * as utils from '@noble/hashes/utils'; +``` */ throw new Error('root module cannot be imported: import submodules instead. Check out README');