Skip to content

Commit c16b001

Browse files
authored
feat: add ability to import ECDSA JWK keys via crypto.subtle.importKey (#639)
1 parent d4a4538 commit c16b001

File tree

19 files changed

+2416
-163
lines changed

19 files changed

+2416
-163
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaults:
1010
run:
1111
shell: bash
1212
env:
13-
viceroy_version: 0.5.1
13+
viceroy_version: 0.7.0
1414
wasm-tools_version: 1.0.28
1515
fastly-cli_version: 10.3.0
1616

@@ -133,7 +133,7 @@ jobs:
133133
matrix:
134134
include:
135135
- crate: viceroy
136-
version: 0.5.1 # Note: workflow-level env vars can't be used in matrix definitions
136+
version: 0.7.0 # Note: workflow-level env vars can't be used in matrix definitions
137137
options: ""
138138
- crate: wasm-tools
139139
version: 1.0.28 # Note: workflow-level env vars can't be used in matrix definitions

integration-tests/js-compute/assertions.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@ export function pass(message = '') {
3535
export function fail(message = '') {
3636
return new Response(message, { status: 500 })
3737
}
38-
38+
function prettyPrintSymbol (a) {
39+
if (typeof a === "symbol") {
40+
return String(a)
41+
}
42+
return a
43+
}
3944
export function assert(actual, expected, code) {
4045
if (!deepEqual(actual, expected)) {
41-
return fail(`Expected \`${code}\` to equal \`${JSON.stringify(expected)}\` - Found \`${JSON.stringify(actual)}\``)
46+
return fail(`Expected \`${code}\` to equal \`${JSON.stringify(prettyPrintSymbol(expected))}\` - Found \`${JSON.stringify(prettyPrintSymbol(actual))}\``)
4247
}
4348
}
4449

integration-tests/js-compute/fixtures/crypto/bin/index.js

Lines changed: 347 additions & 100 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)