@kronos-integration/service-swarm 3.0.0 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-swarm",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -30,11 +30,11 @@
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "@kronos-integration/endpoint": "^10.0.5",
34
- "@kronos-integration/service": "^13.0.0",
33
+ "@kronos-integration/endpoint": "^10.1.1",
34
+ "@kronos-integration/service": "^13.1.4",
35
35
  "hyperswarm": "^4.12.1",
36
36
  "length-prefix-framed-stream": "^2.0.12",
37
- "pacc": "^3.8.0"
37
+ "pacc": "^3.13.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hyperswarm/dht": "^6.5.1",
@@ -1,7 +1,7 @@
1
1
  import { pipeline } from "node:stream";
2
2
  import Hyperswarm from "hyperswarm";
3
3
  import { Decode, Encode } from "length-prefix-framed-stream";
4
- import { prepareAttributesDefinitions, mergeAttributeDefinitions } from "pacc";
4
+ import { prepareAttributesDefinitions, private_key_attribute } from "pacc";
5
5
  import { Service } from "@kronos-integration/service";
6
6
  import { Topic } from "./topic.mjs";
7
7
  import { TopicEndpoint } from "./topic-endpoint.mjs";
@@ -21,8 +21,8 @@ export class ServiceSwarm extends Service {
21
21
  return "swarm";
22
22
  }
23
23
 
24
- static attributes = mergeAttributeDefinitions(
25
- prepareAttributesDefinitions({
24
+ static attributes = prepareAttributesDefinitions(
25
+ {
26
26
  server: {
27
27
  needsRestart: true,
28
28
  default: false,
@@ -45,12 +45,12 @@ export class ServiceSwarm extends Service {
45
45
  type: "integer"
46
46
  },
47
47
  key: {
48
+ ...private_key_attribute,
48
49
  description: "topic initial key",
49
50
  needsRestart: true,
50
- private: true,
51
51
  type: "string"
52
52
  }
53
- }),
53
+ },
54
54
  Service.attributes
55
55
  );
56
56