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

tscpaths

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tscpaths - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

cjs/index.js

@@ -52,6 +52,8 @@ #! /usr/bin/env node

const outFileToSrcFile = (x) => path_1.resolve(srcRoot, path_1.relative(outPath, x));
const aliases = Object.keys(paths).map((alias) => ({
const aliases = Object.keys(paths)
.map((alias) => ({
prefix: alias.replace(/\*$/, ''),
aliasPaths: paths[alias].map((p) => path_1.resolve(basePath, p.replace(/\*$/, ''))),
}));
}))
.filter(({ prefix }) => prefix);
console.log(`aliases: ${JSON.stringify(aliases, null, 2)}`);

@@ -58,0 +60,0 @@ const toRelative = (from, x) => {

@@ -50,6 +50,8 @@ #! /usr/bin/env node

const outFileToSrcFile = (x) => resolve(srcRoot, relative(outPath, x));
const aliases = Object.keys(paths).map((alias) => ({
const aliases = Object.keys(paths)
.map((alias) => ({
prefix: alias.replace(/\*$/, ''),
aliasPaths: paths[alias].map((p) => resolve(basePath, p.replace(/\*$/, ''))),
}));
}))
.filter(({ prefix }) => prefix);
console.log(`aliases: ${JSON.stringify(aliases, null, 2)}`);

@@ -56,0 +58,0 @@ const toRelative = (from, x) => {

{
"name": "tscpaths",
"version": "0.0.4",
"version": "0.0.5",
"description": "Replace absolute paths to relative paths after typescript compilation",

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

@@ -70,8 +70,10 @@ #! /usr/bin/env node

const aliases = Object.keys(paths).map((alias) => ({
prefix: alias.replace(/\*$/, ''),
aliasPaths: paths[alias as keyof typeof paths].map((p) =>
resolve(basePath, p.replace(/\*$/, ''))
),
}));
const aliases = Object.keys(paths)
.map((alias) => ({
prefix: alias.replace(/\*$/, ''),
aliasPaths: paths[alias as keyof typeof paths].map((p) =>
resolve(basePath, p.replace(/\*$/, ''))
),
}))
.filter(({ prefix }) => prefix);
console.log(`aliases: ${JSON.stringify(aliases, null, 2)}`);

@@ -78,0 +80,0 @@

Sorry, the diff of this file is not supported yet

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