Socket
Socket
Sign inDemoInstall

esbuild

Package Overview
Dependencies
0
Maintainers
1
Versions
446
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

3

lib/main.d.ts

@@ -7,3 +7,4 @@ export declare type Target = 'esnext' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020';

interface CommonOptions {
sourcemap?: boolean;
sourcemap?: boolean | 'inline' | 'external';
sourcefile?: string;
errorLimit?: number;

@@ -10,0 +11,0 @@ target?: Target;

@@ -37,6 +37,7 @@ const child_process = require('child_process');

function pushCommonFlags(flags, options) {
function pushCommonFlags(flags, options, defaults) {
flags.push(`--error-limit=${options.errorLimit || 0}`);
if (options.sourcemap) flags.push('--sourcemap');
if (options.sourcemap) flags.push(`--sourcemap=${options.sourcemap === true ? defaults.sourcemap : options.sourcemap}`);
if (options.sourcefile) flags.push(`--sourcefile=${options.sourcefile}`);
if (options.target) flags.push(`--target=${options.target}`);

@@ -66,3 +67,3 @@

const flags = [];
pushCommonFlags(flags, options);
pushCommonFlags(flags, options, { sourcemap: true });

@@ -265,3 +266,3 @@ if (options.name) flags.push(`--name=${options.name}`);

const flags = ['build', `/${name}`, file, '--', name, '--outfile=/output.js'];
pushCommonFlags(flags, options);
pushCommonFlags(flags, options, { sourcemap: 'external' });
if (options.loader) flags.push(`--loader:.${loader}=${options.loader}`);

@@ -268,0 +269,0 @@ const response = await sendRequest(flags);

{
"name": "esbuild",
"version": "0.3.1",
"version": "0.3.2",
"description": "An extremely fast JavaScript bundler and minifier.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/evanw/esbuild",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc