mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 08:13:44 -05:00
Upgrade to Node 8
This commit is contained in:
parent
274616780a
commit
95516b25af
5 changed files with 2578 additions and 5 deletions
|
@ -1 +1 @@
|
||||||
4.2.1
|
8.11.1
|
|
@ -1,6 +1,6 @@
|
||||||
Settings = require "settings-sharelatex"
|
Settings = require "settings-sharelatex"
|
||||||
mongojs = require "mongojs"
|
mongojs = require "mongojs"
|
||||||
db = mongojs.connect(Settings.mongo.url, ["contacts"])
|
db = mongojs(Settings.mongo.url, ["contacts"])
|
||||||
module.exports =
|
module.exports =
|
||||||
db: db
|
db: db
|
||||||
ObjectId: mongojs.ObjectId
|
ObjectId: mongojs.ObjectId
|
||||||
|
|
2573
services/contacts/package-lock.json
generated
Normal file
2573
services/contacts/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,7 @@
|
||||||
"express": "~4.1.1",
|
"express": "~4.1.1",
|
||||||
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",
|
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",
|
||||||
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.7.1",
|
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.7.1",
|
||||||
"mongojs": "0.18.2",
|
"mongojs": "2.4.0",
|
||||||
"request": "~2.34.0",
|
"request": "~2.34.0",
|
||||||
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
|
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
|
||||||
"underscore": "~1.6.0"
|
"underscore": "~1.6.0"
|
||||||
|
|
|
@ -35,7 +35,7 @@ describe "ContactManager", ->
|
||||||
it "should increment the contact count and timestamp", ->
|
it "should increment the contact count and timestamp", ->
|
||||||
@db.contacts.update
|
@db.contacts.update
|
||||||
.calledWith({
|
.calledWith({
|
||||||
user_id: ObjectId(@user_id)
|
user_id: sinon.match((o) => o.toString() == @user_id.toString())
|
||||||
}, {
|
}, {
|
||||||
$inc:
|
$inc:
|
||||||
"contacts.mock_contact.n": 1
|
"contacts.mock_contact.n": 1
|
||||||
|
@ -70,7 +70,7 @@ describe "ContactManager", ->
|
||||||
it "should find the user's contacts", ->
|
it "should find the user's contacts", ->
|
||||||
@db.contacts.findOne
|
@db.contacts.findOne
|
||||||
.calledWith({
|
.calledWith({
|
||||||
user_id: ObjectId(@user_id)
|
user_id: sinon.match((o) => o.toString() == @user_id.toString())
|
||||||
})
|
})
|
||||||
.should.equal true
|
.should.equal true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue