New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-tsconfig-paths-module-resolver

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-tsconfig-paths-module-resolver - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

dist/babel-plugin-tsconfig-paths-module-resolver.js

@@ -23,6 +23,2 @@ "use strict";

opts.resolvePath = opts.resolvePath || (0, _createResolvePath.createResolvePath)();
if (!opts._originalResolvePath && opts.resolvePath) {
opts._originalResolvePath = opts.resolvePath;
}
}

@@ -29,0 +25,0 @@

12

dist/create-resolve-path.js

@@ -21,6 +21,8 @@ "use strict";

const matchPath = configLoaderResult.resultType === 'success' && (0, _tsconfigPaths.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths);
return function resolvePath(...args) {
const [sourcePath, currentFile, opts] = args;
const fallbackResolvePath = opts._originalResolvePath || _babelPluginModuleResolver.resolvePath;
return function resolvePath(sourcePath, currentFile, opts) {
const fallbackResolvePath = opts._fromNested ? _babelPluginModuleResolver.resolvePath : opts.resolvePath || _babelPluginModuleResolver.resolvePath;
const extensions = opts.extensions || _defaultExtensions.defaultExtensions;
const nextOpts = { ...opts,
_fromNested: true
};

@@ -32,3 +34,3 @@ if (!matchPath) {

return fallbackResolvePath(...args);
return fallbackResolvePath(sourcePath, currentFile, nextOpts);
}

@@ -44,4 +46,4 @@

return fallbackResolvePath(...args);
return fallbackResolvePath(sourcePath, currentFile, nextOpts);
};
}

@@ -208,6 +208,2 @@ declare module 'babel-plugin-module-resolver' {

logLevel?: string;
/**
* @internal
*/
_originalResolvePath?: ResolvePath;
}

@@ -214,0 +210,0 @@

{
"name": "babel-plugin-tsconfig-paths-module-resolver",
"version": "1.0.1",
"version": "1.0.2",
"description": "A babel plugin that combines babel-plugin-module-resolver and tsconfig-paths to resolve tsconfig 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