Commit Graph
29 Commits
Author SHA1 Message Date
Alexander James Phillips bbcb50a4e1 Update hapi route validate to allow joi Schema SchemaMap or array of those 2017-05-18 11:08:06 +01:00
Alexander James Phillips 678cc80ff5 Attempt to fix correct JoiValidationObject for hapi route validate option 2017-05-17 23:50:18 +01:00
Alexander James Phillips 63c96d3815 Allow exclusion of conflicting properties #16416 2017-05-12 12:13:09 +01:00
Alexander James Phillips dee8894855 Simpler typings than #16416 to catch some errors again 2017-05-11 13:21:49 +01:00
Alexander James Phillips 1557cefe0c Include @theefer's work in #16416 2017-05-11 11:10:05 +01:00
Alexander James Phillips d20f912c77 Add scope and entity to route.options.auth 2017-05-08 20:28:19 +01:00
Alexander James Phillips c69e614bc1 Make error passed to Hapi.Server.register callback possible to be null 2017-05-08 14:31:32 +01:00
Alexander James Phillips 91fe980714 Revert "Move v15 hapi code to v16.0"
This reverts commit 7894a7eb25.
and commit 8ce61979e5
2017-05-08 01:08:05 +01:00
Alexander James Phillips 7894a7eb25 Move v16 hapi code to v16.0 2017-05-08 00:57:09 +01:00
Alexander James Phillips 8ce61979e5 Move v15 hapi code back to v16 now that all tests are passing 2017-05-08 00:54:25 +01:00
Alexander James Phillips 89f08736f0 Fix Podium tests 2017-05-08 00:43:40 +01:00
Alexander James Phillips 02389001d7 Fix hapi-auth-jwt2 to work with hapi-v16.1 typings 2017-05-07 20:57:39 +01:00
Alexander James Phillips 9fc3c9cd40 Fix some tslint errors and temporarily remove tslint.json 2017-05-07 20:43:03 +01:00
Alexander James Phillips dc6224ad1c Follow instructions from failed test to set tsconfig types to empty array 2017-05-07 19:11:13 +01:00
Alexander James Phillips 5e7881120c Change version at top of index.d.ts 2017-05-07 18:58:22 +01:00
Alexander James Phillips f902f7f1fb Temporarily move v16 code to v15 directory
To "fix" the error: "The latest major version is 16, but a directory v16 exists."
2017-05-07 18:51:57 +01:00
Alexander James Phillips ca36987882 Try moving v16.0 code to v16 directory
Maybe that will fix "types/hapi/v16.0 has unused file hapi-tests.ts" error
2017-05-07 18:47:21 +01:00
Alexander James Phillips 7503dd0bd3 Add paths to v16.0 tsconfig to fix tests 2017-05-07 18:40:20 +01:00
Alexander James Phillips cacacaa38a Update tsconfig files to reflect new location of tests 2017-05-07 15:13:09 +01:00
Alexander James Phillips 22d7c1dbcf Move hapi tests directory from tests to test 2017-05-07 15:06:09 +01:00
Alexander James Phillips ae60b8ca46 Move hapi dependencies to own modules
catbox, h2o2, mime-db, mimos, podium, shot, vision
Add tests where possible.
Add note regarding apparent failure of some nested object literals to enforce typings
2017-05-07 15:04:37 +01:00
Alexander James Phillips f20d1e1c2c Update definition for hapi 16.1
Use Object not object. app and plugins optional in server.inject options
Fix merge conlict with master
Type IPluginFunction. Simplify Plugin. Add backwards incompatibility note.
  Thanks mmc41 and jasonswearingen.
Remove Promise.
  Thanks mmc41.
Fix merge conflict with master
Renaming of all interfaces to remove preceding I in preparation of dtslint
Fix http links in docs and remove old I interface names
2e119e63a  Add example tests of server.decorate on server and request
2e119e63a  Improve comments regarding server.decorate
0d6b28656  Allow response.state to accept object
0d6b28656  request.response should also be responase or null.
0d6b28656  Allow some cookie config fields to be nullable.
Fix merge conflict with master again
2017-05-05 12:43:13 +01:00
Mohamed HegazyandGitHub e564537f7f Fix lint failures (#16329)
* fix lint failures

* Fix more lint failures

* Fix some more lint errors
2017-05-04 15:31:42 -07:00
Eric EslingerandMohamed Hegazy cc56f233d4 select is optional here (#16157) 2017-05-03 14:28:14 -07:00
Jeff KenneyandSheetal Nandi 692a3c7637 hapi: set IServerInjectResponse.result to any type since it is a pre-serialization response (#15794)
Add an optional extended description…
2017-04-26 15:18:33 -07:00
AndyandGitHub dae4a527d7 Fix "../tslint.json" to "dtslint.json" (#15957)
* Fix "../tslint.json" to "dtslint.json"

* Fix errors
2017-04-18 10:35:52 -07:00
Andy Hanson 7772bf83b3 hapi: Lint and use Promise instead of IPromise 2017-04-10 09:44:03 -07:00
Morten ChristensenandAndy 7495cb2c5c hapi: use native promise types for async/await compatibility (#15568)
* hapi: use native promise types for async/await compatibility

* hapi: Updated version number
2017-04-10 09:42:59 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00