node-linux-arm64 17.9.1 → 18.2.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 +418 -1554
- package/LICENSE +111 -9
- package/README.md +20 -11
- package/bin/node +0 -0
- package/include/node/common.gypi +2 -2
- package/include/node/config.gypi +15 -5
- package/include/node/js_native_api.h +367 -363
- package/include/node/js_native_api_types.h +13 -4
- package/include/node/libplatform/libplatform.h +0 -11
- package/include/node/libplatform/v8-tracing.h +0 -1
- package/include/node/node.h +17 -3
- package/include/node/node_api.h +110 -90
- package/include/node/node_api_types.h +8 -10
- package/include/node/node_version.h +4 -4
- 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/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/aix-gcc/asm/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/aix-gcc/asm/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/aix-gcc/asm/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/aix-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/aix64-gcc-as/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc-as/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/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/linux-ppc/asm/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/linux-ppc/asm/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/linux-ppc/asm/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/linux-ppc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/linux-ppc64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/x509.h +4 -4
- package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/crypto.h +0 -2
- package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/opensslv.h +5 -5
- package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/ssl.h +0 -11
- package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/x509.h +4 -4
- 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/asn1_asm.h +0 -6
- package/include/node/openssl/asn1_no-asm.h +0 -6
- package/include/node/openssl/asn1t_asm.h +0 -6
- package/include/node/openssl/asn1t_no-asm.h +0 -6
- package/include/node/openssl/bio_asm.h +0 -6
- package/include/node/openssl/bio_no-asm.h +0 -6
- package/include/node/openssl/bn_conf_asm.h +0 -6
- package/include/node/openssl/bn_conf_no-asm.h +0 -6
- package/include/node/openssl/cmp_asm.h +0 -6
- package/include/node/openssl/cmp_no-asm.h +0 -6
- package/include/node/openssl/cms_asm.h +0 -6
- package/include/node/openssl/cms_no-asm.h +0 -6
- package/include/node/openssl/conf_asm.h +0 -6
- package/include/node/openssl/conf_no-asm.h +0 -6
- package/include/node/openssl/configuration_asm.h +0 -6
- package/include/node/openssl/configuration_no-asm.h +0 -6
- package/include/node/openssl/crmf_asm.h +0 -6
- package/include/node/openssl/crmf_no-asm.h +0 -6
- package/include/node/openssl/crypto_asm.h +0 -6
- package/include/node/openssl/crypto_no-asm.h +0 -6
- package/include/node/openssl/ct_asm.h +0 -6
- package/include/node/openssl/ct_no-asm.h +0 -6
- package/include/node/openssl/dso_conf_asm.h +0 -6
- package/include/node/openssl/dso_conf_no-asm.h +0 -6
- package/include/node/openssl/err_asm.h +0 -6
- package/include/node/openssl/err_no-asm.h +0 -6
- package/include/node/openssl/ess_asm.h +0 -6
- package/include/node/openssl/ess_no-asm.h +0 -6
- package/include/node/openssl/fipskey_asm.h +0 -6
- package/include/node/openssl/fipskey_no-asm.h +0 -6
- package/include/node/openssl/lhash_asm.h +0 -6
- package/include/node/openssl/lhash_no-asm.h +0 -6
- package/include/node/openssl/ocsp_asm.h +0 -6
- package/include/node/openssl/ocsp_no-asm.h +0 -6
- package/include/node/openssl/opensslconf.h +15 -21
- package/include/node/openssl/opensslv_asm.h +0 -6
- package/include/node/openssl/opensslv_no-asm.h +0 -6
- package/include/node/openssl/pkcs12_asm.h +0 -6
- package/include/node/openssl/pkcs12_no-asm.h +0 -6
- package/include/node/openssl/pkcs7_asm.h +0 -6
- package/include/node/openssl/pkcs7_no-asm.h +0 -6
- package/include/node/openssl/safestack_asm.h +0 -6
- package/include/node/openssl/safestack_no-asm.h +0 -6
- package/include/node/openssl/srp_asm.h +0 -6
- package/include/node/openssl/srp_no-asm.h +0 -6
- package/include/node/openssl/ssl_asm.h +0 -6
- package/include/node/openssl/ssl_no-asm.h +0 -6
- package/include/node/openssl/ui_asm.h +0 -6
- package/include/node/openssl/ui_no-asm.h +0 -6
- package/include/node/openssl/x509_asm.h +0 -6
- package/include/node/openssl/x509_no-asm.h +0 -6
- package/include/node/openssl/x509_vfy_asm.h +0 -6
- package/include/node/openssl/x509_vfy_no-asm.h +0 -6
- package/include/node/openssl/x509v3_asm.h +0 -6
- package/include/node/openssl/x509v3_no-asm.h +0 -6
- package/include/node/v8-array-buffer.h +2 -2
- package/include/node/v8-callbacks.h +26 -6
- package/include/node/v8-context.h +3 -14
- package/include/node/v8-data.h +15 -0
- package/include/node/v8-debug.h +21 -4
- package/include/node/v8-embedder-heap.h +10 -30
- package/include/node/v8-embedder-state-scope.h +51 -0
- package/include/node/v8-exception.h +0 -7
- package/include/node/v8-function.h +3 -0
- package/include/node/v8-initialization.h +64 -31
- package/include/node/v8-internal.h +189 -102
- package/include/node/v8-isolate.h +49 -2
- package/include/node/v8-local-handle.h +0 -4
- package/include/node/v8-locker.h +2 -1
- package/include/node/v8-message.h +19 -44
- package/include/node/v8-object.h +11 -6
- package/include/node/v8-platform.h +365 -6
- package/include/node/v8-primitive.h +14 -6
- package/include/node/v8-profiler.h +78 -2
- package/include/node/v8-script.h +27 -51
- package/include/node/v8-snapshot.h +0 -2
- package/include/node/v8-statistics.h +2 -0
- package/include/node/v8-template.h +31 -4
- package/include/node/v8-traced-handle.h +39 -224
- package/include/node/v8-unwinder.h +10 -7
- package/include/node/v8-value-serializer.h +32 -2
- package/include/node/v8-version.h +4 -4
- package/include/node/v8-wasm.h +13 -1
- package/include/node/v8-weak-callback-info.h +20 -6
- package/include/node/v8.h +0 -1
- package/include/node/v8config.h +56 -11
- package/package.json +1 -1
- package/share/doc/node/gdbinit +14 -6
- package/share/man/man1/node.1 +11 -4
- package/include/node/openssl/archs/aix64-gcc/asm/crypto/buildinf.h +0 -38
- package/include/node/openssl/archs/aix64-gcc/asm/include/progs.h +0 -507
- package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/buildinf.h +0 -39
- package/include/node/openssl/archs/aix64-gcc/asm_avx2/include/progs.h +0 -507
- package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/buildinf.h +0 -27
- package/include/node/openssl/archs/aix64-gcc/no-asm/include/progs.h +0 -507
- package/include/node/openssl/opensslconf_no-asm.h +0 -47
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
typedef uint16_t char16_t;
|
|
12
12
|
#endif
|
|
13
13
|
|
|
14
|
+
#ifndef NAPI_CDECL
|
|
15
|
+
#ifdef _WIN32
|
|
16
|
+
#define NAPI_CDECL __cdecl
|
|
17
|
+
#else
|
|
18
|
+
#define NAPI_CDECL
|
|
19
|
+
#endif
|
|
20
|
+
#endif
|
|
21
|
+
|
|
14
22
|
// JSVM API types are all opaque pointers for ABI stability
|
|
15
23
|
// typedef undefined structs instead of void* for compile time type safety
|
|
16
24
|
typedef struct napi_env__* napi_env;
|
|
@@ -100,10 +108,11 @@ typedef enum {
|
|
|
100
108
|
// * the definition of `napi_status` in doc/api/n-api.md to reflect the newly
|
|
101
109
|
// added value(s).
|
|
102
110
|
|
|
103
|
-
typedef napi_value
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
typedef napi_value(NAPI_CDECL* napi_callback)(napi_env env,
|
|
112
|
+
napi_callback_info info);
|
|
113
|
+
typedef void(NAPI_CDECL* napi_finalize)(napi_env env,
|
|
114
|
+
void* finalize_data,
|
|
115
|
+
void* finalize_hint);
|
|
107
116
|
|
|
108
117
|
typedef struct {
|
|
109
118
|
// One of utf8name or name should be NULL.
|
|
@@ -89,17 +89,6 @@ V8_PLATFORM_EXPORT void RunIdleTasks(v8::Platform* platform,
|
|
|
89
89
|
v8::Isolate* isolate,
|
|
90
90
|
double idle_time_in_seconds);
|
|
91
91
|
|
|
92
|
-
/**
|
|
93
|
-
* Attempts to set the tracing controller for the given platform.
|
|
94
|
-
*
|
|
95
|
-
* The |platform| has to be created using |NewDefaultPlatform|.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
V8_DEPRECATE_SOON("Access the DefaultPlatform directly")
|
|
99
|
-
V8_PLATFORM_EXPORT void SetTracingController(
|
|
100
|
-
v8::Platform* platform,
|
|
101
|
-
v8::platform::tracing::TracingController* tracing_controller);
|
|
102
|
-
|
|
103
92
|
/**
|
|
104
93
|
* Notifies the given platform about the Isolate getting deleted soon. Has to be
|
|
105
94
|
* called for all Isolates which are deleted - unless we're shutting down the
|
package/include/node/node.h
CHANGED
|
@@ -32,6 +32,16 @@
|
|
|
32
32
|
# define NODE_EXTERN __attribute__((visibility("default")))
|
|
33
33
|
#endif
|
|
34
34
|
|
|
35
|
+
// Declarations annotated with NODE_EXTERN_PRIVATE do not form part of
|
|
36
|
+
// the public API. They are implementation details that can and will
|
|
37
|
+
// change between releases, even in semver patch releases. Do not use
|
|
38
|
+
// any such symbol in external code.
|
|
39
|
+
#ifdef NODE_SHARED_MODE
|
|
40
|
+
#define NODE_EXTERN_PRIVATE NODE_EXTERN
|
|
41
|
+
#else
|
|
42
|
+
#define NODE_EXTERN_PRIVATE
|
|
43
|
+
#endif
|
|
44
|
+
|
|
35
45
|
#ifdef BUILDING_NODE_EXTENSION
|
|
36
46
|
# undef BUILDING_V8_SHARED
|
|
37
47
|
# undef BUILDING_UV_SHARED
|
|
@@ -440,6 +450,8 @@ enum Flags : uint64_t {
|
|
|
440
450
|
// do not expect to have their behaviors changed because of globally
|
|
441
451
|
// installed modules.
|
|
442
452
|
kNoGlobalSearchPaths = 1 << 7,
|
|
453
|
+
// Do not export browser globals like setTimeout, console, etc.
|
|
454
|
+
kNoBrowserGlobals = 1 << 8,
|
|
443
455
|
// Controls whether or not the Environment should call V8Inspector::create().
|
|
444
456
|
// This control is needed by embedders who may not want to initialize the V8
|
|
445
457
|
// inspector in situations where one has already been created,
|
|
@@ -825,11 +837,13 @@ extern "C" NODE_EXTERN void node_module_register(void* mod);
|
|
|
825
837
|
#endif
|
|
826
838
|
|
|
827
839
|
#if defined(_MSC_VER)
|
|
828
|
-
#pragma section(".CRT$XCU", read)
|
|
829
840
|
#define NODE_C_CTOR(fn) \
|
|
830
841
|
NODE_CTOR_PREFIX void __cdecl fn(void); \
|
|
831
|
-
|
|
832
|
-
|
|
842
|
+
namespace { \
|
|
843
|
+
struct fn##_ { \
|
|
844
|
+
fn##_() { fn(); }; \
|
|
845
|
+
} fn##_v_; \
|
|
846
|
+
} \
|
|
833
847
|
NODE_CTOR_PREFIX void __cdecl fn(void)
|
|
834
848
|
#else
|
|
835
849
|
#define NODE_C_CTOR(fn) \
|
package/include/node/node_api.h
CHANGED
|
@@ -28,8 +28,8 @@ struct uv_loop_s; // Forward declaration.
|
|
|
28
28
|
#define NAPI_NO_RETURN
|
|
29
29
|
#endif
|
|
30
30
|
|
|
31
|
-
typedef napi_value
|
|
32
|
-
|
|
31
|
+
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
|
|
32
|
+
napi_value exports);
|
|
33
33
|
|
|
34
34
|
typedef struct napi_module {
|
|
35
35
|
int nm_version;
|
|
@@ -44,12 +44,29 @@ typedef struct napi_module {
|
|
|
44
44
|
#define NAPI_MODULE_VERSION 1
|
|
45
45
|
|
|
46
46
|
#if defined(_MSC_VER)
|
|
47
|
+
#if defined(__cplusplus)
|
|
48
|
+
#define NAPI_C_CTOR(fn) \
|
|
49
|
+
static void NAPI_CDECL fn(void); \
|
|
50
|
+
namespace { \
|
|
51
|
+
struct fn##_ { \
|
|
52
|
+
fn##_() { fn(); } \
|
|
53
|
+
} fn##_v_; \
|
|
54
|
+
} \
|
|
55
|
+
static void NAPI_CDECL fn(void)
|
|
56
|
+
#else // !defined(__cplusplus)
|
|
47
57
|
#pragma section(".CRT$XCU", read)
|
|
58
|
+
// The NAPI_C_CTOR macro defines a function fn that is called during CRT
|
|
59
|
+
// initialization.
|
|
60
|
+
// C does not support dynamic initialization of static variables and this code
|
|
61
|
+
// simulates C++ behavior. Exporting the function pointer prevents it from being
|
|
62
|
+
// optimized. See for details:
|
|
63
|
+
// https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-initialization?view=msvc-170
|
|
48
64
|
#define NAPI_C_CTOR(fn) \
|
|
49
|
-
static void
|
|
50
|
-
__declspec(dllexport, allocate(".CRT$XCU")) void(
|
|
65
|
+
static void NAPI_CDECL fn(void); \
|
|
66
|
+
__declspec(dllexport, allocate(".CRT$XCU")) void(NAPI_CDECL * fn##_)(void) = \
|
|
51
67
|
fn; \
|
|
52
|
-
static void
|
|
68
|
+
static void NAPI_CDECL fn(void)
|
|
69
|
+
#endif // defined(__cplusplus)
|
|
53
70
|
#else
|
|
54
71
|
#define NAPI_C_CTOR(fn) \
|
|
55
72
|
static void fn(void) __attribute__((constructor)); \
|
|
@@ -104,102 +121,105 @@ typedef struct napi_module {
|
|
|
104
121
|
|
|
105
122
|
EXTERN_C_START
|
|
106
123
|
|
|
107
|
-
NAPI_EXTERN void napi_module_register(napi_module* mod);
|
|
124
|
+
NAPI_EXTERN void NAPI_CDECL napi_module_register(napi_module* mod);
|
|
108
125
|
|
|
109
|
-
NAPI_EXTERN NAPI_NO_RETURN void
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
126
|
+
NAPI_EXTERN NAPI_NO_RETURN void NAPI_CDECL
|
|
127
|
+
napi_fatal_error(const char* location,
|
|
128
|
+
size_t location_len,
|
|
129
|
+
const char* message,
|
|
130
|
+
size_t message_len);
|
|
113
131
|
|
|
114
132
|
// Methods for custom handling of async operations
|
|
115
|
-
NAPI_EXTERN napi_status
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
134
|
+
napi_async_init(napi_env env,
|
|
135
|
+
napi_value async_resource,
|
|
136
|
+
napi_value async_resource_name,
|
|
137
|
+
napi_async_context* result);
|
|
138
|
+
|
|
139
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
140
|
+
napi_async_destroy(napi_env env, napi_async_context async_context);
|
|
141
|
+
|
|
142
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
143
|
+
napi_make_callback(napi_env env,
|
|
144
|
+
napi_async_context async_context,
|
|
145
|
+
napi_value recv,
|
|
146
|
+
napi_value func,
|
|
147
|
+
size_t argc,
|
|
148
|
+
const napi_value* argv,
|
|
149
|
+
napi_value* result);
|
|
130
150
|
|
|
131
151
|
// Methods to provide node::Buffer functionality with napi types
|
|
132
|
-
NAPI_EXTERN napi_status napi_create_buffer(napi_env env,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
NAPI_EXTERN napi_status
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer(napi_env env,
|
|
153
|
+
size_t length,
|
|
154
|
+
void** data,
|
|
155
|
+
napi_value* result);
|
|
156
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
157
|
+
napi_create_external_buffer(napi_env env,
|
|
158
|
+
size_t length,
|
|
159
|
+
void* data,
|
|
160
|
+
napi_finalize finalize_cb,
|
|
161
|
+
void* finalize_hint,
|
|
162
|
+
napi_value* result);
|
|
163
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer_copy(napi_env env,
|
|
164
|
+
size_t length,
|
|
165
|
+
const void* data,
|
|
166
|
+
void** result_data,
|
|
167
|
+
napi_value* result);
|
|
168
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_is_buffer(napi_env env,
|
|
169
|
+
napi_value value,
|
|
170
|
+
bool* result);
|
|
171
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_buffer_info(napi_env env,
|
|
172
|
+
napi_value value,
|
|
173
|
+
void** data,
|
|
174
|
+
size_t* length);
|
|
154
175
|
|
|
155
176
|
// Methods to manage simple async operations
|
|
156
|
-
NAPI_EXTERN
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
NAPI_EXTERN napi_status napi_delete_async_work(napi_env env,
|
|
165
|
-
|
|
166
|
-
NAPI_EXTERN napi_status napi_queue_async_work(napi_env env,
|
|
167
|
-
|
|
168
|
-
NAPI_EXTERN napi_status napi_cancel_async_work(napi_env env,
|
|
169
|
-
|
|
177
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
178
|
+
napi_create_async_work(napi_env env,
|
|
179
|
+
napi_value async_resource,
|
|
180
|
+
napi_value async_resource_name,
|
|
181
|
+
napi_async_execute_callback execute,
|
|
182
|
+
napi_async_complete_callback complete,
|
|
183
|
+
void* data,
|
|
184
|
+
napi_async_work* result);
|
|
185
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_delete_async_work(napi_env env,
|
|
186
|
+
napi_async_work work);
|
|
187
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(napi_env env,
|
|
188
|
+
napi_async_work work);
|
|
189
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(napi_env env,
|
|
190
|
+
napi_async_work work);
|
|
170
191
|
|
|
171
192
|
// version management
|
|
172
|
-
NAPI_EXTERN
|
|
173
|
-
|
|
174
|
-
const napi_node_version** version);
|
|
193
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
194
|
+
napi_get_node_version(napi_env env, const napi_node_version** version);
|
|
175
195
|
|
|
176
196
|
#if NAPI_VERSION >= 2
|
|
177
197
|
|
|
178
198
|
// Return the current libuv event loop for a given environment
|
|
179
|
-
NAPI_EXTERN napi_status
|
|
180
|
-
|
|
199
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
200
|
+
napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
|
|
181
201
|
|
|
182
202
|
#endif // NAPI_VERSION >= 2
|
|
183
203
|
|
|
184
204
|
#if NAPI_VERSION >= 3
|
|
185
205
|
|
|
186
|
-
NAPI_EXTERN napi_status napi_fatal_exception(napi_env env,
|
|
206
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
|
|
207
|
+
napi_value err);
|
|
187
208
|
|
|
188
|
-
NAPI_EXTERN napi_status napi_add_env_cleanup_hook(
|
|
189
|
-
|
|
190
|
-
void* arg);
|
|
209
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
|
|
210
|
+
napi_env env, void(NAPI_CDECL* fun)(void* arg), void* arg);
|
|
191
211
|
|
|
192
|
-
NAPI_EXTERN napi_status napi_remove_env_cleanup_hook(
|
|
193
|
-
|
|
194
|
-
void* arg);
|
|
212
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
|
|
213
|
+
napi_env env, void(NAPI_CDECL* fun)(void* arg), void* arg);
|
|
195
214
|
|
|
196
|
-
NAPI_EXTERN napi_status
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
215
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
216
|
+
napi_open_callback_scope(napi_env env,
|
|
217
|
+
napi_value resource_object,
|
|
218
|
+
napi_async_context context,
|
|
219
|
+
napi_callback_scope* result);
|
|
200
220
|
|
|
201
|
-
NAPI_EXTERN napi_status
|
|
202
|
-
|
|
221
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
222
|
+
napi_close_callback_scope(napi_env env, napi_callback_scope scope);
|
|
203
223
|
|
|
204
224
|
#endif // NAPI_VERSION >= 3
|
|
205
225
|
|
|
@@ -207,7 +227,7 @@ NAPI_EXTERN napi_status napi_close_callback_scope(napi_env env,
|
|
|
207
227
|
|
|
208
228
|
#ifndef __wasm32__
|
|
209
229
|
// Calling into JS from other threads
|
|
210
|
-
NAPI_EXTERN napi_status
|
|
230
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
211
231
|
napi_create_threadsafe_function(napi_env env,
|
|
212
232
|
napi_value func,
|
|
213
233
|
napi_value async_resource,
|
|
@@ -220,24 +240,24 @@ napi_create_threadsafe_function(napi_env env,
|
|
|
220
240
|
napi_threadsafe_function_call_js call_js_cb,
|
|
221
241
|
napi_threadsafe_function* result);
|
|
222
242
|
|
|
223
|
-
NAPI_EXTERN napi_status napi_get_threadsafe_function_context(
|
|
243
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_threadsafe_function_context(
|
|
224
244
|
napi_threadsafe_function func, void** result);
|
|
225
245
|
|
|
226
|
-
NAPI_EXTERN napi_status
|
|
246
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
227
247
|
napi_call_threadsafe_function(napi_threadsafe_function func,
|
|
228
248
|
void* data,
|
|
229
249
|
napi_threadsafe_function_call_mode is_blocking);
|
|
230
250
|
|
|
231
|
-
NAPI_EXTERN napi_status
|
|
251
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
232
252
|
napi_acquire_threadsafe_function(napi_threadsafe_function func);
|
|
233
253
|
|
|
234
|
-
NAPI_EXTERN napi_status napi_release_threadsafe_function(
|
|
254
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_release_threadsafe_function(
|
|
235
255
|
napi_threadsafe_function func, napi_threadsafe_function_release_mode mode);
|
|
236
256
|
|
|
237
|
-
NAPI_EXTERN napi_status
|
|
257
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
238
258
|
napi_unref_threadsafe_function(napi_env env, napi_threadsafe_function func);
|
|
239
259
|
|
|
240
|
-
NAPI_EXTERN napi_status
|
|
260
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
241
261
|
napi_ref_threadsafe_function(napi_env env, napi_threadsafe_function func);
|
|
242
262
|
#endif // __wasm32__
|
|
243
263
|
|
|
@@ -245,21 +265,21 @@ napi_ref_threadsafe_function(napi_env env, napi_threadsafe_function func);
|
|
|
245
265
|
|
|
246
266
|
#if NAPI_VERSION >= 8
|
|
247
267
|
|
|
248
|
-
NAPI_EXTERN napi_status
|
|
268
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
249
269
|
napi_add_async_cleanup_hook(napi_env env,
|
|
250
270
|
napi_async_cleanup_hook hook,
|
|
251
271
|
void* arg,
|
|
252
272
|
napi_async_cleanup_hook_handle* remove_handle);
|
|
253
273
|
|
|
254
|
-
NAPI_EXTERN napi_status
|
|
274
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
255
275
|
napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle);
|
|
256
276
|
|
|
257
277
|
#endif // NAPI_VERSION >= 8
|
|
258
278
|
|
|
259
279
|
#ifdef NAPI_EXPERIMENTAL
|
|
260
280
|
|
|
261
|
-
NAPI_EXTERN napi_status
|
|
262
|
-
|
|
281
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
282
|
+
node_api_get_module_file_name(napi_env env, const char** result);
|
|
263
283
|
|
|
264
284
|
#endif // NAPI_EXPERIMENTAL
|
|
265
285
|
|
|
@@ -22,15 +22,13 @@ typedef enum {
|
|
|
22
22
|
} napi_threadsafe_function_call_mode;
|
|
23
23
|
#endif // NAPI_VERSION >= 4
|
|
24
24
|
|
|
25
|
-
typedef void
|
|
26
|
-
typedef void
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
typedef void(NAPI_CDECL* napi_async_execute_callback)(napi_env env, void* data);
|
|
26
|
+
typedef void(NAPI_CDECL* napi_async_complete_callback)(napi_env env,
|
|
27
|
+
napi_status status,
|
|
28
|
+
void* data);
|
|
29
29
|
#if NAPI_VERSION >= 4
|
|
30
|
-
typedef void
|
|
31
|
-
|
|
32
|
-
void* context,
|
|
33
|
-
void* data);
|
|
30
|
+
typedef void(NAPI_CDECL* napi_threadsafe_function_call_js)(
|
|
31
|
+
napi_env env, napi_value js_callback, void* context, void* data);
|
|
34
32
|
#endif // NAPI_VERSION >= 4
|
|
35
33
|
|
|
36
34
|
typedef struct {
|
|
@@ -42,8 +40,8 @@ typedef struct {
|
|
|
42
40
|
|
|
43
41
|
#if NAPI_VERSION >= 8
|
|
44
42
|
typedef struct napi_async_cleanup_hook_handle__* napi_async_cleanup_hook_handle;
|
|
45
|
-
typedef void
|
|
46
|
-
|
|
43
|
+
typedef void(NAPI_CDECL* napi_async_cleanup_hook)(
|
|
44
|
+
napi_async_cleanup_hook_handle handle, void* data);
|
|
47
45
|
#endif // NAPI_VERSION >= 8
|
|
48
46
|
|
|
49
47
|
#endif // SRC_NODE_API_TYPES_H_
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
#ifndef SRC_NODE_VERSION_H_
|
|
23
23
|
#define SRC_NODE_VERSION_H_
|
|
24
24
|
|
|
25
|
-
#define NODE_MAJOR_VERSION
|
|
26
|
-
#define NODE_MINOR_VERSION
|
|
27
|
-
#define NODE_PATCH_VERSION
|
|
25
|
+
#define NODE_MAJOR_VERSION 18
|
|
26
|
+
#define NODE_MINOR_VERSION 2
|
|
27
|
+
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 0
|
|
30
30
|
#define NODE_VERSION_LTS_CODENAME ""
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
* version matching should open a pull request to reserve a number in this
|
|
90
90
|
* registry.
|
|
91
91
|
*/
|
|
92
|
-
#define NODE_MODULE_VERSION
|
|
92
|
+
#define NODE_MODULE_VERSION 108
|
|
93
93
|
|
|
94
94
|
// The NAPI_VERSION provided by this version of the runtime. This is the version
|
|
95
95
|
// which the Node binary being built supports.
|
|
@@ -132,8 +132,6 @@ int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen,
|
|
|
132
132
|
const char *str, const char sep);
|
|
133
133
|
unsigned char *OPENSSL_hexstr2buf(const char *str, long *buflen);
|
|
134
134
|
int OPENSSL_hexchar2int(unsigned char c);
|
|
135
|
-
int OPENSSL_strcasecmp(const char *s1, const char *s2);
|
|
136
|
-
int OPENSSL_strncasecmp(const char *s1, const char *s2, size_t n);
|
|
137
135
|
|
|
138
136
|
# define OPENSSL_MALLOC_MAX_NELEMS(type) (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))
|
|
139
137
|
|
|
@@ -29,7 +29,7 @@ extern "C" {
|
|
|
29
29
|
*/
|
|
30
30
|
# define OPENSSL_VERSION_MAJOR 3
|
|
31
31
|
# define OPENSSL_VERSION_MINOR 0
|
|
32
|
-
# define OPENSSL_VERSION_PATCH
|
|
32
|
+
# define OPENSSL_VERSION_PATCH 2
|
|
33
33
|
|
|
34
34
|
/*
|
|
35
35
|
* Additional version information
|
|
@@ -74,21 +74,21 @@ extern "C" {
|
|
|
74
74
|
* longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
|
|
75
75
|
* OPENSSL_VERSION_BUILD_METADATA_STR appended.
|
|
76
76
|
*/
|
|
77
|
-
# define OPENSSL_VERSION_STR "3.0.
|
|
78
|
-
# define OPENSSL_FULL_VERSION_STR "3.0.
|
|
77
|
+
# define OPENSSL_VERSION_STR "3.0.2"
|
|
78
|
+
# define OPENSSL_FULL_VERSION_STR "3.0.2+quic"
|
|
79
79
|
|
|
80
80
|
/*
|
|
81
81
|
* SECTION 3: ADDITIONAL METADATA
|
|
82
82
|
*
|
|
83
83
|
* These strings are defined separately to allow them to be parsable.
|
|
84
84
|
*/
|
|
85
|
-
# define OPENSSL_RELEASE_DATE "
|
|
85
|
+
# define OPENSSL_RELEASE_DATE "15 Mar 2022"
|
|
86
86
|
|
|
87
87
|
/*
|
|
88
88
|
* SECTION 4: BACKWARD COMPATIBILITY
|
|
89
89
|
*/
|
|
90
90
|
|
|
91
|
-
# define OPENSSL_VERSION_TEXT "OpenSSL 3.0.
|
|
91
|
+
# define OPENSSL_VERSION_TEXT "OpenSSL 3.0.2+quic 15 Mar 2022"
|
|
92
92
|
|
|
93
93
|
/* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
|
|
94
94
|
# ifdef OPENSSL_VERSION_PRE_RELEASE
|