1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
Commit graph

50 commits

Author SHA1 Message Date
Yoshiya Hinosawa
f12acdb50b Update @typescript-eslint/* to v2.1.0 (#2878) 2019-09-07 12:27:18 -04:00
迷渡
e9908453df do not export isConsoleInstance (#2850) 2019-09-03 03:10:51 -04:00
Ryan Dahl
d43b43ca78
Refactor snapshot build (#2825)
Instead of using core/snapshot_creator.rs, instead two crates are
introduced which allow building the snapshot during build.rs.

Rollup is removed and replaced with our own bundler. This removes
the Node build dependency. Modules in //js now use Deno-style imports
with file extensions, rather than Node style extensionless imports.

This improves incremental build time when changes are made to //js files
by about 40 seconds.
2019-09-02 17:07:11 -04:00
Bartek Iwańczuk
b5a5e97384 add console.dirxml (#2835) 2019-08-29 10:56:26 -04:00
Kitson Kelly
f0a235563e Support custom inspection of objects (#2791) 2019-08-19 11:35:43 -04:00
Kevin (Kun) "Kassimo" Qian
9acb17742f Implement console.trace() (#2780)
groupCollapsed alias to group, remove noTrailingNewline, move newline 
out of stringifyArgs, fix console.dir, add tests, and fix a repl log quirk.
For repl logging quirks, I believe we should not indent repl logging. If
we really want such indentation, we probably also want to indent "> "
prompts.
2019-08-17 12:51:51 -04:00
迷渡
181cfc9fb5 Adjust console constructor (#2649)
https://github.com/denoland/deno/pull/2073#discussion_r303401539
2019-07-17 09:42:04 -04:00
Kitson Kelly
d438a6d259 Upgrade TypeScript to 3.5.1 (#2437) 2019-06-01 11:13:36 -04:00
Kevin (Kun) "Kassimo" Qian
6929aba71d fix: display "-0" for -0 (#2281)
Added special handling code in js/console.ts
2019-05-03 14:01:20 -04:00
Tomislav Fabeta
d940801754 Simplify logic in URLSearchParams, Buffer, Console (#2174) 2019-04-22 10:37:49 -04:00
Ryan Dahl
9dfebbc949
Fix eslint warnings (#2151)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
2019-04-21 16:40:10 -04:00
迷渡
cdb72afd8d fix console instanceof Console (#2073) 2019-04-08 09:25:01 -04:00
迷渡
8c85766198 fix JSDoc (#2043) 2019-04-03 08:53:54 -04:00
迷渡
5f97c041d9 fix console.log when error has been caught (#2041) 2019-04-03 08:38:50 -04:00
Kitson Kelly
c43cfedeba namespace reorg: libdeno and DenoCore to Deno.core (#1998) 2019-03-26 08:22:07 -04:00
Ryan Dahl
842627d6b9 pretty-print long strings 2019-03-20 12:38:59 -04:00
Ryan Dahl
8f334ae568 Improve pretty printing of objects
If an object has more than 5 elements, it is printed in abbeviated form
displaying only the keys. This is useful in the REPL when inspecting
large objects like the Deno namespace:

  > Deno
  { args, noColor, pid, env, exit, isTTY, execPath, chdir, cwd, File,
  open, stdin, stdout, stderr, read, write, seek, close, copy,
  toAsyncIterator, SeekMode, Buffer, readAll, mkdirSync, mkdir,
  makeTempDirSync, makeTempDir, chmodSync, chmod, removeSync, remove,
  renameSync, rename, readFileSync, readFile, readDirSync, readDir,
  copyFileSync, copyFile, readlinkSync, readlink, statSync, lstatSync,
  stat, lstat, symlinkSync, symlink, writeFileSync, writeFile, ErrorKind,
  DenoError, libdeno, permissions, revokePermission, truncateSync,
  truncate, connect, dial, listen, metrics, resources, run, Process,
  inspect, build, platform, version, Console, stringifyArgs,
  DomIterableMixin }
2019-03-20 12:38:59 -04:00
Kitson Kelly
034e2cc028 Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
Kitson Kelly
0473d832c1 Cleanup node_modules, update packages (#1894)
And fix new lint issues.
2019-03-07 08:53:56 -05:00
Bert Belder
2e9d43391f
libdeno: remove prints_newline parameter from libdeno.print() 2019-03-03 19:19:01 -08:00
Kevin (Kun) "Kassimo" Qian
c66d043ac6 Fix console.table display of Map and move tests to unit test (#1839) 2019-02-25 19:11:54 -05:00
Yoshiya Hinosawa
9e942f30b9 refactor: replace any in console (#1804) 2019-02-18 10:31:35 -05:00
Kitson Kelly
c468be64ed Cleanup Deno namespace (#1765) 2019-02-13 08:50:15 -05:00
Kevin (Kun) "Kassimo" Qian
1d36eb47eb Support scoped variables, unblock REPL async op, and REPL error colors (#1721) 2019-02-09 16:55:40 -05:00
Sergey Golovin
f05fd7a1f3 Add console.table (#1608) 2019-01-28 16:41:29 -05:00
binaryta
4a0a47dcde Add console.clear() (#1562) 2019-01-24 13:24:39 -05:00
迷渡
6904628aaa console output with format (#1565) 2019-01-24 12:07:08 -05:00
Yoshiya Hinosawa
cae71ed841 Implement console.groupCollapsed (#1452)
This implementation of groupCollapsed is intentionally different
from the spec defined by whatwg. See the conversation in #1355
and #1363.
2019-01-06 16:34:52 -05:00
Ryan Dahl
2c477dd7cb Happy new year! 2019-01-02 02:37:08 +01:00
Ryan Dahl
6cc998f28b
Remove support for extensionless import (#1396) 2018-12-23 11:44:08 -05:00
Kevin (Kun) "Kassimo" Qian
419000d556 Expose deno.inspect (#1378) 2018-12-19 22:08:49 -05:00
迷渡
04076465cf Add console.count and console.time (#1358) 2018-12-17 11:54:33 -05:00
迷渡
769994bd4e console.assert should not throw error (#1335) 2018-12-14 14:36:08 -05:00
Kevin (Kun) "Kassimo" Qian
8502cb0ccb Avoid Uint8Array.prototype throwing type error in console.log (#1327) 2018-12-12 02:32:24 -05:00
Kevin (Kun) "Kassimo" Qian
1548792fb3 Add more console types formatting support (#1299) 2018-12-10 12:01:02 -05:00
kyraNET
7c6479e28f feat: Support for bigints in console 2018-11-30 22:37:26 -08:00
ztplz
b809a82fd9 Add missing copyrights (#1024) 2018-10-19 15:25:29 -04:00
Kitson Kelly
10a97679ac Align JSDoc to style guide. 2018-10-14 17:38:23 -04:00
Kitson Kelly
ffb41e61f1 Updates to js to clean up default library 2018-10-07 22:52:27 -04:00
Kevin (Kun) "Kassimo" Qian
3a6d4e6260 Bind this to console methods (#873)
Fixes #872
2018-10-01 12:41:37 -04:00
Yingbo (Max) Wang
bcdbfc00f0 Limit depth of output in console.log for nested objects, and add console.dir (#826) 2018-09-30 18:10:20 -04:00
Kevin (Kun) "Kassimo" Qian
1e390e69cd Error pretty print (print stack) 2018-09-26 19:30:43 -04:00
Kevin (Kun) "Kassimo" Qian
f156a86024 console.warn goes to stderr (#810) 2018-09-25 01:27:02 -04:00
Kevin (Kun) "Kassimo" Qian
c124db4701 [console] Use constructor.name to print out function type (#664) 2018-09-24 10:06:48 -04:00
Aaron Power
f43259e5ab Moved console tests to own file, and switched circular test to use stringify with assertEqual 2018-08-27 17:18:37 -04:00
Aaron Power
0f1db89aa6 Fixed printing strings in arrays & objects without quotes 2018-08-27 13:45:29 -04:00
Ryan Dahl
868e8d8866 First pass at fetch()
With help from Thomas Ghysels <info@thomasg.be>
2018-08-20 16:53:39 -04:00
Ryan Dahl
51380bf399 Organize libdeno functions. 2018-08-08 18:35:26 -07:00
Ryan Dahl
9778eceaf5 Use C++ to do flatbuffer parsing.
- Port protobuf messages to flatbuffers.
- Demo linking to rust from C++ executable.
- Start using the prototype TS libraries.
2018-07-06 17:33:06 -04:00
Ryan Dahl
fe404dfce9 Import ts file from prototype without change
From commit 559453cf6c
Excluding v8worker.d.ts, main.ts, and deno.d.ts.

Updates tslint.json to be original settings.
2018-07-06 12:22:11 -04:00