Runtime helper library for serverless apps built with [Architect][Deno]
import arc from 'https://raw.githubusercontent.com/architect/functions-deno/main/src/index.js'
export const handler = arc.http.async( (event: Record<string, unknown>) => {
console.log(JSON.stringify(event, null, 2));
return {
location: "/"
}
});
- I've updated the arc-example-login-flow example to the Deno runtime https://github.com/hicksy/deno-arc-example-login-flow
Integration only:
deno test --allow-run --allow-read --allow-env --allow-write --allow-net --unstable ./test/integration
Unit only:
deno test --allow-run --allow-read --allow-env --allow-write --allow-net --unstable ./test/unit
-
Deno.run
use to launch a sub process ofarc sandbox
within the mock path - not possible to directly call sandbox through JS -
Having to use
sanitizeResources: false,sanitizeOps: false
onDeno.test
quite a bit - does this suggest a problem in the codebase / the tests / or is this safe?
- unexpress (src/https/express)
- JWE - Session tokens incompatible with node/ruby/python - currently there's no availaility of a library that uses the A128GCM algorithm. Possible that if webcrypto APIs are implemented in Deno then jose would be available.
- no zlib.
compress.js
usesgzipDecode/ gzipEncode
,deflate/inflate
andcompress/decompress
(brotli) instead
Test with suffix .test-fail.js
are skipped, we need to refactor based on:
- No
mockfs
equivalant and can't use Skypack / jspm, - No
proxyquire