node-linux-s390x 20.11.1 → 20.12.1
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 +648 -0
- package/LICENSE +65 -43
- package/README.md +20 -16
- package/bin/node +0 -0
- package/include/node/common.gypi +1 -1
- package/include/node/config.gypi +4 -2
- package/include/node/js_native_api.h +33 -20
- package/include/node/js_native_api_types.h +39 -0
- package/include/node/node.h +32 -2
- package/include/node/node_api.h +16 -16
- package/include/node/node_version.h +1 -1
- package/include/node/v8-profiler.h +10 -0
- package/include/node/zlib.h +8 -8
- package/package.json +1 -1
- package/share/man/man1/node.1 +3 -0
package/include/node/node_api.h
CHANGED
|
@@ -131,7 +131,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
|
|
|
131
131
|
napi_create_external_buffer(napi_env env,
|
|
132
132
|
size_t length,
|
|
133
133
|
void* data,
|
|
134
|
-
|
|
134
|
+
node_api_nogc_finalize finalize_cb,
|
|
135
135
|
void* finalize_hint,
|
|
136
136
|
napi_value* result);
|
|
137
137
|
#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
@@ -159,20 +159,20 @@ napi_create_async_work(napi_env env,
|
|
|
159
159
|
napi_async_work* result);
|
|
160
160
|
NAPI_EXTERN napi_status NAPI_CDECL napi_delete_async_work(napi_env env,
|
|
161
161
|
napi_async_work work);
|
|
162
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(
|
|
162
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(node_api_nogc_env env,
|
|
163
163
|
napi_async_work work);
|
|
164
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(
|
|
164
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(node_api_nogc_env env,
|
|
165
165
|
napi_async_work work);
|
|
166
166
|
|
|
167
167
|
// version management
|
|
168
168
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
169
|
-
napi_get_node_version(
|
|
169
|
+
napi_get_node_version(node_api_nogc_env env, const napi_node_version** version);
|
|
170
170
|
|
|
171
171
|
#if NAPI_VERSION >= 2
|
|
172
172
|
|
|
173
173
|
// Return the current libuv event loop for a given environment
|
|
174
174
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
175
|
-
napi_get_uv_event_loop(
|
|
175
|
+
napi_get_uv_event_loop(node_api_nogc_env env, struct uv_loop_s** loop);
|
|
176
176
|
|
|
177
177
|
#endif // NAPI_VERSION >= 2
|
|
178
178
|
|
|
@@ -181,11 +181,11 @@ napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
|
|
|
181
181
|
NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
|
|
182
182
|
napi_value err);
|
|
183
183
|
|
|
184
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
185
|
-
|
|
184
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
|
|
185
|
+
node_api_nogc_env env, napi_cleanup_hook fun, void* arg);
|
|
186
186
|
|
|
187
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
188
|
-
|
|
187
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
|
|
188
|
+
node_api_nogc_env env, napi_cleanup_hook fun, void* arg);
|
|
189
189
|
|
|
190
190
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
191
191
|
napi_open_callback_scope(napi_env env,
|
|
@@ -209,7 +209,7 @@ napi_create_threadsafe_function(napi_env env,
|
|
|
209
209
|
size_t max_queue_size,
|
|
210
210
|
size_t initial_thread_count,
|
|
211
211
|
void* thread_finalize_data,
|
|
212
|
-
|
|
212
|
+
node_api_nogc_finalize thread_finalize_cb,
|
|
213
213
|
void* context,
|
|
214
214
|
napi_threadsafe_function_call_js call_js_cb,
|
|
215
215
|
napi_threadsafe_function* result);
|
|
@@ -228,18 +228,18 @@ napi_acquire_threadsafe_function(napi_threadsafe_function func);
|
|
|
228
228
|
NAPI_EXTERN napi_status NAPI_CDECL napi_release_threadsafe_function(
|
|
229
229
|
napi_threadsafe_function func, napi_threadsafe_function_release_mode mode);
|
|
230
230
|
|
|
231
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
232
|
-
|
|
231
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_unref_threadsafe_function(
|
|
232
|
+
node_api_nogc_env env, napi_threadsafe_function func);
|
|
233
233
|
|
|
234
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
235
|
-
|
|
234
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_ref_threadsafe_function(
|
|
235
|
+
node_api_nogc_env env, napi_threadsafe_function func);
|
|
236
236
|
|
|
237
237
|
#endif // NAPI_VERSION >= 4
|
|
238
238
|
|
|
239
239
|
#if NAPI_VERSION >= 8
|
|
240
240
|
|
|
241
241
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
242
|
-
napi_add_async_cleanup_hook(
|
|
242
|
+
napi_add_async_cleanup_hook(node_api_nogc_env env,
|
|
243
243
|
napi_async_cleanup_hook hook,
|
|
244
244
|
void* arg,
|
|
245
245
|
napi_async_cleanup_hook_handle* remove_handle);
|
|
@@ -252,7 +252,7 @@ napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle);
|
|
|
252
252
|
#if NAPI_VERSION >= 9
|
|
253
253
|
|
|
254
254
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
255
|
-
node_api_get_module_file_name(
|
|
255
|
+
node_api_get_module_file_name(node_api_nogc_env env, const char** result);
|
|
256
256
|
|
|
257
257
|
#endif // NAPI_VERSION >= 9
|
|
258
258
|
|
|
@@ -912,12 +912,22 @@ class V8_EXPORT EmbedderGraph {
|
|
|
912
912
|
virtual ~EmbedderGraph() = default;
|
|
913
913
|
};
|
|
914
914
|
|
|
915
|
+
class QueryObjectPredicate {
|
|
916
|
+
public:
|
|
917
|
+
virtual ~QueryObjectPredicate() = default;
|
|
918
|
+
virtual bool Filter(v8::Local<v8::Object> object) = 0;
|
|
919
|
+
};
|
|
920
|
+
|
|
915
921
|
/**
|
|
916
922
|
* Interface for controlling heap profiling. Instance of the
|
|
917
923
|
* profiler can be retrieved using v8::Isolate::GetHeapProfiler.
|
|
918
924
|
*/
|
|
919
925
|
class V8_EXPORT HeapProfiler {
|
|
920
926
|
public:
|
|
927
|
+
void QueryObjects(v8::Local<v8::Context> context,
|
|
928
|
+
QueryObjectPredicate* predicate,
|
|
929
|
+
std::vector<v8::Global<v8::Object>>* objects);
|
|
930
|
+
|
|
921
931
|
enum SamplingFlags {
|
|
922
932
|
kSamplingNoFlags = 0,
|
|
923
933
|
kSamplingForceGC = 1 << 0,
|
package/include/node/zlib.h
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
|
2
|
-
version 1.
|
|
2
|
+
version 1.3.0.1, August xxth, 2023
|
|
3
3
|
|
|
4
|
-
Copyright (C) 1995-
|
|
4
|
+
Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
|
|
5
5
|
|
|
6
6
|
This software is provided 'as-is', without any express or implied
|
|
7
7
|
warranty. In no event will the authors be held liable for any damages
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
extern "C" {
|
|
38
38
|
#endif
|
|
39
39
|
|
|
40
|
-
#define ZLIB_VERSION "1.
|
|
41
|
-
#define ZLIB_VERNUM
|
|
40
|
+
#define ZLIB_VERSION "1.3.0.1-motley"
|
|
41
|
+
#define ZLIB_VERNUM 0x1301
|
|
42
42
|
#define ZLIB_VER_MAJOR 1
|
|
43
|
-
#define ZLIB_VER_MINOR
|
|
44
|
-
#define ZLIB_VER_REVISION
|
|
43
|
+
#define ZLIB_VER_MINOR 3
|
|
44
|
+
#define ZLIB_VER_REVISION 0
|
|
45
45
|
#define ZLIB_VER_SUBREVISION 1
|
|
46
46
|
|
|
47
47
|
/*
|
|
@@ -320,8 +320,8 @@ ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
|
|
|
320
320
|
with the same value of the flush parameter and more output space (updated
|
|
321
321
|
avail_out), until the flush is complete (deflate returns with non-zero
|
|
322
322
|
avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that
|
|
323
|
-
avail_out is greater than six
|
|
324
|
-
avail_out == 0
|
|
323
|
+
avail_out is greater than six when the flush marker begins, in order to avoid
|
|
324
|
+
repeated flush markers upon calling deflate() again when avail_out == 0.
|
|
325
325
|
|
|
326
326
|
If the parameter flush is set to Z_FINISH, pending input is processed,
|
|
327
327
|
pending output is flushed and deflate returns with Z_STREAM_END if there was
|
package/package.json
CHANGED
package/share/man/man1/node.1
CHANGED
|
@@ -82,6 +82,9 @@ Allow file system read access when using the permission model.
|
|
|
82
82
|
.It Fl -allow-fs-write
|
|
83
83
|
Allow file system write access when using the permission model.
|
|
84
84
|
.
|
|
85
|
+
.It Fl -allow-addons
|
|
86
|
+
Allow using native addons when using the permission model.
|
|
87
|
+
.
|
|
85
88
|
.It Fl -allow-child-process
|
|
86
89
|
Allow spawning process when using the permission model.
|
|
87
90
|
.
|