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

@chialab/esbuild-plugin-emit

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/esbuild-plugin-emit - npm Package Compare versions

Comparing version 0.11.9 to 0.11.11

21

lib/index.js

@@ -31,6 +31,2 @@ import path from 'path';

export function emitFile(source) {
if (hasSearchParam(source, 'emit')) {
return source;
}
return appendSearchParam(source, 'emit', 'file');

@@ -49,2 +45,19 @@ }

/**
* @param {import('esbuild').PluginBuild} build
* @param {string} source
*/
export function emitFileOrChunk(build, source) {
if (hasSearchParam(source, 'emit')) {
return source;
}
const loaders = build.initialOptions.loader || {};
const loader = loaders[path.extname(source)] || 'file';
if (loader !== 'file') {
return emitChunk(source);
}
return emitFile(source);
}
/**
* Get the base uri reference.

@@ -51,0 +64,0 @@ * @param {import('esbuild').PluginBuild} build

6

package.json
{
"name": "@chialab/esbuild-plugin-emit",
"type": "module",
"version": "0.11.9",
"version": "0.11.11",
"description": "Helpers functions to emit chunks and files from a esbuild run.",

@@ -31,3 +31,3 @@ "main": "lib/index.js",

"dependencies": {
"@chialab/esbuild-helpers": "^0.11.9",
"@chialab/esbuild-helpers": "^0.11.11",
"@chialab/node-resolve": "^0.11.8"

@@ -38,3 +38,3 @@ },

},
"gitHead": "8788af9ec6a61f333618595308e285a04350fbae"
"gitHead": "0ff0c71730b640112f5afaf20636284279a2c754"
}

@@ -17,2 +17,7 @@ /**

/**
* @param {import('esbuild').PluginBuild} build
* @param {string} source
*/
export function emitFileOrChunk(build: import('esbuild').PluginBuild, source: string): string;
/**
* Get the base uri reference.

@@ -19,0 +24,0 @@ * @param {import('esbuild').PluginBuild} build

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