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
2
Versions
1108
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.10 to 0.0.11

54

binding.d.ts

@@ -17,3 +17,4 @@ /* tslint:disable */

*/
presetEnv: Array<string>
presetEnv?: Array<string>
modules?: boolean
}

@@ -84,2 +85,3 @@ export interface RawDecoratorOptions {

treeShaking?: boolean
sideEffects?: boolean
progress?: RawProgressPluginConfig

@@ -92,2 +94,6 @@ react?: RawReactOptions

}
export interface RawEntryItem {
import: Array<string>
runtime?: string
}
/**

@@ -110,8 +116,31 @@ * `loader` is for js side loader, `builtin_loader` is for rust side loader,

}
export interface RawModuleRuleCondition {
/** Condition can be either a `string` or `Regexp`. */
type: "string" | "regexp"
/**
* Based on the condition type, the value can be either a `string` or `Regexp`.
* - "string": The value will be matched against the string.
* - "regexp": The value will be matched against the raw regexp source from JS side.
*/
matcher?: string
}
export interface RawModuleRule {
test?: string
resource?: string
resourceQuery?: string
/**
* A condition matcher matching an absolute path.
* - String: To match the input must start with the provided string. I. e. an absolute directory path, or absolute path to the file.
* - Regexp: It's tested with the input.
*/
test?: RawModuleRuleCondition
/**
* A condition matcher matching an absolute path.
* See `test` above
*/
resource?: RawModuleRuleCondition
/**
* A condition matcher against the resource query.
* TODO: align with webpack's `?` prefixed `resourceQuery`
*/
resourceQuery?: RawModuleRuleCondition
func?: (...args: any[]) => any
uses?: Array<RawModuleRuleUse>
use?: Array<RawModuleRuleUse>
type?: "js" | "jsx" | "ts" | "tsx" | "css" | "json" | "asset" | "asset/resource" | "asset/source" | "asset/inline"

@@ -141,2 +170,4 @@ }

chunkFilename?: string
cssFilename?: string
cssChunkFilename?: string
uniqueName?: string

@@ -153,6 +184,6 @@ }

symlinks?: boolean
tsconfig?: string
tsConfigPath?: string
}
export interface RawSplitChunksOptions {
cacheGroups: Record<string, RawCacheGroupOptions>
cacheGroups?: Record<string, RawCacheGroupOptions>
/** What kind of chunks should be selected. */

@@ -171,3 +202,3 @@ chunks?: string

export interface RawOptions {
entry?: Record<string, string>
entry?: Record<string, RawEntryItem>
mode?: string

@@ -206,4 +237,5 @@ target?: string[]

development: boolean
/** when asset ships data for updating an existing application (HMR) */
hotModuleReplacement: boolean
/**
* when asset ships data for updating an existing application (HMR)
* when asset is javascript and an ESM

@@ -254,5 +286,7 @@ * related object to other assets, keyed by type of relation (only points from parent to child)

info: JsStatsAssetInfo
emitted: boolean
}
export interface JsStatsAssetInfo {
development: boolean
hotModuleReplacement: boolean
}

@@ -301,3 +335,5 @@ export interface JsStatsModule {

getAssets(): Readonly<JsAsset>[]
getAsset(name: string): JsAsset | null
emitAsset(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo): void
deleteAsset(filename: string): void
get assets(): Record<string, JsCompatSource>

@@ -304,0 +340,0 @@ get entrypoints(): Record<string, JsChunkGroup>

10

package.json
{
"name": "@rspack/binding",
"version": "0.0.10",
"version": "0.0.11",
"description": "Node binding for rspack",

@@ -20,7 +20,9 @@ "main": "binding.js",

"@napi-rs/cli": "^2.6.2",
"why-is-node-running": "2.2.1"
"why-is-node-running": "2.2.1",
"npm-run-all": "4.1.5"
},
"scripts": {
"build": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json",
"build:release:all": "pnpm build:release && pnpm build:release:x64 && pnpm build:release:linux",
"build:debug": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json",
"build:debug:x64": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json --target x86_64-apple-darwin",
"build:release:all": "run-p build:release build:release:x64 build:release:linux",
"build:release": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json",

@@ -27,0 +29,0 @@ "build:release:x64": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json --target x86_64-apple-darwin",

Sorry, the diff of this file is not supported yet

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