Commit Graph

206 Commits

Author SHA1 Message Date
Simon Schick
5b221ee794 feat(hapi): 17.8 2018-11-24 09:45:45 -08:00
Benjamin Lichtman
901d16fdba
Merge pull request #30441 from SimonSchick/fix/yar-cache-options
fix(yar): fix cache options
2018-11-21 09:39:09 -08:00
Ulrich Buchgraber
6ccbcd2c4d Fix all the (unrelated) 'no-angle-bracket-type-assertion' linter errors in packages which depend on @types/node 2018-11-21 01:29:44 +01:00
Andy
141d1cc870
And tslint disables for no-angle-bracket-type-assertion (#30592) 2018-11-16 12:20:58 -08:00
Simon Schick
e0c287512b fix(yar): fix cache options 2018-11-11 03:15:06 +01:00
Simon Schick
2d34898d17 fix(hapi): server does not extend podium 2018-11-06 04:19:35 +01:00
Simon Schick
fa01268068 fix(hapi): make cache generic (#29904) 2018-10-22 11:56:04 -04:00
Simon Schick
ad6f1ec956 chore(hapi): narrow types for credentials (#29294) 2018-10-01 21:08:56 -07:00
Simon Schick
4f9a87f1d9 fixup! fixup! hapi(17.6): update docs, also update joi ecosys 2018-09-26 22:12:53 +02:00
Simon Schick
8dfff7c0cb fixup! hapi(17.6): update docs, also update joi ecosys 2018-09-26 22:03:34 +02:00
Simon Schick
7de95ee5d5 hapi(17.6): update docs, also update joi ecosys 2018-09-25 21:57:14 +02:00
zamu87
681c02d749
correct tls Server options 2018-08-28 13:23:40 +02:00
Benjamin Lichtman
37866abeae
Merge pull request #28150 from BorntraegerMarc/master
Removing myself as contributor because I won't contribute to this project anymore
2018-08-16 13:36:44 -07:00
Marc Bornträger
f439d9c797
Removing myself as contributer 2018-08-15 20:17:37 +02:00
thomas-b
8f1ce6502b [hapi] Correct the server.table() return type 2018-08-10 17:46:23 +02:00
ondratra
404e051500 hapi - request's pre & preResponses type fix (#27631) 2018-08-01 12:07:58 -07:00
jough
b9b4346ae3 Fix tls typing from non-type "true" to boolean (#27551) 2018-07-25 09:50:03 -07:00
Wong Yong Jie
63be35d54a [hapi] Statehood format/parse should return a Promise. (#27044)
According to the [Hapi documentation](https://hapijs.com/api#-await-serverstatesformatcookies), `server.states.format` and `server.states.parse` are awaitable functions.
2018-07-05 09:57:03 -07:00
Paul van Brenk
cd759b1ffc
Revert "[@types/hapi] Add null to Request.params and Request.payload" 2018-07-02 10:51:13 -07:00
Cahya Pribadi
1fdfcfe574
Merge pull request #1 from ozylog/patch-3
Patch 3
2018-06-25 09:19:55 +12:00
Cahya Pribadi
28c5b788e7
Update parameters.ts 2018-06-25 09:15:39 +12:00
Cahya Pribadi
de1ec36c49
Update index.d.ts
based on hapi.js request object on actual module that params and payload are possible to be null when there is no value applied on it.
```
params: null,
paramsArray: null,
path: '/v1/Schemas',
payload: null,
```
2018-06-22 16:54:26 +12:00
Jeremy Shore
38a91aa931 Hapi: Fix issue with invalid export linting (#25457)
The import `url` doesn’t have an export property of `URL`
2018-05-03 09:10:38 -07:00
Simon Schick
2d3747f998 fix(hapi): make all ext options properties optional (#25214) 2018-04-24 16:06:35 -07:00
Simon Schick
c252ab8bc9 fix(hapi): allow passing object to toolkit state, fix tags index signature, fix route ext (#24956)
* fix(hapi): allow passing object to toolkit `state`, fix `tags` index signature, fix route `ext`

* fixup! fix(hapi): allow passing object to toolkit `state`, fix `tags` index signature, fix route `ext`
2018-04-13 11:57:40 -07:00
Joe Andaverde
ea50f76f8e Fix incorrect privacy option 2018-04-03 23:33:20 -05:00
dcharbonnier
204e0d396a
ServerInjectOptions.app is optional 2018-03-30 08:46:12 +02:00
Arthur Ozga
80c15edab7
Merge pull request #24341 from ozum/master
[hapi] Fix: Make server.app non-optional
2018-03-16 14:46:59 -07:00
Arthur Ozga
d4330d86f6
Merge pull request #24215 from ericeslinger/patch-2
hapi: Allow `true` as a cors option in RouteOptions
2018-03-16 13:42:38 -07:00
ozum
791f043bdb [hapi] Fix: Make server.app non-optional 2018-03-16 19:27:49 +03:00
Arthur Ozga
de758eaf8a
Merge pull request #24134 from zcei/patch-1
hapi: allow for synchronous Hapi plugin register fn
2018-03-15 12:56:40 -07:00
Eric Eslinger
61543a66a2
Allow true as a cors option
Per the hapi documentation, setting `cors: true` is allowed, and will do default cors-ing. 

[ref](https://hapijs.com/api#-routeoptionscors)
2018-03-10 19:59:16 -08:00
Stephan Schneider
091f2f4271
fix: allow for synchronous Hapi plugin register fn 2018-03-07 15:31:31 +01:00
Daniel Machado
2e07611204 Fix construtor problems 2018-03-04 11:29:15 +01:00
Scott Cooper
81bd412152 fix: allow joi object to be passed directly to response.schema 2018-02-26 22:43:00 -08:00
Justin Simms
1a3679e14c Hapi 17: Fix inability to augment server.plugins type (#23855)
* Fix inability to augment server.plugins type

* Replacing more 'any' types and other misc fixes

* Change server.inject to use ApplicationState
2018-02-26 11:28:41 -08:00
Rodrigo Saboya
c576e544be Updating catbox to hapi 17 bindings. 2018-02-26 15:24:45 -03:00
Silas Rech
0e479f508b Update inert types to 5.1 (#23864) 2018-02-26 09:58:48 -05:00
Justin Simms
2056f990d0 Fix issues identified with the Hapi 17 update (#23691)
* Fix issues identified with the Hapi 17 update

This commit introduces a variety of changes, primarily fixes, but it
also collapses the typings into a single file.  Collapsing it into a
single file means simpler augmentation of types, which is common in
Hapi.

Thank you to SimonSchick for contributing a number of changes here.

* fix response property
2018-02-22 07:06:11 -08:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Justin Simms
cac8ed01e6 Fix for the plugin array type. 2018-02-09 17:51:52 -06:00
Justin Simms
5763bd6353 Fix for server route options type 2018-02-08 23:56:29 -06:00
Justin Simms
b7edd5c1db Add generic types for plugins 2018-02-08 23:41:49 -06:00
Justin Simms
d6324664f5 Making some of the typings more specific. 2018-02-08 22:07:48 -06:00
Justin Simms
1d964920cf Remove the enums 2018-02-08 20:15:33 -06:00
Justin Simms
4bfb2047ed fix 2018-02-08 20:03:21 -06:00
Justin Simms
be8330e0b8 Apply fixes suggested in code review 2018-02-08 20:01:15 -06:00
Justin Simms
c423899d98 Fix the remaining failing tests and add promise return types for async functions. 2018-02-07 22:35:26 -06:00
Rafael S. Fijalkowski
b7757327fd Add server route validation test file. 2018-02-07 22:00:59 -06:00
Rafael S. Fijalkowski
ab78281950 Set "strictNullChecks" true. 2018-02-07 22:00:59 -06:00