Commit Graph

36 Commits

Author SHA1 Message Date
Jack Bates
7d49da5f8b
[boom] Remove unused lint exceptions (#48008) 2020-09-23 14:31:16 -07:00
Wesley Wigham
6970a8fffa
#no-publishing-comment No more tabs in json documents, trailing newlines for every document 2020-05-15 12:27:10 -07:00
Jack Bates
f740de01a3
Enable strictNullChecks 2/3 (#42650) 2020-02-26 15:01:31 -08:00
Gabriela Araujo Britto
e980ea529f
Update tslint configs (#42555)
* Update tslint configs

* Update npm-naming configs

* Fix some configs

#no-publishing-comment
2020-02-24 16:06:03 -08:00
Jonathan Mannancheril
53b0020a89 Add typeof to Boom (#37043) 2019-08-05 09:57:15 -07:00
Andy
141d1cc870
And tslint disables for no-angle-bracket-type-assertion (#30592) 2018-11-16 12:20:58 -08:00
Simon Schick
fa01268068 fix(hapi): make cache generic (#29904) 2018-10-22 11:56:04 -04:00
Andy
e5996bd17a boom: Remove unused dependency on hapi (#29859) 2018-10-18 13:00:09 -07:00
Daniel Machado
2e07611204 Fix construtor problems 2018-03-04 11:29:15 +01:00
Daniel Machado
9bfd82b8fd Add me as a new author 2018-03-02 11:41:03 +01:00
Daniel Machado
c6883b775e Missing upgrade version in headers 2018-03-02 11:34:54 +01:00
Daniel Machado
6d34274043 Add new failedDependency method for hapijs/boom 7.2.0 2018-03-02 11:31:28 +01:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Niklas Wulf
6faad9d199 [boom] isBoom is a type-guard (#22918)
Instead of just returning boolean, the `isBoom` function can and should be a type-guard, which enables the obvious benefits.
2018-01-17 09:57:36 -08:00
Timon van Spronsen
3bcf6f3ab2 Change Boom version for dependents 2018-01-02 09:27:33 +01:00
Timon van Spronsen
b102c8b5db Update types for Boom 7.1.1 2017-12-29 14:30:55 +01:00
Andy
954ee278de
Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Jinesh Shah
01b1d90bc2 Added Boomify as per the new API [types/boom/index.d.ts] (#18363)
* Update index.d.ts

* Update index.d.ts

* added boomify test
2017-07-31 14:11:28 -07:00
Niklas Wulf
046b7d5ff9 [Boom, Hapi] Add default generic type to all error creation functions (#17048)
* [Boom] Add default generic type to all error creation functions

* [Boom] Change default generic Data type to any instead of null

* [Boom] Add tests for error creation without custom data

* [Boom, Hapi] Move tests for passing Boom errors to Hapi continuation functions into hapi package

* [boom] add wrap and unauthorized return BoomError with data as null
2017-06-08 06:33:24 -07:00
Alexander James Phillips
7ea548f1fa [Boom] Add data type to BoomError #16956 (#17022)
* [Boom] Add data type to BoomError #16956

* [Boom] Update TypeScript version to 2.3 in packages that import Boom
2017-06-07 09:37:40 -07:00
Christian
ea7b301f5d boom: add missing internal() alias (#16696) 2017-06-01 09:52:13 -07: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
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
4340843152 Boom, add test and allow for payload to be extended (#15961)
* Boom, add test and allow for payload to be extended

* Do not use I prefix for interface names
2017-04-21 07:32:06 -07:00
Alexander James Phillips
2dc626ee56 Temporarily remove tslint 2017-04-04 15:05:40 +01:00
Alexander James Phillips
18be1bfdb3 Add tslint.json 2017-04-04 14:50:00 +01:00
Alexander James Phillips
74939cd275 Update type of header object values 2017-04-04 14:17:17 +01:00
Alexander James Phillips
d245364d9b Update to boom v4.3
BoomError subclasses Error
Include typing of BoomError.output.headers and .payload
Add missing error types
Better typing of 401 unauthorized error
Add more tests
Add content from docs and links back to docs
2017-04-03 19:52:44 +01:00
Alexander James Phillips
9bd7ce5b7d Add boom version of v3.2 2017-04-03 19:48:08 +01:00
Alexander James Phillips
ea837b8626 Fix boom v3 tsconfig 2017-04-03 19:41:46 +01:00
Alexander James Phillips
1e1de92c55 Move current boom definitions to v3 2017-04-03 19:41:14 +01:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00