@rspack/binding
Advanced tools
Comparing version 0.0.0-20220909061012 to 0.0.0-20221025154751
@@ -6,8 +6,2 @@ /* tslint:disable */ | ||
export class ExternalObject<T> { | ||
readonly '': { | ||
readonly '': unique symbol | ||
[K: symbol]: T | ||
} | ||
} | ||
export interface RawCssPluginConfig { | ||
@@ -45,5 +39,22 @@ /** | ||
} | ||
export interface RawPostCssConfig { | ||
pxtorem?: RawPxToRemConfig | ||
} | ||
export interface RawPxToRemConfig { | ||
rootValue?: number | ||
unitPrecision?: number | ||
selectorBlackList?: Array<string> | ||
propList?: Array<string> | ||
replace?: boolean | ||
mediaQuery?: boolean | ||
minPixelValue?: number | ||
} | ||
export interface RawBuiltins { | ||
html?: Array<RawHtmlPluginConfig> | ||
css?: RawCssPluginConfig | ||
postcss?: RawPostCssConfig | ||
minify?: boolean | ||
polyfill?: boolean | ||
browserslist?: Array<string> | ||
define?: Record<string, string> | ||
} | ||
@@ -98,2 +109,9 @@ /** | ||
preferRelative?: boolean | ||
extensions?: Array<string> | ||
mainFiles?: Array<string> | ||
mainFields?: Array<string> | ||
browserField?: boolean | ||
conditionNames?: Array<string> | ||
alias?: Record<string, string | false> | ||
symlinks?: boolean | ||
} | ||
@@ -109,9 +127,6 @@ export interface RawOptions { | ||
builtins?: RawBuiltins | ||
define?: Record<string, string> | ||
external?: Record<string, string> | ||
externalType?: string | ||
devtool?: string | ||
} | ||
export interface OnLoadContext { | ||
id: string | ||
} | ||
export function initCustomTraceSubscriber(): void | ||
export interface AssetContent { | ||
@@ -129,14 +144,49 @@ buffer?: Buffer | ||
} | ||
export interface RspackError { | ||
export const enum DiffStatKind { | ||
Changed = 0, | ||
Deleted = 1, | ||
Added = 2 | ||
} | ||
export interface StatsError { | ||
message: string | ||
} | ||
export interface Stats { | ||
errors: Array<RspackError> | ||
export interface StatsAsset { | ||
type: string | ||
name: string | ||
size: number | ||
chunks: Array<string> | ||
} | ||
export function initTraceSubscriber(): void | ||
export function newRspack(options: RawOptions, pluginCallbacks?: PluginCallbacks | undefined | null): ExternalObject<RspackInternal> | ||
export function build(rspack: ExternalObject<RspackInternal>): Promise<Stats> | ||
export function rebuild(rspack: ExternalObject<RspackInternal>, changedFile: string[]): Promise<Record<string, string>> | ||
export interface RspackInternal { | ||
export interface StatsModule { | ||
type: string | ||
moduleType: string | ||
identifier: string | ||
name: string | ||
id: string | ||
chunks: Array<string> | ||
size: number | ||
} | ||
export interface StatsChunk { | ||
type: string | ||
files: Array<string> | ||
id: string | ||
} | ||
export interface StatsCompilation { | ||
assets: Array<StatsAsset> | ||
modules: Array<StatsModule> | ||
chunks: Array<StatsChunk> | ||
errors: Array<StatsError> | ||
errorsCount: number | ||
} | ||
export interface OnLoadContext { | ||
id: string | ||
} | ||
export function initCustomTraceSubscriber(): void | ||
export class DiffStat { | ||
content: string | ||
kind: DiffStatKind | ||
} | ||
export class Rspack { | ||
constructor(options: RawOptions, pluginCallbacks?: PluginCallbacks | undefined | null) | ||
build(): Promise<StatsCompilation> | ||
rebuild(changedFiles: Array<string>, removedFiles: Array<string>): Promise<Record<string, {content: string, kind: number}>> | ||
} |
{ | ||
"name": "@rspack/binding", | ||
"version": "0.0.0-20220909061012", | ||
"version": "0.0.0-20221025154751", | ||
"description": "Node binding for rspack", | ||
@@ -5,0 +5,0 @@ "main": "binding.js", |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
400
28207952