mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
BREAKING CHANGE: createRemoteJWKSet now uses fetch, because of that its Node.js only options.agent property has been removed and new fetch-related options were added
20 lines
459 B
Bash
Executable File
20 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source .node_flags.sh
|
|
|
|
node tap/run-node.ts
|
|
WEB_CRYPTO_API=$?
|
|
|
|
node tap/run-node.ts --keys='KeyObject'
|
|
WEB_CRYPTO_API_WITH_KEYOBJECT=$?
|
|
|
|
echo ""
|
|
echo "Node.js with CryptoKey inputs"
|
|
test $WEB_CRYPTO_API -eq 0 && echo " passed" || echo " failed"
|
|
|
|
echo ""
|
|
echo "Node.js with KeyObject inputs"
|
|
test $WEB_CRYPTO_API_WITH_KEYOBJECT -eq 0 && echo " passed" || echo " failed"
|
|
|
|
test $WEB_CRYPTO_API -eq 0 && test $WEB_CRYPTO_API_WITH_KEYOBJECT -eq 0
|