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

@chialab/esbuild-plugin-transform

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.9.3 to 0.9.4

17

lib/index.js

@@ -143,5 +143,7 @@ import path from 'path';

build.onLoad({ filter, namespace: 'file' }, async (args) => {
let transformed = false;
let entry;
if (args.path === input && stdin) {
entry = await getEntry(build, args.path, stdin.contents);
transformed = true;
} else {

@@ -151,6 +153,19 @@ entry = await getEntry(build, args.path);

args.pluginData = entry;
for (let i = 0; i < onLoad.length; i++) {
await onLoad[i](args);
const result = onLoad[i](args);
if (result) {
transformed = true;
await result;
}
}
if (!transformed) {
return {
contents: entry.code,
loader: entry.loader,
};
}
const { code, loader } = await finalize(entry, {

@@ -157,0 +172,0 @@ sourcemap: 'inline',

4

package.json
{
"name": "@chialab/esbuild-plugin-transform",
"type": "module",
"version": "0.9.3",
"version": "0.9.4",
"description": "Pipe transformation plugin for esbuild.",

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

},
"gitHead": "e8a7a1b5c22f75c14a2df8a5121240839f7bdac3"
"gitHead": "0d8d5293cb902f1f2d4e3f955a838f1b01bdb3d9"
}
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