@fedify/vocab-runtime 2.0.5 → 2.0.6-dev.559
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/deno.json +1 -1
- package/dist/mod.cjs +27 -1
- package/dist/mod.js +27 -1
- package/dist/tests/docloader.test.cjs +27 -1
- package/dist/tests/docloader.test.js +27 -1
- package/dist/tests/{request-BW2fdzPJ.cjs → request-BsFPcF-g.cjs} +1 -1
- package/dist/tests/{request-tM6_ZuLV.js → request-D2n4h7SN.js} +1 -1
- package/dist/tests/request.test.cjs +1 -1
- package/dist/tests/request.test.js +1 -1
- package/package.json +1 -1
- package/src/contexts.ts +38 -0
- package/tsdown.config.ts +1 -1
package/deno.json
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -4254,6 +4254,32 @@ const preloadedContexts = {
|
|
|
4254
4254
|
"@id": "https://w3id.org/fep/5711#likedOf",
|
|
4255
4255
|
"@type": "@id"
|
|
4256
4256
|
}
|
|
4257
|
+
} },
|
|
4258
|
+
"http://joinmastodon.org/ns": { "@context": {
|
|
4259
|
+
"toot": "http://joinmastodon.org/ns#",
|
|
4260
|
+
"Emoji": "toot:Emoji",
|
|
4261
|
+
"featured": {
|
|
4262
|
+
"@id": "toot:featured",
|
|
4263
|
+
"@type": "@id"
|
|
4264
|
+
},
|
|
4265
|
+
"featuredTags": {
|
|
4266
|
+
"@id": "toot:featuredTags",
|
|
4267
|
+
"@type": "@id"
|
|
4268
|
+
},
|
|
4269
|
+
"focalPoint": {
|
|
4270
|
+
"@container": "@list",
|
|
4271
|
+
"@id": "toot:focalPoint"
|
|
4272
|
+
},
|
|
4273
|
+
"blurhash": "toot:blurhash",
|
|
4274
|
+
"discoverable": "toot:discoverable",
|
|
4275
|
+
"indexable": "toot:indexable",
|
|
4276
|
+
"memorial": "toot:memorial",
|
|
4277
|
+
"votersCount": "toot:votersCount",
|
|
4278
|
+
"suspended": "toot:suspended",
|
|
4279
|
+
"attributionDomains": {
|
|
4280
|
+
"@id": "toot:attributionDomains",
|
|
4281
|
+
"@type": "@id"
|
|
4282
|
+
}
|
|
4257
4283
|
} }
|
|
4258
4284
|
};
|
|
4259
4285
|
var contexts_default = preloadedContexts;
|
|
@@ -4261,7 +4287,7 @@ var contexts_default = preloadedContexts;
|
|
|
4261
4287
|
//#endregion
|
|
4262
4288
|
//#region deno.json
|
|
4263
4289
|
var name = "@fedify/vocab-runtime";
|
|
4264
|
-
var version = "2.0.
|
|
4290
|
+
var version = "2.0.6-dev.559+50ac1c17";
|
|
4265
4291
|
var license = "MIT";
|
|
4266
4292
|
var exports$1 = { ".": "./src/mod.ts" };
|
|
4267
4293
|
var description = "Runtime library for @fedify/vocab";
|
package/dist/mod.js
CHANGED
|
@@ -4231,6 +4231,32 @@ const preloadedContexts = {
|
|
|
4231
4231
|
"@id": "https://w3id.org/fep/5711#likedOf",
|
|
4232
4232
|
"@type": "@id"
|
|
4233
4233
|
}
|
|
4234
|
+
} },
|
|
4235
|
+
"http://joinmastodon.org/ns": { "@context": {
|
|
4236
|
+
"toot": "http://joinmastodon.org/ns#",
|
|
4237
|
+
"Emoji": "toot:Emoji",
|
|
4238
|
+
"featured": {
|
|
4239
|
+
"@id": "toot:featured",
|
|
4240
|
+
"@type": "@id"
|
|
4241
|
+
},
|
|
4242
|
+
"featuredTags": {
|
|
4243
|
+
"@id": "toot:featuredTags",
|
|
4244
|
+
"@type": "@id"
|
|
4245
|
+
},
|
|
4246
|
+
"focalPoint": {
|
|
4247
|
+
"@container": "@list",
|
|
4248
|
+
"@id": "toot:focalPoint"
|
|
4249
|
+
},
|
|
4250
|
+
"blurhash": "toot:blurhash",
|
|
4251
|
+
"discoverable": "toot:discoverable",
|
|
4252
|
+
"indexable": "toot:indexable",
|
|
4253
|
+
"memorial": "toot:memorial",
|
|
4254
|
+
"votersCount": "toot:votersCount",
|
|
4255
|
+
"suspended": "toot:suspended",
|
|
4256
|
+
"attributionDomains": {
|
|
4257
|
+
"@id": "toot:attributionDomains",
|
|
4258
|
+
"@type": "@id"
|
|
4259
|
+
}
|
|
4234
4260
|
} }
|
|
4235
4261
|
};
|
|
4236
4262
|
var contexts_default = preloadedContexts;
|
|
@@ -4238,7 +4264,7 @@ var contexts_default = preloadedContexts;
|
|
|
4238
4264
|
//#endregion
|
|
4239
4265
|
//#region deno.json
|
|
4240
4266
|
var name = "@fedify/vocab-runtime";
|
|
4241
|
-
var version = "2.0.
|
|
4267
|
+
var version = "2.0.6-dev.559+50ac1c17";
|
|
4242
4268
|
var license = "MIT";
|
|
4243
4269
|
var exports = { ".": "./src/mod.ts" };
|
|
4244
4270
|
var description = "Runtime library for @fedify/vocab";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_request = require('./request-
|
|
2
|
+
const require_request = require('./request-BsFPcF-g.cjs');
|
|
3
3
|
const require_link = require('./link-CdFPEo9O.cjs');
|
|
4
4
|
const require_url = require('./url-C5Vs9nYh.cjs');
|
|
5
5
|
const node_assert = require_chunk.__toESM(require("node:assert"));
|
|
@@ -5460,6 +5460,32 @@ const preloadedContexts = {
|
|
|
5460
5460
|
"@id": "https://w3id.org/fep/5711#likedOf",
|
|
5461
5461
|
"@type": "@id"
|
|
5462
5462
|
}
|
|
5463
|
+
} },
|
|
5464
|
+
"http://joinmastodon.org/ns": { "@context": {
|
|
5465
|
+
"toot": "http://joinmastodon.org/ns#",
|
|
5466
|
+
"Emoji": "toot:Emoji",
|
|
5467
|
+
"featured": {
|
|
5468
|
+
"@id": "toot:featured",
|
|
5469
|
+
"@type": "@id"
|
|
5470
|
+
},
|
|
5471
|
+
"featuredTags": {
|
|
5472
|
+
"@id": "toot:featuredTags",
|
|
5473
|
+
"@type": "@id"
|
|
5474
|
+
},
|
|
5475
|
+
"focalPoint": {
|
|
5476
|
+
"@container": "@list",
|
|
5477
|
+
"@id": "toot:focalPoint"
|
|
5478
|
+
},
|
|
5479
|
+
"blurhash": "toot:blurhash",
|
|
5480
|
+
"discoverable": "toot:discoverable",
|
|
5481
|
+
"indexable": "toot:indexable",
|
|
5482
|
+
"memorial": "toot:memorial",
|
|
5483
|
+
"votersCount": "toot:votersCount",
|
|
5484
|
+
"suspended": "toot:suspended",
|
|
5485
|
+
"attributionDomains": {
|
|
5486
|
+
"@id": "toot:attributionDomains",
|
|
5487
|
+
"@type": "@id"
|
|
5488
|
+
}
|
|
5463
5489
|
} }
|
|
5464
5490
|
};
|
|
5465
5491
|
var contexts_default = preloadedContexts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FetchError, createActivityPubRequest, deno_default, logRequest } from "./request-
|
|
1
|
+
import { FetchError, createActivityPubRequest, deno_default, logRequest } from "./request-D2n4h7SN.js";
|
|
2
2
|
import { HttpHeaderLink } from "./link-Ck2yj4dH.js";
|
|
3
3
|
import { UrlError, validatePublicUrl } from "./url-fW_DHbih.js";
|
|
4
4
|
import "node:module";
|
|
@@ -5486,6 +5486,32 @@ const preloadedContexts = {
|
|
|
5486
5486
|
"@id": "https://w3id.org/fep/5711#likedOf",
|
|
5487
5487
|
"@type": "@id"
|
|
5488
5488
|
}
|
|
5489
|
+
} },
|
|
5490
|
+
"http://joinmastodon.org/ns": { "@context": {
|
|
5491
|
+
"toot": "http://joinmastodon.org/ns#",
|
|
5492
|
+
"Emoji": "toot:Emoji",
|
|
5493
|
+
"featured": {
|
|
5494
|
+
"@id": "toot:featured",
|
|
5495
|
+
"@type": "@id"
|
|
5496
|
+
},
|
|
5497
|
+
"featuredTags": {
|
|
5498
|
+
"@id": "toot:featuredTags",
|
|
5499
|
+
"@type": "@id"
|
|
5500
|
+
},
|
|
5501
|
+
"focalPoint": {
|
|
5502
|
+
"@container": "@list",
|
|
5503
|
+
"@id": "toot:focalPoint"
|
|
5504
|
+
},
|
|
5505
|
+
"blurhash": "toot:blurhash",
|
|
5506
|
+
"discoverable": "toot:discoverable",
|
|
5507
|
+
"indexable": "toot:indexable",
|
|
5508
|
+
"memorial": "toot:memorial",
|
|
5509
|
+
"votersCount": "toot:votersCount",
|
|
5510
|
+
"suspended": "toot:suspended",
|
|
5511
|
+
"attributionDomains": {
|
|
5512
|
+
"@id": "toot:attributionDomains",
|
|
5513
|
+
"@type": "@id"
|
|
5514
|
+
}
|
|
5489
5515
|
} }
|
|
5490
5516
|
};
|
|
5491
5517
|
var contexts_default = preloadedContexts;
|
|
@@ -3,7 +3,7 @@ const node_process = require_chunk.__toESM(require("node:process"));
|
|
|
3
3
|
|
|
4
4
|
//#region deno.json
|
|
5
5
|
var name = "@fedify/vocab-runtime";
|
|
6
|
-
var version = "2.0.
|
|
6
|
+
var version = "2.0.6-dev.559+50ac1c17";
|
|
7
7
|
var license = "MIT";
|
|
8
8
|
var exports$1 = { ".": "./src/mod.ts" };
|
|
9
9
|
var description = "Runtime library for @fedify/vocab";
|
|
@@ -2,7 +2,7 @@ import process from "node:process";
|
|
|
2
2
|
|
|
3
3
|
//#region deno.json
|
|
4
4
|
var name = "@fedify/vocab-runtime";
|
|
5
|
-
var version = "2.0.
|
|
5
|
+
var version = "2.0.6-dev.559+50ac1c17";
|
|
6
6
|
var license = "MIT";
|
|
7
7
|
var exports = { ".": "./src/mod.ts" };
|
|
8
8
|
var description = "Runtime library for @fedify/vocab";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_request = require('./request-
|
|
2
|
+
const require_request = require('./request-BsFPcF-g.cjs');
|
|
3
3
|
const node_assert = require_chunk.__toESM(require("node:assert"));
|
|
4
4
|
const node_test = require_chunk.__toESM(require("node:test"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
package/package.json
CHANGED
package/src/contexts.ts
CHANGED
|
@@ -4314,6 +4314,44 @@ const preloadedContexts: Record<string, unknown> = {
|
|
|
4314
4314
|
},
|
|
4315
4315
|
},
|
|
4316
4316
|
},
|
|
4317
|
+
|
|
4318
|
+
// Mastodon's "toot:" namespace. The URL http://joinmastodon.org/ns has
|
|
4319
|
+
// *never* served a real JSON-LD context document—Mastodon has always inlined
|
|
4320
|
+
// these term definitions directly in every outgoing @context array. However,
|
|
4321
|
+
// some ActivityPub implementations (e.g., Bonfire) put the bare URL in their
|
|
4322
|
+
// @context, which causes JSON-LD processors to try to dereference it and fail
|
|
4323
|
+
// with a 404. We ship a built-in copy here so that Fedify can parse such
|
|
4324
|
+
// documents without a network round-trip to a URL that will never resolve.
|
|
4325
|
+
// See: https://github.com/mastodon/joinmastodon/issues/148
|
|
4326
|
+
// https://github.com/fedify-dev/fedify/issues/630
|
|
4327
|
+
"http://joinmastodon.org/ns": {
|
|
4328
|
+
"@context": {
|
|
4329
|
+
"toot": "http://joinmastodon.org/ns#",
|
|
4330
|
+
"Emoji": "toot:Emoji",
|
|
4331
|
+
"featured": {
|
|
4332
|
+
"@id": "toot:featured",
|
|
4333
|
+
"@type": "@id",
|
|
4334
|
+
},
|
|
4335
|
+
"featuredTags": {
|
|
4336
|
+
"@id": "toot:featuredTags",
|
|
4337
|
+
"@type": "@id",
|
|
4338
|
+
},
|
|
4339
|
+
"focalPoint": {
|
|
4340
|
+
"@container": "@list",
|
|
4341
|
+
"@id": "toot:focalPoint",
|
|
4342
|
+
},
|
|
4343
|
+
"blurhash": "toot:blurhash",
|
|
4344
|
+
"discoverable": "toot:discoverable",
|
|
4345
|
+
"indexable": "toot:indexable",
|
|
4346
|
+
"memorial": "toot:memorial",
|
|
4347
|
+
"votersCount": "toot:votersCount",
|
|
4348
|
+
"suspended": "toot:suspended",
|
|
4349
|
+
"attributionDomains": {
|
|
4350
|
+
"@id": "toot:attributionDomains",
|
|
4351
|
+
"@type": "@id",
|
|
4352
|
+
},
|
|
4353
|
+
},
|
|
4354
|
+
},
|
|
4317
4355
|
};
|
|
4318
4356
|
|
|
4319
4357
|
export default preloadedContexts;
|