@tsonic/nodejs 10.0.39 → 10.0.41
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/README.md +4 -7
- package/Tsonic.Runtime/bindings.json +4729 -0
- package/Tsonic.Runtime/internal/index.d.ts +362 -0
- package/Tsonic.Runtime.d.ts +43 -0
- package/Tsonic.Runtime.js +9 -0
- package/bindings.json +10 -0
- package/families.json +9 -1
- package/index/bindings.json +1350 -1234
- package/index/internal/index.d.ts +13 -6
- package/index.d.ts +3 -0
- package/node-aliases.d.ts +91 -2
- package/nodejs.Http/bindings.json +278 -138
- package/nodejs.Http/internal/index.d.ts +23 -16
- package/nodejs.Http.d.ts +2 -2
- package/package.json +16 -4
- package/tsonic.bindings.json +13 -3
- package/tsonic.surface.json +0 -7
|
@@ -21,6 +21,7 @@ import type { Regex } from "@tsonic/dotnet/System.Text.RegularExpressions/intern
|
|
|
21
21
|
import type { Task, Task_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
22
22
|
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
23
23
|
import type { Action, Action_1, Action_2, Action_3, AsyncCallback, Boolean as ClrBoolean, Byte, DateTime, Delegate, Double, Exception, Func_1, IAsyncResult, ICloneable, IDisposable, Int16, Int32, Int64, IntPtr, MulticastDelegate, Nullable_1, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, UInt64, ValueTuple_2, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
24
|
+
import type { Date } from "@tsonic/js/Tsonic.JSRuntime/internal/index.js";
|
|
24
25
|
|
|
25
26
|
export type DebugLogFunction = (message: string, ...args: unknown[]) => void;
|
|
26
27
|
|
|
@@ -2121,13 +2122,17 @@ export type SrvRecord = SrvRecord$instance;
|
|
|
2121
2122
|
export interface Stats$instance {
|
|
2122
2123
|
readonly __tsonic_type_nodejs_Stats: never;
|
|
2123
2124
|
|
|
2124
|
-
atime:
|
|
2125
|
-
|
|
2126
|
-
|
|
2125
|
+
atime: Date;
|
|
2126
|
+
atimeMs: double;
|
|
2127
|
+
birthtime: Date;
|
|
2128
|
+
birthtimeMs: double;
|
|
2129
|
+
ctime: Date;
|
|
2130
|
+
ctimeMs: double;
|
|
2127
2131
|
isDirectory: boolean;
|
|
2128
2132
|
isFile: boolean;
|
|
2129
2133
|
mode: int;
|
|
2130
|
-
mtime:
|
|
2134
|
+
mtime: Date;
|
|
2135
|
+
mtimeMs: double;
|
|
2131
2136
|
size: long;
|
|
2132
2137
|
IsBlockDevice(): boolean;
|
|
2133
2138
|
IsCharacterDevice(): boolean;
|
|
@@ -2909,9 +2914,11 @@ export abstract class fs$instance {
|
|
|
2909
2914
|
static read(fd: int, buffer: byte[], offset: int, length: int, position: Nullable_1<System_Internal.Int32>): Task_1<System_Internal.Int32>;
|
|
2910
2915
|
static readdir(path: string, withFileTypes?: boolean): Task_1<string[]>;
|
|
2911
2916
|
static readdirSync(path: string, withFileTypes?: boolean): string[];
|
|
2912
|
-
static readFile(path: string, encoding
|
|
2917
|
+
static readFile(path: string, encoding: string): Task_1<System_Internal.String>;
|
|
2918
|
+
static readFile(path: string): Task_1<Buffer>;
|
|
2913
2919
|
static readFileBytes(path: string): Task_1<byte[]>;
|
|
2914
|
-
static readFileSync(path: string, encoding
|
|
2920
|
+
static readFileSync(path: string, encoding: string): string;
|
|
2921
|
+
static readFileSync(path: string): Buffer;
|
|
2915
2922
|
static readFileSyncBytes(path: string): byte[];
|
|
2916
2923
|
static readlink(path: string): Task_1<System_Internal.String>;
|
|
2917
2924
|
static readlinkSync(path: string): string;
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference path="./node-aliases.d.ts" />
|
|
2
|
+
|
|
1
3
|
// Generated by tsbindgen - Architecture
|
|
2
4
|
// Namespace: nodejs
|
|
3
5
|
// Facade - Public API Surface
|
|
@@ -14,6 +16,7 @@ import type { SslProtocols } from '@tsonic/dotnet/System.Security.Authentication
|
|
|
14
16
|
import type { X509Certificate2, X509Certificate2Collection } from '@tsonic/dotnet/System.Security.Cryptography.X509Certificates.js';
|
|
15
17
|
import type { Regex } from '@tsonic/dotnet/System.Text.RegularExpressions.js';
|
|
16
18
|
import type { Task } from '@tsonic/dotnet/System.Threading.Tasks.js';
|
|
19
|
+
import type { Date } from '@tsonic/js/Tsonic.JSRuntime.js';
|
|
17
20
|
|
|
18
21
|
// Public API exports (curated - no internal $instance/$views leakage)
|
|
19
22
|
export { assert$instance as assert } from './index/internal/index.js';
|
package/node-aliases.d.ts
CHANGED
|
@@ -1,30 +1,50 @@
|
|
|
1
1
|
declare module "node:assert" {
|
|
2
2
|
export { assert } from "@tsonic/nodejs/index.js";
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
declare module "assert" {
|
|
5
6
|
export { assert } from "@tsonic/nodejs/index.js";
|
|
6
7
|
}
|
|
8
|
+
|
|
7
9
|
declare module "node:buffer" {
|
|
8
10
|
export { buffer } from "@tsonic/nodejs/index.js";
|
|
11
|
+
export { Buffer } from "@tsonic/nodejs/index.js";
|
|
9
12
|
}
|
|
13
|
+
|
|
10
14
|
declare module "buffer" {
|
|
11
15
|
export { buffer } from "@tsonic/nodejs/index.js";
|
|
16
|
+
export { Buffer } from "@tsonic/nodejs/index.js";
|
|
12
17
|
}
|
|
18
|
+
|
|
13
19
|
declare module "node:child_process" {
|
|
14
20
|
export { child_process } from "@tsonic/nodejs/index.js";
|
|
15
21
|
}
|
|
22
|
+
|
|
16
23
|
declare module "child_process" {
|
|
17
24
|
export { child_process } from "@tsonic/nodejs/index.js";
|
|
18
25
|
}
|
|
26
|
+
|
|
19
27
|
declare module "node:fs" {
|
|
20
28
|
export { fs } from "@tsonic/nodejs/index.js";
|
|
21
29
|
export const existsSync: typeof import("@tsonic/nodejs/index.js").fs.existsSync;
|
|
22
30
|
export const readFileSync: typeof import("@tsonic/nodejs/index.js").fs.readFileSync;
|
|
31
|
+
export const readFile: typeof import("@tsonic/nodejs/index.js").fs.readFile;
|
|
32
|
+
export const readFileSyncBytes: typeof import("@tsonic/nodejs/index.js").fs.readFileSyncBytes;
|
|
33
|
+
export const readdirSync: typeof import("@tsonic/nodejs/index.js").fs.readdirSync;
|
|
34
|
+
export const readdir: typeof import("@tsonic/nodejs/index.js").fs.readdir;
|
|
35
|
+
export const copyFileSync: typeof import("@tsonic/nodejs/index.js").fs.copyFileSync;
|
|
23
36
|
export const mkdirSync: typeof import("@tsonic/nodejs/index.js").fs.mkdirSync;
|
|
37
|
+
export const realpathSync: typeof import("@tsonic/nodejs/index.js").fs.realpathSync;
|
|
38
|
+
export const rmSync: typeof import("@tsonic/nodejs/index.js").fs.rmSync;
|
|
39
|
+
export const statSync: typeof import("@tsonic/nodejs/index.js").fs.statSync;
|
|
40
|
+
export const writeFileSync: typeof import("@tsonic/nodejs/index.js").fs.writeFileSync;
|
|
41
|
+
export const writeFileSyncBytes: typeof import("@tsonic/nodejs/index.js").fs.writeFileSyncBytes;
|
|
24
42
|
}
|
|
43
|
+
|
|
25
44
|
declare module "fs" {
|
|
26
45
|
export { fs } from "@tsonic/nodejs/index.js";
|
|
27
46
|
}
|
|
47
|
+
|
|
28
48
|
declare module "node:path" {
|
|
29
49
|
export { path } from "@tsonic/nodejs/index.js";
|
|
30
50
|
export const join: typeof import("@tsonic/nodejs/index.js").path.join;
|
|
@@ -32,102 +52,171 @@ declare module "node:path" {
|
|
|
32
52
|
export const basename: typeof import("@tsonic/nodejs/index.js").path.basename;
|
|
33
53
|
export const dirname: typeof import("@tsonic/nodejs/index.js").path.dirname;
|
|
34
54
|
export const parse: typeof import("@tsonic/nodejs/index.js").path.parse;
|
|
55
|
+
export const isAbsolute: typeof import("@tsonic/nodejs/index.js").path.isAbsolute;
|
|
56
|
+
export const normalize: typeof import("@tsonic/nodejs/index.js").path.normalize;
|
|
57
|
+
export const relative: typeof import("@tsonic/nodejs/index.js").path.relative;
|
|
35
58
|
export const resolve: typeof import("@tsonic/nodejs/index.js").path.resolve;
|
|
59
|
+
export const sep: typeof import("@tsonic/nodejs/index.js").path.sep;
|
|
60
|
+
export const delimiter: typeof import("@tsonic/nodejs/index.js").path.delimiter;
|
|
36
61
|
}
|
|
62
|
+
|
|
37
63
|
declare module "path" {
|
|
38
64
|
export { path } from "@tsonic/nodejs/index.js";
|
|
39
65
|
}
|
|
66
|
+
|
|
40
67
|
declare module "node:crypto" {
|
|
41
68
|
export { crypto } from "@tsonic/nodejs/index.js";
|
|
42
69
|
export const randomUUID: typeof import("@tsonic/nodejs/index.js").crypto.randomUUID;
|
|
43
70
|
}
|
|
71
|
+
|
|
44
72
|
declare module "crypto" {
|
|
45
73
|
export { crypto } from "@tsonic/nodejs/index.js";
|
|
46
74
|
}
|
|
75
|
+
|
|
47
76
|
declare module "node:dgram" {
|
|
48
77
|
export { dgram } from "@tsonic/nodejs/index.js";
|
|
49
78
|
}
|
|
79
|
+
|
|
50
80
|
declare module "dgram" {
|
|
51
81
|
export { dgram } from "@tsonic/nodejs/index.js";
|
|
52
82
|
}
|
|
83
|
+
|
|
53
84
|
declare module "node:dns" {
|
|
54
85
|
export { dns } from "@tsonic/nodejs/index.js";
|
|
55
86
|
}
|
|
87
|
+
|
|
56
88
|
declare module "dns" {
|
|
57
89
|
export { dns } from "@tsonic/nodejs/index.js";
|
|
58
90
|
}
|
|
91
|
+
|
|
59
92
|
declare module "node:events" {
|
|
60
93
|
export { events } from "@tsonic/nodejs/index.js";
|
|
61
94
|
}
|
|
95
|
+
|
|
62
96
|
declare module "events" {
|
|
63
97
|
export { events } from "@tsonic/nodejs/index.js";
|
|
64
98
|
}
|
|
99
|
+
|
|
65
100
|
declare module "node:net" {
|
|
66
101
|
export { net } from "@tsonic/nodejs/index.js";
|
|
67
102
|
}
|
|
103
|
+
|
|
68
104
|
declare module "net" {
|
|
69
105
|
export { net } from "@tsonic/nodejs/index.js";
|
|
70
106
|
}
|
|
107
|
+
|
|
71
108
|
declare module "node:os" {
|
|
72
109
|
export { os } from "@tsonic/nodejs/index.js";
|
|
73
110
|
export const homedir: typeof import("@tsonic/nodejs/index.js").os.homedir;
|
|
74
111
|
export const tmpdir: typeof import("@tsonic/nodejs/index.js").os.tmpdir;
|
|
75
112
|
}
|
|
113
|
+
|
|
76
114
|
declare module "os" {
|
|
77
115
|
export { os } from "@tsonic/nodejs/index.js";
|
|
78
116
|
}
|
|
117
|
+
|
|
79
118
|
declare module "node:process" {
|
|
80
119
|
export { process } from "@tsonic/nodejs/index.js";
|
|
120
|
+
export const argv: typeof import("@tsonic/nodejs/index.js").process.argv;
|
|
121
|
+
export const argv0: typeof import("@tsonic/nodejs/index.js").process.argv0;
|
|
122
|
+
export const arch: typeof import("@tsonic/nodejs/index.js").process.arch;
|
|
81
123
|
export const cwd: typeof import("@tsonic/nodejs/index.js").process.cwd;
|
|
82
|
-
|
|
124
|
+
export const chdir: typeof import("@tsonic/nodejs/index.js").process.chdir;
|
|
125
|
+
export const env: typeof import("@tsonic/nodejs/index.js").process.env;
|
|
126
|
+
export const execPath: typeof import("@tsonic/nodejs/index.js").process.execPath;
|
|
127
|
+
export const exit: typeof import("@tsonic/nodejs/index.js").process.exit;
|
|
128
|
+
export const exitCode: typeof import("@tsonic/nodejs/index.js").process.exitCode;
|
|
129
|
+
export const kill: typeof import("@tsonic/nodejs/index.js").process.kill;
|
|
130
|
+
export const pid: typeof import("@tsonic/nodejs/index.js").process.pid;
|
|
131
|
+
export const ppid: typeof import("@tsonic/nodejs/index.js").process.ppid;
|
|
132
|
+
export const platform: typeof import("@tsonic/nodejs/index.js").process.platform;
|
|
133
|
+
export const version: typeof import("@tsonic/nodejs/index.js").process.version;
|
|
134
|
+
}
|
|
135
|
+
|
|
83
136
|
declare module "process" {
|
|
84
137
|
export { process } from "@tsonic/nodejs/index.js";
|
|
85
138
|
}
|
|
139
|
+
|
|
86
140
|
declare module "node:querystring" {
|
|
87
141
|
export { querystring } from "@tsonic/nodejs/index.js";
|
|
88
142
|
}
|
|
143
|
+
|
|
89
144
|
declare module "querystring" {
|
|
90
145
|
export { querystring } from "@tsonic/nodejs/index.js";
|
|
91
146
|
}
|
|
147
|
+
|
|
92
148
|
declare module "node:readline" {
|
|
93
149
|
export { readline } from "@tsonic/nodejs/index.js";
|
|
94
150
|
}
|
|
151
|
+
|
|
95
152
|
declare module "readline" {
|
|
96
153
|
export { readline } from "@tsonic/nodejs/index.js";
|
|
97
154
|
}
|
|
155
|
+
|
|
98
156
|
declare module "node:stream" {
|
|
99
157
|
export { stream } from "@tsonic/nodejs/index.js";
|
|
100
158
|
}
|
|
159
|
+
|
|
101
160
|
declare module "stream" {
|
|
102
161
|
export { stream } from "@tsonic/nodejs/index.js";
|
|
103
162
|
}
|
|
163
|
+
|
|
104
164
|
declare module "node:timers" {
|
|
105
165
|
export { timers } from "@tsonic/nodejs/index.js";
|
|
106
166
|
}
|
|
167
|
+
|
|
107
168
|
declare module "timers" {
|
|
108
169
|
export { timers } from "@tsonic/nodejs/index.js";
|
|
109
170
|
}
|
|
171
|
+
|
|
110
172
|
declare module "node:tls" {
|
|
111
173
|
export { tls } from "@tsonic/nodejs/index.js";
|
|
112
174
|
}
|
|
175
|
+
|
|
113
176
|
declare module "tls" {
|
|
114
177
|
export { tls } from "@tsonic/nodejs/index.js";
|
|
115
178
|
}
|
|
179
|
+
|
|
116
180
|
declare module "node:url" {
|
|
117
181
|
export { url } from "@tsonic/nodejs/index.js";
|
|
182
|
+
export { URL, URLSearchParams } from "@tsonic/nodejs/index.js";
|
|
183
|
+
export const fileURLToPath: typeof import("@tsonic/nodejs/index.js").url.fileURLToPath;
|
|
184
|
+
export const pathToFileURL: typeof import("@tsonic/nodejs/index.js").url.pathToFileURL;
|
|
118
185
|
}
|
|
186
|
+
|
|
119
187
|
declare module "url" {
|
|
120
188
|
export { url } from "@tsonic/nodejs/index.js";
|
|
121
|
-
}
|
|
189
|
+
export { URL, URLSearchParams } from "@tsonic/nodejs/index.js";
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
declare module "node:http" {
|
|
193
|
+
export { http } from "@tsonic/nodejs/nodejs.Http.js";
|
|
194
|
+
export type { AddressInfo, ClientRequest, IncomingMessage, RequestOptions, Server, ServerResponse } from "@tsonic/nodejs/nodejs.Http.js";
|
|
195
|
+
export const createServer: typeof import("@tsonic/nodejs/nodejs.Http.js").http.createServer;
|
|
196
|
+
export const get: typeof import("@tsonic/nodejs/nodejs.Http.js").http.get;
|
|
197
|
+
export const request: typeof import("@tsonic/nodejs/nodejs.Http.js").http.request;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare module "http" {
|
|
201
|
+
export { http } from "@tsonic/nodejs/nodejs.Http.js";
|
|
202
|
+
export type { AddressInfo, ClientRequest, IncomingMessage, RequestOptions, Server, ServerResponse } from "@tsonic/nodejs/nodejs.Http.js";
|
|
203
|
+
export const createServer: typeof import("@tsonic/nodejs/nodejs.Http.js").http.createServer;
|
|
204
|
+
export const get: typeof import("@tsonic/nodejs/nodejs.Http.js").http.get;
|
|
205
|
+
export const request: typeof import("@tsonic/nodejs/nodejs.Http.js").http.request;
|
|
206
|
+
}
|
|
207
|
+
|
|
122
208
|
declare module "node:util" {
|
|
123
209
|
export { util } from "@tsonic/nodejs/index.js";
|
|
124
210
|
}
|
|
211
|
+
|
|
125
212
|
declare module "util" {
|
|
126
213
|
export { util } from "@tsonic/nodejs/index.js";
|
|
127
214
|
}
|
|
215
|
+
|
|
128
216
|
declare module "node:zlib" {
|
|
129
217
|
export { zlib } from "@tsonic/nodejs/index.js";
|
|
130
218
|
}
|
|
219
|
+
|
|
131
220
|
declare module "zlib" {
|
|
132
221
|
export { zlib } from "@tsonic/nodejs/index.js";
|
|
133
222
|
}
|