Commit Graph
351 Commits
Author SHA1 Message Date
TonyYangandMasahiro Wakame 4871fb2876 Add listening for http.Server (#11246) 2016-09-15 22:45:12 +09:00
TonyYangandMasahiro Wakame 9d66141d07 [node.d.ts] Update cluster definition (#11235)
* Update cluster

* Add ;
2016-09-15 22:41:55 +09:00
paulmorphyandMasahiro Wakame 1a97636e03 Added definition for the missing dns.setServers(servers) method (#11183)
* Added definition for the missing dns.setServers(servers) method

Method is documented here:
https://nodejs.org/docs/latest/api/dns.html#dns_dns_setservers_servers

* Updated definition for dns.resolveMx

The addresses argument passed to the callback function will contain an array of objects
containing both a priority and exchange property:
https://nodejs.org/docs/latest/api/dns.html#dns_dns_resolvemx_hostname_callback
2016-09-15 22:20:21 +09:00
TonyYangandMasahiro Wakame 3423aa94ff connection are socket are same in IncomingMessage (#11219) 2016-09-14 22:17:36 +09:00
TonyYangandMasahiro Wakame 8193bc8f6e [node.d.ts] Add definite events for Readable and Writable (#11217)
* Add definite events for Readable and Writable

* Delete comments in cluster

* Recovery cluster

* Remove interface extends events.EventEmitter
2016-09-14 22:13:43 +09:00
hriss95andMasahiro Wakame 5ee054ac95 [Node.d.ts]: Update definitions for module "crypto" (#11186) 2016-09-14 21:26:40 +09:00
TonyYangandMasahiro Wakame 684fa0d894 [node.d.ts] Correct NodeBuffer.toJSON type (#11177)
* Correct NodeBuffer.toJSON type

* Correct NodeBuffer.toJSON type in Node v4.x
2016-09-14 21:21:03 +09:00
TonyYangandMasahiro Wakame f7b0b1c8a0 Correct assert.fail parameters (#11176) 2016-09-14 21:20:09 +09:00
TonyYangandMasahiro Wakame d9ed548add Delete deprecated functions (#11173) 2016-09-14 21:15:15 +09:00
Zhengbo LiandGitHub 4008a51db4 Merge pull request #11084 from plantain-00/node-crypto-2
fix types of node crypto module
2016-09-09 10:40:46 -07:00
hriss95andMasahiro Wakame ab57464fa2 Node.d.ts: Update definitions for module "stream" (#11086)
* Node.d.ts: Update definitions for module "stream"

* Node.d.ts: Fix an issue that caused tests to fail
2016-09-10 00:35:38 +09:00
TonyYangandMasahiro Wakame aee853cc82 [node]Rearrange the order and add missing stuff for os (#11146)
* Rearrange the order and add missing something

* Correct type of constants
2016-09-10 00:35:23 +09:00
TonyYangandMasahiro Wakame 1d50912b2b [node] Correct constants module for node v6 (#11140)
* Correct constants module

* Add tests for constants

* Typo namespace

* Recovery constants module and add two stuffs
2016-09-09 23:52:36 +09:00
hriss95andMasahiro Wakame c49a53466c Node.d.ts: Update definitions for module "dgram" (#11143) 2016-09-09 23:45:18 +09:00
hriss95andMasahiro Wakame 255697da9f Node.d.ts: Update definitions for module "tls" (#11025)
* Node.d.ts: Update definitions for module "tls"

* Node.d.ts: Update definitions for module "tls"

* Node.d.ts: Revert function connect changes

* Node: Update definitions and tests for module "tls"

* Node: Fix a typo in definitions for module "tls"
2016-09-09 22:48:55 +09:00
hriss95andMasahiro Wakame c5e23ee8da Node.d.ts: Add module v8 (#10932)
* Node.d.ts: Add module v8

* Node.d.ts: Changes to module "v8"
2016-09-09 22:41:06 +09:00
york yao 2e57990342 fix type of verify in Verify and extract encode and format types 2016-09-08 07:38:50 +08:00
Zhengbo LiandGitHub 8da7848758 Merge pull request #11066 from alejo90/move-fs-constants
Moved fs constants under constants as per documentation
2016-09-07 10:32:19 -07:00
Alejandro Sánchez 69089fffa5 Moved fs constants under constants as per documentation and added tests for access and accessSync 2016-09-07 08:24:16 -06:00
york yao dd581d009e merge the 2 ECDH interfaces and createECDH functions 2016-09-07 20:34:02 +08:00
TonyYangandMasahiro Wakame 98d009b227 [node] Test that imported and global console are same (#11062)
* Node.d.ts: Introduce module "console"

* Test that imported and global `console` are same

* Test that imported and global `console` are same

* declare module "console" for node v4
2016-09-07 20:42:29 +09:00
york yao 18748e6b99 fix types of node crypto module 2016-09-07 19:37:50 +08:00
hriss95andMasahiro Wakame e58c63689e Node.d.ts: Update definitions for module "crypto" (#11026) 2016-09-07 19:36:12 +09:00
hriss95andMasahiro Wakame ef2754d9de Node.d.ts: Update "constants" module (#11022) 2016-09-07 19:34:00 +09:00
IIIMADDINIIIandMasahiro Wakame f15deaa4ee Completed NodeBuffer.Compare and Process.nextTick definition (#11008) 2016-09-07 19:24:51 +09:00
hriss95andMasahiro Wakame 8caf4a5724 Node.d.ts: Update definitions for module "dns" (#10990) 2016-09-07 00:19:55 +09:00
hriss95andMasahiro Wakame 15c0df84ce Node.d.ts: Update definitions for module "util" (#10989) 2016-09-07 00:19:06 +09:00
hriss95andMasahiro Wakame 3be6a88598 Node.d.ts: Update definitions for module "fs" (#10987) 2016-09-07 00:12:01 +09:00
hriss95andMasahiro Wakame 2bf1d27063 Node.d.ts: Update definitions for module "os" (#10986) 2016-09-07 00:11:18 +09:00
hriss95andMasahiro Wakame 700d3aa998 Node.d.ts: Update definitions for module "dgram" (#10982) 2016-09-07 00:05:45 +09:00
Alejandro SánchezandMasahiro Wakame fc931b26dd Made ErrnoException.errno a string as per NodeJS API documentation (#10970) 2016-09-06 23:46:48 +09:00
Alejandro SánchezandMasahiro Wakame 2966b1b8ba Fix #10919 - Added IterableIterator forward declaration to enable compilation on targets lower than es2015 (#10943)
* Fix #10919

* Fix IterableIterator<T> is not an Array type error for test when targetting lower than es2015

* Revert "Fix IterableIterator<T> is not an Array type error for test when targetting lower than es2015"

This reverts commit ce1108c87574dca0a47801bf4e7cf818aafae1b4.
2016-09-06 23:31:02 +09:00
hriss95andMasahiro Wakame 6013c413c2 Node.d.ts: Update definitions for module "domain" (#10965)
* Node.d.ts: Update definitions for module "domain"

* Node.d.ts: Update definitions for module "domain"
2016-09-06 23:18:35 +09:00
hriss95andMasahiro Wakame 6866455f51 Node.d.ts: Introduce module "timers" (#10964) 2016-09-06 23:17:33 +09:00
hriss95andMasahiro Wakame ef8a45b6e5 Node.d.ts: Update definitions for module "repl" (#10958) 2016-09-06 23:13:49 +09:00
hriss95andMasahiro Wakame 76a497660f Node.d.ts: Update definitions for module "http" (#10954) 2016-09-06 23:10:30 +09:00
kfickelandMasahiro Wakame 49870cb1d4 Fixed node.js-crypto-typings Verify.verify and Signer.sign (#10930)
source for Verify
https://nodejs.org/dist/latest-v6.x/docs/api/crypto.html#crypto_verifier_verify_object_signature_signature_format
source for Signer
https://nodejs.org/dist/latest-v6.x/docs/api/crypto.html#crypto_sign_sign_private_key_output_format
2016-09-06 22:44:37 +09:00
Burt Harris 723e5c7a2d Merge branch 'master' into NodeJS.EventEmitter.6 2016-08-30 19:11:19 -07:00
Burt HarrisandBurt Harris 69eaae71c0 Extend from NodeJS.EventEmitter, not implement.
Corrects errors when new methods added to EventEmitter.

Since EventEmitter is really a class with behavior, it should be extended, rather
than implemented as an interface.   This enables new behavior to be inherited, e.g.
EventListener.prependListener() was added in Node 6.
2016-08-30 19:02:01 -07:00
Alejandro SánchezandMasahiro Wakame 67827a1e39 Added entries, includes, keys and values to Buffer (#10809) 2016-08-30 23:19:56 +09:00
poseidonCoreandMasahiro Wakame 75cf3ac5ed Worker.send and ChildProcess.send should return Booleans (#10866)
https://nodejs.org/dist/latest-v6.x/docs/api/all.html#child_process_child_send_message_sendhandle_options_callback
https://nodejs.org/dist/latest-v6.x/docs/api/all.html#cluster_worker_send_message_sendhandle_callback
2016-08-30 22:10:55 +09:00
Burt Harris 14e42e38d5 Initial fix for #10815, but...
Adding the new methods to the interface causes test failures in a number of other modules...
2016-08-29 12:12:13 -07:00
Hristian Hristov 026d566346 Node.d.ts: Change definition for module process to be consistent with other declarations 2016-08-26 13:04:25 +01:00
Hristian Hristov 2ebcbf7447 Add module 'process' 2016-08-24 16:13:49 +01:00
Alejandro Sánchez 69ecb66f73 Made node Buffer's lastIndexOf and indexOf conformant to node API 2016-08-23 08:24:37 -06:00
Paul van BrenkandGitHub 71862ebcd6 Merge pull request #10652 from aleung/node-dgram
node.d.ts : dgram : Allow optional parameters to be omitted.
2016-08-18 10:55:14 -07:00
Leo Liang 612e4169c6 Change overload function order to help with resolution. 2016-08-18 22:56:13 +08:00
Paul van BrenkandGitHub bde37dcdfb Merge pull request #10644 from lukas-zech-software/master
Add Buffer.swap16, Buffer.swap32 and Buffer.swap64 functions
2016-08-17 13:49:26 -07:00
Paul van BrenkandGitHub 942c9fa697 Merge pull request #10648 from plantain-00/getCiphers-getCurves
add 3 missing methods in crypto module: getCiphers, getCurves and get…
2016-08-17 13:45:33 -07:00
TonyYangandGitHub 75bfef43c6 destroy has a optional argument 2016-08-17 17:36:04 +08:00