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

esbuild-plugin-path-alias

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-path-alias - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

15

index.js

@@ -75,9 +75,14 @@ const fs = require('fs');

const { logLevel } = build.initialOptions;
const outputLogs = logLevel === 'debug' || logLevel === 'verbose';
const main = (k, args) => {
const targetPath = config[k].replace(/\/$/, '');
const patchedPath = patchExtension(args.path
.replace(new RegExp(`^${k}\\/`), targetPath + '/')
.replace(new RegExp(`^${k}$`), targetPath));
console.log(
`${new Date().toLocaleTimeString()} [esbuild-plugin-path-alias] `,
const patchedPath = patchExtension(
args.path
.replace(new RegExp(`^${k}\\/`), targetPath + '/')
.replace(new RegExp(`^${k}$`), targetPath)
);
outputLogs && console.log(
`${new Date().toLocaleTimeString()} [plugin-path-alias] `,
args.path,

@@ -84,0 +89,0 @@ '=>',

{
"name": "esbuild-plugin-path-alias",
"version": "1.0.2",
"version": "1.0.3",
"description": "A esbuild plugin to support path alias like `resolve.alias` in webpack config.",

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