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
Rafael S. Fijalkowski
c447ab3de3
Revert "Set "strictNullChecks" true."
...
This reverts commit 8d1ffa7
2018-02-07 22:00:59 -06:00
Rafael S. Fijalkowski
80492c378e
Set "strictNullChecks" true.
2018-02-07 22:00:59 -06:00
rafaelsouzaf
3503fa651a
Remove all lint rules.
2018-02-07 22:00:59 -06:00
rafaelsouzaf
f91e43df7a
Hapi v17 setup.
2018-02-07 22:00:59 -06:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Timon van Spronsen
3bcf6f3ab2
Change Boom version for dependents
2018-01-02 09:27:33 +01:00
Andy
8b10461a43
Revert "Merge pull request #22107 from rafaelsouzaf/master" ( #22417 )
...
This reverts commit fb68b21bea , reversing
changes made to ae47b3c7d0 .
2017-12-21 07:23:39 -08:00
rafaelsouzaf
62ae76a50e
Add Iron typings, wrote by @SimonSchick
2017-12-17 19:48:08 -03:00
rafaelsouzaf
065b0707d4
Create a consumer extensible interface. Following suggestion of @SimonSchick
2017-12-17 16:51:20 -03:00
rafaelsouzaf
3fe936dace
Remove old, and not more useful, comments in test files.
2017-12-16 22:32:23 -03:00
rafaelsouzaf
b923c71fdc
Replace "interface ServerMethod" with "type ServerMethod". Suggestion of @SimonSchick
2017-12-16 22:30:30 -03:00
rafaelsouzaf
244e1eea17
Add more specific types in ReturnValueTypes used in Lifecycle.Method().
2017-12-16 22:28:07 -03:00
rafaelsouzaf
3e29b6e832
Move v17 definitions and tests to "types/hapi" root folder and delete v17 temp folder.
2017-12-13 22:32:28 -03:00
rafaelsouzaf
39d8d03a0f
Move v16 types to ./v16 folder.
2017-12-13 22:27:07 -03:00
rafaelsouzaf
51e0b2b92b
Add references to test files in "tsconfig.json". Delete "hapi-test.ts"
2017-12-11 19:46:25 -03:00
rsouza
f7facb5846
Unnecessarily references, which is already referenced in the type definition.
2017-12-11 18:10:12 -03:00
rsouza
e02a3fa4da
Rename to hapi-tests.ts file.
2017-12-11 18:05:29 -03:00