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.1 to 0.17.2

6

lib/Build.js

@@ -250,3 +250,7 @@ import path from 'path';

constructor(build, manager) {
this.initialOptions = { ...build.initialOptions };
this.initialOptions = {
...build.initialOptions,
define: {...(build.initialOptions.define || {})},
external: [...(build.initialOptions.external || [])],
};
build.initialOptions.metafile = true;

@@ -253,0 +257,0 @@ this.manager = manager;

2

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

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -200,2 +200,120 @@ /// <reference types="node" />

private readonly dependencies;
initialOptions: {
define: {
[x: string]: string;
};
external: string[];
bundle?: boolean | undefined;
splitting?: boolean | undefined;
preserveSymlinks?: boolean | undefined;
outfile?: string | undefined;
metafile?: boolean | undefined;
outdir?: string | undefined;
outbase?: string | undefined;
loader?: {
[ext: string]: import("esbuild").Loader;
} | undefined;
resolveExtensions?: string[] | undefined;
mainFields?: string[] | undefined;
conditions?: string[] | undefined;
write?: boolean | undefined;
allowOverwrite?: boolean | undefined;
tsconfig?: string | undefined;
outExtension?: {
[ext: string]: string;
} | undefined;
publicPath?: string | undefined;
entryNames?: string | undefined;
chunkNames?: string | undefined;
assetNames?: string | undefined;
inject?: string[] | undefined;
banner?: {
[type: string]: string;
} | undefined;
footer?: {
[type: string]: string;
} | undefined;
incremental?: boolean | undefined;
entryPoints?: string[] | Record<string, string> | undefined;
stdin?: import("esbuild").StdinOptions | undefined;
plugins?: import("esbuild").Plugin[] | undefined;
absWorkingDir?: string | undefined;
nodePaths?: string[] | undefined;
watch?: boolean | import("esbuild").WatchMode | undefined;
sourcemap?: boolean | "external" | "linked" | "inline" | "both" | undefined;
legalComments?: "external" | "linked" | "inline" | "none" | "eof" | undefined;
sourceRoot?: string | undefined;
sourcesContent?: boolean | undefined;
format?: import("esbuild").Format | undefined;
globalName?: string | undefined;
target?: string | string[] | undefined;
supported?: Record<string, boolean> | undefined;
platform?: import("esbuild").Platform | undefined;
mangleProps?: RegExp | undefined;
reserveProps?: RegExp | undefined;
mangleQuoted?: boolean | undefined;
mangleCache?: Record<string, string | false> | undefined;
drop?: import("esbuild").Drop[] | undefined;
minify?: boolean | undefined;
minifyWhitespace?: boolean | undefined;
minifyIdentifiers?: boolean | undefined;
minifySyntax?: boolean | undefined; /**
* @typedef {BuildResult & { metafile: Metafile; dependencies: DependenciesMap }} Result
*/
/**
* @typedef {Result & { id: string; path: string }} Chunk
*/
/**
* @typedef {Result & { id: string; path: string }} File
*/
/**
* @typedef {Object} OnLoadRule
* @property {OnLoadOptions} options
* @property {LoadCallback} callback
*/
/**
* @typedef {Object} OnTransformOptions
* @property {RegExp} [filter]
* @property {Loader[]} [loaders]
* @property {string[]} [extensions]
* @property {string} [namespace]
*/
/**
* @typedef {OnLoadArgs & { code?: string | Uint8Array, loader?: Loader, resolveDir?: string }} OnTransformArgs
*/
/**
* @typedef {Object} OnTransformResult
* @property {string} [code]
* @property {import('@chialab/estransform').SourceMap|null} [map]
* @property {string} [resolveDir]
* @property {Message[]} [errors]
* @property {Message[]} [warnings]
* @property {string[]} [watchFiles]
*/
/**
* @typedef {(args: OnLoadArgs & { code: string, loader: Loader, resolveDir?: string }) => Promise<OnTransformResult | null | undefined | void> | OnTransformResult | null | undefined | void} TransformCallback
*/
/**
* @typedef {Object} OnTransformRule
* @property {OnTransformOptions} options
* @property {TransformCallback} callback
*/
/**
* Esbuild build handler.
*/
charset?: import("esbuild").Charset | undefined;
treeShaking?: boolean | undefined;
ignoreAnnotations?: boolean | undefined;
jsx?: "transform" | "preserve" | "automatic" | undefined;
jsxFactory?: string | undefined;
jsxFragment?: string | undefined;
jsxImportSource?: string | undefined;
jsxDev?: boolean | undefined;
pure?: string[] | undefined;
keepNames?: boolean | undefined;
color?: boolean | undefined;
logLevel?: import("esbuild").LogLevel | undefined;
logLimit?: number | undefined;
logOverride?: Record<string, import("esbuild").LogLevel> | undefined;
};
/**

@@ -207,6 +325,2 @@ * Get esbuild instance of the build.

serve: typeof import("esbuild").serve;
/**
* Get configured build loaders.
* @returns {{ [ext: string]: Loader }}
*/
build: typeof import("esbuild").build;

@@ -224,2 +338,124 @@ buildSync: typeof import("esbuild").buildSync;

/**
* Get initial build options.
* @returns The initial options object.
*/
getInitialOptions(): {
define: {
[x: string]: string;
};
external: string[];
bundle?: boolean | undefined;
splitting?: boolean | undefined;
preserveSymlinks?: boolean | undefined;
outfile?: string | undefined;
metafile?: boolean | undefined;
outdir?: string | undefined;
outbase?: string | undefined;
loader?: {
[ext: string]: import("esbuild").Loader;
} | undefined;
resolveExtensions?: string[] | undefined;
mainFields?: string[] | undefined;
conditions?: string[] | undefined;
write?: boolean | undefined;
allowOverwrite?: boolean | undefined;
tsconfig?: string | undefined;
outExtension?: {
[ext: string]: string;
} | undefined;
publicPath?: string | undefined;
entryNames?: string | undefined;
chunkNames?: string | undefined;
assetNames?: string | undefined;
inject?: string[] | undefined;
banner?: {
[type: string]: string;
} | undefined;
footer?: {
[type: string]: string;
} | undefined;
incremental?: boolean | undefined;
entryPoints?: string[] | Record<string, string> | undefined;
stdin?: import("esbuild").StdinOptions | undefined;
plugins?: import("esbuild").Plugin[] | undefined;
absWorkingDir?: string | undefined;
nodePaths?: string[] | undefined;
watch?: boolean | import("esbuild").WatchMode | undefined;
sourcemap?: boolean | "external" | "linked" | "inline" | "both" | undefined;
legalComments?: "external" | "linked" | "inline" | "none" | "eof" | undefined;
sourceRoot?: string | undefined;
sourcesContent?: boolean | undefined;
format?: import("esbuild").Format | undefined;
globalName?: string | undefined;
target?: string | string[] | undefined;
supported?: Record<string, boolean> | undefined;
platform?: import("esbuild").Platform | undefined;
mangleProps?: RegExp | undefined;
reserveProps?: RegExp | undefined;
mangleQuoted?: boolean | undefined;
mangleCache?: Record<string, string | false> | undefined;
drop?: import("esbuild").Drop[] | undefined;
minify?: boolean | undefined;
minifyWhitespace?: boolean | undefined;
minifyIdentifiers?: boolean | undefined;
minifySyntax?: boolean | undefined; /**
* @typedef {BuildResult & { metafile: Metafile; dependencies: DependenciesMap }} Result
*/
/**
* @typedef {Result & { id: string; path: string }} Chunk
*/
/**
* @typedef {Result & { id: string; path: string }} File
*/
/**
* @typedef {Object} OnLoadRule
* @property {OnLoadOptions} options
* @property {LoadCallback} callback
*/
/**
* @typedef {Object} OnTransformOptions
* @property {RegExp} [filter]
* @property {Loader[]} [loaders]
* @property {string[]} [extensions]
* @property {string} [namespace]
*/
/**
* @typedef {OnLoadArgs & { code?: string | Uint8Array, loader?: Loader, resolveDir?: string }} OnTransformArgs
*/
/**
* @typedef {Object} OnTransformResult
* @property {string} [code]
* @property {import('@chialab/estransform').SourceMap|null} [map]
* @property {string} [resolveDir]
* @property {Message[]} [errors]
* @property {Message[]} [warnings]
* @property {string[]} [watchFiles]
*/
/**
* @typedef {(args: OnLoadArgs & { code: string, loader: Loader, resolveDir?: string }) => Promise<OnTransformResult | null | undefined | void> | OnTransformResult | null | undefined | void} TransformCallback
*/
/**
* @typedef {Object} OnTransformRule
* @property {OnTransformOptions} options
* @property {TransformCallback} callback
*/
/**
* Esbuild build handler.
*/
charset?: import("esbuild").Charset | undefined;
treeShaking?: boolean | undefined;
ignoreAnnotations?: boolean | undefined;
jsx?: "transform" | "preserve" | "automatic" | undefined;
jsxFactory?: string | undefined;
jsxFragment?: string | undefined;
jsxImportSource?: string | undefined;
jsxDev?: boolean | undefined;
pure?: string[] | undefined;
keepNames?: boolean | undefined;
color?: boolean | undefined;
logLevel?: import("esbuild").LogLevel | undefined;
logLimit?: number | undefined;
logOverride?: Record<string, import("esbuild").LogLevel> | undefined;
};
/**
* Get build options.

@@ -226,0 +462,0 @@ * @returns The options object.

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