proxima_datareader
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -123,7 +123,7 @@ "use strict"; | ||
_context.next = 29; | ||
return (0, _processors.makeDataStream)(notEmptySources, searchTypeName, keys); | ||
return (0, _processors.makeDataStream)(notEmptySources, searchTypeName, keys, resFolder); | ||
case 29: | ||
_context.next = 31; | ||
return (0, _processors.makeStructuredData)(); | ||
return (0, _processors.makeStructuredData)(resFolder); | ||
@@ -180,2 +180,2 @@ case 31: | ||
exports["default"] = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJhcHAiLCJzZWFyY2hUeXBlcyIsImRlZmF1bHRWYWx1ZXMiLCJyZW5kZXJUeXBlcyIsImZpbGVUeXBlcyIsInNlYXJjaFBhcmFtcyIsInNlYXJjaFR5cGVOYW1lIiwia2V5c0RhdGFUeXBlIiwia2V5cyIsImtleXNGb2xkZXIiLCJjb25zb2xlIiwibG9nIiwicmVzRm9sZGVyIiwicGF0aCIsImpvaW4iLCJmcyIsImV4aXN0c1N5bmMiLCJta2RpclN5bmMiLCJyZWN1cnNpdmUiLCJyZXNGb2xkZXJGaWxlc0xpc3QiLCJyZWFkZGlyU3luYyIsImpzb25GaWxlc0xpc3QiLCJmaWx0ZXIiLCJmaWxlTmFtZSIsImV4dG5hbWUiLCJsZW5ndGgiLCJmaWxlVG9SZW5kZXIiLCJzZWxlY3RlZERhdGFQYXRoIiwiZmlsZXNTb3VyY2UiLCJwYXRocyIsIl8iLCJwYXJ0aXRpb24iLCJwYXRoVG9GaWxlIiwiaXNBcnJheSIsImVtcHR5U291cmNlcyIsIm5vdEVtcHR5U291cmNlcyIsInByb2Nlc3NlZERhdGFQYXRoIiwidG90YWxJbmZvIiwic2l6ZSIsImVyciIsIkVycm9yIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FB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yb3IoZXJyKTtcbiAgfSk7XG59O1xuIl19 |
@@ -86,3 +86,3 @@ "use strict"; | ||
var makeDataStream = function makeDataStream(pathDataColl, searchType, keys) { | ||
var makeDataStream = function makeDataStream(pathDataColl, searchType, keys, resFolder) { | ||
var readablePaths = new _StreamReader["default"](pathDataColl, { | ||
@@ -131,3 +131,3 @@ objectMode: true, | ||
var writeColl = _fs["default"].createWriteStream("".concat(__dirname, "/data.txt")); | ||
var writeColl = _fs["default"].createWriteStream("".concat(resFolder, "/temp_data.txt")); | ||
@@ -143,7 +143,7 @@ return new Promise(function (resolve, reject) { | ||
var makeStructuredData = function makeStructuredData() { | ||
var makeStructuredData = function makeStructuredData(resFolder) { | ||
return new Promise(function (resolve, reject) { | ||
var totalInfo = {}; | ||
var readable = _fs["default"].createReadStream("".concat(__dirname, "/data.txt")); | ||
var readable = _fs["default"].createReadStream("".concat(resFolder, "/temp_data.txt")); | ||
@@ -238,2 +238,2 @@ readable.pipe((0, _split["default"])()).on('data', function (dataPair) { | ||
exports.selectZeroMovements = selectZeroMovements; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9wcm9jZXNzb3JzLmpzIl0sIm5hbWVzIjpbIm1ha2VQYXRocyIsInNvdXJjZSIsImZpbGVUeXBlcyIsInBhdGhzTGlzdCIsImluZm8iLCJmcyIsInN0YXRTeW5jIiwic2l6ZSIsImlzRGlyZWN0b3J5IiwiZmlsZUV4dCIsInBhdGgiLCJleHRuYW1lIiwiaXNDb3JyZWN0Rm9ybWF0IiwiaW5jbHVkZXMiLCJkaXJDb250ZW50IiwicmVhZGRpclN5bmMiLCJyZXNDb250ZW50Q29sbCIsInJlZHVjZSIsImFjYyIsIm5hbWUiLCJpbm5lclBhdGgiLCJqb2luIiwibWFrZURhdGFTdHJlYW0iLCJwYXRoRGF0YUNvbGwiLCJzZWFyY2hUeXBlIiwia2V5cyIsInJlYWRhYmxlUGF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bilcbiAgICAgIC5vbignZmluaXNoJywgKCkgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhgU3RydWN0dXJlZCBKU09OLWRhdGEgYXJlIHNhdmVkIGluICR7cHJvY2Vzc2VkRGF0YVBhdGh9XFxuYCk7XG4gICAgICAgIHJlc29sdmUoKTtcbiAgICAgIH0pXG4gICAgICAub24oJ2Vycm9yJywgcmVqZWN0KTtcbiAgfSk7XG5cbiAgcmV0dXJuIHN0cmVhbXNJblByb21pc2U7XG59O1xuXG5leHBvcnQgY29uc3Qgc2VsZWN0WmVyb01vdmVtZW50cyA9IChwYXRoRGF0YUNvbGwpID0+IHtcbiAgY29uc3Qgc2VwYXJhdGVkSXRlbXMgPSBfLnBhcnRpdGlvbihwYXRoRGF0YUNvbGwsIChbLCBjb250ZW50XSkgPT4ge1xuICAgIGNvbnN0IGhhc1plcm9zID0gY29udGVudC5zcGxpdCgnXFxuJykuZXZlcnkoKGxpbmUpID0+IHtcbiAgICAgIGNvbnN0IFssLCxcbiAgICAgICAgY291bnRJbiwsXG4gICAgICAgIGNvdW50T3V0LFxuICAgICAgXSA9IGxpbmUuc3BsaXQoJ1xcdCcpO1xuICAgICAgY29uc3QgaXNaZXJvID0gTnVtYmVyKGNvdW50SW4pID09PSAwICYmIE51bWJlcihjb3VudE91dCkgPT09IDA7XG4gICAgICByZXR1cm4gaXNaZXJvO1xuICAgIH0pO1xuXG4gICAgcmV0dXJuIGhhc1plcm9zO1xuICB9KTtcblxuICBjb25zdCBbemVyb0NvdW50cywgcmVzdF0gPSBzZXBhcmF0ZWRJdGVtcztcbiAgY29uc3QgW21hdGNoZWRQYXRoc10gPSBfLnVuemlwKHplcm9Db3VudHMpO1xuICBjb25zdCBbZGF0YVBhdGhzXSA9IF8udW56aXAocmVzdCk7XG5cbiAgcmV0dXJuIFttYXRjaGVkUGF0aHMsIGRhdGFQYXRoc107XG59O1xuIl19 |
{ | ||
"name": "proxima_datareader", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "data reader & selector 4 incoming data files having 1 of following extensions: \n'.mdr', '.mwr', '.mmr', '.mdi', '.mwi', '.mmi'", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -69,4 +69,4 @@ import fs from 'fs'; | ||
console.log('\nData-processing is ongoing...\n'); | ||
await makeDataStream(notEmptySources, searchTypeName, keys); | ||
const totalInfo = await makeStructuredData(); | ||
await makeDataStream(notEmptySources, searchTypeName, keys, resFolder); | ||
const totalInfo = await makeStructuredData(resFolder); | ||
if (_.size(totalInfo) === 0) { | ||
@@ -73,0 +73,0 @@ console.log('No data is found\n'); |
@@ -32,3 +32,3 @@ import fs from 'fs'; | ||
export const makeDataStream = (pathDataColl, searchType, keys) => { | ||
export const makeDataStream = (pathDataColl, searchType, keys, resFolder) => { | ||
const readablePaths = new CustomReader(pathDataColl, { | ||
@@ -71,3 +71,3 @@ objectMode: true, | ||
const writeColl = fs.createWriteStream(`${__dirname}/data.txt`); | ||
const writeColl = fs.createWriteStream(`${resFolder}/temp_data.txt`); | ||
return new Promise((resolve, reject) => { | ||
@@ -85,5 +85,5 @@ readablePaths | ||
export const makeStructuredData = () => new Promise((resolve, reject) => { | ||
export const makeStructuredData = resFolder => new Promise((resolve, reject) => { | ||
const totalInfo = {}; | ||
const readable = fs.createReadStream(`${__dirname}/data.txt`); | ||
const readable = fs.createReadStream(`${resFolder}/temp_data.txt`); | ||
readable | ||
@@ -90,0 +90,0 @@ .pipe(split()) |
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
140081