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.15.23 to 0.15.28

8

lib/helpers.js

@@ -9,3 +9,3 @@ import path from 'path';

* Create an empty metafile object.
* @return {Metafile}
* @returns {Metafile}
*/

@@ -19,3 +19,3 @@ export function createEmptyMetafile() {

* @param {Buffer} contents
* @return {import('esbuild').OutputFile}
* @returns {import('esbuild').OutputFile}
*/

@@ -35,3 +35,3 @@ export function createOutputFile(path, contents) {

* @param {Metafile} [metafile]
* @return {import('./index.js').Result}
* @returns {import('./index.js').Result}
*/

@@ -95,3 +95,3 @@ export function createResult(outputFiles, metafile = createEmptyMetafile()) {

* @param {string} to
* @return {import('./index.js').Result}
* @returns {import('./index.js').Result}
*/

@@ -98,0 +98,0 @@ export function remapResult(result, from, to) {

@@ -55,3 +55,3 @@ import path from 'path';

/**
* @typedef {(args: import('esbuild').OnLoadArgs & { code: string, loader: import('esbuild').Loader, resolveDir?: string }) => OnTransformResult | Promise<OnTransformResult | null | undefined> | null | undefined} TransformCallback
* @typedef {(args: import('esbuild').OnLoadArgs & { code: string, loader: import('esbuild').Loader, resolveDir?: string }) => OnTransformResult | Promise<OnTransformResult | null | undefined | void> | null | undefined | void} TransformCallback
*/

@@ -116,3 +116,3 @@

* @param {string} basePath The current working directory.
* @return {string}
* @returns {string}
*/

@@ -220,3 +220,3 @@ function getOutBase(entryPoints, basePath) {

* @param {Buffer|string} buffer The file contents.
* @return {string}
* @returns {string}
*/

@@ -250,3 +250,3 @@ computeName(pattern, filePath, buffer) {

* @param {OnLoadArgs} args The load arguments.
* @return {Promise<OnLoadResult>} A load result with file contents.
* @returns {Promise<OnLoadResult>} A load result with file contents.
*/

@@ -363,3 +363,3 @@ async load(args) {

* @param {string|Buffer} [buffer] File contents.
* @return {Promise<Chunk>} The output file reference.
* @returns {Promise<Chunk>} The output file reference.
*/

@@ -423,3 +423,3 @@ async emitFile(source, buffer) {

...result,
path: appendSearchParam(`./${path.relative(virtualOutDir, outputFile)}`, 'emit', 'file'),
path: `./${path.relative(virtualOutDir, outputFile)}`,
};

@@ -433,3 +433,3 @@ rnaBuild.files.set(source, chunkResult);

* @param {EmitTransformOptions} options Esbuild transform options.
* @return {Promise<Chunk>} The output chunk reference.
* @returns {Promise<Chunk>} The output chunk reference.
*/

@@ -554,3 +554,3 @@ async emitChunk(options) {

* @param {'before'|'after'} [mode] Where insert the missing plugin.
* @return {Promise<string[]>} The list of plugin names that had been added to the build.
* @returns {Promise<string[]>} The list of plugin names that had been added to the build.
*/

@@ -592,3 +592,3 @@ async setupPlugin(plugin, plugins, mode = 'before') {

* @param {string[]} dependencies A list of loaded dependencies.
* @return {DependenciesMap} The updated dependencies map.
* @returns {DependenciesMap} The updated dependencies map.
*/

@@ -655,3 +655,3 @@ collectDependencies(importer, dependencies) {

/**
* @return {import('esbuild').Plugin}
* @returns {import('esbuild').Plugin}
*/

@@ -658,0 +658,0 @@ export function rnaPlugin() {

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

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

"dependencies": {
"@chialab/estransform": "^0.15.17",
"@chialab/node-resolve": "^0.15.9"
"@chialab/estransform": "^0.15.28",
"@chialab/node-resolve": "^0.15.28"
},

@@ -39,3 +39,3 @@ "devDependencies": {

},
"gitHead": "e7f2116569b07b6f81cddd17e489ffd8790b441a"
"gitHead": "b6070e0cc98f6d8b7b4a8a59b9d88ee9364aebb1"
}

@@ -6,3 +6,3 @@ /**

* Create an empty metafile object.
* @return {Metafile}
* @returns {Metafile}
*/

@@ -13,3 +13,3 @@ export function createEmptyMetafile(): Metafile;

* @param {Buffer} contents
* @return {import('esbuild').OutputFile}
* @returns {import('esbuild').OutputFile}
*/

@@ -20,3 +20,3 @@ export function createOutputFile(path: string, contents: Buffer): import('esbuild').OutputFile;

* @param {Metafile} [metafile]
* @return {import('./index.js').Result}
* @returns {import('./index.js').Result}
*/

@@ -36,3 +36,3 @@ export function createResult(outputFiles?: import("esbuild").OutputFile[] | undefined, metafile?: import("esbuild").Metafile | undefined): import('./index.js').Result;

* @param {string} to
* @return {import('./index.js').Result}
* @returns {import('./index.js').Result}
*/

@@ -39,0 +39,0 @@ export function remapResult(result: import('./index.js').Result, from: string, to: string): import('./index.js').Result;

@@ -51,3 +51,3 @@ /// <reference types="node" />

* @param {Buffer|string} buffer The file contents.
* @return {string}
* @returns {string}
*/

@@ -58,3 +58,3 @@ computeName(pattern: string, filePath: string, buffer: Buffer | string): string;

* @param {OnLoadArgs} args The load arguments.
* @return {Promise<OnLoadResult>} A load result with file contents.
* @returns {Promise<OnLoadResult>} A load result with file contents.
*/

@@ -76,3 +76,3 @@ load(args: OnLoadArgs): Promise<OnLoadResult>;

* @param {string|Buffer} [buffer] File contents.
* @return {Promise<Chunk>} The output file reference.
* @returns {Promise<Chunk>} The output file reference.
*/

@@ -83,3 +83,3 @@ emitFile(source: string, buffer?: string | Buffer | undefined): Promise<Chunk>;

* @param {EmitTransformOptions} options Esbuild transform options.
* @return {Promise<Chunk>} The output chunk reference.
* @returns {Promise<Chunk>} The output chunk reference.
*/

@@ -105,3 +105,3 @@ emitChunk(options: EmitTransformOptions): Promise<Chunk>;

* @param {'before'|'after'} [mode] Where insert the missing plugin.
* @return {Promise<string[]>} The list of plugin names that had been added to the build.
* @returns {Promise<string[]>} The list of plugin names that had been added to the build.
*/

@@ -113,3 +113,3 @@ setupPlugin(plugin: import('esbuild').Plugin, plugins: import('esbuild').Plugin[], mode?: "before" | "after" | undefined): Promise<string[]>;

* @param {string[]} dependencies A list of loaded dependencies.
* @return {DependenciesMap} The updated dependencies map.
* @returns {DependenciesMap} The updated dependencies map.
*/

@@ -119,3 +119,3 @@ collectDependencies(importer: string, dependencies: string[]): DependenciesMap;

/**
* @return {import('esbuild').Plugin}
* @returns {import('esbuild').Plugin}
*/

@@ -154,3 +154,3 @@ export function rnaPlugin(): import('esbuild').Plugin;

resolveDir?: string;
}) => OnTransformResult | Promise<OnTransformResult | null | undefined> | null | undefined;
}) => OnTransformResult | Promise<OnTransformResult | null | undefined | void> | null | undefined | void;
export type Result = import('esbuild').BuildResult & {

@@ -157,0 +157,0 @@ metafile: Metafile;

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