Comparing version 0.12.3 to 0.12.4
'use strict'; | ||
const _ = require('lodash'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const fs = require('../util').fs; | ||
const Datastore = require('nedb-core'); | ||
@@ -20,3 +19,3 @@ const DatabaseClient = require('./client'); | ||
} | ||
return path.join(dbLocation, collection) + '.db'; | ||
return `${dbLocation}/${collection}.db`; | ||
}; | ||
@@ -23,0 +22,0 @@ |
@@ -12,2 +12,18 @@ 'use strict'; | ||
exports.deepTraverse = deepTraverse; | ||
var fs = { | ||
stat: () => { | ||
// STUB | ||
}, | ||
unlink: () => { | ||
// STUB | ||
} | ||
}; | ||
try { | ||
fs = require('fs'); | ||
} catch (e) { | ||
// FS is not supported in this environment | ||
} | ||
exports.deepTraverse = deepTraverse; | ||
exports.fs = fs; |
{ | ||
"name": "nedb-camo", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"description": "A class-based ES6 ODM for Mongo-like databases.", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235068
5360