k2hash 2.0.0 → 2.0.2
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/binding.gyp
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"src/k2h_cbs.cc"
|
|
15
15
|
],
|
|
16
16
|
"include_dirs": [
|
|
17
|
-
"<!(node -
|
|
17
|
+
"<!(node -e \"incpath = require('node-addon-api').include; if(incpath.length && incpath[0] === '\\\"' && incpath[incpath.length - 1] === '\\\"') incpath = incpath.slice(1, -1); process.stdout.write(incpath)\")",
|
|
18
18
|
"<(module_root_dir)/node_modules/node-addon-api"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"src/k2h_cbs.cc"
|
|
47
47
|
],
|
|
48
48
|
"include_dirs": [
|
|
49
|
-
"<!(node -
|
|
49
|
+
"<!(node -e \"incpath = require('node-addon-api').include; if(incpath.length && incpath[0] === '\\\"' && incpath[incpath.length - 1] === '\\\"') incpath = incpath.slice(1, -1); process.stdout.write(incpath)\")",
|
|
50
50
|
"<(module_root_dir)/node_modules/node-addon-api"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"src/k2h_cbs.cc"
|
|
79
79
|
],
|
|
80
80
|
"include_dirs": [
|
|
81
|
-
"<!(node -
|
|
81
|
+
"<!(node -e \"incpath = require('node-addon-api').include; if(incpath.length && incpath[0] === '\\\"' && incpath[incpath.length - 1] === '\\\"') incpath = incpath.slice(1, -1); process.stdout.write(incpath)\")",
|
|
82
82
|
"<(module_root_dir)/node_modules/node-addon-api"
|
|
83
83
|
],
|
|
84
84
|
"dependencies": [
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Utility helper tools for Github Actions by AntPickax
|
|
4
4
|
#
|
|
5
|
-
# Copyright
|
|
5
|
+
# Copyright 2025 Yahoo Japan Corporation.
|
|
6
6
|
#
|
|
7
|
-
#
|
|
8
|
-
# K2HASH is made for the purpose of the construction of
|
|
9
|
-
# original KVS system and the offer of the library.
|
|
10
|
-
# The characteristic is this KVS library which Key can
|
|
11
|
-
# layer. And can support multi-processing and multi-thread,
|
|
12
|
-
# and is provided safely as available KVS.
|
|
7
|
+
# AntPickax provides utility tools for supporting nodejs addon.
|
|
13
8
|
#
|
|
9
|
+
# These tools retrieve the necessary information from the
|
|
10
|
+
# repository and appropriately set the setting values of
|
|
11
|
+
# configure, Makefile, spec,etc file and so on.
|
|
12
|
+
# These tools were recreated to reduce the number of fixes and
|
|
13
|
+
# reduce the workload of developers when there is a change in
|
|
14
|
+
# the project configuration.
|
|
15
|
+
#
|
|
14
16
|
# For the full copyright and license information, please view
|
|
15
17
|
# the license file that was distributed with this source code.
|
|
16
18
|
#
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Utility helper tools for Github Actions by AntPickax
|
|
4
4
|
#
|
|
5
|
-
# Copyright
|
|
5
|
+
# Copyright 2025 Yahoo Japan Corporation.
|
|
6
6
|
#
|
|
7
|
-
#
|
|
8
|
-
# K2HASH is made for the purpose of the construction of
|
|
9
|
-
# original KVS system and the offer of the library.
|
|
10
|
-
# The characteristic is this KVS library which Key can
|
|
11
|
-
# layer. And can support multi-processing and multi-thread,
|
|
12
|
-
# and is provided safely as available KVS.
|
|
7
|
+
# AntPickax provides utility tools for supporting nodejs addon.
|
|
13
8
|
#
|
|
9
|
+
# These tools retrieve the necessary information from the
|
|
10
|
+
# repository and appropriately set the setting values of
|
|
11
|
+
# configure, Makefile, spec,etc file and so on.
|
|
12
|
+
# These tools were recreated to reduce the number of fixes and
|
|
13
|
+
# reduce the workload of developers when there is a change in
|
|
14
|
+
# the project configuration.
|
|
15
|
+
#
|
|
14
16
|
# For the full copyright and license information, please view
|
|
15
17
|
# the license file that was distributed with this source code.
|
|
16
18
|
#
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# Utility helper tools for Github Actions by AntPickax
|
|
4
4
|
#
|
|
5
|
-
# Copyright
|
|
5
|
+
# Copyright 2025 Yahoo Japan Corporation.
|
|
6
6
|
#
|
|
7
|
-
#
|
|
8
|
-
# K2HASH is made for the purpose of the construction of
|
|
9
|
-
# original KVS system and the offer of the library.
|
|
10
|
-
# The characteristic is this KVS library which Key can
|
|
11
|
-
# layer. And can support multi-processing and multi-thread,
|
|
12
|
-
# and is provided safely as available KVS.
|
|
7
|
+
# AntPickax provides utility tools for supporting nodejs addon.
|
|
13
8
|
#
|
|
9
|
+
# These tools retrieve the necessary information from the
|
|
10
|
+
# repository and appropriately set the setting values of
|
|
11
|
+
# configure, Makefile, spec,etc file and so on.
|
|
12
|
+
# These tools were recreated to reduce the number of fixes and
|
|
13
|
+
# reduce the workload of developers when there is a change in
|
|
14
|
+
# the project configuration.
|
|
15
|
+
#
|
|
14
16
|
# For the full copyright and license information, please view
|
|
15
17
|
# the license file that was distributed with this source code.
|
|
16
18
|
#
|
package/package.json
CHANGED
package/src/k2h_shm_async.h
CHANGED
|
@@ -301,12 +301,7 @@ class GetValueAsyncWorker : public Napi::AsyncWorker
|
|
|
301
301
|
if(sk){
|
|
302
302
|
strarr_t strarr;
|
|
303
303
|
sk->StringArray(strarr);
|
|
304
|
-
|
|
305
|
-
if(_str == _strsubkey){
|
|
306
|
-
found = true;
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
304
|
+
found = std::any_of(strarr.begin(), strarr.end(), [&](const auto &_str){ return _str == _strsubkey; });
|
|
310
305
|
delete sk;
|
|
311
306
|
}
|
|
312
307
|
if(!found){
|
package/src/k2hash.cc
CHANGED
|
@@ -38,7 +38,7 @@ Napi::Value CreateObject(const Napi::CallbackInfo& info)
|
|
|
38
38
|
Napi::Object InitAll(Napi::Env env, Napi::Object exports)
|
|
39
39
|
{
|
|
40
40
|
// Class registration (creating a constructor)
|
|
41
|
-
K2hNode::Init(env, exports);
|
|
41
|
+
K2hNode::Init(env, exports);
|
|
42
42
|
|
|
43
43
|
// Create a factory function that returns module.exports
|
|
44
44
|
Napi::Function createFn = Napi::Function::New(env, CreateObject, "k2hash");
|