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

smart-fs

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-fs - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

lib/logic/guess-file.js

@@ -8,3 +8,3 @@ const fs = require('fs');

const basename = path.basename(filepath);
const relevantFiles = fs.readdirSync(dirname).filter(f => f === basename || f.startsWith(`${basename}.`));
const relevantFiles = fs.readdirSync(dirname).filter(f => f === basename || f.startsWith(`${basename}.`) && f.lastIndexOf('.') <= basename.length);

@@ -21,2 +21,2 @@ if (relevantFiles.includes(basename)) {

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dpYy9ndWVzcy1maWxlLmpzIl0sIm5hbWVzIjpbImZzIiwicmVxdWlyZSIsInBhdGgiLCJtb2R1bGUiLCJleHBvcnRzIiwiZmlsZXBhdGgiLCJkaXJuYW1lIiwiYmFzZW5hbWUiLCJyZWxldmFudEZpbGVzIiwicmVhZGRpclN5bmMiLCJmaWx0ZXIiLCJmIiwic3RhcnRzV2l0aCIsImluY2x1ZGVzIiwibGVuZ3RoIiwiam9pbiJdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTUEsRUFBRSxHQUFHQyxPQUFPLENBQUMsSUFBRCxDQUFsQjs7QUFDQSxNQUFNQyxJQUFJLEdBQUdELE9BQU8sQ0FBQyxNQUFELENBQXBCOztBQUVBRSxNQUFNLENBQUNDLE9BQVAsR0FBa0JDLFFBQUQsSUFBYztBQUM3QixRQUFNQyxPQUFPLEdBQUdKLElBQUksQ0FBQ0ksT0FBTCxDQUFhRCxRQUFiLENBQWhCO0FBQ0EsUUFBTUUsUUFBUSxHQUFHTCxJQUFJLENBQUNLLFFBQUwsQ0FBY0YsUUFBZCxDQUFqQjtBQUNBLF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1.2.1",
"description": "Abstraction Layer for File Management.",

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

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