Deno
Deno is a JavaScript/TypeScript runtime with secure defaults and a great developer experience. It's built on V8, Rust, and Tokio.
- Secure by default. No file, network, or environment access (unless explicitly enabled).
- Supports TypeScript out of the box.
- Ships a single executable (deno).
- Has built in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
- Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno.
- Scripts can be bundled into a single javascript file.
Here are 2,505 public repositories matching this topic...
-
Updated
Sep 8, 2021 - JavaScript
Hello there! After some experimentation with the mocking API, I discovered that mocked contexts do not provide a mocked Cookies instance. Suppose we wanted to test the following middleware:
// session.ts
// Explicit type annotations omitted for brevity...
export function checkSession(ctx) {
const maybeSessionId = ctx.cookies.get('sid');
ctx.assert(maybeSessionId, St-
Updated
Sep 11, 2021 - JavaScript
Is your feature request related to a problem? Please describe.
支持自动检测框架的覆盖范围仅仅支持了几个常见前端框架和函数,还可以拓展更多的框架和语言来提升体验
这块的实现是基于配置式的,可以比较轻松拓展一个新框架的支持
https://github.com/TencentCloudBase/cloudbase-framework/blob/master/packages/framework-core/src/detect-frameworks/frameworks.ts
大家可以通过这个快速参与进核心代码的开发当中,目前可以考虑支持的框架和技术有 Hexo, Egg, Koa, Express, Koa , Docker 容器等
- Vue
- React
- V
-
Updated
Sep 1, 2021 - TypeScript
-
Updated
Aug 17, 2021 - JavaScript
If you perform C-h f and read the dialog, it can link you to the implementation for that function.
There isn't any technical barrier to do this for JS/TS.
-
Updated
Sep 12, 2021 - Rust
-
Updated
May 17, 2021 - Rust
Not sure if this is the correct way to do it, but I wanted to save a cache script I could easily run.
"cache": {
"desc": "Cache versions and update lock file",
"cmd": "deno cache server.ts --lock-write",
"lock": "./lock.json"
}
The result however when running denon cache is an endless loop instead of just executing it once, looks like this:
![Skärmavbild
Events
-
Updated
Jul 22, 2021 - TypeScript
-
Updated
Sep 12, 2021 - TypeScript
-
Updated
Aug 12, 2021 - TypeScript
-
Updated
Sep 2, 2021 - TypeScript
At the moment you need to do:
# Compile the handler (and fetch dependencies into DENO_DIR).
DENO_DIR=.deno_dir deno fetch hello.ts
# This is the "remapping" step:
cp -R .deno_dir/gen/file/$PWD/ .deno_dir/LAMBDA_TASK_ROOT
# Note: We do the inverse of this operation in bootstrap.
zip lambda.zip -x '.deno_dir/gen/file/*' -r .d
Currently the error message of the exception, thrown from the
Deno.stat/statSync, when the file is missing, does not include the file name: