node-linux-x64 16.18.1 → 16.19.0
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/CHANGELOG.md +111 -0
- package/LICENSE +124 -51
- package/bin/node +0 -0
- package/include/node/common.gypi +2 -6
- package/include/node/config.gypi +91 -87
- package/include/node/js_native_api.h +2 -0
- package/include/node/js_native_api_types.h +2 -1
- package/include/node/node_api.h +3 -1
- package/include/node/node_version.h +2 -2
- package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/opensslv.h +2 -2
- package/package.json +1 -1
- package/share/systemtap/tapset/node.stp +146 -0
package/include/node/config.gypi
CHANGED
|
@@ -27,109 +27,107 @@
|
|
|
27
27
|
'node_enable_d8': 'false',
|
|
28
28
|
'node_install_corepack': 'true',
|
|
29
29
|
'node_install_npm': 'true',
|
|
30
|
-
'node_library_files': [ 'lib/
|
|
31
|
-
'lib/tls.js',
|
|
32
|
-
'lib/worker_threads.js',
|
|
33
|
-
'lib/_http_common.js',
|
|
34
|
-
'lib/_stream_wrap.js',
|
|
35
|
-
'lib/_http_server.js',
|
|
36
|
-
'lib/_stream_duplex.js',
|
|
30
|
+
'node_library_files': [ 'lib/_http_server.js',
|
|
37
31
|
'lib/_stream_passthrough.js',
|
|
38
|
-
'lib/
|
|
39
|
-
'lib/console.js',
|
|
40
|
-
'lib/constants.js',
|
|
41
|
-
'lib/child_process.js',
|
|
42
|
-
'lib/crypto.js',
|
|
32
|
+
'lib/_tls_wrap.js',
|
|
43
33
|
'lib/perf_hooks.js',
|
|
44
|
-
'lib/
|
|
34
|
+
'lib/process.js',
|
|
45
35
|
'lib/querystring.js',
|
|
46
|
-
'lib/
|
|
36
|
+
'lib/repl.js',
|
|
37
|
+
'lib/tty.js',
|
|
38
|
+
'lib/_stream_wrap.js',
|
|
39
|
+
'lib/assert.js',
|
|
40
|
+
'lib/console.js',
|
|
41
|
+
'lib/constants.js',
|
|
42
|
+
'lib/_http_agent.js',
|
|
43
|
+
'lib/_http_client.js',
|
|
44
|
+
'lib/_http_common.js',
|
|
45
|
+
'lib/_stream_writable.js',
|
|
47
46
|
'lib/module.js',
|
|
48
|
-
'lib/
|
|
49
|
-
'lib/_http_incoming.js',
|
|
47
|
+
'lib/url.js',
|
|
50
48
|
'lib/sys.js',
|
|
51
49
|
'lib/http2.js',
|
|
52
|
-
'lib/trace_events.js',
|
|
53
|
-
'lib/_tls_common.js',
|
|
54
|
-
'lib/_tls_wrap.js',
|
|
55
|
-
'lib/events.js',
|
|
56
|
-
'lib/url.js',
|
|
57
50
|
'lib/util.js',
|
|
58
|
-
'lib/_http_outgoing.js',
|
|
59
51
|
'lib/async_hooks.js',
|
|
60
|
-
'lib/tty.js',
|
|
61
|
-
'lib/v8.js',
|
|
62
52
|
'lib/cluster.js',
|
|
53
|
+
'lib/v8.js',
|
|
54
|
+
'lib/vm.js',
|
|
55
|
+
'lib/buffer.js',
|
|
63
56
|
'lib/fs.js',
|
|
64
|
-
'lib/_stream_readable.js',
|
|
65
57
|
'lib/_stream_transform.js',
|
|
66
58
|
'lib/diagnostics_channel.js',
|
|
67
59
|
'lib/dns.js',
|
|
68
60
|
'lib/domain.js',
|
|
69
61
|
'lib/http.js',
|
|
70
62
|
'lib/net.js',
|
|
71
|
-
'lib/
|
|
63
|
+
'lib/worker_threads.js',
|
|
64
|
+
'lib/child_process.js',
|
|
72
65
|
'lib/https.js',
|
|
73
66
|
'lib/inspector.js',
|
|
74
|
-
'lib/readline.js',
|
|
75
|
-
'lib/repl.js',
|
|
76
67
|
'lib/stream.js',
|
|
77
68
|
'lib/string_decoder.js',
|
|
78
69
|
'lib/timers.js',
|
|
70
|
+
'lib/tls.js',
|
|
71
|
+
'lib/trace_events.js',
|
|
79
72
|
'lib/zlib.js',
|
|
80
|
-
'lib/
|
|
81
|
-
'lib/
|
|
73
|
+
'lib/_tls_common.js',
|
|
74
|
+
'lib/crypto.js',
|
|
82
75
|
'lib/dgram.js',
|
|
83
76
|
'lib/os.js',
|
|
84
|
-
'lib/vm.js',
|
|
85
77
|
'lib/wasi.js',
|
|
86
|
-
'lib/
|
|
87
|
-
'lib/
|
|
88
|
-
'lib/
|
|
78
|
+
'lib/_http_incoming.js',
|
|
79
|
+
'lib/_http_outgoing.js',
|
|
80
|
+
'lib/_stream_duplex.js',
|
|
81
|
+
'lib/_stream_readable.js',
|
|
82
|
+
'lib/events.js',
|
|
83
|
+
'lib/path.js',
|
|
84
|
+
'lib/punycode.js',
|
|
85
|
+
'lib/readline.js',
|
|
86
|
+
'lib/test.js',
|
|
89
87
|
'lib/internal/assert.js',
|
|
90
|
-
'lib/internal/
|
|
88
|
+
'lib/internal/watchdog.js',
|
|
91
89
|
'lib/internal/constants.js',
|
|
92
90
|
'lib/internal/dtrace.js',
|
|
93
|
-
'lib/internal/
|
|
94
|
-
'lib/internal/
|
|
91
|
+
'lib/internal/buffer.js',
|
|
92
|
+
'lib/internal/cli_table.js',
|
|
93
|
+
'lib/internal/linkedlist.js',
|
|
94
|
+
'lib/internal/net.js',
|
|
95
95
|
'lib/internal/heap_utils.js',
|
|
96
|
-
'lib/internal/http.js',
|
|
97
|
-
'lib/internal/idna.js',
|
|
98
|
-
'lib/internal/js_stream_socket.js',
|
|
99
|
-
'lib/internal/watchdog.js',
|
|
100
|
-
'lib/internal/socket_list.js',
|
|
101
96
|
'lib/internal/abort_controller.js',
|
|
102
|
-
'lib/internal/
|
|
103
|
-
'lib/internal/worker.js',
|
|
97
|
+
'lib/internal/socket_list.js',
|
|
104
98
|
'lib/internal/encoding.js',
|
|
105
99
|
'lib/internal/error_serdes.js',
|
|
106
100
|
'lib/internal/errors.js',
|
|
101
|
+
'lib/internal/worker.js',
|
|
102
|
+
'lib/internal/async_hooks.js',
|
|
103
|
+
'lib/internal/event_target.js',
|
|
104
|
+
'lib/internal/fixed_queue.js',
|
|
105
|
+
'lib/internal/freeze_intrinsics.js',
|
|
106
|
+
'lib/internal/histogram.js',
|
|
107
107
|
'lib/internal/freelist.js',
|
|
108
|
-
'lib/internal/options.js',
|
|
109
108
|
'lib/internal/repl.js',
|
|
110
|
-
'lib/internal/cli_table.js',
|
|
111
|
-
'lib/internal/fixed_queue.js',
|
|
112
|
-
'lib/internal/stream_base_commons.js',
|
|
113
109
|
'lib/internal/timers.js',
|
|
110
|
+
'lib/internal/tty.js',
|
|
111
|
+
'lib/internal/url.js',
|
|
112
|
+
'lib/internal/util.js',
|
|
113
|
+
'lib/internal/v8_prof_polyfill.js',
|
|
114
|
+
'lib/internal/validators.js',
|
|
114
115
|
'lib/internal/inspector_async_hook.js',
|
|
115
116
|
'lib/internal/priority_queue.js',
|
|
116
117
|
'lib/internal/querystring.js',
|
|
117
|
-
'lib/internal/url.js',
|
|
118
|
-
'lib/internal/util.js',
|
|
119
|
-
'lib/internal/v8_prof_processor.js',
|
|
120
|
-
'lib/internal/blocklist.js',
|
|
121
|
-
'lib/internal/net.js',
|
|
122
|
-
'lib/internal/linkedlist.js',
|
|
123
|
-
'lib/internal/event_target.js',
|
|
124
|
-
'lib/internal/freeze_intrinsics.js',
|
|
125
118
|
'lib/internal/blob.js',
|
|
126
|
-
'lib/internal/
|
|
119
|
+
'lib/internal/blocklist.js',
|
|
120
|
+
'lib/internal/options.js',
|
|
121
|
+
'lib/internal/promise_hooks.js',
|
|
127
122
|
'lib/internal/child_process.js',
|
|
128
|
-
'lib/internal/
|
|
123
|
+
'lib/internal/http.js',
|
|
124
|
+
'lib/internal/idna.js',
|
|
125
|
+
'lib/internal/js_stream_socket.js',
|
|
126
|
+
'lib/internal/socketaddress.js',
|
|
127
|
+
'lib/internal/stream_base_commons.js',
|
|
129
128
|
'lib/internal/trace_events_async_hooks.js',
|
|
130
|
-
'lib/internal/
|
|
131
|
-
'lib/internal/
|
|
132
|
-
'lib/internal/promise_hooks.js',
|
|
129
|
+
'lib/internal/dgram.js',
|
|
130
|
+
'lib/internal/v8_prof_processor.js',
|
|
133
131
|
'lib/internal/assert/assertion_error.js',
|
|
134
132
|
'lib/internal/assert/calltracker.js',
|
|
135
133
|
'lib/internal/bootstrap/environment.js',
|
|
@@ -171,7 +169,18 @@
|
|
|
171
169
|
'lib/internal/crypto/random.js',
|
|
172
170
|
'lib/internal/dns/promises.js',
|
|
173
171
|
'lib/internal/dns/utils.js',
|
|
174
|
-
'lib/internal/
|
|
172
|
+
'lib/internal/tls/parse-cert-string.js',
|
|
173
|
+
'lib/internal/tls/secure-context.js',
|
|
174
|
+
'lib/internal/tls/secure-pair.js',
|
|
175
|
+
'lib/internal/webstreams/adapters.js',
|
|
176
|
+
'lib/internal/webstreams/compression.js',
|
|
177
|
+
'lib/internal/webstreams/encoding.js',
|
|
178
|
+
'lib/internal/webstreams/queuingstrategies.js',
|
|
179
|
+
'lib/internal/webstreams/readablestream.js',
|
|
180
|
+
'lib/internal/webstreams/transfer.js',
|
|
181
|
+
'lib/internal/webstreams/transformstream.js',
|
|
182
|
+
'lib/internal/webstreams/util.js',
|
|
183
|
+
'lib/internal/webstreams/writablestream.js',
|
|
175
184
|
'lib/internal/fs/dir.js',
|
|
176
185
|
'lib/internal/fs/promises.js',
|
|
177
186
|
'lib/internal/fs/read_file_context.js',
|
|
@@ -195,14 +204,19 @@
|
|
|
195
204
|
'lib/internal/main/print_help.js',
|
|
196
205
|
'lib/internal/main/run_main_module.js',
|
|
197
206
|
'lib/internal/main/test_runner.js',
|
|
207
|
+
'lib/internal/main/watch_mode.js',
|
|
198
208
|
'lib/internal/main/worker_thread.js',
|
|
199
209
|
'lib/internal/modules/package_json_reader.js',
|
|
200
210
|
'lib/internal/modules/run_main.js',
|
|
201
211
|
'lib/internal/modules/cjs/helpers.js',
|
|
202
212
|
'lib/internal/modules/cjs/loader.js',
|
|
213
|
+
'lib/internal/modules/esm/create_dynamic_module.js',
|
|
214
|
+
'lib/internal/modules/esm/assert.js',
|
|
215
|
+
'lib/internal/modules/esm/fetch_module.js',
|
|
216
|
+
'lib/internal/modules/esm/formats.js',
|
|
217
|
+
'lib/internal/modules/esm/get_format.js',
|
|
203
218
|
'lib/internal/modules/esm/handle_process_exit.js',
|
|
204
219
|
'lib/internal/modules/esm/initialize_import_meta.js',
|
|
205
|
-
'lib/internal/modules/esm/create_dynamic_module.js',
|
|
206
220
|
'lib/internal/modules/esm/load.js',
|
|
207
221
|
'lib/internal/modules/esm/loader.js',
|
|
208
222
|
'lib/internal/modules/esm/module_job.js',
|
|
@@ -210,10 +224,6 @@
|
|
|
210
224
|
'lib/internal/modules/esm/package_config.js',
|
|
211
225
|
'lib/internal/modules/esm/resolve.js',
|
|
212
226
|
'lib/internal/modules/esm/translators.js',
|
|
213
|
-
'lib/internal/modules/esm/assert.js',
|
|
214
|
-
'lib/internal/modules/esm/fetch_module.js',
|
|
215
|
-
'lib/internal/modules/esm/formats.js',
|
|
216
|
-
'lib/internal/modules/esm/get_format.js',
|
|
217
227
|
'lib/internal/per_context/domexception.js',
|
|
218
228
|
'lib/internal/per_context/messageport.js',
|
|
219
229
|
'lib/internal/per_context/primordials.js',
|
|
@@ -239,12 +249,6 @@
|
|
|
239
249
|
'lib/internal/source_map/prepare_stack_trace.js',
|
|
240
250
|
'lib/internal/source_map/source_map.js',
|
|
241
251
|
'lib/internal/source_map/source_map_cache.js',
|
|
242
|
-
'lib/internal/streams/pipeline.js',
|
|
243
|
-
'lib/internal/streams/readable.js',
|
|
244
|
-
'lib/internal/streams/state.js',
|
|
245
|
-
'lib/internal/streams/transform.js',
|
|
246
|
-
'lib/internal/streams/utils.js',
|
|
247
|
-
'lib/internal/streams/writable.js',
|
|
248
252
|
'lib/internal/streams/add-abort-signal.js',
|
|
249
253
|
'lib/internal/streams/buffer_list.js',
|
|
250
254
|
'lib/internal/streams/compose.js',
|
|
@@ -255,19 +259,17 @@
|
|
|
255
259
|
'lib/internal/streams/from.js',
|
|
256
260
|
'lib/internal/streams/lazy_transform.js',
|
|
257
261
|
'lib/internal/streams/operators.js',
|
|
262
|
+
'lib/internal/streams/pipeline.js',
|
|
263
|
+
'lib/internal/streams/readable.js',
|
|
264
|
+
'lib/internal/streams/state.js',
|
|
265
|
+
'lib/internal/streams/transform.js',
|
|
266
|
+
'lib/internal/streams/utils.js',
|
|
267
|
+
'lib/internal/streams/writable.js',
|
|
258
268
|
'lib/internal/streams/legacy.js',
|
|
259
269
|
'lib/internal/streams/passthrough.js',
|
|
260
270
|
'lib/internal/test/binding.js',
|
|
261
271
|
'lib/internal/test/transfer.js',
|
|
262
|
-
'lib/internal/
|
|
263
|
-
'lib/internal/webstreams/compression.js',
|
|
264
|
-
'lib/internal/webstreams/encoding.js',
|
|
265
|
-
'lib/internal/webstreams/queuingstrategies.js',
|
|
266
|
-
'lib/internal/webstreams/readablestream.js',
|
|
267
|
-
'lib/internal/webstreams/transfer.js',
|
|
268
|
-
'lib/internal/webstreams/transformstream.js',
|
|
269
|
-
'lib/internal/webstreams/util.js',
|
|
270
|
-
'lib/internal/webstreams/writablestream.js',
|
|
272
|
+
'lib/internal/util/colors.js',
|
|
271
273
|
'lib/internal/util/comparisons.js',
|
|
272
274
|
'lib/internal/util/debuglog.js',
|
|
273
275
|
'lib/internal/util/inspect.js',
|
|
@@ -293,18 +295,20 @@
|
|
|
293
295
|
'lib/internal/perf/usertiming.js',
|
|
294
296
|
'lib/internal/perf/utils.js',
|
|
295
297
|
'lib/internal/test_runner/harness.js',
|
|
298
|
+
'lib/internal/test_runner/runner.js',
|
|
296
299
|
'lib/internal/test_runner/tap_stream.js',
|
|
297
300
|
'lib/internal/test_runner/test.js',
|
|
298
301
|
'lib/internal/test_runner/utils.js',
|
|
299
|
-
'lib/internal/
|
|
300
|
-
'lib/internal/tls/secure-context.js',
|
|
301
|
-
'lib/internal/tls/secure-pair.js',
|
|
302
|
+
'lib/internal/legacy/processbinding.js',
|
|
302
303
|
'lib/internal/v8/startup_snapshot.js',
|
|
303
|
-
'lib/
|
|
304
|
-
'lib/assert/strict.js',
|
|
304
|
+
'lib/internal/watch_mode/files_watcher.js',
|
|
305
305
|
'lib/stream/consumers.js',
|
|
306
306
|
'lib/stream/promises.js',
|
|
307
307
|
'lib/stream/web.js',
|
|
308
|
+
'lib/fs/promises.js',
|
|
309
|
+
'lib/assert/strict.js',
|
|
310
|
+
'lib/util/types.js',
|
|
311
|
+
'lib/dns/promises.js',
|
|
308
312
|
'lib/timers/promises.js',
|
|
309
313
|
'lib/path/posix.js',
|
|
310
314
|
'lib/path/win32.js'],
|
|
@@ -401,6 +401,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_arraybuffer(napi_env env,
|
|
|
401
401
|
size_t byte_length,
|
|
402
402
|
void** data,
|
|
403
403
|
napi_value* result);
|
|
404
|
+
#ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
404
405
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
405
406
|
napi_create_external_arraybuffer(napi_env env,
|
|
406
407
|
void* external_data,
|
|
@@ -408,6 +409,7 @@ napi_create_external_arraybuffer(napi_env env,
|
|
|
408
409
|
napi_finalize finalize_cb,
|
|
409
410
|
void* finalize_hint,
|
|
410
411
|
napi_value* result);
|
|
412
|
+
#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
411
413
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_arraybuffer_info(
|
|
412
414
|
napi_env env, napi_value arraybuffer, void** data, size_t* byte_length);
|
|
413
415
|
NAPI_EXTERN napi_status NAPI_CDECL napi_is_typedarray(napi_env env,
|
|
@@ -98,7 +98,8 @@ typedef enum {
|
|
|
98
98
|
napi_date_expected,
|
|
99
99
|
napi_arraybuffer_expected,
|
|
100
100
|
napi_detachable_arraybuffer_expected,
|
|
101
|
-
napi_would_deadlock // unused
|
|
101
|
+
napi_would_deadlock, // unused
|
|
102
|
+
napi_no_external_buffers_allowed
|
|
102
103
|
} napi_status;
|
|
103
104
|
// Note: when adding a new enum value to `napi_status`, please also update
|
|
104
105
|
// * `const int last_status` in the definition of `napi_get_last_error_info()'
|
package/include/node/node_api.h
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#ifdef BUILDING_NODE_EXTENSION
|
|
5
5
|
#ifdef _WIN32
|
|
6
|
-
// Building native
|
|
6
|
+
// Building native addon against node
|
|
7
7
|
#define NAPI_EXTERN __declspec(dllimport)
|
|
8
8
|
#elif defined(__wasm32__)
|
|
9
9
|
#define NAPI_EXTERN __attribute__((__import_module__("napi")))
|
|
@@ -153,6 +153,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer(napi_env env,
|
|
|
153
153
|
size_t length,
|
|
154
154
|
void** data,
|
|
155
155
|
napi_value* result);
|
|
156
|
+
#ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
156
157
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
157
158
|
napi_create_external_buffer(napi_env env,
|
|
158
159
|
size_t length,
|
|
@@ -160,6 +161,7 @@ napi_create_external_buffer(napi_env env,
|
|
|
160
161
|
napi_finalize finalize_cb,
|
|
161
162
|
void* finalize_hint,
|
|
162
163
|
napi_value* result);
|
|
164
|
+
#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
163
165
|
NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer_copy(napi_env env,
|
|
164
166
|
size_t length,
|
|
165
167
|
const void* data,
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
#define SRC_NODE_VERSION_H_
|
|
24
24
|
|
|
25
25
|
#define NODE_MAJOR_VERSION 16
|
|
26
|
-
#define NODE_MINOR_VERSION
|
|
27
|
-
#define NODE_PATCH_VERSION
|
|
26
|
+
#define NODE_MINOR_VERSION 19
|
|
27
|
+
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 1
|
|
30
30
|
#define NODE_VERSION_LTS_CODENAME "Gallium"
|