larvitfiles
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -12,2 +12,3 @@ 'use strict'; | ||
async = require('async'), | ||
that = this, | ||
log = require('winston'), | ||
@@ -148,2 +149,13 @@ db = require('larvitdb'); | ||
'obj': exports, | ||
'objectKey': 'options', | ||
'default': {} | ||
}, function (err, warning) { | ||
if (warning) log.warn(logPrefix + warning); | ||
cb(err); | ||
}); | ||
}); | ||
tasks.push(function (cb) { | ||
checkKey({ | ||
'obj': exports, | ||
'objectKey': 'mode', | ||
@@ -242,3 +254,10 @@ 'validValues': ['master', 'slave', 'noSync'], | ||
function runDumpServer(cb) { | ||
const options = {'exchange': exports.exchangeName + '_dataDump'}, | ||
const options = { | ||
'exchange': exports.exchangeName + '_dataDump', | ||
'amsync': { | ||
'host': that.options.amsync ? that.options.amsync.host : null, | ||
'minPort': that.options.amsync ? that.options.amsync.minPort : null, | ||
'maxPort': that.options.amsync ? that.options.amsync.maxPort : null | ||
} | ||
}, | ||
args = []; | ||
@@ -357,4 +376,5 @@ | ||
exports.exchangeName = 'larvitfiles'; | ||
exports.options = undefined; | ||
exports.ready = ready; | ||
exports.rm = rm; | ||
exports.save = save; |
@@ -413,1 +413,2 @@ 'use strict'; | ||
exports.getFileUuidBySlug = getFileUuidBySlug; | ||
exports.options = dataWriter.options; |
{ | ||
"name": "larvitfiles", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Storage of files with an API and database to use in web environments", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
47978
1250
23