1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/std
sarahdenofiletrav 28869a632d
fix(std/http): prevent path traversal (#8474)
Fix path traversal problem when the request URI 
does not have a leading slash.

The file server now returns HTTP 400 when requests 
lack the leading slash, and are not absolute URIs. 
(https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html).
2020-11-26 22:31:19 +01:00
..
_util refactor(std): remove unnecessary back direction for import (#8403) 2020-11-17 10:24:21 +11:00
archive build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
async docs(std/async): fix a couple typos in std/async/README.md (#8388) 2020-11-15 13:57:36 +01:00
bytes docs(std/bytes): add missing docs to README (#7885) 2020-10-08 15:39:02 -04:00
datetime build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
encoding fix(std/encoding/csv): Correct readme formatting due to dprint issues (#8503) 2020-11-26 15:52:45 +01:00
examples feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00
flags build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
fmt docs(std/fmt): add JSDoc (#8278) 2020-11-07 09:05:37 -05:00
fs test(std): make test output less noisy (#8445) 2020-11-20 18:01:58 +01:00
hash feat(std/hash): add the sha1Hmac (#8418) 2020-11-19 07:09:30 -05:00
http fix(std/http): prevent path traversal (#8474) 2020-11-26 22:31:19 +01:00
io build: fix linting problems (#8431) 2020-11-19 15:19:37 +01:00
log feat(std/log): Log error stack (#8401) 2020-11-19 06:58:53 -05:00
mime build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
node feat(std/node/stream): Add Duplex, Transform, Passthrough, pipeline, finished and promises (#7940) 2020-11-26 13:50:08 +01:00
path docs(std/path): add missing JSDoc (#8282) 2020-11-21 19:23:24 +01:00
permissions Use dprint for internal formatting (#6682) 2020-07-14 15:24:17 -04:00
signal build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
testing docs(std): add missing jsdoc comments to exported functions (#8442) 2020-11-19 21:59:45 -05:00
textproto chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
uuid build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
wasi feat(std/wasi): add start method to Context (#8141) 2020-11-02 18:50:45 +01:00
ws feat(std/ws): protocol & version support (#8505) 2020-11-26 16:38:15 +01:00
README.md chore(std): edit style guide link to deno manual (#6490) 2020-07-14 14:54:13 +02:00
tsconfig_test.json feat(unstable): revert "enable importsNotUsedAsValues by default #7413" (#7800) 2020-10-03 16:40:26 +02:00
version.ts v1.5.4 2020-11-23 15:10:58 +01:00

Deno Standard Modules

These modules do not have external dependencies and they are reviewed by the Deno core team. The intention is to have a standard set of high quality code that all Deno projects can use fearlessly.

Contributions are welcome!

How to use

These modules will eventually be tagged in accordance with Deno releases but as of today we do not yet consider them stable and so we version the standard modules differently from the Deno runtime to reflect this.

It is strongly recommended that you link to tagged releases to avoid unintended updates and breaking changes.

Don't link to / import any module whose path:

  • Has a name or parent with an underscore prefix: _foo.ts, _util/bar.ts.
  • Is that of a test module or test data: test.ts, foo_test.ts, testdata/bar.txt.

Don't import any symbol with an underscore prefix: export function _baz() {}.

These elements are not considered part of the public API, thus no stability is guaranteed for them.

Documentation

To browse documentation for modules:

Contributing

deno_std is a loose port of Go's standard library. When in doubt, simply port Go's source code, documentation, and tests. There are many times when the nature of JavaScript, TypeScript, or Deno itself justifies diverging from Go, but if possible we want to leverage the energy that went into building Go. We generally welcome direct ports of Go's code.

Please ensure the copyright headers cite the code's origin.

Follow the style guide.