@sockethub/platform-feeds 4.0.0-alpha.15 → 4.0.0-alpha.16

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/dist/index.js CHANGED
@@ -38644,6 +38644,79 @@ var ActivityStreamSchema = {
38644
38644
  type: ObjectTypesSchema
38645
38645
  }
38646
38646
  };
38647
+ // ../schemas/package.json
38648
+ var package_default = {
38649
+ name: "@sockethub/schemas",
38650
+ description: "JSON schema files for validating Sockethub Activity Streams",
38651
+ version: "3.0.0-alpha.16",
38652
+ type: "module",
38653
+ private: false,
38654
+ author: "Nick Jennings <nick@silverbucket.net>",
38655
+ license: "MIT",
38656
+ publishConfig: {
38657
+ access: "public"
38658
+ },
38659
+ main: "dist/index.js",
38660
+ exports: {
38661
+ ".": {
38662
+ types: "./dist/index.d.ts",
38663
+ import: "./dist/index.js",
38664
+ default: "./dist/index.js"
38665
+ },
38666
+ "./context": {
38667
+ types: "./dist/context.d.ts",
38668
+ import: "./dist/context.js",
38669
+ default: "./dist/context.js"
38670
+ },
38671
+ "./object-types": {
38672
+ types: "./dist/object-types.d.ts",
38673
+ import: "./dist/object-types.js",
38674
+ default: "./dist/object-types.js"
38675
+ },
38676
+ "./schemas/json/sockethub-config.json": {
38677
+ default: "./dist/schemas/json/sockethub-config.json"
38678
+ }
38679
+ },
38680
+ files: [
38681
+ "dist/"
38682
+ ],
38683
+ engines: {
38684
+ node: ">=20"
38685
+ },
38686
+ keywords: [
38687
+ "sockethub",
38688
+ "sockethub schema",
38689
+ "activity streams",
38690
+ "activity objects",
38691
+ "sockethub platforms"
38692
+ ],
38693
+ repository: {
38694
+ type: "git",
38695
+ url: "git+https://github.com/sockethub/sockethub.git",
38696
+ directory: "packages/schemas"
38697
+ },
38698
+ homepage: "https://github.com/sockethub/sockethub/tree/master/packages/schemas",
38699
+ devDependencies: {
38700
+ "@types/bun": "latest"
38701
+ },
38702
+ scripts: {
38703
+ build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts --outdir dist --target browser --format esm --sourcemap=external",
38704
+ clean: "rm -rf dist",
38705
+ "clean:deps": "rm -rf node_modules"
38706
+ },
38707
+ dependencies: {
38708
+ ajv: "^8.17.1",
38709
+ "ajv-formats": "^2.1.1",
38710
+ "ajv-formats-draft2019": "^1.6.1"
38711
+ },
38712
+ gitHead: "1a1a01ffe7b9d356aacfc4ae583d553e5df6f97d",
38713
+ types: "./dist/index.d.ts"
38714
+ };
38715
+
38716
+ // ../schemas/src/schema-id.ts
38717
+ function versionedSchemaId(id, version) {
38718
+ return id.replace("/v/", `/${version}/`);
38719
+ }
38647
38720
 
38648
38721
  // ../schemas/src/schemas/sockethub-config.ts
