@modern-js/plugin-module-node-polyfill 2.41.0 → 2.42.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  export namespace buffer {
3
- export { Buffer };
3
+ export { Buffer };
4
4
  }
5
5
  import Buffer from 'buffer';
6
- export { processBrowser as process, console };
6
+ export { processBrowser as process, console };
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
- excludes?: string[];
4
- overrides?: Partial<Record<keyof typeof modules, string>>;
3
+ excludes?: string[];
4
+ overrides?: Partial<Record<keyof typeof modules, string>>;
5
5
  }
6
6
  export declare const modules: {
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;
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
- name: string;
48
- apply(compiler: ICompiler): void;
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 {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/dist/mock/fs.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -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.41.0",
3
+ "version": "2.42.1",
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
- "@modern-js/module-tools": "2.41.0",
52
- "@scripts/build": "2.41.0"
51
+ "@modern-js/module-tools": "2.42.1",
52
+ "@scripts/build": "2.42.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@modern-js/module-tools": "^2.41.0"
55
+ "@modern-js/module-tools": "^2.42.1"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@modern-js/module-tools": {