@sockethub/platform-irc 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
|
@@ -16988,6 +16988,79 @@ var ActivityStreamSchema = {
|
|
|
16988
16988
|
type: ObjectTypesSchema
|
|
16989
16989
|
}
|
|
16990
16990
|
};
|
|
16991
|
+
// ../schemas/package.json
|
|
16992
|
+
var package_default = {
|
|
16993
|
+
name: "@sockethub/schemas",
|
|
16994
|
+
description: "JSON schema files for validating Sockethub Activity Streams",
|
|
16995
|
+
version: "3.0.0-alpha.17",
|
|
16996
|
+
type: "module",
|
|
16997
|
+
private: false,
|
|
16998
|
+
author: "Nick Jennings <nick@silverbucket.net>",
|
|
16999
|
+
license: "MIT",
|
|
17000
|
+
publishConfig: {
|
|
17001
|
+
access: "public"
|
|
17002
|
+
},
|
|
17003
|
+
main: "dist/index.js",
|
|
17004
|
+
exports: {
|
|
17005
|
+
".": {
|
|
17006
|
+
types: "./dist/index.d.ts",
|
|
17007
|
+
import: "./dist/index.js",
|
|
17008
|
+
default: "./dist/index.js"
|
|
17009
|
+
},
|
|
17010
|
+
"./context": {
|
|
17011
|
+
types: "./dist/context.d.ts",
|
|
17012
|
+
import: "./dist/context.js",
|
|
17013
|
+
default: "./dist/context.js"
|
|
17014
|
+
},
|
|
17015
|
+
"./object-types": {
|
|
17016
|
+
types: "./dist/object-types.d.ts",
|
|
17017
|
+
import: "./dist/object-types.js",
|
|
17018
|
+
default: "./dist/object-types.js"
|
|
17019
|
+
},
|
|
17020
|
+
"./schemas/json/sockethub-config.json": {
|
|
17021
|
+
default: "./dist/schemas/json/sockethub-config.json"
|
|
17022
|
+
}
|
|
17023
|
+
},
|
|
17024
|
+
files: [
|
|
17025
|
+
"dist/"
|
|
17026
|
+
],
|
|
17027
|
+
engines: {
|
|
17028
|
+
node: ">=20"
|
|
17029
|
+
},
|
|
17030
|
+
keywords: [
|
|
17031
|
+
"sockethub",
|
|
17032
|
+
"sockethub schema",
|
|
17033
|
+
"activity streams",
|
|
17034
|
+
"activity objects",
|
|
17035
|
+
"sockethub platforms"
|
|
17036
|
+
],
|
|
17037
|
+
repository: {
|
|
17038
|
+
type: "git",
|
|
17039
|
+
url: "git+https://github.com/sockethub/sockethub.git",
|
|
17040
|
+
directory: "packages/schemas"
|
|
17041
|
+
},
|
|
17042
|
+
homepage: "https://github.com/sockethub/sockethub/tree/master/packages/schemas",
|
|
17043
|
+
devDependencies: {
|
|
17044
|
+
"@types/bun": "latest"
|
|
17045
|
+
},
|
|
17046
|
+
scripts: {
|
|
17047
|
+
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",
|
|
17048
|
+
clean: "rm -rf dist",
|
|
17049
|
+
"clean:deps": "rm -rf node_modules"
|
|
17050
|
+
},
|
|
17051
|
+
dependencies: {
|
|
17052
|
+
ajv: "^8.17.1",
|
|
17053
|
+
"ajv-formats": "^2.1.1",
|
|
17054
|
+
"ajv-formats-draft2019": "^1.6.1"
|
|
17055
|
+
},
|
|
17056
|
+
gitHead: "578a6432b9f09a8484832a7ff3e157c1d3898a7e",
|
|
17057
|
+
types: "./dist/index.d.ts"
|
|
17058
|
+
};
|
|
17059
|
+
|
|
17060
|
+
// ../schemas/src/schema-id.ts
|
|
17061
|
+
function versionedSchemaId(id, version) {
|
|
17062
|
+
return id.replace("/v/", `/${version}/`);
|
|
17063
|
+
}
|
|
16991
17064
|
|
|
16992
17065
|
// ../schemas/src/schemas/sockethub-config.ts
|
|
16993
17066
|
var SockethubConfigSchema = {
|
|
@@ -17002,11 +17075,13 @@ var SockethubConfigSchema = {
|
|
|
17002
17075
|
},
|
|
17003
17076
|
examples: {
|
|
17004
17077
|
type: "boolean",
|
|
17005
|
-
default: true
|
|
17078
|
+
default: true,
|
|
17079
|
+
description: "Enable the examples pages served at [host]:[port]/examples"
|
|
17006
17080
|
},
|
|
17007
17081
|
info: {
|
|
17008
17082
|
type: "boolean",
|
|
17009
|
-
default: false
|
|
17083
|
+
default: false,
|
|
17084
|
+
description: "Display Sockethub runtime information"
|
|
17010
17085
|
},
|
|
17011
17086
|
logging: {
|
|
17012
17087
|
type: "object",
|
|
@@ -17033,7 +17108,9 @@ var SockethubConfigSchema = {
|
|
|
17033
17108
|
items: {
|
|
17034
17109
|
type: "string"
|
|
17035
17110
|
},
|
|
17111
|
+
description: "Platform packages to load",
|
|
17036
17112
|
default: [
|
|
17113
|
+
"@sockethub/platform-caldav",
|
|
17037
17114
|
"@sockethub/platform-dummy",
|
|
17038
17115
|
"@sockethub/platform-feeds",
|
|
17039
17116
|
"@sockethub/platform-irc",
|
|
@@ -17043,7 +17120,19 @@ var SockethubConfigSchema = {
|
|
|
17043
17120
|
},
|
|
17044
17121
|
packageConfig: {
|
|
17045
17122
|
type: "object",
|
|
17123
|
+
default: {},
|
|
17124
|
+
description: "Per-platform config keyed by package name, validated against " + "each platform's config schema and forwarded to its child process",
|
|
17046
17125
|
properties: {
|
|
17126
|
+
"@sockethub/platform-caldav": {
|
|
17127
|
+
type: "object",
|
|
17128
|
+
additionalProperties: false,
|
|
17129
|
+
properties: {
|
|
17130
|
+
connectTimeoutMs: { type: "integer", minimum: 1 },
|
|
17131
|
+
allowPrivateAddresses: { type: "boolean" },
|
|
17132
|
+
allowInsecureHttp: { type: "boolean" },
|
|
17133
|
+
concurrency: { type: "integer", minimum: 1 }
|
|
17134
|
+
}
|
|
17135
|
+
},
|
|
17047
17136
|
"@sockethub/platform-dummy": {
|
|
17048
17137
|
type: "object",
|
|
17049
17138
|
additionalProperties: false,
|
|
@@ -17152,7 +17241,8 @@ var SockethubConfigSchema = {
|
|
|
17152
17241
|
maxConnectionsPerIp: {
|
|
17153
17242
|
type: "number",
|
|
17154
17243
|
minimum: 0,
|
|
17155
|
-
default: 0
|
|
17244
|
+
default: 0,
|
|
17245
|
+
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."
|
|
17156
17246
|
}
|
|
17157
17247
|
}
|
|
17158
17248
|
},
|
|
@@ -17163,7 +17253,8 @@ var SockethubConfigSchema = {
|
|
|
17163
17253
|
maxPlatformInstances: {
|
|
17164
17254
|
type: "number",
|
|
17165
17255
|
minimum: 0,
|
|
17166
|
-
default: 0
|
|
17256
|
+
default: 0,
|
|
17257
|
+
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."
|
|
17167
17258
|
}
|
|
17168
17259
|
}
|
|
17169
17260
|
},
|
|
@@ -17228,7 +17319,8 @@ var SockethubConfigSchema = {
|
|
|
17228
17319
|
properties: {
|
|
17229
17320
|
origin: {
|
|
17230
17321
|
type: "string",
|
|
17231
|
-
default: "*"
|
|
17322
|
+
default: "*",
|
|
17323
|
+
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."
|
|
17232
17324
|
}
|
|
17233
17325
|
}
|
|
17234
17326
|
}
|
|
@@ -17240,7 +17332,8 @@ var SockethubConfigSchema = {
|
|
|
17240
17332
|
properties: {
|
|
17241
17333
|
enabled: {
|
|
17242
17334
|
type: "boolean",
|
|
17243
|
-
default: false
|
|
17335
|
+
default: false,
|
|
17336
|
+
description: "Enable the HTTP actions endpoint"
|
|
17244
17337
|
},
|
|
17245
17338
|
path: {
|
|
17246
17339
|
type: "string",
|
|
@@ -17293,6 +17386,7 @@ var SockethubConfigSchema = {
|
|
|
17293
17386
|
}
|
|
17294
17387
|
}
|
|
17295
17388
|
};
|
|
17389
|
+
var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
|
|
17296
17390
|
|
|
17297
17391
|
// ../schemas/src/validator.ts
|
|
17298
17392
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
@@ -17331,10 +17425,10 @@ registerSystemPlatformContexts();
|
|
|
17331
17425
|
// src/index.ts
|
|
17332
17426
|
var import_irc_socket_sasl = __toESM(require_irc_socket(), 1);
|
|
17333
17427
|
// package.json
|
|
17334
|
-
var
|
|
17428
|
+
var package_default2 = {
|
|
17335
17429
|
name: "@sockethub/platform-irc",
|
|
17336
17430
|
description: "A sockethub platform module implementing IRC functionality",
|
|
17337
|
-
version: "4.0.0-alpha.
|
|
17431
|
+
version: "4.0.0-alpha.17",
|
|
17338
17432
|
private: false,
|
|
17339
17433
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
17340
17434
|
license: "LGPL-3.0+",
|
|
@@ -17378,28 +17472,28 @@ var package_default = {
|
|
|
17378
17472
|
doc: "typedoc --options typedoc.json"
|
|
17379
17473
|
},
|
|
17380
17474
|
dependencies: {
|
|
17381
|
-
"@sockethub/irc2as": "^4.0.0-alpha.
|
|
17475
|
+
"@sockethub/irc2as": "^4.0.0-alpha.17",
|
|
17382
17476
|
"irc-socket-sasl": "^4.1.2"
|
|
17383
17477
|
},
|
|
17384
17478
|
devDependencies: {
|
|
17385
|
-
"@sockethub/schemas": "^3.0.0-alpha.
|
|
17479
|
+
"@sockethub/schemas": "^3.0.0-alpha.17",
|
|
17386
17480
|
"@types/bun": "latest",
|
|
17387
17481
|
typedoc: "^0.28.14"
|
|
17388
17482
|
},
|
|
17389
17483
|
peerDependencies: {
|
|
17390
|
-
"@sockethub/server": "^5.0.0-alpha.
|
|
17484
|
+
"@sockethub/server": "^5.0.0-alpha.17"
|
|
17391
17485
|
},
|
|
17392
17486
|
peerDependenciesMeta: {
|
|
17393
17487
|
"@sockethub/server": {
|
|
17394
17488
|
optional: true
|
|
17395
17489
|
}
|
|
17396
17490
|
},
|
|
17397
|
-
gitHead: "
|
|
17491
|
+
gitHead: "578a6432b9f09a8484832a7ff3e157c1d3898a7e",
|
|
17398
17492
|
types: "./dist/index.d.ts"
|
|
17399
17493
|
};
|
|
17400
17494
|
|
|
17401
17495
|
// src/schema.ts
|
|
17402
|
-
var version =
|
|
17496
|
+
var version = package_default2.version;
|
|
17403
17497
|
var PlatformIrcSchema = {
|
|
17404
17498
|
name: "irc",
|
|
17405
17499
|
version,
|
|
@@ -18061,4 +18155,4 @@ export {
|
|
|
18061
18155
|
IRC
|
|
18062
18156
|
};
|
|
18063
18157
|
|
|
18064
|
-
//# debugId=
|
|
18158
|
+
//# debugId=939A4662FB970FA464756E2164756E21
|