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

@rspack/binding

Package Overview
Dependencies
Maintainers
1
Versions
1103
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.3-canary-a741c8d-20240611125339 to 0.7.3

96

binding.d.ts

@@ -105,2 +105,16 @@ /* auto-generated by NAPI-RS */

export function __loader_item_debug(item: ExternalObject<'LoaderItem'>): string
export function __loader_item_get_loader_data(item: ExternalObject<'LoaderItem'>): any
export function __loader_item_get_normal_executed(item: ExternalObject<'LoaderItem'>): boolean
export function __loader_item_get_pitch_executed(item: ExternalObject<'LoaderItem'>): boolean
export function __loader_item_set_loader_data(item: ExternalObject<'LoaderItem'>, data: any): void
export function __loader_item_set_normal_executed(item: ExternalObject<'LoaderItem'>): void
export function __loader_item_set_pitch_executed(item: ExternalObject<'LoaderItem'>): void
export interface BuiltinPlugin {

@@ -361,2 +375,7 @@ name: BuiltinPluginName

export interface JsLoaderContext {
resourceData: Readonly<JsResourceData>
/** Will be deprecated. Use module.module_identifier instead */
_moduleIdentifier: Readonly<string>
_module: JsModule
hot: Readonly<boolean>
/** Content maybe empty in pitching stage */

@@ -366,6 +385,2 @@ content: null | Buffer

sourceMap?: Buffer
resource: string
resourcePath: string
resourceQuery?: string
resourceFragment?: string
cacheable: boolean

@@ -377,50 +392,18 @@ fileDependencies: Array<string>

assetFilenames: Array<string>
currentLoader: string
isPitching: boolean
/**
* Loader index from JS.
* If loaders are dispatched by JS loader runner,
* then, this field is correspondence with loader index in JS side.
* It is useful when loader dispatched on JS side has an builtin loader, for example: builtin:swc-loader,
* Then this field will be used as an hack to test whether it should return an AST or string.
*/
loaderIndexFromJs?: number
/**
* Internal additional data, contains more than `String`
* @internal
*/
additionalDataExternal: ExternalObject<'AdditionalData'>
/**
* Internal loader context
* @internal
*/
contextExternal: ExternalObject<'LoaderRunnerContext'>
/**
* Internal loader diagnostic
* @internal
*/
diagnosticsExternal: ExternalObject<'Diagnostic[]'>
/** Will be deprecated. Use module.module_identifier instead */
_moduleIdentifier: string
_module: JsModule
hot: boolean
loaderItems: Array<JsLoaderItem>
loaderIndex: number
loaderState: Readonly<JsLoaderState>
}
/** Only for dts generation */
export interface JsLoaderResult {
/** Content in pitching stage can be empty */
content?: Buffer
fileDependencies: Array<string>
contextDependencies: Array<string>
missingDependencies: Array<string>
buildDependencies: Array<string>
assetFilenames: Array<string>
sourceMap?: Buffer
additionalData?: Buffer
additionalDataExternal: ExternalObject<'AdditionalData'>
cacheable: boolean
/** Used to instruct how rust loaders should execute */
isPitching: boolean
export interface JsLoaderItem {
request: string
type: string
inner: ExternalObject<'LoaderItem'>
}
export enum JsLoaderState {
Pitching = 'Pitching',
Normal = 'Normal'
}
export interface JsModule {

@@ -568,2 +551,3 @@ context?: string

size: number
depth?: number
issuer?: string

@@ -573,2 +557,3 @@ issuerName?: string

issuerPath: Array<JsStatsModuleIssuer>
modules?: Array<JsStatsModule>
nameForCondition?: string

@@ -1109,3 +1094,3 @@ reasons?: Array<JsStatsModuleReason>

sideEffects?: boolean
use?: RawModuleRuleUses
use?: RawModuleRuleUse[] | ((arg: RawFuncUseCtx) => RawModuleRuleUse[])
type?: string

@@ -1139,8 +1124,2 @@ parser?: RawParserOptions

export interface RawModuleRuleUses {
type: "array" | "function"
arrayUse?: Array<RawModuleRuleUse>
funcUse?: (arg: RawFuncUseCtx) => RawModuleRuleUse[]
}
export interface RawNodeOption {

@@ -1179,2 +1158,3 @@ dirname: string

bail: boolean
__references: Record<string, any>
}

@@ -1254,2 +1234,5 @@

profile: boolean
template: string
tick?: string | Array<string>
progressChars: string
}

@@ -1499,5 +1482,2 @@

/** Builtin loader runner */
export function runBuiltinLoader(builtin: string, options: string | undefined | null, loaderContext: JsLoaderContext): Promise<JsLoaderContext>
export interface ThreadsafeNodeFS {

@@ -1504,0 +1484,0 @@ writeFile: (name: string, content: Buffer) => Promise<void> | void

{
"name": "@rspack/binding",
"version": "0.7.3-canary-a741c8d-20240611125339",
"version": "0.7.3",
"license": "MIT",

@@ -25,11 +25,11 @@ "description": "Node binding for rspack",

"optionalDependencies": {
"@rspack/binding-darwin-x64": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-linux-arm64-musl": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-linux-x64-gnu": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-linux-arm64-gnu": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-linux-x64-musl": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-win32-ia32-msvc": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-win32-x64-msvc": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-win32-arm64-msvc": "0.7.3-canary-a741c8d-20240611125339",
"@rspack/binding-darwin-arm64": "0.7.3-canary-a741c8d-20240611125339"
"@rspack/binding-darwin-arm64": "0.7.3",
"@rspack/binding-linux-arm64-musl": "0.7.3",
"@rspack/binding-win32-arm64-msvc": "0.7.3",
"@rspack/binding-linux-arm64-gnu": "0.7.3",
"@rspack/binding-darwin-x64": "0.7.3",
"@rspack/binding-win32-ia32-msvc": "0.7.3",
"@rspack/binding-win32-x64-msvc": "0.7.3",
"@rspack/binding-linux-x64-musl": "0.7.3",
"@rspack/binding-linux-x64-gnu": "0.7.3"
},

@@ -36,0 +36,0 @@ "scripts": {

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