larvituser
Advanced tools
Comparing version 0.10.12 to 0.10.13
@@ -27,2 +27,8 @@ 'use strict'; | ||
if (typeof deliveryTag === 'function') { | ||
cb = deliveryTag; | ||
deliveryTag = false; | ||
msgUuid = false; | ||
} | ||
if (cb === undefined || typeof cb !== 'function') { | ||
@@ -63,3 +69,3 @@ cb = function () {}; | ||
log.warn(logPrefix + err.message); | ||
exports.emitter.emit(msgUuid, err); | ||
if (msgUuid !== false) exports.emitter.emit(msgUuid, err); | ||
return cb(err); | ||
@@ -75,3 +81,3 @@ } | ||
setImmediate(function () { | ||
exports.emitter.emit(msgUuid); | ||
if (msgUuid !== false) exports.emitter.emit(msgUuid); | ||
return cb(); | ||
@@ -86,3 +92,3 @@ }); | ||
} | ||
exports.emitter.emit(msgUuid, err); | ||
if (msgUuid !== false) exports.emitter.emit(msgUuid, err); | ||
cb(err); | ||
@@ -187,4 +193,3 @@ }); | ||
db.query(sql, dbFields, function (err) { | ||
const fieldsParams = {}, | ||
msgUuid2 = uuidLib.v4(); | ||
const fieldsParams = {}; | ||
@@ -200,3 +205,3 @@ if (err) { | ||
addUserDataFields(fieldsParams, '', msgUuid2, function (err) { | ||
addUserDataFields(fieldsParams, function (err) { | ||
if (err) { | ||
@@ -203,0 +208,0 @@ log.warn(logPrefix + err.message); |
@@ -175,2 +175,3 @@ 'use strict'; | ||
sendObj.params.password = hashedPassword; | ||
sendObj.params.fields = userData; | ||
@@ -184,7 +185,2 @@ dataWriter.intercom.send(sendObj, options, function (err, msgUuid) { | ||
// Write fields via queue | ||
tasks.push(function (cb) { | ||
addUserDataFields(uuid, userData, cb); | ||
}); | ||
async.series(tasks, function (err) { | ||
@@ -191,0 +187,0 @@ if (err) return cb(err); |
{ | ||
"name": "larvituser", | ||
"version": "0.10.12", | ||
"version": "0.10.13", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Mikael 'Lilleman' Göransson", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
78901
20
2071
14