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

filing-cabinet

Package Overview
Dependencies
Maintainers
1
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 2.3.0 to 2.3.1

17

index.js

@@ -222,6 +222,17 @@ 'use strict';

debug('with options: ', options);
const resolvedModule = ts.resolveModuleName(dependency, filename, options, host).resolvedModule;
debug('ts resolved module: ', resolvedModule);
const result = resolvedModule ? resolvedModule.resolvedFileName : '';
const namedModule = ts.resolveModuleName(dependency, filename, options, host);
let result = '';
if (namedModule.resolvedModule) {
result = namedModule.resolvedModule.resolvedFileName;
} else {
const suffix = '.d.ts';
const lookUpLocations = namedModule.failedLookupLocations
.filter((string) => string.endsWith(suffix))
.map((string) => string.substr(0, string.length - suffix.length));
result = lookUpLocations.find(ts.sys.fileExists) || '';
}
debug('result: ' + result);

@@ -228,0 +239,0 @@ return result ? path.resolve(result) : '';

2

package.json
{
"name": "filing-cabinet",
"version": "2.3.0",
"version": "2.3.1",
"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