@kronos-integration/service-swarm 3.0.28 → 3.0.30

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.28",
3
+ "version": "3.0.30",
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.1.11",
34
- "@kronos-integration/service": "^13.2.17",
33
+ "@kronos-integration/endpoint": "^10.1.13",
34
+ "@kronos-integration/service": "^13.2.26",
35
35
  "hyperswarm": "^4.14.0",
36
36
  "length-prefix-framed-stream": "^2.0.12",
37
- "pacc": "^4.15.1"
37
+ "pacc": "^4.18.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hyperswarm/dht": "^6.5.1",
@@ -42,10 +42,10 @@
42
42
  "c8": "^10.1.3",
43
43
  "documentation": "^14.0.3",
44
44
  "nonsynchronous": "^1.2.0",
45
- "semantic-release": "^24.2.7"
45
+ "semantic-release": "^24.2.8"
46
46
  },
47
47
  "engines": {
48
- "node": ">=22.19.0"
48
+ "node": ">=22.19.5"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",
@@ -1,7 +1,13 @@
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, private_key_attribute } from "pacc";
4
+ import {
5
+ prepareAttributesDefinitions,
6
+ private_key_attribute,
7
+ boolean_attribute_false,
8
+ integer_attribute,
9
+ object_attribute
10
+ } from "pacc";
5
11
  import { Service } from "@kronos-integration/service";
6
12
  import { Topic } from "./topic.mjs";
7
13
  import { TopicEndpoint } from "./topic-endpoint.mjs";
@@ -24,31 +30,28 @@ export class ServiceSwarm extends Service {
24
30
  static attributes = prepareAttributesDefinitions(
25
31
  {
26
32
  server: {
33
+ ...boolean_attribute_false,
27
34
  needsRestart: true,
28
- default: false,
29
- type: "boolean"
30
35
  },
31
36
  client: {
32
- needsRestart: true,
33
- default: false,
34
- type: "boolean"
37
+ ...boolean_attribute_false,
38
+ needsRestart: true
35
39
  },
36
40
  dht: {
41
+ ...object_attribute,
37
42
  description: "well known dht addresses",
38
43
  needsRestart: true,
39
- type: "object"
40
44
  },
41
45
  maxPeers: {
46
+ ...integer_attribute,
42
47
  description: "total amount of peers that this peer will connect to",
43
48
  default: 10,
44
- needsRestart: true,
45
- type: "integer"
49
+ needsRestart: true
46
50
  },
47
51
  key: {
48
52
  ...private_key_attribute,
49
53
  description: "topic initial key",
50
- needsRestart: true,
51
- type: "string"
54
+ needsRestart: true
52
55
  }
53
56
  },
54
57
  Service.attributes