Socket
Socket
Sign inDemoInstall

filing-cabinet

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filing-cabinet - npm Package Compare versions

Comparing version 4.1.6 to 4.2.0

34

index.js

@@ -35,3 +35,4 @@ 'use strict';

'.ts': tsLookup,
'.tsx': tsLookup
'.tsx': tsLookup,
'.vue': vueLookup
};

@@ -393,2 +394,33 @@

function vueLookup(options) {
const { dependency } = options;
if (!dependency) {
debug('blank dependency given. Returning early.');
return '';
}
if (dependency.endsWith('.js') || dependency.endsWith('.jsx')) {
return jsLookup(options);
}
if (dependency.endsWith('.ts') || dependency.endsWith('.tsx')) {
return tsLookup(options);
}
if (dependency.endsWith('.scss') || dependency.endsWith('.sass') || dependency.endsWith('.less')) {
return sassLookup(options);
}
if (dependency.endsWith('.styl')) {
return stylusLookup(options);
}
if (options.tsConfig || options.tsConfigPath) {
return tsLookup(options);
}
return jsLookup(options);
}
function resolveWebpackPath({ dependency, filename, directory, webpackConfig }) {

@@ -395,0 +427,0 @@ if (!webpackResolve) {

2

package.json
{
"name": "filing-cabinet",
"version": "4.1.6",
"version": "4.2.0",
"description": "Find files based on partial paths",

@@ -5,0 +5,0 @@ "main": "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