38649
38722
  var SockethubConfigSchema = {
@@ -38658,11 +38731,13 @@ var SockethubConfigSchema = {
38658
38731
  },
38659
38732
  examples: {
38660
38733
  type: "boolean",
38661
- default: true
38734
+ default: true,
38735
+ description: "Enable the examples pages served at [host]:[port]/examples"
38662
38736
  },
38663
38737
  info: {
38664
38738
  type: "boolean",
38665
- default: false
38739
+ default: false,
38740
+ description: "Display Sockethub runtime information"
38666
38741
  },
38667
38742
  logging: {
38668
38743
  type: "object",
@@ -38689,6 +38764,7 @@ var SockethubConfigSchema = {
38689
38764
  items: {
38690
38765
  type: "string"
38691
38766
  },
38767
+ description: "Platform packages to load",
38692
38768
  default: [
38693
38769
  "@sockethub/platform-dummy",
38694
38770
  "@sockethub/platform-feeds",
@@ -38699,6 +38775,8 @@ var SockethubConfigSchema = {
38699
38775
  },
38700
38776
  packageConfig: {
38701
38777
  type: "object",
38778
+ default: {},
38779
+ description: "Per-platform config keyed by package name, validated against " + "each platform's config schema and forwarded to its child process",
38702
38780
  properties: {
38703
38781
  "@sockethub/platform-dummy": {
38704
38782
  type: "object",
@@ -38808,7 +38886,8 @@ var SockethubConfigSchema = {
38808
38886
  maxConnectionsPerIp: {
38809
38887
  type: "number",
38810
38888
  minimum: 0,
38811
- default: 0
38889
+ default: 0,
38890
+ description: "Maximum concurrent socket connections per client IP. " + "The per-event rate limiter is keyed by socket id, so " + "without a connection cap a client can bypass it by " + "opening more sockets. 0 disables the cap."
38812
38891
  }
38813
38892
  }
38814
38893
  },
@@ -38819,7 +38898,8 @@ var SockethubConfigSchema = {
38819
38898
  maxPlatformInstances: {
38820
38899
  type: "number",
38821
38900
  minimum: 0,
38822
- default: 0
38901
+ default: 0,
38902
+ description: "Upper bound on concurrently running platform instances " + "(child processes). Each persistent-platform actor forks " + "its own process, so an unbounded count is a resource " + "exhaustion risk on public instances. 0 disables the cap."
38823
38903
  }
38824
38904
  }
38825
38905
  },
@@ -38884,7 +38964,8 @@ var SockethubConfigSchema = {
38884
38964
  properties: {
38885
38965
  origin: {
38886
38966
  type: "string",
38887
- default: "*"
38967
+ default: "*",
38968
+ description: "Allowed CORS origin(s) for socket.io connections " + "and the HTTP actions endpoint. '*' allows any " + "website to connect visitors' browsers to this " + "instance; public deployments should set an " + "explicit origin or comma-separated list of " + "origins."
38888
38969
  }
38889
38970
  }
38890
38971
  }
@@ -38896,7 +38977,8 @@ var SockethubConfigSchema = {
38896
38977
  properties: {
38897
38978
  enabled: {
38898
38979
  type: "boolean",
38899
- default: false
38980
+ default: false,
38981
+ description: "Enable the HTTP actions endpoint"
38900
38982
  },
38901
38983
  path: {
38902
38984
  type: "string",
@@ -38949,6 +39031,7 @@ var SockethubConfigSchema = {
38949
39031
  }
38950
39032
  }
38951
39033
  };
39034
+ var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
38952
39035
 
38953
39036
  // ../schemas/src/validator.ts
38954
39037
  var import_ajv = __toESM(require_ajv(), 1);
@@ -39406,10 +39489,10 @@ var html_tags_default = [
39406
39489
  // src/index.ts
39407
39490
  var import_podparse = __toESM(require_podparse(), 1);
39408
39491
  // package.json
39409
- var package_default = {
39492
+ var package_default2 = {
39410
39493
  name: "@sockethub/platform-feeds",
39411
39494
  description: "A sockethub platform module implementing RSS/Atom functionality",
39412
- version: "4.0.0-alpha.15",
39495
+ version: "4.0.0-alpha.16",
39413
39496
  type: "module",
39414
39497
  private: false,
39415
39498
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -39454,31 +39537,31 @@ var package_default = {
39454
39537
  "clean:deps": "rm -rf node_modules"
39455
39538
  },
39456
39539
  dependencies: {
39457
- "@sockethub/util": "^1.0.0-alpha.3",
39540
+ "@sockethub/util": "^1.0.0-alpha.4",
39458
39541
  "html-tags": "^3.3.1",
39459
39542
  htmlparser2: "^9.1.0",
39460
39543
  podparse: "^1.6.0"
39461
39544
  },
39462
39545
  devDependencies: {
39463
- "@sockethub/schemas": "^3.0.0-alpha.15",
39546
+ "@sockethub/schemas": "^3.0.0-alpha.16",
39464
39547
  "@types/bun": "latest"
39465
39548
  },
39466
39549
  peerDependencies: {
39467
- "@sockethub/server": "5.0.0-alpha.15"
39550
+ "@sockethub/server": "5.0.0-alpha.16"
39468
39551
  },
39469
39552
  peerDependenciesMeta: {
39470
39553
  "@sockethub/server": {
39471
39554
  optional: true
39472
39555
  }
39473
39556
  },
39474
- gitHead: "7f85c0aa1c317b56336af4149b29dc78afc5f2bd",
39557
+ gitHead: "1a1a01ffe7b9d356aacfc4ae583d553e5df6f97d",
39475
39558
  types: "./dist/index.d.ts"
39476
39559
  };
39477
39560
 
39478
39561
  // src/schema.ts
39479
39562
  var schema_default = {
39480
39563
  name: "feeds",
39481
- version: package_default.version,
39564
+ version: package_default2.version,
39482
39565
  contextUrl: "https://sockethub.org/ns/context/platform/feeds/v1.jsonld",
39483
39566
  contextVersion: "1",
39484
39567
  schemaVersion: "1",
@@ -39736,4 +39819,4 @@ export {
39736
39819
  applyFetchFilters
39737
39820
  };
39738
39821
 
39739
- //# debugId=0FAF94BC969BDDB964756E2164756E21
39822
+ //# debugId=BC2A1E7565A077C664756E2164756E21