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.13 to 1.0.14

2

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

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

@@ -36,4 +36,7 @@ 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)) {

@@ -43,22 +46,24 @@ 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);
});
});
// stream.on('error', (err) => {
// reject(err);
// });
// });
console.log("loadTextFileLastLine", 3)
return null
}

@@ -65,0 +70,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