@fedify/vocab-runtime 2.4.0-dev.1873 → 2.4.0-dev.1881
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/{docloader-BK627tQQ.d.cts → docloader-Dr8wEkif.d.cts} +1 -0
- package/dist/{docloader-BK627tQQ.d.ts → docloader-Dr8wEkif.d.ts} +1 -0
- package/dist/internal/jsonld-cache.d.cts +1 -1
- package/dist/internal/jsonld-cache.d.ts +1 -1
- package/dist/mod.cjs +113 -1
- package/dist/mod.d.cts +1 -1
- package/dist/mod.d.ts +1 -1
- package/dist/mod.js +113 -1
- package/dist/tests/decimal.test.cjs +1 -1
- package/dist/tests/decimal.test.mjs +1 -1
- package/dist/tests/{docloader-Z0l0O1GH.mjs → docloader-B_n1Fvv6.mjs} +496 -379
- package/dist/tests/{docloader-uFQgIcvu.cjs → docloader-y_0ATxGw.cjs} +501 -378
- package/dist/tests/docloader.test.cjs +11 -2
- package/dist/tests/docloader.test.mjs +11 -2
- package/dist/tests/{request-DsDLaP7D.cjs → request-CBsvHmNG.cjs} +1 -1
- package/dist/tests/{request-D5t8Xg89.mjs → request-DtrJ65EW.mjs} +1 -1
- package/dist/tests/request.test.cjs +1 -1
- package/dist/tests/request.test.mjs +1 -1
- package/package.json +1 -1
- package/src/contexts/cid-v1.json +114 -0
- package/src/contexts.ts +9 -0
- package/src/docloader.test.ts +16 -0
- package/src/docloader.ts +1 -0
package/deno.json
CHANGED
|
@@ -186,6 +186,7 @@ interface GetDocumentLoaderOptions extends DocumentLoaderFactoryOptions {
|
|
|
186
186
|
* - <https://w3id.org/security/data-integrity/v1>
|
|
187
187
|
* - <https://w3id.org/security/data-integrity/v2>
|
|
188
188
|
* - <https://www.w3.org/ns/did/v1>
|
|
189
|
+
* - <https://www.w3.org/ns/cid/v1>
|
|
189
190
|
* - <https://w3id.org/security/multikey/v1>
|
|
190
191
|
* - <https://w3id.org/fep/ef61>
|
|
191
192
|
* - <https://purl.archive.org/socialweb/webfinger>
|
|
@@ -186,6 +186,7 @@ interface GetDocumentLoaderOptions extends DocumentLoaderFactoryOptions {
|
|
|
186
186
|
* - <https://w3id.org/security/data-integrity/v1>
|
|
187
187
|
* - <https://w3id.org/security/data-integrity/v2>
|
|
188
188
|
* - <https://www.w3.org/ns/did/v1>
|
|
189
|
+
* - <https://www.w3.org/ns/cid/v1>
|
|
189
190
|
* - <https://w3id.org/security/multikey/v1>
|
|
190
191
|
* - <https://w3id.org/fep/ef61>
|
|
191
192
|
* - <https://purl.archive.org/socialweb/webfinger>
|
package/dist/mod.cjs
CHANGED
|
@@ -4305,6 +4305,117 @@ const preloadedContexts = {
|
|
|
4305
4305
|
"@type": "@id"
|
|
4306
4306
|
}
|
|
4307
4307
|
} },
|
|
4308
|
+
"https://www.w3.org/ns/cid/v1": { "@context": {
|
|
4309
|
+
"@protected": true,
|
|
4310
|
+
"id": "@id",
|
|
4311
|
+
"type": "@type",
|
|
4312
|
+
"alsoKnownAs": {
|
|
4313
|
+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
4314
|
+
"@type": "@id"
|
|
4315
|
+
},
|
|
4316
|
+
"assertionMethod": {
|
|
4317
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
4318
|
+
"@type": "@id",
|
|
4319
|
+
"@container": "@set"
|
|
4320
|
+
},
|
|
4321
|
+
"authentication": {
|
|
4322
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
4323
|
+
"@type": "@id",
|
|
4324
|
+
"@container": "@set"
|
|
4325
|
+
},
|
|
4326
|
+
"capabilityDelegation": {
|
|
4327
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
4328
|
+
"@type": "@id",
|
|
4329
|
+
"@container": "@set"
|
|
4330
|
+
},
|
|
4331
|
+
"capabilityInvocation": {
|
|
4332
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
4333
|
+
"@type": "@id",
|
|
4334
|
+
"@container": "@set"
|
|
4335
|
+
},
|
|
4336
|
+
"controller": {
|
|
4337
|
+
"@id": "https://w3id.org/security#controller",
|
|
4338
|
+
"@type": "@id"
|
|
4339
|
+
},
|
|
4340
|
+
"keyAgreement": {
|
|
4341
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
4342
|
+
"@type": "@id",
|
|
4343
|
+
"@container": "@set"
|
|
4344
|
+
},
|
|
4345
|
+
"service": {
|
|
4346
|
+
"@id": "https://www.w3.org/ns/did#service",
|
|
4347
|
+
"@type": "@id",
|
|
4348
|
+
"@context": {
|
|
4349
|
+
"@protected": true,
|
|
4350
|
+
"id": "@id",
|
|
4351
|
+
"type": "@type",
|
|
4352
|
+
"serviceEndpoint": {
|
|
4353
|
+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
|
|
4354
|
+
"@type": "@id"
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
},
|
|
4358
|
+
"verificationMethod": {
|
|
4359
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
4360
|
+
"@type": "@id"
|
|
4361
|
+
},
|
|
4362
|
+
"Multikey": {
|
|
4363
|
+
"@id": "https://w3id.org/security#Multikey",
|
|
4364
|
+
"@context": {
|
|
4365
|
+
"@protected": true,
|
|
4366
|
+
"id": "@id",
|
|
4367
|
+
"type": "@type",
|
|
4368
|
+
"controller": {
|
|
4369
|
+
"@id": "https://w3id.org/security#controller",
|
|
4370
|
+
"@type": "@id"
|
|
4371
|
+
},
|
|
4372
|
+
"revoked": {
|
|
4373
|
+
"@id": "https://w3id.org/security#revoked",
|
|
4374
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4375
|
+
},
|
|
4376
|
+
"expires": {
|
|
4377
|
+
"@id": "https://w3id.org/security#expiration",
|
|
4378
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4379
|
+
},
|
|
4380
|
+
"publicKeyMultibase": {
|
|
4381
|
+
"@id": "https://w3id.org/security#publicKeyMultibase",
|
|
4382
|
+
"@type": "https://w3id.org/security#multibase"
|
|
4383
|
+
},
|
|
4384
|
+
"secretKeyMultibase": {
|
|
4385
|
+
"@id": "https://w3id.org/security#secretKeyMultibase",
|
|
4386
|
+
"@type": "https://w3id.org/security#multibase"
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
"JsonWebKey": {
|
|
4391
|
+
"@id": "https://w3id.org/security#JsonWebKey",
|
|
4392
|
+
"@context": {
|
|
4393
|
+
"@protected": true,
|
|
4394
|
+
"id": "@id",
|
|
4395
|
+
"type": "@type",
|
|
4396
|
+
"controller": {
|
|
4397
|
+
"@id": "https://w3id.org/security#controller",
|
|
4398
|
+
"@type": "@id"
|
|
4399
|
+
},
|
|
4400
|
+
"revoked": {
|
|
4401
|
+
"@id": "https://w3id.org/security#revoked",
|
|
4402
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4403
|
+
},
|
|
4404
|
+
"expires": {
|
|
4405
|
+
"@id": "https://w3id.org/security#expiration",
|
|
4406
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4407
|
+
},
|
|
4408
|
+
"publicKeyJwk": {
|
|
4409
|
+
"@id": "https://w3id.org/security#publicKeyJwk",
|
|
4410
|
+
"@type": "@json"
|
|
4411
|
+
},
|
|
4412
|
+
"secretKeyJwk": {
|
|
4413
|
+
"@id": "https://w3id.org/security#secretKeyJwk",
|
|
4414
|
+
"@type": "@json"
|
|
4415
|
+
}
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
} },
|
|
4308
4419
|
"https://w3id.org/fep/ef61": { "@context": {
|
|
4309
4420
|
"gateways": {
|
|
4310
4421
|
"@id": "https://w3id.org/fep/ef61/gateways",
|
|
@@ -4382,7 +4493,7 @@ const preloadedContexts = {
|
|
|
4382
4493
|
//#endregion
|
|
4383
4494
|
//#region deno.json
|
|
4384
4495
|
var name = "@fedify/vocab-runtime";
|
|
4385
|
-
var version = "2.4.0-dev.
|
|
4496
|
+
var version = "2.4.0-dev.1881+17358f2e";
|
|
4386
4497
|
//#endregion
|
|
4387
4498
|
//#region src/link.ts
|
|
4388
4499
|
const parametersNeedLowerCase = ["rel", "type"];
|
|
@@ -4815,6 +4926,7 @@ async function getRemoteDocument(url, response, fetch) {
|
|
|
4815
4926
|
* - <https://w3id.org/security/data-integrity/v1>
|
|
4816
4927
|
* - <https://w3id.org/security/data-integrity/v2>
|
|
4817
4928
|
* - <https://www.w3.org/ns/did/v1>
|
|
4929
|
+
* - <https://www.w3.org/ns/cid/v1>
|
|
4818
4930
|
* - <https://w3id.org/security/multikey/v1>
|
|
4819
4931
|
* - <https://w3id.org/fep/ef61>
|
|
4820
4932
|
* - <https://purl.archive.org/socialweb/webfinger>
|
package/dist/mod.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { a as DocumentLoaderOptions, c as getDocumentLoader, d as FetchError, f as GetUserAgentOptions, h as logRequest, i as DocumentLoaderFactoryOptions, l as getRemoteDocument, m as getUserAgent, n as DocumentLoader, o as GetDocumentLoaderOptions, p as createActivityPubRequest, r as DocumentLoaderFactory, s as RemoteDocument, t as AuthenticatedDocumentLoaderFactory, u as CreateRequestOptions } from "./docloader-
|
|
2
|
+
import { a as DocumentLoaderOptions, c as getDocumentLoader, d as FetchError, f as GetUserAgentOptions, h as logRequest, i as DocumentLoaderFactoryOptions, l as getRemoteDocument, m as getUserAgent, n as DocumentLoader, o as GetDocumentLoaderOptions, p as createActivityPubRequest, r as DocumentLoaderFactory, s as RemoteDocument, t as AuthenticatedDocumentLoaderFactory, u as CreateRequestOptions } from "./docloader-Dr8wEkif.cjs";
|
|
3
3
|
import { TracerProvider } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts.d.ts
|
package/dist/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { a as DocumentLoaderOptions, c as getDocumentLoader, d as FetchError, f as GetUserAgentOptions, h as logRequest, i as DocumentLoaderFactoryOptions, l as getRemoteDocument, m as getUserAgent, n as DocumentLoader, o as GetDocumentLoaderOptions, p as createActivityPubRequest, r as DocumentLoaderFactory, s as RemoteDocument, t as AuthenticatedDocumentLoaderFactory, u as CreateRequestOptions } from "./docloader-
|
|
2
|
+
import { a as DocumentLoaderOptions, c as getDocumentLoader, d as FetchError, f as GetUserAgentOptions, h as logRequest, i as DocumentLoaderFactoryOptions, l as getRemoteDocument, m as getUserAgent, n as DocumentLoader, o as GetDocumentLoaderOptions, p as createActivityPubRequest, r as DocumentLoaderFactory, s as RemoteDocument, t as AuthenticatedDocumentLoaderFactory, u as CreateRequestOptions } from "./docloader-Dr8wEkif.js";
|
|
3
3
|
import { TracerProvider } from "@opentelemetry/api";
|
|
4
4
|
//#region src/contexts.d.ts
|
|
5
5
|
declare const preloadedContexts: Record<string, unknown>;
|
package/dist/mod.js
CHANGED
|
@@ -4301,6 +4301,117 @@ const preloadedContexts = {
|
|
|
4301
4301
|
"@type": "@id"
|
|
4302
4302
|
}
|
|
4303
4303
|
} },
|
|
4304
|
+
"https://www.w3.org/ns/cid/v1": { "@context": {
|
|
4305
|
+
"@protected": true,
|
|
4306
|
+
"id": "@id",
|
|
4307
|
+
"type": "@type",
|
|
4308
|
+
"alsoKnownAs": {
|
|
4309
|
+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
4310
|
+
"@type": "@id"
|
|
4311
|
+
},
|
|
4312
|
+
"assertionMethod": {
|
|
4313
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
4314
|
+
"@type": "@id",
|
|
4315
|
+
"@container": "@set"
|
|
4316
|
+
},
|
|
4317
|
+
"authentication": {
|
|
4318
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
4319
|
+
"@type": "@id",
|
|
4320
|
+
"@container": "@set"
|
|
4321
|
+
},
|
|
4322
|
+
"capabilityDelegation": {
|
|
4323
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
4324
|
+
"@type": "@id",
|
|
4325
|
+
"@container": "@set"
|
|
4326
|
+
},
|
|
4327
|
+
"capabilityInvocation": {
|
|
4328
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
4329
|
+
"@type": "@id",
|
|
4330
|
+
"@container": "@set"
|
|
4331
|
+
},
|
|
4332
|
+
"controller": {
|
|
4333
|
+
"@id": "https://w3id.org/security#controller",
|
|
4334
|
+
"@type": "@id"
|
|
4335
|
+
},
|
|
4336
|
+
"keyAgreement": {
|
|
4337
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
4338
|
+
"@type": "@id",
|
|
4339
|
+
"@container": "@set"
|
|
4340
|
+
},
|
|
4341
|
+
"service": {
|
|
4342
|
+
"@id": "https://www.w3.org/ns/did#service",
|
|
4343
|
+
"@type": "@id",
|
|
4344
|
+
"@context": {
|
|
4345
|
+
"@protected": true,
|
|
4346
|
+
"id": "@id",
|
|
4347
|
+
"type": "@type",
|
|
4348
|
+
"serviceEndpoint": {
|
|
4349
|
+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
|
|
4350
|
+
"@type": "@id"
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
},
|
|
4354
|
+
"verificationMethod": {
|
|
4355
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
4356
|
+
"@type": "@id"
|
|
4357
|
+
},
|
|
4358
|
+
"Multikey": {
|
|
4359
|
+
"@id": "https://w3id.org/security#Multikey",
|
|
4360
|
+
"@context": {
|
|
4361
|
+
"@protected": true,
|
|
4362
|
+
"id": "@id",
|
|
4363
|
+
"type": "@type",
|
|
4364
|
+
"controller": {
|
|
4365
|
+
"@id": "https://w3id.org/security#controller",
|
|
4366
|
+
"@type": "@id"
|
|
4367
|
+
},
|
|
4368
|
+
"revoked": {
|
|
4369
|
+
"@id": "https://w3id.org/security#revoked",
|
|
4370
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4371
|
+
},
|
|
4372
|
+
"expires": {
|
|
4373
|
+
"@id": "https://w3id.org/security#expiration",
|
|
4374
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4375
|
+
},
|
|
4376
|
+
"publicKeyMultibase": {
|
|
4377
|
+
"@id": "https://w3id.org/security#publicKeyMultibase",
|
|
4378
|
+
"@type": "https://w3id.org/security#multibase"
|
|
4379
|
+
},
|
|
4380
|
+
"secretKeyMultibase": {
|
|
4381
|
+
"@id": "https://w3id.org/security#secretKeyMultibase",
|
|
4382
|
+
"@type": "https://w3id.org/security#multibase"
|
|
4383
|
+
}
|
|
4384
|
+
}
|
|
4385
|
+
},
|
|
4386
|
+
"JsonWebKey": {
|
|
4387
|
+
"@id": "https://w3id.org/security#JsonWebKey",
|
|
4388
|
+
"@context": {
|
|
4389
|
+
"@protected": true,
|
|
4390
|
+
"id": "@id",
|
|
4391
|
+
"type": "@type",
|
|
4392
|
+
"controller": {
|
|
4393
|
+
"@id": "https://w3id.org/security#controller",
|
|
4394
|
+
"@type": "@id"
|
|
4395
|
+
},
|
|
4396
|
+
"revoked": {
|
|
4397
|
+
"@id": "https://w3id.org/security#revoked",
|
|
4398
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4399
|
+
},
|
|
4400
|
+
"expires": {
|
|
4401
|
+
"@id": "https://w3id.org/security#expiration",
|
|
4402
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
4403
|
+
},
|
|
4404
|
+
"publicKeyJwk": {
|
|
4405
|
+
"@id": "https://w3id.org/security#publicKeyJwk",
|
|
4406
|
+
"@type": "@json"
|
|
4407
|
+
},
|
|
4408
|
+
"secretKeyJwk": {
|
|
4409
|
+
"@id": "https://w3id.org/security#secretKeyJwk",
|
|
4410
|
+
"@type": "@json"
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
} },
|
|
4304
4415
|
"https://w3id.org/fep/ef61": { "@context": {
|
|
4305
4416
|
"gateways": {
|
|
4306
4417
|
"@id": "https://w3id.org/fep/ef61/gateways",
|
|
@@ -4378,7 +4489,7 @@ const preloadedContexts = {
|
|
|
4378
4489
|
//#endregion
|
|
4379
4490
|
//#region deno.json
|
|
4380
4491
|
var name = "@fedify/vocab-runtime";
|
|
4381
|
-
var version = "2.4.0-dev.
|
|
4492
|
+
var version = "2.4.0-dev.1881+17358f2e";
|
|
4382
4493
|
//#endregion
|
|
4383
4494
|
//#region src/link.ts
|
|
4384
4495
|
const parametersNeedLowerCase = ["rel", "type"];
|
|
@@ -4811,6 +4922,7 @@ async function getRemoteDocument(url, response, fetch) {
|
|
|
4811
4922
|
* - <https://w3id.org/security/data-integrity/v1>
|
|
4812
4923
|
* - <https://w3id.org/security/data-integrity/v2>
|
|
4813
4924
|
* - <https://www.w3.org/ns/did/v1>
|
|
4925
|
+
* - <https://www.w3.org/ns/cid/v1>
|
|
4814
4926
|
* - <https://w3id.org/security/multikey/v1>
|
|
4815
4927
|
* - <https://w3id.org/fep/ef61>
|
|
4816
4928
|
* - <https://purl.archive.org/socialweb/webfinger>
|