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

@rspack/binding

Package Overview
Dependencies
Maintainers
1
Versions
1114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/binding - npm Package Compare versions

Comparing version 0.0.0-20220909061012 to 0.0.0-20221025154751

rspack.darwin-arm64.node

90

binding.d.ts

@@ -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",

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