mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #55 from overleaf/jpa-bump-metrics-module
[misc] bump metrics module to 3.4.1
This commit is contained in:
commit
8a55cc545a
5 changed files with 811 additions and 801 deletions
|
@ -4,7 +4,7 @@
|
||||||
* DS207: Consider shorter variations of null checks
|
* DS207: Consider shorter variations of null checks
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const Metrics = require('metrics-sharelatex')
|
const Metrics = require('@overleaf/metrics')
|
||||||
Metrics.initialize('contacts')
|
Metrics.initialize('contacts')
|
||||||
|
|
||||||
const Settings = require('settings-sharelatex')
|
const Settings = require('settings-sharelatex')
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
let ContactManager
|
let ContactManager
|
||||||
const { db, ObjectId } = require('./mongodb')
|
const { db, ObjectId } = require('./mongodb')
|
||||||
const logger = require('logger-sharelatex')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('@overleaf/metrics')
|
||||||
|
|
||||||
module.exports = ContactManager = {
|
module.exports = ContactManager = {
|
||||||
touchContact(user_id, contact_id, callback) {
|
touchContact(user_id, contact_id, callback) {
|
||||||
|
|
1604
services/contacts/package-lock.json
generated
1604
services/contacts/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -19,11 +19,11 @@
|
||||||
"format:fix": "node_modules/.bin/prettier-eslint $PWD'/**/*.js' --write"
|
"format:fix": "node_modules/.bin/prettier-eslint $PWD'/**/*.js' --write"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@overleaf/metrics": "^3.4.1",
|
||||||
"async": "^2.6.3",
|
"async": "^2.6.3",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"logger-sharelatex": "^2.2.0",
|
"logger-sharelatex": "^2.2.0",
|
||||||
"metrics-sharelatex": "^2.6.2",
|
|
||||||
"mongodb": "^3.6.0",
|
"mongodb": "^3.6.0",
|
||||||
"request": "~2.88.2",
|
"request": "~2.88.2",
|
||||||
"settings-sharelatex": "^1.1.0",
|
"settings-sharelatex": "^1.1.0",
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('ContactManager', function () {
|
||||||
ObjectId
|
ObjectId
|
||||||
},
|
},
|
||||||
'logger-sharelatex': { log: sinon.stub() },
|
'logger-sharelatex': { log: sinon.stub() },
|
||||||
'metrics-sharelatex': { timeAsyncMethod: sinon.stub() }
|
'@overleaf/metrics': { timeAsyncMethod: sinon.stub() }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.user_id = ObjectId().toString()
|
this.user_id = ObjectId().toString()
|
||||||
|
|
Loading…
Reference in a new issue