Socket
Socket
Sign inDemoInstall

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.12 to 1.0.13

2

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

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

@@ -35,29 +35,28 @@ const path = require('path')

async loadTextFileLastLine(fileName) {
this.checkRootFolder()
const filePath = path.resolve(this.currentFolderPath, fileName)
if (!fs.pathExistsSync(filePath)) {
return null
}
return new Promise((resolve, reject) => {
try {
this.checkRootFolder()
const stream = readline.createInterface({
input: fs.createReadStream(filePath),
crlfDelay: Infinity,
});
const filePath = path.resolve(this.currentFolderPath, fileName)
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);
});
}
catch (err) {
stream.on('error', (err) => {
reject(err);
}
});
});

@@ -64,0 +63,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