File tree 4 files changed +7
-7
lines changed 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 17
17
"express" : " ^4.9.5" ,
18
18
"json-parse-helpfulerror" : " ^1.0.3" ,
19
19
"lodash" : " ^4.11.2" ,
20
+ "lodash-id" : " ^0.13.0" ,
20
21
"lowdb" : " ^0.15.0" ,
21
22
"method-override" : " ^2.1.2" ,
22
23
"morgan" : " ^1.3.1" ,
25
26
"request" : " ^2.72.0" ,
26
27
"server-destroy" : " ^1.0.1" ,
27
28
"shortid" : " ^2.2.6" ,
28
- "underscore-db" : " ^0.12.2" ,
29
29
"update-notifier" : " ^1.0.2" ,
30
30
"yargs" : " ^6.0.0"
31
31
},
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function getRemovable (db) {
34
34
}
35
35
36
36
// Return incremented id or uuid
37
- // Used to override underscore-db 's createId with utils.createId
37
+ // Used to override lodash-id 's createId with utils.createId
38
38
function createId ( coll ) {
39
39
const _ = this
40
40
const idProperty = _ . __id ( )
Original file line number Diff line number Diff line change 1
1
const express = require ( 'express' )
2
2
const methodOverride = require ( 'method-override' )
3
3
const _ = require ( 'lodash' )
4
- const _db = require ( 'underscore-db ' )
4
+ const lodashId = require ( 'lodash-id ' )
5
5
const low = require ( 'lowdb' )
6
6
const fileAsync = require ( 'lowdb/lib/storages/file-async' )
7
7
const bodyParser = require ( '../body-parser' )
@@ -30,8 +30,8 @@ module.exports = (source) => {
30
30
31
31
validateData ( db . getState ( ) )
32
32
33
- // Add underscore-db methods to db
34
- db . _ . mixin ( _db )
33
+ // Add lodash-id methods to db
34
+ db . _ . mixin ( lodashId )
35
35
36
36
// Add specific mixins
37
37
db . _ . mixin ( mixins )
Original file line number Diff line number Diff line change 1
1
const assert = require ( 'assert' )
2
2
const _ = require ( 'lodash' )
3
- const _db = require ( 'underscore-db ' )
3
+ const lodashId = require ( 'lodash-id ' )
4
4
const mixins = require ( '../../src/server/mixins' )
5
5
6
6
describe ( 'mixins' , ( ) => {
7
7
let db
8
8
9
9
before ( ( ) => {
10
- _ . mixin ( _db )
10
+ _ . mixin ( lodashId )
11
11
_ . mixin ( mixins )
12
12
} )
13
13
You can’t perform that action at this time.
0 commit comments