@sockethub/platform-feeds 4.0.0-beta.1 → 4.0.0-beta.2

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 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.1",
41060
+ version: "3.0.0-beta.2",
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: "06c9062f1cb5f0c0599fd979e6e91da79f08eda0",
41130
+ gitHead: "1f74d4e07311496f0acc021855137bc197d79eab",
41131
41131
  types: "./dist/index.d.ts"
41132
41132
  };
41133
41133
 
@@ -41232,8 +41232,11 @@ 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",
41237
41240
  "@sockethub/platform-xmpp"
41238
41241
  ]
41239
41242
  },
@@ -41249,7 +41252,8 @@ var SockethubConfigSchema = {
41249
41252
  connectTimeoutMs: { type: "integer", minimum: 1 },
41250
41253
  allowPrivateAddresses: { type: "boolean" },
41251
41254
  allowInsecureHttp: { type: "boolean" },
41252
- concurrency: { type: "integer", minimum: 1 }
41255
+ concurrency: { type: "integer", minimum: 1 },
41256
+ discoveryCacheTtlMs: { type: "integer", minimum: 0 }
41253
41257
  }
41254
41258
  },
41255
41259
  "@sockethub/platform-caldav": {
@@ -41259,7 +41263,20 @@ var SockethubConfigSchema = {
41259
41263
  connectTimeoutMs: { type: "integer", minimum: 1 },
41260
41264
  allowPrivateAddresses: { type: "boolean" },
41261
41265
  allowInsecureHttp: { type: "boolean" },
41262
- concurrency: { type: "integer", minimum: 1 }
41266
+ concurrency: { type: "integer", minimum: 1 },
41267
+ discoveryCacheTtlMs: { type: "integer", minimum: 0 }
41268
+ }
41269
+ },
41270
+ "@sockethub/platform-email": {
41271
+ type: "object",
41272
+ additionalProperties: false,
41273
+ properties: {
41274
+ connectTimeoutMs: {
41275
+ type: "integer",
41276
+ minimum: 5000,
41277
+ maximum: 120000
41278
+ },
41279
+ allowPrivateAddresses: { type: "boolean" }
41263
41280
  }
41264
41281
  },
41265
41282
  "@sockethub/platform-dummy": {
@@ -41282,7 +41299,8 @@ var SockethubConfigSchema = {
41282
41299
  type: "object",
41283
41300
  additionalProperties: false,
41284
41301
  properties: {
41285
- connectTimeoutMs: { type: "number" }
41302
+ connectTimeoutMs: { type: "number" },
41303
+ allowPrivateAddresses: { type: "boolean" }
41286
41304
  }
41287
41305
  },
41288
41306
  "@sockethub/platform-xmpp": {
@@ -41392,6 +41410,12 @@ var SockethubConfigSchema = {
41392
41410
  default: 20,
41393
41411
  description: "Maximum persistent instances per client IP, including HTTP actions. 0 disables the cap."
41394
41412
  },
41413
+ maxStartsPerIpPerMinute: {
41414
+ type: "integer",
41415
+ minimum: 0,
41416
+ default: 60,
41417
+ 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."
41418
+ },
41395
41419
  maxPlatformInstances: {
41396
41420
  type: "number",
41397
41421
  minimum: 0,
@@ -41912,7 +41936,7 @@ function createGuardedLookup(allowPrivateAddresses) {
41912
41936
  if (!allowPrivateAddresses) {
41913
41937
  for (const { address } of addresses) {
41914
41938
  if (isBlockedAddress(address)) {
41915
- callback(new Error(`blocked non-public address ${address} for ${hostname}`));
41939
+ callback(new Error(`blocked non-public address for ${hostname}`));
41916
41940
  return;
41917
41941
  }
41918
41942
  }
@@ -42122,7 +42146,7 @@ var import_podparse = __toESM(require_podparse(), 1);
42122
42146
  var package_default2 = {
42123
42147
  name: "@sockethub/platform-feeds",
42124
42148
  description: "A sockethub platform module implementing RSS/Atom functionality",
42125
- version: "4.0.0-beta.1",
42149
+ version: "4.0.0-beta.2",
42126
42150
  type: "module",
42127
42151
  private: false,
42128
42152
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -42167,24 +42191,24 @@ var package_default2 = {
42167
42191
  "clean:deps": "rm -rf node_modules"
42168
42192
  },
42169
42193
  dependencies: {
42170
- "@sockethub/util": "^1.0.0-beta.1",
42194
+ "@sockethub/util": "^1.0.0-beta.2",
42171
42195
  "html-tags": "^3.3.1",
42172
42196
  htmlparser2: "^9.1.0",
42173
42197
  podparse: "^1.6.0"
42174
42198
  },
42175
42199
  devDependencies: {
42176
- "@sockethub/schemas": "^3.0.0-beta.1",
42200
+ "@sockethub/schemas": "^3.0.0-beta.2",
42177
42201
  "@types/bun": "latest"
42178
42202
  },
42179
42203
  peerDependencies: {
42180
- "@sockethub/server": "5.0.0-beta.1"
42204
+ "@sockethub/server": "5.0.0-beta.2"
42181
42205
  },
42182
42206
  peerDependenciesMeta: {
42183
42207
  "@sockethub/server": {
42184
42208
  optional: true
42185
42209
  }
42186
42210
  },
42187
- gitHead: "06c9062f1cb5f0c0599fd979e6e91da79f08eda0",
42211
+ gitHead: "1f74d4e07311496f0acc021855137bc197d79eab",
42188
42212
  types: "./dist/index.d.ts"
42189
42213
  };
42190
42214
 
@@ -42449,4 +42473,4 @@ export {
42449
42473
  extractFetchParams
42450
42474
  };
42451
42475
 
42452
- //# debugId=79A32653B1566A3364756E2164756E21
42476
+ //# debugId=4B35A0602967263F64756E2164756E21