Socket
Socket
Sign inDemoInstall

leo-connector-common

Package Overview
Dependencies
284
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.4 to 1.1.5-109-ga8339d0

4

botHelper.js

@@ -219,3 +219,3 @@ "use strict";

} else {
stats.checkpoint(callback)
stats.checkpoint(callback);
}

@@ -295,4 +295,4 @@ });

}
}
};
};
};

@@ -24,3 +24,3 @@ const exec = require('child_process').exec;

if (count % 10000 == 0) {
console.log(count);
console.log(count, obj.eid);
}

@@ -112,27 +112,27 @@ let payload = obj.payload;

ls.pipe(fs.createReadStream(sortedFile), ls.split(), ls.through((line, done, push) => {
try {
var id = line.substr(0, 32);
var data = JSON.parse(line.substr(42));
} catch (e) {
console.log(e);
console.log(file);
console.log(line.toString());
process.exit();
}
if (lastObj && id === lastId) {
lastObj = merge(lastObj, data);
} else {
if (lastObj) {
push(lastObj);
}
lastObj = data;
}
lastId = id;
done();
},
function(done) {
try {
var id = line.substr(0, 32);
var data = JSON.parse(line.substr(42));
} catch (e) {
console.log(e);
console.log(file);
console.log(line.toString());
process.exit();
}
if (lastObj && id === lastId) {
lastObj = merge(lastObj, data);
} else {
if (lastObj) {
done(null, lastObj);
push(lastObj);
}
}), pass, (err) => {
lastObj = data;
}
lastId = id;
done();
},
function(done) {
if (lastObj) {
done(null, lastObj);
}
}), pass, (err) => {
if (err) {

@@ -147,2 +147,2 @@ pass.emit('error', err);

return pass;
}
}

@@ -7,2 +7,3 @@ "use strict";

const async = require("async");
module.exports = function(client, tableConfig, stream, callback) {

@@ -121,3 +122,3 @@ let tableStatuses = {};

on: f,
destination: client.getDimensionColumn(f),
destination: client.getDimensionColumn(f, field),
link_date: "_auditdate",

@@ -124,0 +125,0 @@ sk: tableSks[link.table]

{
"name": "leo-connector-common",
"version": "1.1.4",
"version": "1.1.5-109-ga8339d0",
"description": "Common package for all Leo Platform database connectors",

@@ -23,10 +23,9 @@ "main": "index.js",

"eslint": "^4.17.0",
"mocha": "^5.0.0",
"mysql": "^2.15.0"
"mocha": "^5.0.0"
},
"dependencies": {
"async": "^2.6.0",
"leo-sdk": "^1.1.0",
"leo-sdk": "^1.1.1",
"moment": "^2.22.1"
}
}

@@ -31,3 +31,3 @@ const async = require("async");

done(err);
});
}, {inRowMode: false});
} else {

@@ -41,3 +41,3 @@ let sql = idthing.query.replace(/\(\?\)/, lookupIds);

done(err);
});
}, {inRowMode: false});
}

@@ -62,3 +62,3 @@

done(err);
});
}, {inRowMode: false});
});

@@ -65,0 +65,0 @@ }

@@ -62,4 +62,2 @@ "use strict";

function submit(push, done) {

@@ -241,2 +239,12 @@ async.doWhilst((done) => {

});
function getId(o) {
if (Array.isArray(idKeys)) {
return {
[idKeys[0]]: o[idKeys[0]],
[idKeys[1]]: o[idKeys[1]]
};
} else {
return o[idKeys];
}
}
async.parallelLimit(tasks, 5, (err) => {

@@ -248,13 +256,2 @@ if (err) {

function getId(o) {
if (Array.isArray(idKeys)) {
return {
[idKeys[0]]: o[idKeys[0]],
[idKeys[1]]: o[idKeys[1]]
};
} else {
return o[idKeys];
}
}
ids.forEach((id, i) => {

@@ -261,0 +258,0 @@ // skip the domain if there is no data with it

@@ -69,3 +69,3 @@ const leo = require("leo-sdk");

if (err) {
callback(err)
callback(err);
} else {

@@ -88,3 +88,3 @@ // reuse an existing bucket key if we’re resuming, otherwise create a new one.

if (Array.isArray(id)) {
transform = loaderJoin(client, id, domain, {
transform = loaderJoin(client, id, null, domain, {
source: 'snapshot',

@@ -91,0 +91,0 @@ isSnapshot: true

@@ -22,4 +22,4 @@ require("chai").should();

if (!stream.write({
test: [++count, ++count, ++count]
})) {
test: [++count, ++count, ++count]
})) {
stream.once('drain', done);

@@ -59,3 +59,3 @@ } else {

callback(err, result, fields);
})
});
},

@@ -100,2 +100,2 @@ disconnect: m.end

});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc