Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/validate-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:

- name: Run TypeScript # Reviewdog tsc errorformat: %f:%l:%c - error TS%n: %m
run: |
bun tsc | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee
set -o pipefail
bun tsc 2>&1 | sed 's/^[^ ]* typescript: //' | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
10 changes: 5 additions & 5 deletions example/src/tests/subtle/wrap_unwrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test(SUITE, 'wrap/unwrap AES-256 with AES-KW', async () => {
);

// Verify keys are functionally identical
const plaintext = getRandomValues(new Uint8Array(32));
const plaintext = getRandomValues(new Uint8Array(32)) as Uint8Array;
const iv = getRandomValues(new Uint8Array(12));

const ct1 = await subtle.encrypt(
Expand Down Expand Up @@ -184,7 +184,7 @@ test(SUITE, 'wrap/unwrap with AES-CBC', async () => {
['encrypt', 'decrypt'],
);

const plaintext = getRandomValues(new Uint8Array(32));
const plaintext = getRandomValues(new Uint8Array(32)) as Uint8Array;
const gcmIv = getRandomValues(new Uint8Array(12));

const ct = await subtle.encrypt(
Expand Down Expand Up @@ -237,7 +237,7 @@ test(SUITE, 'wrap/unwrap with AES-OCB', async () => {
['encrypt', 'decrypt'],
);

const plaintext = getRandomValues(new Uint8Array(32));
const plaintext = getRandomValues(new Uint8Array(32)) as Uint8Array;
const gcmIv = getRandomValues(new Uint8Array(12));

const ct = await subtle.encrypt(
Expand Down Expand Up @@ -343,7 +343,7 @@ test(SUITE, 'wrap/unwrap with RSA-OAEP', async () => {
['encrypt', 'decrypt'],
);

const plaintext = getRandomValues(new Uint8Array(32));
const plaintext = getRandomValues(new Uint8Array(32)) as Uint8Array;
const iv = getRandomValues(new Uint8Array(12));

const ct = await subtle.encrypt(
Expand Down Expand Up @@ -396,7 +396,7 @@ test(SUITE, 'wrap/unwrap with ChaCha20-Poly1305', async () => {
['encrypt', 'decrypt'],
);

const plaintext = getRandomValues(new Uint8Array(32));
const plaintext = getRandomValues(new Uint8Array(32)) as Uint8Array;
const gcmIv = getRandomValues(new Uint8Array(12));

const ct = await subtle.encrypt(
Expand Down
Loading