@types/node 18.19.108 → 18.19.109
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.
- node v18.19/README.md +1 -1
- node v18.19/package.json +2 -2
- node v18.19/vm.d.ts +35 -12
node v18.19/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Fri, 30 May 2025
|
|
11
|
+
* Last updated: Fri, 30 May 2025 15:02:22 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.109",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
"undici-types": "~5.26.4"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "46682b3711d884eb5d397d9e6c7c06611150af9d740d4843cb867c16ccd556a6",
|
|
224
224
|
"typeScriptVersion": "5.1"
|
|
225
225
|
}
|
node v18.19/vm.d.ts
CHANGED
|
@@ -56,6 +56,11 @@ declare module "vm" {
|
|
|
56
56
|
*/
|
|
57
57
|
columnOffset?: number | undefined;
|
|
58
58
|
}
|
|
59
|
+
type DynamicModuleLoader<T> = (
|
|
60
|
+
specifier: string,
|
|
61
|
+
referrer: T,
|
|
62
|
+
importAttributes: ImportAttributes,
|
|
63
|
+
) => Module | Promise<Module>;
|
|
59
64
|
interface ScriptOptions extends BaseOptions {
|
|
60
65
|
/**
|
|
61
66
|
* Provides an optional data with V8's code cache data for the supplied source.
|
|
@@ -66,10 +71,10 @@ declare module "vm" {
|
|
|
66
71
|
/**
|
|
67
72
|
* Called during evaluation of this module when `import()` is called.
|
|
68
73
|
* If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
|
|
74
|
+
* This option is part of the experimental modules API. We do not recommend using it in a production environment.
|
|
75
|
+
* If `--experimental-vm-modules` isn't set, this callback will be ignored and calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG`.
|
|
69
76
|
*/
|
|
70
|
-
importModuleDynamically?:
|
|
71
|
-
| ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module | Promise<Module>)
|
|
72
|
-
| undefined;
|
|
77
|
+
importModuleDynamically?: DynamicModuleLoader<Script> | undefined;
|
|
73
78
|
}
|
|
74
79
|
interface RunningScriptOptions extends BaseOptions {
|
|
75
80
|
/**
|
|
@@ -112,14 +117,26 @@ declare module "vm" {
|
|
|
112
117
|
* Provides an optional data with V8's code cache data for the supplied source.
|
|
113
118
|
*/
|
|
114
119
|
cachedData?: ScriptOptions["cachedData"] | undefined;
|
|
115
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Called during evaluation of this module when `import()` is called.
|
|
122
|
+
* If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
|
|
123
|
+
* This option is part of the experimental modules API. We do not recommend using it in a production environment.
|
|
124
|
+
* If `--experimental-vm-modules` isn't set, this callback will be ignored and calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG`.
|
|
125
|
+
*/
|
|
126
|
+
importModuleDynamically?: DynamicModuleLoader<Script> | undefined;
|
|
116
127
|
}
|
|
117
128
|
interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions {
|
|
118
129
|
/**
|
|
119
130
|
* Provides an optional data with V8's code cache data for the supplied source.
|
|
120
131
|
*/
|
|
121
132
|
cachedData?: ScriptOptions["cachedData"] | undefined;
|
|
122
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Called during evaluation of this module when `import()` is called.
|
|
135
|
+
* If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
|
|
136
|
+
* This option is part of the experimental modules API. We do not recommend using it in a production environment.
|
|
137
|
+
* If `--experimental-vm-modules` isn't set, this callback will be ignored and calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG`.
|
|
138
|
+
*/
|
|
139
|
+
importModuleDynamically?: DynamicModuleLoader<Script> | undefined;
|
|
123
140
|
}
|
|
124
141
|
interface CompileFunctionOptions extends BaseOptions {
|
|
125
142
|
/**
|
|
@@ -139,6 +156,13 @@ declare module "vm" {
|
|
|
139
156
|
* An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
|
|
140
157
|
*/
|
|
141
158
|
contextExtensions?: Object[] | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Called during evaluation of this module when `import()` is called.
|
|
161
|
+
* If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
|
|
162
|
+
* This option is part of the experimental modules API. We do not recommend using it in a production environment.
|
|
163
|
+
* If `--experimental-vm-modules` isn't set, this callback will be ignored and calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG`.
|
|
164
|
+
*/
|
|
165
|
+
importModuleDynamically?: DynamicModuleLoader<ReturnType<typeof compileFunction>> | undefined;
|
|
142
166
|
}
|
|
143
167
|
interface CreateContextOptions {
|
|
144
168
|
/**
|
|
@@ -629,13 +653,12 @@ declare module "vm" {
|
|
|
629
653
|
* Called during evaluation of this module to initialize the `import.meta`.
|
|
630
654
|
*/
|
|
631
655
|
initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
| undefined;
|
|
656
|
+
/**
|
|
657
|
+
* Called during evaluation of this module when `import()` is called.
|
|
658
|
+
* If this option is not specified, calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`.
|
|
659
|
+
* If `--experimental-vm-modules` isn't set, this callback will be ignored and calls to `import()` will reject with `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG`.
|
|
660
|
+
*/
|
|
661
|
+
importModuleDynamically?: DynamicModuleLoader<SourceTextModule> | undefined;
|
|
639
662
|
}
|
|
640
663
|
class SourceTextModule extends Module {
|
|
641
664
|
/**
|