Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rspack/binding

Package Overview
Dependencies
Maintainers
0
Versions
1105
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.7.6-canary-f272bd8-20240625122346 to 1.0.0-alpha.0

134

binding.d.ts

@@ -44,5 +44,7 @@ /* auto-generated by NAPI-RS */

getBuildDependencies(): Array<string>
pushDiagnostic(severity: "error" | "warning", title: string, message: string): void
pushDiagnostic(diagnostic: JsDiagnostic): void
spliceDiagnostic(start: number, end: number, replaceWith: Array<JsDiagnostic>): void
pushNativeDiagnostics(diagnostics: ExternalObject<'Diagnostic[]'>): void
getErrors(): Array<JsRspackError>
getWarnings(): Array<JsRspackError>
getStats(): JsStats

@@ -65,4 +67,4 @@ getAssetPath(filename: LocalJsFilename, data: JsPathData): string

getChunks(chunkModules: boolean, chunksRelations: boolean, reasons: boolean, moduleAssets: boolean, nestedModules: boolean, source: boolean, usedExports: boolean, providedExports: boolean): Array<JsStatsChunk>
getEntrypoints(): Array<JsStatsChunkGroup>
getNamedChunkGroups(): Array<JsStatsChunkGroup>
getEntrypoints(chunkGroupAuxiliary: boolean, chunkGroupChildren: boolean): Array<JsStatsChunkGroup>
getNamedChunkGroups(chunkGroupAuxiliary: boolean, chunkGroupChildren: boolean): Array<JsStatsChunkGroup>
getErrors(): Array<JsStatsError>

@@ -200,2 +202,3 @@ getWarnings(): Array<JsStatsWarning>

context: string
issuer: string
fileDependencies: Array<string>

@@ -263,2 +266,3 @@ contextDependencies: Array<string>

context: string
issuer: string
}

@@ -285,3 +289,3 @@

renderedHash?: string
chunkReasons: Array<string>
chunkReason?: string
auxiliaryFiles: Array<string>

@@ -346,5 +350,4 @@ }

export interface JsDiagnostic {
severity: 'error' | 'warning'
title: string
message: string
severity: JsRspackSeverity
error: JsRspackError
}

@@ -369,2 +372,12 @@

export interface JsFactorizeArgs {
request: string
context: string
issuer: string
}
export interface JsFactoryMeta {
sideEffectFree?: boolean
}
export interface JsLoaderContext {

@@ -413,2 +426,3 @@ resourceData: Readonly<JsResourceData>

rawRequest?: string
factoryMeta?: JsFactoryMeta
}

@@ -424,2 +438,11 @@

export interface JsOriginRecord {
module: string
moduleId: string
moduleIdentifier: string
moduleName: string
loc: string
request: string
}
export interface JsPathData {

@@ -451,2 +474,14 @@ filename?: string

export interface JsRspackError {
name: string
message: string
moduleIdentifier?: string
file?: string
}
export enum JsRspackSeverity {
Error = 'Error',
Warn = 'Warn'
}
export interface JsRuntimeGlobals {

@@ -479,7 +514,18 @@ value: Array<string>

export interface JsStatsAssetInfo {
minimized: boolean
development: boolean
hotModuleReplacement: boolean
sourceFilename?: string
immutable: boolean
javascriptModule?: boolean
chunkHash: Array<string>
contentHash: Array<string>
related: Array<JsStatsAssetInfoRelated>
}
export interface JsStatsAssetInfoRelated {
name: string
value: Array<string>
}
export interface JsStatsAssetsByChunkName {

@@ -495,2 +541,4 @@ name: string

id?: string
idHints: Array<string>
hash?: string
entry: boolean

@@ -505,2 +553,7 @@ initial: boolean

childrenByOrder: Record<string, Array<string>>
runtime: Array<string>
sizes: Array<JsStatsSize>
reason?: string
rendered: boolean
origins: Array<JsOriginRecord>
}

@@ -510,5 +563,8 @@

name: string
chunks: Array<string | undefined | null>
assets: Array<JsStatsChunkGroupAsset>
chunks: Array<string | undefined | null>
assetsSize: number
auxiliaryAssets?: Array<JsStatsChunkGroupAsset>
auxiliaryAssetsSize?: number
children?: JsStatsChunkGroupChildren
}

@@ -521,2 +577,7 @@

export interface JsStatsChunkGroupChildren {
preload?: Array<JsStatsChunkGroup>
prefetch?: Array<JsStatsChunkGroup>
}
export interface JsStatsError {

@@ -527,2 +588,3 @@ message: string

moduleId?: string
file?: string
}

@@ -555,4 +617,5 @@

size: number
sizes: Array<JsStatsSourceTypeSize>
sizes: Array<JsStatsSize>
depth?: number
dependent?: boolean
issuer?: string

@@ -593,3 +656,2 @@ issuerName?: string

factory: JsStatsMillisecond
integration: JsStatsMillisecond
building: JsStatsMillisecond

@@ -610,3 +672,3 @@ }

export interface JsStatsSourceTypeSize {
export interface JsStatsSize {
sourceType: string

@@ -621,2 +683,3 @@ size: number

moduleId?: string
file?: string
}

@@ -709,2 +772,3 @@

version: string
bundler: string
force: boolean | string[]

@@ -798,3 +862,3 @@ }

from: string
to?: string
to?: string | ((pathData: { context: string; absoluteFilename?: string }) => string)
context?: string

@@ -807,3 +871,3 @@ toType?: string

