1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
Bartek Iwańczuk f32c31a0eb dx: descriptive permission errors (#3808)
Before:
```
▶ target/debug/deno https://deno.land/std/examples/echo_server.ts
error: Uncaught PermissionDenied: run again with the --allow-net flag
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendSync ($deno$/dispatch_json.ts:67:10)
    at listen ($deno$/net.ts:170:15)
    at https://deno.land/std/examples/echo_server.ts:4:23
```

```
▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd
error: Uncaught PermissionDenied: run again with the --allow-read flag
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:91:10)
```

After:
```
▶ target/debug/deno https://deno.land/std/examples/echo_server.ts
error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendSync ($deno$/dispatch_json.ts:67:10)
    at listen ($deno$/net.ts:170:15)
    at https://deno.land/std/examples/echo_server.ts:4:23
```

```
▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd
error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:91:10)
```
2020-01-27 21:13:17 -05:00
.github fix cargo-publish-on-tag (#3781) 2020-01-24 14:24:27 -05:00
cli dx: descriptive permission errors (#3808) 2020-01-27 21:13:17 -05:00
core refactor: Modules and Loader trait (#3791) 2020-01-25 18:53:16 +01:00
deno_typescript refactor: isomorphic snapshot for CLI (#3728) 2020-01-27 21:12:25 -05:00
std dx: descriptive permission errors (#3808) 2020-01-27 21:13:17 -05:00
test_plugin s/PinnedBuf/ZeroCopyBuf (#3782) 2020-01-24 15:10:49 -05:00
third_party@9ab7948049 Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
tools Improve support of type definitions (#3755) 2020-01-26 13:59:41 -05:00
.editorconfig editorconfig: Don't insert final newline in .out files (#1686) 2019-02-07 11:31:49 -05:00
.eslintignore feat(std/node) add CommonJS require (#3380) 2019-11-19 01:54:20 -05:00
.eslintrc.json Remove tsconfig files - they are not part of build process (#3262) 2019-11-04 18:13:28 -05:00
.gitattributes Upgrade node_modules, change tagline, clean up root directory (#3247) 2019-10-31 19:33:27 -07:00
.gitignore Update .gitignore 2019-12-02 08:05:29 -08:00
.gitmodules Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
.prettierignore Loader: support .wasm imports (#3328) 2019-11-14 08:31:39 -05:00
.prettierrc.json tools/format: format markdown files with prettier 2018-10-04 02:02:23 -07:00
.rustfmt.toml change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
Cargo.lock v0.31.0 2020-01-24 11:07:53 -05:00
Cargo.toml feat: first pass at native plugins (#3372) 2019-12-05 15:30:20 -05:00
LICENSE change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
README.md Upgrade node_modules, change tagline, clean up root directory (#3247) 2019-10-31 19:33:27 -07:00
Releases.md v0.31.0 2020-01-24 11:07:53 -05:00
tests Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00

Deno

A secure runtime for JavaScript and TypeScript.

Build Status

Deno aims to provide a productive and secure scripting environment for the modern programmer. It is built on top of V8, Rust, and TypeScript.

Please read the introduction for more specifics.

Website

Manual

Install

API Reference

Style Guide

Module Repository

Releases

Chat

More links