Commit Graph

241 Commits

Author SHA1 Message Date
LongYinan
2b2353068b add headersSent in ServerResponse
missing headersSent in ServerResponse
2015-12-25 12:46:57 +08:00
Masahiro Wakame
2e9d5db50e Merge pull request #7197 from chrootsu/node-events
node: signatures of module "events" have been changed
2015-12-23 17:15:14 +09:00
Masahiro Wakame
093a2b32d4 Merge pull request #7228 from thynson/pbkdf2
Allow pass buffer argument for pbkdf2 function
2015-12-23 15:38:22 +09:00
Masahiro Wakame
0e227a4716 Merge pull request #7225 from chrootsu/node-readline
node: signatures of module "readline" have been changed
2015-12-23 15:29:12 +09:00
Masahiro Wakame
b04ca9062f Merge pull request #7223 from f111fei/master
[node] parameter type of "signal" in process.kill
2015-12-23 15:20:01 +09:00
Horiuchi_H
2e658decf8 Merge pull request #7240 from rogierschouten/node-childprocess-fork-opts
Add all options to child_process.fork()
2015-12-22 19:14:45 +09:00
Horiuchi_H
2048ff32d3 Merge pull request #7239 from rogierschouten/node-http-agent
http.RequestOptions.agent can also be a boolean
2015-12-22 19:14:08 +09:00
Ilya Mochalov
742aa93d86 node: signatures of module "events" have been changed 2015-12-18 01:59:54 +05:00
Rogier Schouten
22997bee70 Add all options to child_process.fork()
https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options
2015-12-17 11:40:40 +01:00
Rogier Schouten
1ebf010a1e http.RequestOptions.agent can also be a boolean
https://nodejs.org/api/http.html#http_http_request_options_callback
2015-12-17 11:31:43 +01:00
Rogier Schouten
725408f135 Add host and port to TlsOptions 2015-12-17 11:04:10 +01:00
LAN Xingcan
5d78b33357 Allow pass buffer argument for pbkdf2 function 2015-12-16 21:14:08 +08:00
Ilya Mochalov
9b6a4f0c87 node: signatures of module "readline" have been changed 2015-12-16 12:16:24 +05:00
f111fei
07b87e6064 #7152 [node] parameter type of "signal" in process.kill 2015-12-16 09:50:54 +08:00
Masahiro Wakame
5cb07b5371 Merge pull request #7078 from chrootsu/node-querystring
node: signatures of module "querystring" have been changed
2015-12-13 00:45:59 +09:00
Masahiro Wakame
dcecb9edd1 Merge pull request #7129 from csnover/patch-3
[node] export Stream as class, not interface
2015-12-10 23:43:20 +09:00
Ilya Mochalov
0eef583c76 node: signatures of module "querystring" have been changed 2015-12-10 18:37:36 +05:00
Colin Snover
0ef797c135 [node] export Stream as class, not interface
require('stream').Stream in Node.js is a constructor.
2015-12-09 20:35:57 -06:00
Ilya Mochalov
d2e216ec4f node: signatures of module "os" have been changed 2015-12-05 16:37:35 +05:00
Takeshi Kurosawa
4ad9bef6cc Add assert.deepStrictEqual and assert.notDeepStrictEqual to node.d.ts
[io.js 1.2.0][1] added [deepStrictEqual][2] and [notDeepStrictEqual][3] to assert.

   [1]: https://github.com/nodejs/node/blob/v1.2.0/CHANGELOG.md#notable-changes
   [2]: https://nodejs.org/api/assert.html#assert_assert_deepstrictequal_actual_expected_message
   [3]: https://nodejs.org/api/assert.html#assert_assert_notdeepstrictequal_actual_expected_message
2015-11-22 13:25:47 +09:00
Joe Herman
f140e0fc12 node: Split to 0.12.x and 4.x. Added http.RequestOptions. 2015-11-05 17:50:31 -05:00
Masahiro Wakame
8cf8164641 Merge pull request #6587 from hakatashi/patch-1
Node: Fix punycode.ucs2.decode return type
2015-11-05 21:21:56 +09:00
Koki Takahashi
2726aa2da4 Node: Fix punycode.ucs2.decode return type
API Reference: https://nodejs.org/api/punycode.html#punycode_punycode_ucs2_decode_string
2015-11-03 23:05:31 +09:00
Joe Herman
2336533f9a Updated net.connect, combined url.Url and url.UrlOptions. 2015-11-02 11:00:46 -05:00
Dekel Barzilay
e3f20e9a77 Added missing flag 'v8debug' to Global interface
'v8debug' is an optional flag that will be set in NodeJS globals upon using the 'debug-brk' command parameter.
We're using it to dynamically detect when app is running in debug-mode.

