Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stockshark-drive-local

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stockshark-drive-local - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

2

package.json
{
"name": "stockshark-drive-local",
"version": "1.0.14",
"version": "1.0.15",
"description": "Local Drive for StockShark",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -36,7 +36,3 @@ const path = require('path')

this.checkRootFolder()
console.log("loadTextFileLastLine", 1)
const filePath = path.resolve(this.currentFolderPath, fileName)
console.log("loadTextFileLastLine", 2)
if (!fs.pathExistsSync(filePath)) {

@@ -46,24 +42,22 @@ return null

// return new Promise((resolve, reject) => {
// const stream = readline.createInterface({
// input: fs.createReadStream(filePath),
// crlfDelay: Infinity,
// });
return new Promise((resolve, reject) => {
const stream = readline.createInterface({
input: fs.createReadStream(filePath),
crlfDelay: Infinity,
});
// let lastLine = '';
let lastLine = '';
// stream.on('line', (line) => {
// lastLine = line;
// });
stream.on('line', (line) => {
lastLine = line;
});
// stream.on('close', () => {
// resolve(lastLine);
// });
stream.on('close', () => {
resolve(lastLine);
});
// stream.on('error', (err) => {
// reject(err);
// });
// });
console.log("loadTextFileLastLine", 3)
return null
stream.on('error', (err) => {
reject(err);
});
});
}

@@ -70,0 +64,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc