Skip to content

Commit

Permalink
feat: add ability to import ECDSA JWK keys via crypto.subtle.importKey (
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Sep 13, 2023
1 parent d4a4538 commit c16b001
Show file tree
Hide file tree
Showing 19 changed files with 2,416 additions and 163 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -10,7 +10,7 @@ defaults:
run:
shell: bash
env:
viceroy_version: 0.5.1
viceroy_version: 0.7.0
wasm-tools_version: 1.0.28
fastly-cli_version: 10.3.0

Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
matrix:
include:
- crate: viceroy
version: 0.5.1 # Note: workflow-level env vars can't be used in matrix definitions
version: 0.7.0 # Note: workflow-level env vars can't be used in matrix definitions
options: ""
- crate: wasm-tools
version: 1.0.28 # Note: workflow-level env vars can't be used in matrix definitions
Expand Down
9 changes: 7 additions & 2 deletions integration-tests/js-compute/assertions.js
Expand Up @@ -35,10 +35,15 @@ export function pass(message = '') {
export function fail(message = '') {
return new Response(message, { status: 500 })
}

function prettyPrintSymbol (a) {
if (typeof a === "symbol") {
return String(a)
}
return a
}
export function assert(actual, expected, code) {
if (!deepEqual(actual, expected)) {
return fail(`Expected \`${code}\` to equal \`${JSON.stringify(expected)}\` - Found \`${JSON.stringify(actual)}\``)
return fail(`Expected \`${code}\` to equal \`${JSON.stringify(prettyPrintSymbol(expected))}\` - Found \`${JSON.stringify(prettyPrintSymbol(actual))}\``)
}
}

Expand Down
447 changes: 347 additions & 100 deletions integration-tests/js-compute/fixtures/crypto/bin/index.js

Large diffs are not rendered by default.

0 comments on commit c16b001

Please sign in to comment.