Socket
Socket
Sign inDemoInstall

eslint-import-resolver-typescript

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-import-resolver-typescript - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

25

index.js
const resolve = require('resolve');
const path = require('path');
module.exports.interfaceVersion = 2;
function opts(file, config) {

@@ -11,16 +9,19 @@ return Object.assign(

// path.resolve will handle paths relative to CWD
{ basedir: path.dirname(path.resolve(file)) },
{ basedir: path.dirname(path.resolve(file)) }
);
}
module.exports.resolve = function(source, file, config) {
if (resolve.isCore(source)) {
return { found: true, path: null };
}
module.exports = {
interfaceVersion: 2,
resolve: function(source, file, config) {
if (resolve.isCore(source)) {
return { found: true, path: null };
}
try {
return { found: true, path: resolve.sync(source, opts(file, config)) };
} catch (err) {
return { found: false };
}
try {
return { found: true, path: resolve.sync(source, opts(file, config)) };
} catch (err) {
return { found: false };
}
},
};
{
"name": "eslint-import-resolver-typescript",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript .ts .tsx module resolver for `eslint-plugin-import`.",

@@ -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