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

@chialab/esbuild-rna

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-rna - npm Package Compare versions

Comparing version 0.17.6 to 0.17.7

24

lib/Build.js

@@ -830,14 +830,18 @@ import path from 'path';

.replace('[ext]', () => path.extname(inputFile))
.replace(/(\/)?\[dir\](\/)?/, (fullMatch, match1, match2) => {
const dir = path.relative(outBase, path.dirname(filePath));
if (dir) {
return `${match1 || ''}${dir}${match2 || ''}`;
.replace('[hash]', () => this.hash(buffer))
.split('/')
.reduce((parts, part) => {
if (part === '[dir]') {
return [...parts, ...(path.relative(outBase, path.dirname(filePath)) || '').split(path.sep)];
}
if (!match1 && match2) {
return '';
return [...parts, part];
}, /** @type {string[]} */ ([]))
.map((part) => {
if (part === '..') {
return '_.._';
}
return match1 || '';
return part;
})
.replace('[dir]', () => path.relative(outBase, path.dirname(filePath)))
.replace('[hash]', () => this.hash(buffer))
.filter((part) => part && part !== '.')
.join('/')
}${path.extname(inputFile)}`;

@@ -921,3 +925,3 @@ }

this.getOutDir() || this.getSourceRoot(),
this.computeName(this.getOption(key) || '[dir]/[name]', filePath, buffer)
this.computeName(this.getOption(key) || (type === Build.ASSET ? '[name]-[hash]' : '[name]'), filePath, buffer)
);

@@ -924,0 +928,0 @@ }

{
"name": "@chialab/esbuild-rna",
"type": "module",
"version": "0.17.6",
"version": "0.17.7",
"description": "A framework for esbuild plugins with transform and emit capabilities.",

@@ -6,0 +6,0 @@ "main": "lib/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