@rspack/browser
Advanced tools
| /** | ||
| * The following code is modified based on | ||
| * https://github.com/webpack/webpack/blob/4b4ca3b/lib/web/JsonpTemplatePlugin.js | ||
| * | ||
| * MIT Licensed | ||
| * Author Tobias Koppers @sokra | ||
| * Copyright (c) JS Foundation and other contributors | ||
| * https://github.com/webpack/webpack/blob/main/LICENSE | ||
| */ | ||
| import type { Compiler } from '../Compiler'; | ||
| export default class JsonpTemplatePlugin { | ||
| apply(compiler: Compiler): void; | ||
| } |
| /** | ||
| * The following code is modified based on | ||
| * https://github.com/webpack/webpack/blob/4b4ca3b/lib/webworker/WebWorkerTemplatePlugin.js | ||
| * | ||
| * MIT Licensed | ||
| * Author Tobias Koppers @sokra | ||
| * Copyright (c) JS Foundation and other contributors | ||
| * https://github.com/webpack/webpack/blob/main/LICENSE | ||
| */ | ||
| import type { Compiler } from '../Compiler'; | ||
| export default class WebWorkerTemplatePlugin { | ||
| apply(compiler: Compiler): void; | ||
| } |
@@ -86,3 +86,2 @@ export * from './APIPlugin'; | ||
| export * from './URLPlugin'; | ||
| export * from './WebWorkerTemplatePlugin'; | ||
| export * from './WorkerPlugin'; |
@@ -13,3 +13,3 @@ /** | ||
| import type { ServerOptions } from 'node:https'; | ||
| import type { Server as ConnectApplication, NextFunction } from 'connect-next'; | ||
| import type { NextFunction } from 'connect-next'; | ||
| import type { Filter as ProxyFilter, Options as ProxyOptions } from 'http-proxy-middleware'; | ||
@@ -157,3 +157,3 @@ import type { Options as OpenOptions } from 'open'; | ||
| }; | ||
| export type DevServerOptions<A extends BasicApplication = ConnectApplication, S extends BasicServer = BasicServer> = { | ||
| export type DevServerOptions<A extends BasicApplication = BasicApplication, S extends BasicServer = BasicServer> = { | ||
| ipc?: string | boolean; | ||
@@ -160,0 +160,0 @@ host?: DevServerHost; |
@@ -60,5 +60,7 @@ declare const rspackVersion: string; | ||
| import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, rsc, SubresourceIntegrityPlugin } from './builtin-plugin'; | ||
| import JsonpTemplatePlugin from './web/JsonpTemplatePlugin'; | ||
| export { SubresourceIntegrityPlugin }; | ||
| interface Web { | ||
| FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin; | ||
| JsonpTemplatePlugin: typeof JsonpTemplatePlugin; | ||
| } | ||
@@ -102,3 +104,3 @@ export declare const web: Web; | ||
| export declare const javascript: JavaScript; | ||
| import { WebWorkerTemplatePlugin } from './builtin-plugin'; | ||
| import WebWorkerTemplatePlugin from './webworker/WebWorkerTemplatePlugin'; | ||
| interface Webworker { | ||
@@ -105,0 +107,0 @@ WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin; |
+1
-1
| { | ||
| "name": "@rspack/browser", | ||
| "version": "2.0.0-rc.2", | ||
| "version": "2.0.0-rc.3", | ||
| "webpackVersion": "5.75.0", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
| import { type BuiltinPlugin, BuiltinPluginName } from '../binding'; | ||
| import type { Compiler } from '../Compiler'; | ||
| import { RspackBuiltinPlugin } from './base'; | ||
| export declare class WebWorkerTemplatePlugin extends RspackBuiltinPlugin { | ||
| name: BuiltinPluginName; | ||
| raw(compiler: Compiler): BuiltinPlugin | undefined; | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
270
0.37%111817
0.03%31370847
-1.98%