info?: RawInfo
transform?: (input: string | Buffer, absoluteFilename: string) => string | Buffer
transform?: (input: Buffer, absoluteFilename: string) => string | Buffer | Promise<string> | Promise<Buffer>
}

@@ -892,2 +956,3 @@

export interface RawEnvironment {
const?: boolean
arrowFunction?: boolean

@@ -1025,2 +1090,3 @@ }

strictExportPresence: boolean
worker: Array<string>
}

@@ -1300,7 +1366,2 @@

export interface RawRelayConfig {
artifactDirectory?: string
language: 'javascript' | 'typescript' | 'flow'
}
export interface RawRemoteOptions {

@@ -1428,5 +1489,5 @@ key: string

extractComments?: RawExtractComments
compress: boolean | string
mangle: boolean | string
format: string
compress: any
mangle: any
format: any
module?: boolean

@@ -1438,2 +1499,7 @@ test?: string | RegExp | (string | RegExp)[]

export interface RawToOptions {
context: string
absoluteFilename?: string
}
export interface RawTrustedTypes {

@@ -1472,12 +1538,15 @@ policyName?: string

CompilationRuntimeModule = 18,
CompilationChunkAsset = 19,
CompilationProcessAssets = 20,
CompilationAfterProcessAssets = 21,
CompilationAfterSeal = 22,
NormalModuleFactoryBeforeResolve = 23,
NormalModuleFactoryAfterResolve = 24,
NormalModuleFactoryCreateModule = 25,
NormalModuleFactoryResolveForScheme = 26,
ContextModuleFactoryBeforeResolve = 27,
ContextModuleFactoryAfterResolve = 28
CompilationChunkHash = 19,
CompilationChunkAsset = 20,
CompilationProcessAssets = 21,
CompilationAfterProcessAssets = 22,
CompilationAfterSeal = 23,
NormalModuleFactoryBeforeResolve = 24,
NormalModuleFactoryFactorize = 25,
NormalModuleFactoryAfterResolve = 26,
NormalModuleFactoryCreateModule = 27,
NormalModuleFactoryResolveForScheme = 28,
ContextModuleFactoryBeforeResolve = 29,
ContextModuleFactoryAfterResolve = 30,
JavascriptModulesChunkHash = 31
}

@@ -1505,2 +1574,3 @@

registerCompilationOptimizeChunkModulesTaps: (stages: Array<number>) => Array<{ function: (() => Promise<boolean | undefined>); stage: number; }>
registerCompilationChunkHashTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunk) => Buffer); stage: number; }>
registerCompilationChunkAssetTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunkAssetArgs) => void); stage: number; }>

@@ -1511,2 +1581,3 @@ registerCompilationProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>

registerNormalModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeResolveArgs) => Promise<[boolean | undefined, JsBeforeResolveArgs]>); stage: number; }>
registerNormalModuleFactoryFactorizeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsFactorizeArgs) => Promise<JsFactorizeArgs>); stage: number; }>
registerNormalModuleFactoryResolveForSchemeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveForSchemeArgs) => Promise<[boolean | undefined, JsResolveForSchemeArgs]>); stage: number; }>

@@ -1517,2 +1588,3 @@ registerNormalModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAfterResolveData) => Promise<[boolean | undefined, JsCreateData | undefined]>); stage: number; }>

registerContextModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: false | JsContextModuleFactoryAfterResolveData) => Promise<false | JsContextModuleFactoryAfterResolveData>); stage: number; }>
registerJavascriptModulesChunkHashTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunk) => Buffer); stage: number; }>
}

@@ -1519,0 +1591,0 @@

{
"name": "@rspack/binding",
"version": "0.7.6-canary-f272bd8-20240625122346",
"version": "1.0.0-alpha.0",
"license": "MIT",

@@ -9,3 +9,4 @@ "description": "Node binding for rspack",

"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},

@@ -26,11 +27,11 @@ "files": [

"optionalDependencies": {
"@rspack/binding-darwin-arm64": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-linux-arm64-gnu": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-linux-arm64-musl": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-darwin-x64": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-linux-x64-gnu": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-linux-x64-musl": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-win32-ia32-msvc": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-win32-arm64-msvc": "0.7.6-canary-f272bd8-20240625122346",
"@rspack/binding-win32-x64-msvc": "0.7.6-canary-f272bd8-20240625122346"
"@rspack/binding-darwin-arm64": "1.0.0-alpha.0",
"@rspack/binding-win32-arm64-msvc": "1.0.0-alpha.0",
"@rspack/binding-linux-arm64-gnu": "1.0.0-alpha.0",
"@rspack/binding-linux-arm64-musl": "1.0.0-alpha.0",
"@rspack/binding-win32-ia32-msvc": "1.0.0-alpha.0",
"@rspack/binding-darwin-x64": "1.0.0-alpha.0",
"@rspack/binding-win32-x64-msvc": "1.0.0-alpha.0",
"@rspack/binding-linux-x64-gnu": "1.0.0-alpha.0",
"@rspack/binding-linux-x64-musl": "1.0.0-alpha.0"
},

@@ -37,0 +38,0 @@ "scripts": {

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhwzy/ljhwZthlaukjlkulzlp/rspack-banner-1610-dark.png">
<img alt="Rspack Banner" src="https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhwzy/ljhwZthlaukjlkulzlp/rspack-banner-1610.png">
<source media="(prefers-color-scheme: dark)" srcset="https://assets.rspack.dev/rspack/rspack-banner-plain-dark.png">
<img alt="Rspack Banner" src="https://assets.rspack.dev/rspack/rspack-banner-plain-light.png">
</picture>

@@ -5,0 +5,0 @@

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