Kevin (Kun) "Kassimo" Qian
65dd0d516d
Simplify src fetch logic and auto append suffix in cache search ( #1322 )
2018-12-12 02:34:12 -05:00
Ryan Dahl
8d3e8b1c64
Remove dead code: ASSET_PREFIX
2018-12-11 15:06:56 -05:00
Ryan Dahl
acd9fa2298
deno_dir: move tests into submodule
2018-12-11 15:06:56 -05:00
Ryan Dahl
52079b26db
Minor rename for CodeFetch parameters
...
This bring it inline with terminology used in V8
See ResolveCallback in v8.h
2018-12-11 15:06:56 -05:00
Ryan Dahl
9a960b9f58
Use stderr for exceptions ( #1303 )
2018-12-10 17:50:41 -05:00
Kevin (Kun) "Kassimo" Qian
0d3584cf46
Don't crash when .mime file not exist in cache ( #1291 )
2018-12-07 13:39:10 -05:00
Ryan Dahl
c113df1bb8
Process source maps in Rust instead of JS ( #1280 )
...
- Improves speed and binary size significantly.
- Makes deno_last_exception() output a JSON structure.
- Isolate::execute and Isolate::event_loop now return
structured, mapped JSError objects on errors.
- Removes libdeno functions:
libdeno.setGlobalErrorHandler()
libdeno.setPromiseRejectHandler()
libdeno.setPromiseErrorExaminer()
In collaboration with Ryan Dahl.
2018-12-06 23:05:36 -05:00
Andy Hayden
aab02805dd
clippy fixes ( #1250 )
2018-11-30 00:30:49 -08:00
F001
b6fda735ee
Replace mutex by atomics ( #1238 )
2018-11-29 19:03:00 -08:00
Ryan Dahl
f88fa2dcf8
Support shebang
2018-11-16 08:05:13 +08:00
Ryan Dahl
d7abdfe754
Simplify NotFound code.
2018-11-16 08:05:13 +08:00
Ryan Dahl
98e6366cb5
Local filenames starting with 'http' shouldn't be remote. ( #1167 )
2018-11-08 10:38:54 -08:00
Andy Hayden
13e1eb2b87
Fix many of the clippy::pedantic warnings
2018-11-06 06:43:02 -08:00
Andy Hayden
1241b8e9ba
Fix clippy warnings ( #1149 )
...
Run with: cargo clippy
https://github.com/rust-lang-nursery/rust-clippy
2018-11-04 06:04:24 -08:00
Kitson Kelly
8b39d2c99e
Separate source map from output code.
2018-10-29 08:16:35 -07:00
Kevin (Kun) "Kassimo" Qian
a68403d090
Add application/x-typescript mime type support
2018-10-28 11:18:53 -07:00
Kevin (Kun) "Kassimo" Qian
8500b78955
Add separate http/https cache dirs to DENO_DIR ( #971 )
...
Also change remote relative import logic.
2018-10-26 06:55:05 -07:00
Kitson Kelly
8ef7da2611
Enforce media types
2018-10-23 04:48:00 -07:00
Ryan Dahl
417ea7bb6d
src/http.rs -> src/http_util.rs
...
So as not to conflict with http crate.
2018-10-10 14:29:55 -04:00
Kevin (Kun) "Kassimo" Qian
eba58b7188
Guess extensions on extension not provided ( #859 )
...
Fixes #857
2018-10-02 12:38:45 -04:00
Ryan Dahl
7c128df4a0
Use lazy_static for HttpsConnector
...
And rename net.rs to http.rs
Share HTTP connection.
2018-09-25 17:02:49 -04:00
Kevin (Kun) "Kassimo" Qian
c7a4ca3c88
Use dirs::home_dir
to replace deprecated std::env::home_dir
2018-09-16 18:39:07 -07:00
Kevin (Kun) "Kassimo" Qian
662e57b20a
[fs] Enable mode for mkdir
on unix ( #746 )
2018-09-14 12:30:43 -07:00
Kevin (Kun) "Kassimo" Qian
05f87a0cf2
Move writeFileSync to write_file.ts, add writeFile and tests ( #728 )
2018-09-11 12:00:57 -04:00
Ryan Dahl
e2a285b871
Better NotFound error handling in CodeFetch
...
throwResolutionError was swallowing unrelated errors.
2018-09-09 23:12:22 -04:00
Ryan Dahl
e4990804fa
Improve module resolution.
...
Windows can't handle ":" in path names, so we use a special directory
format .deno/deps/localhost_PORT4545/ to represent hosts with
non-default ports.
Fixes #645 .
2018-09-05 22:27:23 -04:00
Ryan Dahl
d8d5c421c3
Support https imports.
...
Adds hyper-rustls to the build.
Use ring for sha1 instead of "ssh1" crate.
Fixes #528 .
2018-08-30 08:29:28 -04:00
Aaron Power
3a5cf9ca8b
Replaced read_file_sync{_string} with std::fs::read{_to_string}
2018-08-26 11:00:22 -04:00
Ryan Dahl
ecb955929f
Normalize windows paths.
...
Add resolve_module test
2018-08-23 09:41:08 -04:00
Ryan Dahl
e2f9b0e6fd
First pass at HTTP imports
...
Implement --reload
Integrate hyper errors into DenoError
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-23 09:41:08 -04:00
Ryan Dahl
18d495c7d1
Better error handling in src/handlers.rs
...
Introduces error codes that are shared between JS/RS
Fixes #526 .
2018-08-21 15:37:45 -04:00
Ryan Dahl
72544de443
Add fs::read_file_sync_string
2018-08-09 14:27:46 -07:00
Ryan Dahl
51380bf399
Organize libdeno functions.
2018-08-08 18:35:26 -07:00
Ryan Dahl
69f73ee368
Hacky error handling for Url::from_file_path.
2018-08-08 18:35:26 -07:00
Ryan Dahl
d8b68648d1
Update repo links to denoland.
2018-08-02 23:12:49 -04:00
Ryan Dahl
4d386e9e1c
Implement CodeCache
2018-07-29 00:22:39 -04:00