@sockethub/platform-feeds 4.0.0-beta.1 → 4.0.0-beta.3
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/README.md +7 -0
- package/dist/index.js +37 -12
- package/dist/index.js.map +5 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -150,6 +150,13 @@ Returns an ActivityStreams Collection with feed entries:
|
|
|
150
150
|
}
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
+
## Entry fields
|
|
154
|
+
|
|
155
|
+
`object.content` is the entry description in full. `object.type` is `note`
|
|
156
|
+
when the description is 256 characters or shorter and `article` when it is
|
|
157
|
+
longer. `contentType` is `html` when HTML tags appear in the first 1000
|
|
158
|
+
characters of the description, otherwise `text`.
|
|
159
|
+
|
|
153
160
|
## Request Hardening (SSRF Guard)
|
|
154
161
|
|
|
155
162
|
Because the server fetches whatever URL a client supplies as `actor.id`, feed
|
package/dist/index.js
CHANGED
|
@@ -41057,7 +41057,7 @@ var ActivityStreamSchema = {
|
|
|
41057
41057
|
var package_default = {
|
|
41058
41058
|
name: "@sockethub/schemas",
|
|
41059
41059
|
description: "JSON schema files for validating Sockethub Activity Streams",
|
|
41060
|
-
version: "3.0.0-beta.
|
|
41060
|
+
version: "3.0.0-beta.3",
|
|
41061
41061
|
type: "module",
|
|
41062
41062
|
private: false,
|
|
41063
41063
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -41127,7 +41127,7 @@ var package_default = {
|
|
|
41127
41127
|
"ajv-formats": "^2.1.1",
|
|
41128
41128
|
"ajv-formats-draft2019": "^1.6.1"
|
|
41129
41129
|
},
|
|
41130
|
-
gitHead: "
|
|
41130
|
+
gitHead: "bc04522d60d1e2fa1b3098b339897de62c3b0549",
|
|
41131
41131
|
types: "./dist/index.d.ts"
|
|
41132
41132
|
};
|
|
41133
41133
|
|
|
@@ -41232,8 +41232,12 @@ var SockethubConfigSchema = {
|
|
|
41232
41232
|
"@sockethub/platform-caldav",
|
|
41233
41233
|
"@sockethub/platform-dummy",
|
|
41234
41234
|
"@sockethub/platform-feeds",
|
|
41235
|
+
"@sockethub/platform-email",
|
|
41235
41236
|
"@sockethub/platform-irc",
|
|
41236
41237
|
"@sockethub/platform-metadata",
|
|
41238
|
+
"@sockethub/platform-messenger",
|
|
41239
|
+
"@sockethub/platform-instagram",
|
|
41240
|
+
"@sockethub/platform-whatsapp",
|
|
41237
41241
|
"@sockethub/platform-xmpp"
|
|
41238
41242
|
]
|
|
41239
41243
|
},
|
|
@@ -41249,7 +41253,8 @@ var SockethubConfigSchema = {
|
|
|
41249
41253
|
connectTimeoutMs: { type: "integer", minimum: 1 },
|
|
41250
41254
|
allowPrivateAddresses: { type: "boolean" },
|
|
41251
41255
|
allowInsecureHttp: { type: "boolean" },
|
|
41252
|
-
concurrency: { type: "integer", minimum: 1 }
|
|
41256
|
+
concurrency: { type: "integer", minimum: 1 },
|
|
41257
|
+
discoveryCacheTtlMs: { type: "integer", minimum: 0 }
|
|
41253
41258
|
}
|
|
41254
41259
|
},
|
|
41255
41260
|
"@sockethub/platform-caldav": {
|
|
@@ -41259,7 +41264,20 @@ var SockethubConfigSchema = {
|
|
|
41259
41264
|
connectTimeoutMs: { type: "integer", minimum: 1 },
|
|
41260
41265
|
allowPrivateAddresses: { type: "boolean" },
|
|
41261
41266
|
allowInsecureHttp: { type: "boolean" },
|
|
41262
|
-
concurrency: { type: "integer", minimum: 1 }
|
|
41267
|
+
concurrency: { type: "integer", minimum: 1 },
|
|
41268
|
+
discoveryCacheTtlMs: { type: "integer", minimum: 0 }
|
|
41269
|
+
}
|
|
41270
|
+
},
|
|
41271
|
+
"@sockethub/platform-email": {
|
|
41272
|
+
type: "object",
|
|
41273
|
+
additionalProperties: false,
|
|
41274
|
+
properties: {
|
|
41275
|
+
connectTimeoutMs: {
|
|
41276
|
+
type: "integer",
|
|
41277
|
+
minimum: 5000,
|
|
41278
|
+
maximum: 120000
|
|
41279
|
+
},
|
|
41280
|
+
allowPrivateAddresses: { type: "boolean" }
|
|
41263
41281
|
}
|
|
41264
41282
|
},
|
|
41265
41283
|
"@sockethub/platform-dummy": {
|
|
@@ -41282,7 +41300,8 @@ var SockethubConfigSchema = {
|
|
|
41282
41300
|
type: "object",
|
|
41283
41301
|
additionalProperties: false,
|
|
41284
41302
|
properties: {
|
|
41285
|
-
connectTimeoutMs: { type: "number" }
|
|
41303
|
+
connectTimeoutMs: { type: "number" },
|
|
41304
|
+
allowPrivateAddresses: { type: "boolean" }
|
|
41286
41305
|
}
|
|
41287
41306
|
},
|
|
41288
41307
|
"@sockethub/platform-xmpp": {
|
|
@@ -41392,6 +41411,12 @@ var SockethubConfigSchema = {
|
|
|
41392
41411
|
default: 20,
|
|
41393
41412
|
description: "Maximum persistent instances per client IP, including HTTP actions. 0 disables the cap."
|
|
41394
41413
|
},
|
|
41414
|
+
maxStartsPerIpPerMinute: {
|
|
41415
|
+
type: "integer",
|
|
41416
|
+
minimum: 0,
|
|
41417
|
+
default: 60,
|
|
41418
|
+
description: "Maximum new persistent instances a client IP may start per minute, " + "including HTTP actions. Bounds fork/teardown churn that the " + "concurrent caps allow. Reusing a running instance does not count. " + "0 disables the cap."
|
|
41419
|
+
},
|
|
41395
41420
|
maxPlatformInstances: {
|
|
41396
41421
|
type: "number",
|
|
41397
41422
|
minimum: 0,
|
|
@@ -41912,7 +41937,7 @@ function createGuardedLookup(allowPrivateAddresses) {
|
|
|
41912
41937
|
if (!allowPrivateAddresses) {
|
|
41913
41938
|
for (const { address } of addresses) {
|
|
41914
41939
|
if (isBlockedAddress(address)) {
|
|
41915
|
-
callback(new Error(`blocked non-public address
|
|
41940
|
+
callback(new Error(`blocked non-public address for ${hostname}`));
|
|
41916
41941
|
return;
|
|
41917
41942
|
}
|
|
41918
41943
|
}
|
|
@@ -42122,7 +42147,7 @@ var import_podparse = __toESM(require_podparse(), 1);
|
|
|
42122
42147
|
var package_default2 = {
|
|
42123
42148
|
name: "@sockethub/platform-feeds",
|
|
42124
42149
|
description: "A sockethub platform module implementing RSS/Atom functionality",
|
|
42125
|
-
version: "4.0.0-beta.
|
|
42150
|
+
version: "4.0.0-beta.3",
|
|
42126
42151
|
type: "module",
|
|
42127
42152
|
private: false,
|
|
42128
42153
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -42167,24 +42192,24 @@ var package_default2 = {
|
|
|
42167
42192
|
"clean:deps": "rm -rf node_modules"
|
|
42168
42193
|
},
|
|
42169
42194
|
dependencies: {
|
|
42170
|
-
"@sockethub/util": "^1.0.0-beta.
|
|
42195
|
+
"@sockethub/util": "^1.0.0-beta.3",
|
|
42171
42196
|
"html-tags": "^3.3.1",
|
|
42172
42197
|
htmlparser2: "^9.1.0",
|
|
42173
42198
|
podparse: "^1.6.0"
|
|
42174
42199
|
},
|
|
42175
42200
|
devDependencies: {
|
|
42176
|
-
"@sockethub/schemas": "^3.0.0-beta.
|
|
42201
|
+
"@sockethub/schemas": "^3.0.0-beta.3",
|
|
42177
42202
|
"@types/bun": "latest"
|
|
42178
42203
|
},
|
|
42179
42204
|
peerDependencies: {
|
|
42180
|
-
"@sockethub/server": "5.0.0-beta.
|
|
42205
|
+
"@sockethub/server": "5.0.0-beta.3"
|
|
42181
42206
|
},
|
|
42182
42207
|
peerDependenciesMeta: {
|
|
42183
42208
|
"@sockethub/server": {
|
|
42184
42209
|
optional: true
|
|
42185
42210
|
}
|
|
42186
42211
|
},
|
|
42187
|
-
gitHead: "
|
|
42212
|
+
gitHead: "bc04522d60d1e2fa1b3098b339897de62c3b0549",
|
|
42188
42213
|
types: "./dist/index.d.ts"
|
|
42189
42214
|
};
|
|
42190
42215
|
|
|
@@ -42449,4 +42474,4 @@ export {
|
|
|
42449
42474
|
extractFetchParams
|
|
42450
42475
|
};
|
|
42451
42476
|
|
|
42452
|
-
//# debugId=
|
|
42477
|
+
//# debugId=F4FC9188B3D7F73564756E2164756E21
|