Skip to content

Commit 1076294

Browse files
committed
Added jsr.json
1 parent 1e0c186 commit 1076294

File tree

8 files changed

+47
-17
lines changed

8 files changed

+47
-17
lines changed

.github/workflows/publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Publish package
19+
run: npx jsr publish

browser/argon2id_worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bun.lockb

389 Bytes
Binary file not shown.

dist/argon2id_worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsr.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@rabbit-company/argon2id",
3+
"version": "2.0.1",
4+
"exports": "./src/argon2id.ts",
5+
"publish": {
6+
"include": [
7+
"LICENSE",
8+
"README.md",
9+
"src/argon2id.ts",
10+
"src/argon2id_worker.ts",
11+
"src/argon2id_wasm.js",
12+
"src/argon2id_wasm.d.ts",
13+
"src/argon2id_wasm_bg.wasm",
14+
"src/argon2id_wasm_bg.wasm.d.ts"
15+
]
16+
}
17+
}

module/argon2id_worker.js

+1-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rabbit-company/argon2id",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Argon2id hash function",
55
"main": "./module/argon2id.js",
66
"browser": "./module/argon2id.js",
@@ -41,12 +41,12 @@
4141
"security"
4242
],
4343
"devDependencies": {
44-
"@types/bun": "latest",
44+
"@types/bun": "^1.1.8",
4545
"bun-plugin-dts": "^0.2.3",
4646
"wasm-pack": "^0.13.0",
4747
"@rabbit-company/logger": "^4.0.0"
4848
},
4949
"peerDependencies": {
50-
"typescript": "^5.0.0"
50+
"typescript": "^5.5.4"
5151
}
5252
}

src/argon2id_worker.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import init, {argon2id_hash} from "./argon2id_wasm.js";
1+
import init, { argon2id_hash } from "./argon2id_wasm.js";
22

33
onmessage = (e) => {
4-
init().then(() => {
5-
postMessage({ output: argon2id_hash(e.data[0], e.data[1], e.data[2], e.data[3], e.data[4], e.data[5]) });
6-
}).catch(error =>{
7-
postMessage({error})
8-
});
9-
}
4+
init()
5+
.then(() => postMessage({ output: argon2id_hash(e.data[0], e.data[1], e.data[2], e.data[3], e.data[4], e.data[5]) }))
6+
.catch((error) => postMessage({ error }));
7+
};

0 commit comments

Comments
 (0)