antietcd 1.0.1 → 1.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/common.js +2 -1
- package/etctree.js +1 -1
- package/package.json +1 -1
package/common.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (c) Vitaliy Filippov, 2024
|
|
2
2
|
// License: Mozilla Public License 2.0 or Vitastor Network Public License 1.1
|
|
3
3
|
|
|
4
|
-
class RequestError
|
|
4
|
+
class RequestError extends Error
|
|
5
5
|
{
|
|
6
6
|
constructor(code, text, details)
|
|
7
7
|
{
|
|
8
|
+
super();
|
|
8
9
|
this.code = code;
|
|
9
10
|
this.message = text;
|
|
10
11
|
this.details = details;
|
package/etctree.js
CHANGED
|
@@ -444,7 +444,7 @@ class EtcTree
|
|
|
444
444
|
}
|
|
445
445
|
for (const key in this.leases[id].keys)
|
|
446
446
|
{
|
|
447
|
-
this._delete_range({ key }, next_revision, notifications);
|
|
447
|
+
this._delete_range({ key: this.use_base64 ? this.b64(key) : key }, next_revision, notifications);
|
|
448
448
|
}
|
|
449
449
|
delete this.leases[id];
|
|
450
450
|
}
|