@tsonic/nodejs 10.0.39 → 10.0.40

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/bindings.json CHANGED
@@ -70,6 +70,16 @@
70
70
  "assembly": "nodejs",
71
71
  "type": "nodejs.events"
72
72
  },
73
+ "node:http": {
74
+ "kind": "module",
75
+ "assembly": "nodejs",
76
+ "type": "nodejs.Http.http"
77
+ },
78
+ "http": {
79
+ "kind": "module",
80
+ "assembly": "nodejs",
81
+ "type": "nodejs.Http.http"
82
+ },
73
83
  "node:fs": {
74
84
  "kind": "module",
75
85
  "assembly": "nodejs",
package/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /// <reference types="@tsonic/js" />
2
+ /// <reference path="./node-aliases.d.ts" />
3
+
1
4
  // Generated by tsbindgen - Architecture
2
5
  // Namespace: nodejs
3
6
  // Facade - Public API Surface
package/node-aliases.d.ts CHANGED
@@ -1,30 +1,40 @@
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";
9
11
  }
12
+
10
13
  declare module "buffer" {
11
14
  export { buffer } from "@tsonic/nodejs/index.js";
12
15
  }
16
+
13
17
  declare module "node:child_process" {
14
18
  export { child_process } from "@tsonic/nodejs/index.js";
15
19
  }
20
+
16
21
  declare module "child_process" {
17
22
  export { child_process } from "@tsonic/nodejs/index.js";
18
23
  }
24
+
19
25
  declare module "node:fs" {
20
26
  export { fs } from "@tsonic/nodejs/index.js";
21
27
  export const existsSync: typeof import("@tsonic/nodejs/index.js").fs.existsSync;
22
28
  export const readFileSync: typeof import("@tsonic/nodejs/index.js").fs.readFileSync;
29
+ export const readFile: typeof import("@tsonic/nodejs/index.js").fs.readFile;
30
+ export const readdir: typeof import("@tsonic/nodejs/index.js").fs.readdir;
23
31
  export const mkdirSync: typeof import("@tsonic/nodejs/index.js").fs.mkdirSync;
24
32
  }
33
+
25
34
  declare module "fs" {
26
35
  export { fs } from "@tsonic/nodejs/index.js";
27
36
  }
