k2hdkc 1.0.5 → 1.0.7

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 CHANGED
@@ -1,3 +1,16 @@
1
+ k2hdkc (1.0.7) unstable; urgency=low
2
+
3
+ * Updated versions of dependent packages - #46
4
+
5
+ -- Takeshi Nakatani <ggtakec@gmail.com> Tue, 03 Oct 2023 12:30:05 +0900
6
+
7
+ k2hdkc (1.0.6) unstable; urgency=low
8
+
9
+ * Updated support NodeJS version - #43
10
+ * Fixed errors in cppcheck 2.10 - #44
11
+
12
+ -- Takeshi Nakatani <ggtakec@gmail.com> Mon, 04 Sep 2023 16:16:49 +0900
13
+
1
14
  k2hdkc (1.0.5) unstable; urgency=low
2
15
 
3
16
  * Updated building/packaging scripts - #40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k2hdkc",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "K2HDKC addon library for Node.js",
5
5
  "os": "linux",
6
6
  "main": "index.js",
@@ -9,10 +9,10 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "bindings": "^1.5.0",
12
- "nan": "^2.17.0"
12
+ "nan": "^2.18.0"
13
13
  },
14
14
  "devDependencies": {
15
- "chai": "^4.3.7",
15
+ "chai": "^4.3.10",
16
16
  "mocha": "^10.2.0"
17
17
  },
18
18
  "scripts": {
@@ -742,6 +742,9 @@ class SetAllWorker : public Nan::AsyncWorker
742
742
  // work
743
743
  bool result = false;
744
744
  dkcres_type_t rescode = DKC_NORESTYPE;
745
+
746
+ // cppcheck-suppress unmatchedSuppression
747
+ // cppcheck-suppress knownConditionTrueFalse
745
748
  if(is_pass_set && 0 < expire){
746
749
  // set value with passphrase and expire, then the operation is separated.
747
750
  K2hdkcComSet* pComObj;
@@ -750,12 +753,16 @@ class SetAllWorker : public Nan::AsyncWorker
750
753
  }else{
751
754
  pComObj = GetPmSlaveK2hdkcComSet(pslaveobj);
752
755
  }
756
+ // cppcheck-suppress unmatchedSuppression
757
+ // cppcheck-suppress knownConditionTrueFalse
753
758
  if(!pComObj){
754
759
  this->SetErrorMessage("Internal error: Could not create command object.");
755
760
  return;
756
761
  }
757
762
 
758
763
  // set value to key
764
+ // cppcheck-suppress unmatchedSuppression
765
+ // cppcheck-suppress knownConditionTrueFalse
759
766
  result = pComObj->CommandSend(reinterpret_cast<const unsigned char*>(strkey.c_str()), strkey.length() + 1, (is_val_set ? reinterpret_cast<const unsigned char*>(strval.c_str()) : NULL), (is_val_set ? strval.length() + 1 : 0), false, (is_pass_set ? strpass.c_str() : NULL), &expire, &rescode);
760
767
  DKC_DELETE(pComObj);
761
768