@modern-js/plugin-module-node-polyfill 2.41.0 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globals.d.ts +2 -2
- package/dist/index.d.ts +43 -43
- package/dist/mock/child_process.d.ts +1 -1
- package/dist/mock/cluster.d.ts +1 -1
- package/dist/mock/dgram.d.ts +1 -1
- package/dist/mock/dns.d.ts +1 -1
- package/dist/mock/fs.d.ts +1 -1
- package/dist/mock/module.d.ts +1 -1
- package/dist/mock/net.d.ts +1 -1
- package/dist/mock/readline.d.ts +1 -1
- package/dist/mock/repl.d.ts +1 -1
- package/dist/mock/tls.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +4 -4
package/dist/globals.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import type { CliPlugin, ModuleTools, ICompiler } from '@modern-js/module-tools';
|
|
2
2
|
export interface NodePolyfillPluginOptions {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
excludes?: string[];
|
|
4
|
+
overrides?: Partial<Record<keyof typeof modules, string>>;
|
|
5
5
|
}
|
|
6
6
|
export declare const modules: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
7
|
+
assert: string;
|
|
8
|
+
buffer: string;
|
|
9
|
+
child_process: null;
|
|
10
|
+
cluster: null;
|
|
11
|
+
console: string;
|
|
12
|
+
constants: string;
|
|
13
|
+
crypto: string;
|
|
14
|
+
dgram: null;
|
|
15
|
+
dns: null;
|
|
16
|
+
domain: string;
|
|
17
|
+
events: string;
|
|
18
|
+
fs: null;
|
|
19
|
+
http: string;
|
|
20
|
+
https: string;
|
|
21
|
+
module: null;
|
|
22
|
+
net: null;
|
|
23
|
+
os: string;
|
|
24
|
+
path: string;
|
|
25
|
+
punycode: string;
|
|
26
|
+
process: string;
|
|
27
|
+
querystring: string;
|
|
28
|
+
readline: null;
|
|
29
|
+
repl: null;
|
|
30
|
+
stream: string;
|
|
31
|
+
_stream_duplex: string;
|
|
32
|
+
_stream_passthrough: string;
|
|
33
|
+
_stream_readable: string;
|
|
34
|
+
_stream_transform: string;
|
|
35
|
+
_stream_writable: string;
|
|
36
|
+
string_decoder: string;
|
|
37
|
+
sys: string;
|
|
38
|
+
timers: string;
|
|
39
|
+
tls: null;
|
|
40
|
+
tty: string;
|
|
41
|
+
url: string;
|
|
42
|
+
util: string;
|
|
43
|
+
vm: string;
|
|
44
|
+
zlib: string;
|
|
45
45
|
};
|
|
46
46
|
export declare const getNodePolyfillHook: (polyfillOption?: NodePolyfillPluginOptions) => {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
name: string;
|
|
48
|
+
apply(compiler: ICompiler): void;
|
|
49
49
|
};
|
|
50
|
-
export declare const modulePluginNodePolyfill: (polyfillOption?: NodePolyfillPluginOptions) => CliPlugin<ModuleTools>;
|
|
50
|
+
export declare const modulePluginNodePolyfill: (polyfillOption?: NodePolyfillPluginOptions) => CliPlugin<ModuleTools>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/cluster.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/dgram.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/dns.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/fs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/module.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/net.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/readline.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/repl.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/mock/tls.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function excludeObjectKeys(object: Record<string, string>, keys: string[]): Record<string, string>;
|
|
2
|
-
export declare function addResolveFallback(object: Record<string, string | null>, overrides?: Record<string, string>): Record<string, string>;
|
|
2
|
+
export declare function addResolveFallback(object: Record<string, string | null>, overrides?: Record<string, string>): Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/plugin-module-node-polyfill",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.42.0",
|
|
4
4
|
"description": "The node polyfill plugin of Modern.js Module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^14",
|
|
50
50
|
"typescript": "^5",
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
51
|
+
"@scripts/build": "2.42.0",
|
|
52
|
+
"@modern-js/module-tools": "2.42.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@modern-js/module-tools": "^2.
|
|
55
|
+
"@modern-js/module-tools": "^2.42.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@modern-js/module-tools": {
|