Socket
Socket
Sign inDemoInstall

tsc-alias

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-alias - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

11

dist/index.js

@@ -75,5 +75,2 @@ "use strict";

let prefix = alias.replace(/\*$/, '');
if (prefix[prefix.length - 1] === '/') {
prefix = prefix.substring(0, prefix.length - 1);
}
return {

@@ -116,7 +113,4 @@ prefix,

assert(typeof requiredModule == 'string', `Unexpected import statement pattern ${orig}`);
const index = orig.indexOf(alias.prefix);
const isAlias = requiredModule.includes('/')
? requiredModule.startsWith(alias.prefix + '/')
: requiredModule.startsWith(alias.prefix);
if (index > -1 && isAlias) {
const isAlias = requiredModule.startsWith(alias.prefix);
if (isAlias) {
let absoluteAliasPath = helpers_1.getAbsoluteAliasPath(alias.basePath, alias.path);

@@ -127,2 +121,3 @@ let relativeAliasPath = normalizePath(path_1.relative(path_1.dirname(file), absoluteAliasPath));

}
const index = orig.indexOf(alias.prefix);
const newImportScript = orig.substring(0, index) +

@@ -129,0 +124,0 @@ relativeAliasPath +

{
"name": "tsc-alias",
"version": "1.3.5",
"version": "1.3.6",
"description": "Replace alias paths with relative paths after typescript compilation.",

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

Sorry, the diff of this file is not supported yet

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