Skip to content

Commit

Permalink
fix: fix types for JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
li0ard committed Jan 28, 2025
1 parent 3e35f81 commit eb6ba88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: bun i

- name: Publish package
run: bunx --bun jsr publish
run: bunx --bun jsr publish --allow-slow-types
4 changes: 2 additions & 2 deletions src/crapto1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Crapto1 {
rresp2: number = 0;
key: bigint = -1n;

static CraptoData = class{
static CraptoData = class {
uid: number = 0;
chal: number[] = [];
rchal: number[] = [];
Expand Down Expand Up @@ -256,7 +256,7 @@ export class Crapto1 {
return ret;
}

crypto1_get_lfsr(state: Crypto1State[], t: number, lfsr: bigint) {
crypto1_get_lfsr(state: Crypto1State[], t: number, lfsr: bigint): bigint {
let i: number;
for (lfsr = 0n, i = 23; i >= 0; --i) {
lfsr = lfsr << 1n | BigInt(this.bit(state[t].odd, i ^ 3));
Expand Down

0 comments on commit eb6ba88

Please sign in to comment.