@tsonic/nodejs 10.0.46 → 10.0.47
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/index/bindings.json +478 -478
- package/index/internal/index.d.ts +131 -131
- package/nodejs.Http/bindings.json +103 -103
- package/nodejs.Http/internal/index.d.ts +19 -19
- package/nodejs.Http.d.ts +1 -1
- package/package.json +4 -4
- package/tsonic.bindings.json +1 -1
|
@@ -13,7 +13,7 @@ import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Ru
|
|
|
13
13
|
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
14
14
|
import type { Task, Task_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
15
15
|
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
-
import type { Action, Action_1, Action_2, Boolean as ClrBoolean, Byte, Delegate,
|
|
16
|
+
import type { Action, Action_1, Action_2, Boolean as ClrBoolean, Byte, Delegate, Exception, Int32, Nullable_1, Object as ClrObject, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
17
17
|
|
|
18
18
|
export interface AddressInfo$instance {
|
|
19
19
|
readonly __tsonic_type_nodejs_Http_AddressInfo: never;
|
|
@@ -63,7 +63,7 @@ export interface IncomingMessage$instance extends EventEmitter {
|
|
|
63
63
|
readonly headers: Dictionary_2<System_Internal.String, System_Internal.String>;
|
|
64
64
|
readonly httpVersion: string;
|
|
65
65
|
readonly method: string | undefined;
|
|
66
|
-
readonly statusCode:
|
|
66
|
+
readonly statusCode: int | undefined;
|
|
67
67
|
readonly statusMessage: string | undefined;
|
|
68
68
|
readonly url: string | undefined;
|
|
69
69
|
destroy(): void;
|
|
@@ -71,7 +71,7 @@ export interface IncomingMessage$instance extends EventEmitter {
|
|
|
71
71
|
onData(callback: Action_1<System_Internal.String>): void;
|
|
72
72
|
onEnd(callback: Action): void;
|
|
73
73
|
readAll(): Task_1<System_Internal.String>;
|
|
74
|
-
setTimeout(msecs:
|
|
74
|
+
setTimeout(msecs: int, callback?: Action): IncomingMessage;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
|
|
@@ -99,8 +99,8 @@ export interface RequestOptions$instance {
|
|
|
99
99
|
set path(value: string | undefined);
|
|
100
100
|
port: int;
|
|
101
101
|
protocol: string;
|
|
102
|
-
get timeout():
|
|
103
|
-
set timeout(value:
|
|
102
|
+
get timeout(): int | undefined;
|
|
103
|
+
set timeout(value: int | undefined | int);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
|
|
@@ -114,18 +114,18 @@ export type RequestOptions = RequestOptions$instance;
|
|
|
114
114
|
export interface Server$instance extends EventEmitter {
|
|
115
115
|
readonly __tsonic_type_nodejs_Http_Server: never;
|
|
116
116
|
|
|
117
|
-
headersTimeout:
|
|
118
|
-
keepAliveTimeout:
|
|
117
|
+
headersTimeout: int;
|
|
118
|
+
keepAliveTimeout: int;
|
|
119
119
|
readonly listening: boolean;
|
|
120
120
|
maxHeadersCount: int;
|
|
121
|
-
requestTimeout:
|
|
122
|
-
timeout:
|
|
121
|
+
requestTimeout: int;
|
|
122
|
+
timeout: int;
|
|
123
123
|
address(): AddressInfo | undefined;
|
|
124
124
|
close(callback?: Action): Server;
|
|
125
|
-
listen(port:
|
|
126
|
-
listen(port:
|
|
127
|
-
listen(port:
|
|
128
|
-
setTimeout(msecs:
|
|
125
|
+
listen(port: int, hostname?: string, backlog?: int | undefined, callback?: Action): Server;
|
|
126
|
+
listen(port: int, callback: Action): Server;
|
|
127
|
+
listen(port: int, hostname: string, callback: Action): Server;
|
|
128
|
+
setTimeout(msecs: int, callback?: Action): Server;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
|
|
@@ -141,7 +141,7 @@ export interface ServerResponse$instance extends EventEmitter {
|
|
|
141
141
|
|
|
142
142
|
readonly finished: boolean;
|
|
143
143
|
readonly headersSent: boolean;
|
|
144
|
-
statusCode:
|
|
144
|
+
statusCode: int;
|
|
145
145
|
statusMessage: string;
|
|
146
146
|
end(): ServerResponse;
|
|
147
147
|
end(callback: Action): ServerResponse;
|
|
@@ -155,12 +155,12 @@ export interface ServerResponse$instance extends EventEmitter {
|
|
|
155
155
|
hasHeader(name: string): boolean;
|
|
156
156
|
removeHeader(name: string): void;
|
|
157
157
|
setHeader(name: string, value: string): ServerResponse;
|
|
158
|
-
setTimeout(msecs:
|
|
158
|
+
setTimeout(msecs: int, callback?: Action): ServerResponse;
|
|
159
159
|
write(chunk: string, encoding?: string, callback?: Action): boolean;
|
|
160
160
|
write(chunk: Buffer, callback?: Action): boolean;
|
|
161
161
|
write(chunk: byte[], callback?: Action): boolean;
|
|
162
|
-
writeHead(statusCode:
|
|
163
|
-
writeHead(statusCode:
|
|
162
|
+
writeHead(statusCode: int, statusMessage?: string, headers?: Dictionary_2<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
163
|
+
writeHead(statusCode: int, headers: Dictionary_2<System_Internal.String, System_Internal.String>): ServerResponse;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
|
|
@@ -186,8 +186,8 @@ export const TypeError: {
|
|
|
186
186
|
export type TypeError = TypeError$instance;
|
|
187
187
|
|
|
188
188
|
export abstract class http$instance {
|
|
189
|
-
static get globalAgent_maxSockets():
|
|
190
|
-
static set globalAgent_maxSockets(value:
|
|
189
|
+
static get globalAgent_maxSockets(): int | undefined;
|
|
190
|
+
static set globalAgent_maxSockets(value: int | undefined | int);
|
|
191
191
|
static globalAgent_maxFreeSockets: int;
|
|
192
192
|
static globalAgent_timeout: int;
|
|
193
193
|
static maxHeaderSize: int;
|
package/nodejs.Http.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as Internal from './nodejs.Http/internal/index.js';
|
|
|
8
8
|
// Cross-namespace type imports for constraints
|
|
9
9
|
import type { Buffer, EventEmitter } from './index/internal/index.js';
|
|
10
10
|
import type { Dictionary } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
11
|
-
import type { Action, Boolean as ClrBoolean, Byte, Delegate,
|
|
11
|
+
import type { Action, Boolean as ClrBoolean, Byte, Delegate, Exception, Int32, Nullable, Object as ClrObject, String as ClrString, Void } from '@tsonic/dotnet/System.js';
|
|
12
12
|
import type { ISerializable } from '@tsonic/dotnet/System.Runtime.Serialization.js';
|
|
13
13
|
import type { Task } from '@tsonic/dotnet/System.Threading.Tasks.js';
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/nodejs",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.47",
|
|
4
4
|
"description": "TypeScript type definitions for Node.js CLR library",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"url": "https://github.com/tsoniclang/nodejs.git"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@tsonic/dotnet": "10.0.
|
|
34
|
-
"@tsonic/core": "10.0.
|
|
35
|
-
"@tsonic/js": "10.0.
|
|
33
|
+
"@tsonic/dotnet": "10.0.40",
|
|
34
|
+
"@tsonic/core": "10.0.40",
|
|
35
|
+
"@tsonic/js": "10.0.47"
|
|
36
36
|
}
|
|
37
37
|
}
|