New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.5 to 0.0.6

README.md

4

cjs/index.js

@@ -61,3 +61,3 @@ #! /usr/bin/env node

const rel = path_1.relative(from, x);
return rel.startsWith('.') ? rel : `./${rel}`;
return (rel.startsWith('.') ? rel : `./${rel}`).replace(/\\/g, '/');
};

@@ -92,3 +92,3 @@ const exts = ['.js', '.jsx', '.ts', '.tsx', '.d.ts', '.json'];

const requireRegex = /(?:import|require)\(['"]([^'"]*)['"]\)/g;
const importRegex = /from ['"]([^'"]*)['"]/g;
const importRegex = /(?:import|from) ['"]([^'"]*)['"]/g;
const replaceImportStatement = (orig, matched, outFile) => {

@@ -95,0 +95,0 @@ const index = orig.indexOf(matched);

@@ -59,3 +59,3 @@ #! /usr/bin/env node

const rel = relative(from, x);
return rel.startsWith('.') ? rel : `./${rel}`;
return (rel.startsWith('.') ? rel : `./${rel}`).replace(/\\/g, '/');
};

@@ -90,3 +90,3 @@ const exts = ['.js', '.jsx', '.ts', '.tsx', '.d.ts', '.json'];

const requireRegex = /(?:import|require)\(['"]([^'"]*)['"]\)/g;
const importRegex = /from ['"]([^'"]*)['"]/g;
const importRegex = /(?:import|from) ['"]([^'"]*)['"]/g;
const replaceImportStatement = (orig, matched, outFile) => {

@@ -93,0 +93,0 @@ const index = orig.indexOf(matched);

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

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

@@ -82,3 +82,3 @@ #! /usr/bin/env node

const rel = relative(from, x);
return rel.startsWith('.') ? rel : `./${rel}`;
return (rel.startsWith('.') ? rel : `./${rel}`).replace(/\\/g, '/');
};

@@ -124,3 +124,3 @@

const requireRegex = /(?:import|require)\(['"]([^'"]*)['"]\)/g;
const importRegex = /from ['"]([^'"]*)['"]/g;
const importRegex = /(?:import|from) ['"]([^'"]*)['"]/g;

@@ -127,0 +127,0 @@ const replaceImportStatement = (

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