(When not on debug-mode, the 'v8debug' flag is undefined)
2015-10-25 16:32:26 +02:00
Masahiro Wakame
3395fd7096 Merge pull request #6245 from rschuchart/execfile-maxbuffer
fixed type of maxBuffer option to execFile
2015-10-13 02:32:33 +09:00
marvin
2708ec7029 fixed type of maxBuffer option to execFile 2015-10-11 12:16:55 +02:00
marvin
4ff80190f0 fixed execSync and execFileSync return type 2015-10-11 11:42:13 +02:00
Horiuchi_H
c452e48ca2 Merge pull request #6185 from frankebersoll/master
Node.js: Added child_process.spawnSync
2015-10-09 16:21:15 +09:00
John Vilk
7fc487562c Updating write* methods to return offsets, fill to return the Buffer, and making isBuffer a type guard. 2015-10-08 02:50:40 -04:00
Frank Ebersoll
49a92ea837 Node.js: Added child_process.spawnSync 2015-10-07 16:55:39 +02:00
Masahiro Wakame
b12863b7e4 Merge pull request #6078 from rschmukler/master
add objectMode to node stream.WritableOptions
2015-10-06 03:16:54 +09:00
Ryan Schmukler
811c2fe7d9 add objectMode to node stream.WritableOptions
references #5658, references #5774
2015-09-30 19:55:06 -04:00
Eric N. Vander Weele
58a2e195ef node: Update fs.create(Read|Write)Stream definition
This commit includes the following changes:
* Remove duplicate type definition for `fs.createReadStream`.
* Update `options` object typings for both functions to match the keys
  and types specified in the Node.js v0.12.x documentation.

Links to the aforementioned functions are provided below for reference:
* http://nodejs.org/docs/latest-v0.12.x/api/fs.html#fs_fs_createreadstream_path_options
* http://nodejs.org/docs/latest-v0.12.x/api/fs.html#fs_fs_createwritestream_path_options
2015-09-29 21:36:33 -07:00
Bobby Powers
b34953791c node: WritableStream.write() should use a union for Buffer|string
I'm converting a node program I originally wrote in JS to TS, and
without this, the following pattern causes tsc to error out (tested
under 1.6):

```
let buf = current.read(); // current is a ReadableStream
if (buf !== null)
    output.write(buf);
```

With:

```
src/bin/cat.ts(28,17): error TS2345: Argument of type 'string | Buffer' is not assignable to parameter of type 'string'.
```
2015-09-25 16:08:16 -04:00
hansrwindhoff
73d4a4660b Update node.d.ts 2015-09-22 22:02:13 -06:00
Masahiro Wakame
285e6b692a Merge pull request #5838 from psnider/node_Error
Added Error to support stack
2015-09-20 18:37:45 +09:00
Masahiro Wakame
e0a3e0aa15 Merge pull request #5767 from progre/patch-fs.Stats
[node.d.ts] Add birthtime to fs.Stats
2015-09-16 22:29:54 +09:00
Masahiro Wakame
66b05ddbd6 Merge pull request #5753 from panuhorsmalahti/node-fs-write
Add more fs.write interfaces.
2015-09-16 22:13:20 +09:00
Masahiro Wakame
9b3780147b Merge pull request #5658 from chbrown/node-stream-Transform-fix
Replace Stream#_transform()s with single method with chunk: any
2015-09-16 22:07:45 +09:00
psnider
2aace82653 Added Error to support stack 2015-09-16 00:42:38 +00:00
progre
bc07252981 Add birthtime to fs.Stats 2015-09-10 20:02:57 +09:00
Panu Horsmalahti
45355cd1a5 Add more fs.write interfaces. 2015-09-09 13:15:35 +03:00
Christopher Brown
cc25ee393e Replace module "stream" chunk: string or chunk: Buffer arguments with `chunk:
any`
2015-09-08 14:09:49 -05:00
Stéphane Le Dorze
16c494b986 Update node.d.ts
Verify and Signer are WritableStreams as per:

https://nodejs.org/docs/v0.10.0/api/crypto.html#crypto_class_verify
https://nodejs.org/docs/v0.10.0/api/crypto.html#crypto_class_sign
2015-09-02 23:20:51 +02:00
Christopher Brown
a132dbfacf Replace Stream#_transform()s with single method with chunk: any 2015-08-29 18:31:48 -05:00
Stéphane Le Dorze
cbadcb1b11 Signer is writable stream in crypto 2015-08-27 22:43:14 +02:00
Stéphane Le Dorze
e63ff8f99a Verify in crypto extends WritableStream 2015-08-27 22:10:18 +02:00
Masahiro Wakame
27e02d6674 Merge pull request #5280 from yourpalal/master
Update node's ReadLine.setPrompt to match new API
2015-08-13 23:05:41 +09:00
Tag
32f4b07c46 Update(node.d.ts): add statusMessage property to interface ServerResponse. 2015-08-11 16:39:57 +08:00