@sockethub/platform-feeds 4.0.0-alpha.15 → 4.0.0-alpha.17
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 +108 -14
- package/dist/index.js.map +5 -4
- package/package.json +5 -5
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.17",
|
|
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: "578a6432b9f09a8484832a7ff3e157c1d3898a7e",
|
|
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,7 +38764,9 @@ var SockethubConfigSchema = {
|
|
|
38689
38764
|
items: {
|
|
38690
38765
|
type: "string"
|
|
38691
38766
|
},
|
|
38767
|
+
description: "Platform packages to load",
|
|
38692
38768
|
default: [
|
|
38769
|
+
"@sockethub/platform-caldav",
|
|
38693
38770
|
"@sockethub/platform-dummy",
|
|
38694
38771
|
"@sockethub/platform-feeds",
|
|
38695
38772
|
"@sockethub/platform-irc",
|
|
@@ -38699,7 +38776,19 @@ var SockethubConfigSchema = {
|
|
|
38699
38776
|
},
|
|
38700
38777
|
packageConfig: {
|
|
38701
38778
|
type: "object",
|
|
38779
|
+
default: {},
|
|
38780
|
+
description: "Per-platform config keyed by package name, validated against " + "each platform's config schema and forwarded to its child process",
|
|
38702
38781
|
properties: {
|
|
38782
|
+
"@sockethub/platform-caldav": {
|
|
38783
|
+
type: "object",
|
|
38784
|
+
additionalProperties: false,
|
|
38785
|
+
properties: {
|
|
38786
|
+
connectTimeoutMs: { type: "integer", minimum: 1 },
|
|
38787
|
+
allowPrivateAddresses: { type: "boolean" },
|
|
38788
|
+
allowInsecureHttp: { type: "boolean" },
|
|
38789
|
+
concurrency: { type: "integer", minimum: 1 }
|
|
38790
|
+
}
|
|
38791
|
+
},
|
|
38703
38792
|
"@sockethub/platform-dummy": {
|
|
38704
38793
|
type: "object",
|
|
38705
38794
|
additionalProperties: false,
|
|
@@ -38808,7 +38897,8 @@ var SockethubConfigSchema = {
|
|
|
38808
38897
|
maxConnectionsPerIp: {
|
|
38809
38898
|
type: "number",
|
|
38810
38899
|
minimum: 0,
|
|
38811
|
-
default: 0
|
|
38900
|
+
default: 0,
|
|
38901
|
+
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
38902
|
}
|
|
38813
38903
|
}
|
|
38814
38904
|
},
|
|
@@ -38819,7 +38909,8 @@ var SockethubConfigSchema = {
|
|
|
38819
38909
|
maxPlatformInstances: {
|
|
38820
38910
|
type: "number",
|
|
38821
38911
|
minimum: 0,
|
|
38822
|
-
default: 0
|
|
38912
|
+
default: 0,
|
|
38913
|
+
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
38914
|
}
|
|
38824
38915
|
}
|
|
38825
38916
|
},
|
|
@@ -38884,7 +38975,8 @@ var SockethubConfigSchema = {
|
|
|
38884
38975
|
properties: {
|
|
38885
38976
|
origin: {
|
|
38886
38977
|
type: "string",
|
|
38887
|
-
default: "*"
|
|
38978
|
+
default: "*",
|
|
38979
|
+
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
38980
|
}
|
|
38889
38981
|
}
|
|
38890
38982
|
}
|
|
@@ -38896,7 +38988,8 @@ var SockethubConfigSchema = {
|
|
|
38896
38988
|
properties: {
|
|
38897
38989
|
enabled: {
|
|
38898
38990
|
type: "boolean",
|
|
38899
|
-
default: false
|
|
38991
|
+
default: false,
|
|
38992
|
+
description: "Enable the HTTP actions endpoint"
|
|
38900
38993
|
},
|
|
38901
38994
|
path: {
|
|
38902
38995
|
type: "string",
|
|
@@ -38949,6 +39042,7 @@ var SockethubConfigSchema = {
|
|
|
38949
39042
|
}
|
|
38950
39043
|
}
|
|
38951
39044
|
};
|
|
39045
|
+
var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
|
|
38952
39046
|
|
|
38953
39047
|
// ../schemas/src/validator.ts
|
|
38954
39048
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
@@ -39406,10 +39500,10 @@ var html_tags_default = [
|
|
|
39406
39500
|
// src/index.ts
|
|
39407
39501
|
var import_podparse = __toESM(require_podparse(), 1);
|
|
39408
39502
|
// package.json
|
|
39409
|
-
var
|
|
39503
|
+
var package_default2 = {
|
|
39410
39504
|
name: "@sockethub/platform-feeds",
|
|
39411
39505
|
description: "A sockethub platform module implementing RSS/Atom functionality",
|
|
39412
|
-
version: "4.0.0-alpha.
|
|
39506
|
+
version: "4.0.0-alpha.17",
|
|
39413
39507
|
type: "module",
|
|
39414
39508
|
private: false,
|
|
39415
39509
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -39454,31 +39548,31 @@ var package_default = {
|
|
|
39454
39548
|
"clean:deps": "rm -rf node_modules"
|
|
39455
39549
|
},
|
|
39456
39550
|
dependencies: {
|
|
39457
|
-
"@sockethub/util": "^1.0.0-alpha.
|
|
39551
|
+
"@sockethub/util": "^1.0.0-alpha.5",
|
|
39458
39552
|
"html-tags": "^3.3.1",
|
|
39459
39553
|
htmlparser2: "^9.1.0",
|
|
39460
39554
|
podparse: "^1.6.0"
|
|
39461
39555
|
},
|
|
39462
39556
|
devDependencies: {
|
|
39463
|
-
"@sockethub/schemas": "^3.0.0-alpha.
|
|
39557
|
+
"@sockethub/schemas": "^3.0.0-alpha.17",
|
|
39464
39558
|
"@types/bun": "latest"
|
|
39465
39559
|
},
|
|
39466
39560
|
peerDependencies: {
|
|
39467
|
-
"@sockethub/server": "5.0.0-alpha.
|
|
39561
|
+
"@sockethub/server": "5.0.0-alpha.17"
|
|
39468
39562
|
},
|
|
39469
39563
|
peerDependenciesMeta: {
|
|
39470
39564
|
"@sockethub/server": {
|
|
39471
39565
|
optional: true
|
|
39472
39566
|
}
|
|
39473
39567
|
},
|
|
39474
|
-
gitHead: "
|
|
39568
|
+
gitHead: "578a6432b9f09a8484832a7ff3e157c1d3898a7e",
|
|
39475
39569
|
types: "./dist/index.d.ts"
|
|
39476
39570
|
};
|
|
39477
39571
|
|
|
39478
39572
|
// src/schema.ts
|
|
39479
39573
|
var schema_default = {
|
|
39480
39574
|
name: "feeds",
|
|
39481
|
-
version:
|
|
39575
|
+
version: package_default2.version,
|
|
39482
39576
|
contextUrl: "https://sockethub.org/ns/context/platform/feeds/v1.jsonld",
|
|
39483
39577
|
contextVersion: "1",
|
|
39484
39578
|
schemaVersion: "1",
|
|
@@ -39736,4 +39830,4 @@ export {
|
|
|
39736
39830
|
applyFetchFilters
|
|
39737
39831
|
};
|
|
39738
39832
|
|
|
39739
|
-
//# debugId=
|
|
39833
|
+
//# debugId=AADAC865971550AF64756E2164756E21
|