Commit Graph

580 Commits

Author SHA1 Message Date
decaffeinate b51f05bf5e decaffeinate: Rename AccessTokenEncryptor.coffee from .coffee to .js 2020-02-17 16:04:53 +01:00
John Lees-Miller 59156ec89e Fix incorrect expect 2020-01-27 10:45:31 +00:00
Brian Gough 2273978e7b fix gauge usage 2019-12-16 11:42:10 +00:00
Brian Gough 3a5374c6f9 increase minor version for backwards compatible addition 2019-12-16 10:22:50 +00:00
Brian Gough 93df87eff3 allow options for count 2019-12-16 10:18:30 +00:00
Simon Detheridge 620573c0ad Add an explicit test for a 2019 string 2019-12-09 16:07:25 +00:00
Simon Detheridge b8d5f6baeb Split methods to reduce code duplication 2019-12-09 15:35:22 +00:00
Simon Detheridge 73f293cf49 Remove unneeded 'async' dependency
Co-Authored-By: Jakob Ackermann <das7pad@outlook.com>
2019-12-09 15:01:31 +00:00
Simon Detheridge a9e39af24f Keep oldmethods and use old method when app uses an older label 2019-12-09 14:49:23 +00:00
Simon Detheridge c1cd5c65e7 Update dev dependencies 2019-12-05 08:58:49 +00:00
Simon Detheridge 120890bb08 Update lib/coffee/AccessTokenEncryptor.coffee
Co-Authored-By: Jakob Ackermann <das7pad@outlook.com>
2019-12-05 08:57:19 +00:00
Simon Detheridge c2fc2ed178 Replace deprecated createCipher with createCipheriv for new tokens
Co-authored-by: Alasdair Smith <ali@alasdairsmith.co.uk>
2019-12-04 10:09:39 +00:00
Simon Detheridge 4d6ed4fd3a Run tests via 'npm test' 2019-12-04 10:02:20 +00:00
Simon Detheridge 53aa2490f5 Merge pull request #20 from overleaf/spd-metrics-ttl
Add mechanism to expire old prometheus metrics
2019-10-28 17:21:57 +00:00
Simon Detheridge feecda8ea8 Use map instead of hash for metrics 2019-10-28 14:39:53 +00:00
Simon Detheridge e0cf10a886 Fix typo, gague -> gauge 2019-10-28 12:34:04 +00:00
Eric Mc Sween 7b7b6d0793 2.3.0 2019-10-25 07:17:43 -04:00
Eric Mc Sween 364cdf1fdb 1.9.0 2019-10-25 07:15:35 -04:00
Eric Mc Sween 166211b278 Stackdriver logging
When the environment variable STACKDRIVER_LOGGING is set to true, send
request logs in a format that Stackdriver knows how to interpret. Also,
set the log level accordint to the status code. 4xx responses are logged
as warnings and 5xx responses are logged as errors.
2019-10-24 22:05:12 -04:00
Eric Mc Sween cb300b79ea Add option to log to Stackdriver
When the environment variable STACKDRIVER_LOGGING is set to true, logs
are sent to Stackdriver in addition to stdout.
2019-10-24 17:15:29 -04:00
Eric Mc Sween 905d65931a Small cleanup, satisfy linter, add prettier 2019-10-24 17:15:29 -04:00
Simon Detheridge 07e4eb4dfb Add mechanism to expire old prometheus metrics
Adds a wrapper around the prometheus client, which keeps track of the
last time a metrics was accessed, and removes old ones once they have
not been accessed for a period of time.
2019-10-23 17:07:45 +01:00
Shane Kilkelly 1735e8f56b Upgrade to node 10, specify digest in pbkdf2 2019-10-08 15:53:08 +01:00
Brian Gough c8d50d0ee9 upgrade ioredis to v4.14.1 2019-10-01 16:44:04 +01:00
John Lees-Miller 626511fa73 Bump version number 2019-09-19 16:11:59 +01:00
Brian Gough d9214b6eeb check full reply in health check 2019-09-19 15:41:43 +01:00
Brian Gough 2435099766 make health check more robust 2019-09-19 15:05:32 +01:00
John Lees-Miller f0d59bc192 Bump lodash version 2019-07-30 09:34:49 +01:00
Tim Alby 9229c9b3a9 add common HTTP errors 2019-07-29 18:25:31 +02:00
John Lees-Miller 1482e6841b Bump to 1.8.0 and include license 2019-07-11 13:07:47 +01:00
Miguel Serrano 7e6b562981 Fix test setup (#15) 2019-07-11 13:25:09 +02:00
Miguel Serrano 6b3e7e4ffc replace bunyan error serializer with custom one (#14) 2019-07-11 12:11:09 +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 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
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
Tim Alby 7bb8a5bd11 handle custom errors created without info 2019-07-04 10:38:56 +02:00
Henry Oswald 630a957d7b bump ioredis to have naptmap for sentinal 2019-07-02 11:56:21 +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
Brian Gough 286eb747ad add status label to gauges 2019-06-06 10:34:55 +01:00