Commit Graph

67 Commits

Author SHA1 Message Date
Ryan Cavanaugh
f55497c988 Merge remote-tracking branch 'upstream/master' into merge_7_25
# Conflicts:
#	convict/convict.d.ts
#	multer/multer.d.ts
#	nodemailer/nodemailer.d.ts
#	react-bootstrap-table/react-bootstrap-table.d.ts
#	react-dnd/react-dnd-tests.ts
#	react-native/index.d.ts
#	request/request.d.ts
#	restify/index.d.ts
#	webpack/webpack.d.ts
#	ws/ws.d.ts
2016-07-27 16:12:49 -07:00
Ryan Cavanaugh
b488f3cb5f Merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
ede3f0a99c Merge commit 'upstream/master~550' into merge_7_25 2016-07-26 11:29:27 -07:00
Mickael Burguet
f9545880a4 [restify] Next handler - Change ifError to optional 2016-07-26 11:34:09 -04:00
Mickael Burguet
f92b6d38df [restify] add patch function definition 2016-07-25 16:31:23 -04:00
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
James O'Cull
622c2ea735 Restify route fixes (reopen #7694) (#9918)
* Add router /routes support to Restify

* Added Restify Router render function

* Proper returns on server use/route

* Restify returns strings, not routes
2016-07-09 14:47:12 +09:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Raghav Katyal
c17b1b78b8 OldUMD and many other module fixes. 2016-06-20 14:15:13 -07:00
James Trinklein
53c667d1a5 Update restify typings (#9379)
* restify: update Request, fix id type

change id from string property to function returning string
add getId() alias
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L214

* restify: update Request, add getPath()

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L234

* restify: update Request, fix query type

define query as function returning a string
add getQuery() alias
include JSDoc from source:
https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L247

* restify: update Request, fix time type

change time from number property to function returning number
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L262

* restify: update Request, add getUrl

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L273

* restify: update Request, add getVersion

getVersion is a function that returns a string
add version() alias
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L288

* restify: update Request, fix header type

change header return type from any to string
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L316

* restify: update Request, add trailer

trailer is a function that returns a string
trailer requires a string parameter called name
trailer optionally takes a second string parameter for default value

include JSDoc from source:
https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L338

* restify: update Request, add JSDoc

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L359

* restify: update Request, add isChunked

isChunked is a function that returns a boolean
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L394

* restify: update Request, add isKeepAlive

isKeepAlive is a function that returns a boolean
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L405

* restify: update Request, add JSDoc for isSecure

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L426

* restify: update Request, add isUpgradeRequest

isUpgradeRequest is a function that returns a boolean
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L442

* restify: update Request, add isUpload

isUpload is a function that returns a boolean
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L457

* restify: update Request, add userAgent

userAgent is a function that returns a boolean
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L494

* restify: update Request, add start/endHandlerTimer

startHandlerTimer is a function that takes a string
endHandlerTimer is a function that takes a string

include JSDoc from source:
https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L505

* restify: update Request, add absoluteUri

absoluteUri is a function that takes a string and returns a string
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L52

* restify: update Request, fix accepts

accepts can take a parameter of either string or array of strings
include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L68

* restify: update Request, add acceptsEncoding

acceptsEncoding is a function that returns a boolean
acceptsEncoding can take a parameter of either string or array of strings

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L96

* restify: update Request, fix contentLength

add getContentLength which is a function which returns a number
contentLength is an alias for getContentLength function

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L116

* restify: update Request, fix contentType

add getContentType which is a function which returns a string
contentType is an alias for getContentType function

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L152

* restify: update Request, add getHref

getHref is a function which returns a string
href is an alias to getHref

include JSDoc from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L202

* restify: update Request, add timers

timers is an array of handler timer objects
a handler timer object contains a string name and tuple of numbers representing the elapsed time
this is the only way to access times from start/endHandlerTimer()
from source: https://github.com/restify/node-restify/blob/5.x/lib/request.js\#L557

* restify: update RouteSpec, fix path

path can be either a string or RegExp
also shown in RouteOptions.path
2016-06-02 23:52:47 +09:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
fa204a87d1 Remove obsolesced reference comments 2016-04-27 21:53:46 -07:00
Ryan Cavanaugh
dc851736af Delete unused tscparams 2016-04-27 20:42:33 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
Ryan Cavanaugh
541e24b685 Fix angularjs/angular; 'export declare'/'declare export' 2016-04-25 13:02:25 -07:00
James Trinklein
58e16ecbc3 Update restify types add route spec (#9082)
* restify: fix compile errors in test file

did not compile without error when compiling with:
`tsc --noImplicitAny restify/restify-tests.ts`

* restify: add RouteSpec interface
2016-04-25 23:10:54 +09:00
Ryan Cavanaugh
4a433abbf4 Unwrap all lone ambient external modules 2016-04-22 14:12:45 -07:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
vvakame
4de74cb527 normalize line ending (CRLF -> LF) 2016-02-16 01:20:30 +09:00
Masahiro Wakame
7f2626d4e5 Merge pull request #7537 from SamuelMarks/patch-2
Next.ifError
2016-01-11 22:55:03 +09:00
Samuel Marks
4dd5bea6f4 Next.ifError => 070725fa3e 2016-01-08 23:53:19 +11:00
James O'Cull
d2443f6855 Proper returns on server use/route 2016-01-06 14:22:14 -05:00
James O'Cull
1140e9393f Added Restify Router render function 2016-01-06 13:53:52 -05:00
James O'Cull
b7e9564fdd Add router /routes support to Restify 2016-01-06 13:34:44 -05:00
James O'Cull
9e4b7a31d5 Changes to support authorizationParser 2015-12-30 12:24:56 -05:00
James O'Cull
aeb8fefd8b Add definition for request files 2015-12-29 14:44:13 -05:00
James O'Cull
6ae08bfbab Support optional headers in response send / json calls 2015-12-29 14:30:24 -05:00
Max Shmelev
6b0270532c Add 'opts' function definition 2015-12-14 10:32:03 -05:00
Vladimir
b65f3c4365 handleUpgrades option support in ServerOptions interface
http://restify.com/#creating-a-server

In restify docs createServer method supports handleUpgrades parameter in ServerOptions object, but it's not present in the type's interface.
2015-11-25 17:52:21 +01:00
Moritz Schmidt
08f99d437b fix restify error classes
* add missing restify error classes
	* overloaded constructor
	* more constructor tests
2015-03-31 20:54:00 +02:00
Eric Lu
188590dce9 Expose isSecure function through request interface 2015-02-09 12:29:46 -08:00
Eric Lu
938122b49b Expose raw http server 2015-02-03 10:07:56 -08:00
Eric Lu
a3a941b342 Expose two more error types. 2015-01-26 19:27:38 -08:00
Eric Lu
ff0c34bc71 Add typing for bunyan logger associated with Request 2015-01-09 15:47:05 -08:00
Niklas Mollenhauer
3abe86c6fe Fixes #2810 2014-09-12 02:44:31 +02:00
Mohamed Hegazy
2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
Santi Albo
d50f5e11ef Add restify pre example of use on the tests 2014-03-18 09:34:39 +00:00
Santi Albo
8b0c6cab78 Add restify pre module 2014-03-18 09:32:20 +00:00
Masahiro Wakame
2e5ad83aee Merge pull request #1829 from santialbo/patch-4
Fix typo on restify type definition
2014-03-15 21:53:06 +09:00
Santi Albo
418438f064 Fix typo on test 2014-03-15 13:12:19 +01:00
Santi Albo
90dd6ead84 Fix typo on restify type definition
InvalidArgu**e**mentError => InvalidArgumentError
2014-03-12 11:49:04 +00:00
Santi Albo
071788e345 Add CORS method on restify module 2014-03-10 16:44:30 +00:00
Václav Oborník
f788ac6ca4 renamed 'next' intarface to 'Next' 2014-03-09 06:23:11 +01:00
Václav Oborník
5eaf82aa6a method Server.use can accept arrays of RequestHandlers 2014-03-08 15:50:08 +01:00