Commit graph

47 commits

Author SHA1 Message Date
John Lees-Miller
fd6ea2bb70 Add typescript types 2020-05-15 11:24:14 +01:00
John Lees-Miller
497f2a7936 Make tag check stricter and use a map 2020-05-15 11:07:08 +01:00
John Lees-Miller
4b0060f0b1 Remove HTTPErrors from v3 2020-05-15 10:45:08 +01:00
John Lees-Miller
90494fd75f Fix demo require path 2020-05-15 10:36:00 +01:00
John Lees-Miller
8af22ae878 Improve assertion messages in test utility 2020-05-15 10:32:18 +01:00
John Lees-Miller
c44054a31b Add cast for the fake TaggedError 2020-05-05 09:06:15 +01:00
John Lees-Miller
fc197630be Avoid capturing stack trace twice
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
2020-05-05 09:02:11 +01:00
John Lees-Miller
6078aa963d Add typecheck to CI 2020-04-30 10:29:23 +01:00
John Lees-Miller
f6eb185f84 Update README for v3 2020-04-30 10:29:23 +01:00
John Lees-Miller
09cd72d51c Rework to favor tagging over wrapping 2020-04-29 21:08:58 +01:00
John Lees-Miller
1a38f4e4ff Add typescript for type checking 2020-04-29 21:03:41 +01:00
John Lees-Miller
c46075aaab Make constructor take only message and info 2020-04-17 15:45:08 +01:00
John Lees-Miller
0acf1d338d Merge pull request #9 from overleaf/lint
Set up linting
2020-04-17 14:43:43 +01:00
John Lees-Miller
c000bdc43c Add standard and fix complaints 2020-04-17 10:59:27 +01:00
John Lees-Miller
4b903626b4 Apply linting rules 2020-04-17 09:14:35 +01:00
John Lees-Miller
f80753fe40 Add linting and formatting 2020-04-17 09:14:35 +01:00
John Lees-Miller
113c2cc5ec Add CI badge 2020-04-17 09:13:04 +01:00
John Lees-Miller
f2a9a3e240 Merge pull request #8 from overleaf/circleci-project-setup
Add .circleci/config.yml
2020-04-17 09:11:46 +01:00
John Lees-Miller
ad6b25e2c1 Add .circleci/config.yml 2020-04-17 09:10:47 +01:00
John Lees-Miller
2a5b6ccd98 Merge pull request #7 from overleaf/fix-expect
Fix incorrect expect
2020-01-28 13:44:15 +00:00
John Lees-Miller
59156ec89e Fix incorrect expect 2020-01-27 10:45:31 +00:00
John Lees-Miller
f0d59bc192 Bump lodash version 2019-07-30 09:34:49 +01:00
Timothée Alby
12575c5481 Merge pull request #6 from overleaf/ta-http-errors
Add common HTTP errors
2019-07-29 18:25:55 +02:00
Tim Alby
9229c9b3a9 add common HTTP errors 2019-07-29 18:25:31 +02:00
John Lees-Miller
0dd8b124bd Remove private from package.json 2019-07-08 13:24:03 +01:00
John Lees-Miller
bc224b43c9 Add repository to package.json 2019-07-08 13:22:49 +01:00
John Lees-Miller
bf8448073c Merge pull request #5 from overleaf/publish
Prepare to publish v2
2019-07-08 13:18:56 +01:00
John Lees-Miller
79804a8e2f Remove unreachable code 2019-07-08 11:57:28 +01:00
John Lees-Miller
9725b1bf0c Bump to 2.0.0 2019-07-08 11:52:59 +01:00
John Lees-Miller
96ab30883a Remove ES5 interface 2019-07-08 11:52:59 +01:00
John Lees-Miller
bdde7fac65 Move shrinkwrap to package-lock 2019-07-08 11:46:11 +01:00
John Lees-Miller
295a603ca5 Update readme for @overleaf/o-error 2019-07-08 11:45:41 +01:00
John Lees-Miller
970dcb4e8e Update metadata for publishing 2019-07-08 11:35:29 +01:00
John Lees-Miller
5563844151 Merge pull request #4 from overleaf/ta-update
Update to OError
2019-07-08 11:32:59 +01:00
Tim Alby
d63812c557 update tests 2019-07-05 18:55:53 +02:00
Tim Alby
9afd8e4e5d change exports 2019-07-05 18:45:43 +02:00
Tim Alby
626e6267ae update README with OError naming 2019-07-05 15:50:58 +02:00
Tim Alby
76b13e7d35 rename to OError 2019-07-05 15:25:22 +02:00
Tim Alby
9c1b48a5e4 remove ErrorWithStatusCode 2019-07-05 15:24:11 +02:00
Timothée Alby
c63cc52fda Merge pull request #3 from overleaf/ta-info-undefined
Handle Custom Errors Created Without Info
2019-07-04 10:40:02 +02:00
Tim Alby
7bb8a5bd11 handle custom errors created without info 2019-07-04 10:38:56 +02:00
John Lees-Miller
5bf235c549 Merge pull request #2 from overleaf/es6
Add support for errors based on ES6 classes
2019-07-01 11:48:03 +01:00
John Lees-Miller
c167ad9bdb Upgrade mocha version 2019-07-01 11:35:24 +01:00
John Lees-Miller
ed7dc939ac Add support for errors with ES6 classes 2019-07-01 11:34:15 +01:00
John Lees-Miller
0a08a4956e Merge pull request #1 from overleaf/tidy-up
Tidy up for release
2018-04-23 09:51:32 +01:00
John Lees-Miller
138b339c0f Tidy up for release 2018-04-23 08:11:08 +01:00
James Allen
a94b34f37f Initial commit of stand-alone module 2018-03-07 16:42:39 +00:00