37
+
28
38
  declare module "node:path" {
29
39
  export { path } from "@tsonic/nodejs/index.js";
30
40
  export const join: typeof import("@tsonic/nodejs/index.js").path.join;
@@ -34,100 +44,151 @@ declare module "node:path" {
34
44
  export const parse: typeof import("@tsonic/nodejs/index.js").path.parse;
35
45
  export const resolve: typeof import("@tsonic/nodejs/index.js").path.resolve;
36
46
  }
47
+
37
48
  declare module "path" {
38
49
  export { path } from "@tsonic/nodejs/index.js";
39
50
  }
51
+
40
52
  declare module "node:crypto" {
41
53
  export { crypto } from "@tsonic/nodejs/index.js";
42
54
  export const randomUUID: typeof import("@tsonic/nodejs/index.js").crypto.randomUUID;
43
55
  }
56
+
44
57
  declare module "crypto" {
45
58
  export { crypto } from "@tsonic/nodejs/index.js";
46
59
  }
60
+
47
61
  declare module "node:dgram" {
48
62
  export { dgram } from "@tsonic/nodejs/index.js";
49
63
  }
64
+
50
65
  declare module "dgram" {
51
66
  export { dgram } from "@tsonic/nodejs/index.js";
52
67
  }
68
+
53
69
  declare module "node:dns" {
54
70
  export { dns } from "@tsonic/nodejs/index.js";
55
71
  }
72
+
56
73
  declare module "dns" {
57
74
  export { dns } from "@tsonic/nodejs/index.js";
58
75
  }
76
+
59
77
  declare module "node:events" {
60
78
  export { events } from "@tsonic/nodejs/index.js";
61
79
  }
80
+
62
81
  declare module "events" {
63
82
  export { events } from "@tsonic/nodejs/index.js";
64
83
  }
84
+
65
85
  declare module "node:net" {
66
86
  export { net } from "@tsonic/nodejs/index.js";
67
87
  }
88
+
68
89
  declare module "net" {
69
90
  export { net } from "@tsonic/nodejs/index.js";
70
91
  }
92
+
71
93
  declare module "node:os" {
72
94
  export { os } from "@tsonic/nodejs/index.js";
73
95
  export const homedir: typeof import("@tsonic/nodejs/index.js").os.homedir;
74
96
  export const tmpdir: typeof import("@tsonic/nodejs/index.js").os.tmpdir;
75
97
  }
98
+
76
99
  declare module "os" {
77
100
  export { os } from "@tsonic/nodejs/index.js";
78
101
  }
102
+
79
103
  declare module "node:process" {
80
104
  export { process } from "@tsonic/nodejs/index.js";
105
+ export const arch: typeof import("@tsonic/nodejs/index.js").process.arch;
81
106
  export const cwd: typeof import("@tsonic/nodejs/index.js").process.cwd;
107
+ export const pid: typeof import("@tsonic/nodejs/index.js").process.pid;
108
+ export const platform: typeof import("@tsonic/nodejs/index.js").process.platform;
109
+ export const version: typeof import("@tsonic/nodejs/index.js").process.version;
82
110
  }
111
+
83
112
  declare module "process" {
84
113
  export { process } from "@tsonic/nodejs/index.js";
85
114
  }
115
+
86
116
  declare module "node:querystring" {
87
117
  export { querystring } from "@tsonic/nodejs/index.js";
88
118
  }
119
+
89
120
  declare module "querystring" {
90
121
  export { querystring } from "@tsonic/nodejs/index.js";
91
122
  }
123
+
92
124
  declare module "node:readline" {
93
125
  export { readline } from "@tsonic/nodejs/index.js";
94
126
  }
127
+
95
128
  declare module "readline" {
96
129
  export { readline } from "@tsonic/nodejs/index.js";
97
130
  }
131
+
98
132
  declare module "node:stream" {
99
133
  export { stream } from "@tsonic/nodejs/index.js";
100
134
  }
135
+
101
136
  declare module "stream" {
102
137
  export { stream } from "@tsonic/nodejs/index.js";
103
138
  }
139
+
104
140
  declare module "node:timers" {
105
141
  export { timers } from "@tsonic/nodejs/index.js";
106
142
  }
143
+
107
144
  declare module "timers" {
108
145
  export { timers } from "@tsonic/nodejs/index.js";
109
146
  }
147
+
110
148
  declare module "node:tls" {
111
149
  export { tls } from "@tsonic/nodejs/index.js";
112
150
  }
151
+
113
152
  declare module "tls" {
114
153
  export { tls } from "@tsonic/nodejs/index.js";
115
154
  }
155
+
116
156
  declare module "node:url" {
117
157
  export { url } from "@tsonic/nodejs/index.js";
118
158
  }
159
+
119
160
  declare module "url" {
120
161
  export { url } from "@tsonic/nodejs/index.js";
121
162
  }
163
+
164
+ declare module "node:http" {
165
+ export { http } from "@tsonic/nodejs/nodejs.Http.js";
166
+ export type { AddressInfo, ClientRequest, IncomingMessage, RequestOptions, Server, ServerResponse } from "@tsonic/nodejs/nodejs.Http.js";
167
+ export const createServer: typeof import("@tsonic/nodejs/nodejs.Http.js").http.createServer;
168
+ export const get: typeof import("@tsonic/nodejs/nodejs.Http.js").http.get;
169
+ export const request: typeof import("@tsonic/nodejs/nodejs.Http.js").http.request;
170
+ }
171
+
172
+ declare module "http" {
173
+ export { http } from "@tsonic/nodejs/nodejs.Http.js";
174
+ export type { AddressInfo, ClientRequest, IncomingMessage, RequestOptions, Server, ServerResponse } from "@tsonic/nodejs/nodejs.Http.js";
175
+ export const createServer: typeof import("@tsonic/nodejs/nodejs.Http.js").http.createServer;
176
+ export const get: typeof import("@tsonic/nodejs/nodejs.Http.js").http.get;
177
+ export const request: typeof import("@tsonic/nodejs/nodejs.Http.js").http.request;
178
+ }
179
+
122
180
  declare module "node:util" {
123
181
  export { util } from "@tsonic/nodejs/index.js";
124
182
  }
183
+
125
184
  declare module "util" {
126
185
  export { util } from "@tsonic/nodejs/index.js";
127
186
  }
187
+
128
188
  declare module "node:zlib" {
129
189
  export { zlib } from "@tsonic/nodejs/index.js";
130
190
  }
191
+
131
192
  declare module "zlib" {
132
193
  export { zlib } from "@tsonic/nodejs/index.js";
133
194
  }
package/package.json CHANGED
@@ -1,7 +1,22 @@
1
1
  {
2
2
  "name": "@tsonic/nodejs",
3
- "version": "10.0.39",
3
+ "version": "10.0.40",
4
4
  "description": "TypeScript type definitions for Node.js CLR library",
5
+ "main": "index.d.ts",
6
+ "types": "index.d.ts",
7
+ "files": [
8
+ "index.d.ts",
9
+ "index.js",
10
+ "node-aliases.d.ts",
11
+ "nodejs.Http.d.ts",
12
+ "nodejs.Http.js",
13
+ "bindings.json",
14
+ "families.json",
15
+ "tsonic.bindings.json",
16
+ "tsonic.surface.json",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
5
20
  "type": "module",
6
21
  "keywords": [
7
22
  "nodejs",
@@ -18,8 +33,9 @@
18
33
  "type": "git",
19
34
  "url": "https://github.com/tsoniclang/nodejs.git"
20
35
  },
21
- "peerDependencies": {
22
- "@tsonic/dotnet": "10.0.35",
23
- "@tsonic/core": "10.0.35"
36
+ "dependencies": {
37
+ "@tsonic/js": "10.0.40",
38
+ "@tsonic/dotnet": "10.0.37",
39
+ "@tsonic/core": "10.0.37"
24
40
  }
25
41
  }
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "bindingVersion": 1,
3
3
  "packageName": "@tsonic/nodejs",
4
- "surfaceMode": "nodejs",
4
+ "surfaceMode": "@tsonic/nodejs",
5
5
  "runtimePackages": [
6
6
  "@tsonic/nodejs"
7
7
  ],
8
8
  "dotnet": {
9
9
  "frameworkReferences": [
10
- { "id": "Microsoft.AspNetCore.App", "types": "@tsonic/aspnetcore" }
10
+ {
11
+ "id": "Microsoft.AspNetCore.App",
12
+ "types": "@tsonic/aspnetcore"
13
+ }
11
14
  ],
12
15
  "packageReferences": [
13
- { "id": "Tsonic.Nodejs", "version": "1.0.1", "types": "@tsonic/nodejs" }
16
+ {
17
+ "id": "Tsonic.Nodejs",
18
+ "version": "1.0.1",
19
+ "types": "@tsonic/nodejs"
20
+ }
14
21
  ]
15
22
  }
16
23
  }
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "id": "@tsonic/nodejs",
4
- "extends": ["@tsonic/js"],
5
- "requiredTypeRoots": ["."],
4
+ "extends": [
5
+ "@tsonic/js"
6
+ ],
7
+ "requiredTypeRoots": [
8
+ "."
9
+ ],
6
10
  "useStandardLib": false
7
11
  }