@fedify/vocab-tools 2.4.0-dev.2259 → 2.4.0-dev.2260
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 +12 -2
- package/dist/mod.js +12 -2
- package/package.json +1 -1
- package/src/__snapshots__/class.test.ts.deno.snap +1471 -147
- package/src/__snapshots__/class.test.ts.node.snap +1471 -147
- package/src/__snapshots__/class.test.ts.snap +1471 -147
- package/src/class.ts +1 -0
- package/src/property.ts +10 -1
package/deno.json
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -8,7 +8,7 @@ let yaml = require("yaml");
|
|
|
8
8
|
let es_toolkit = require("es-toolkit");
|
|
9
9
|
//#region deno.json
|
|
10
10
|
var name = "@fedify/vocab-tools";
|
|
11
|
-
var version = "2.4.0-dev.
|
|
11
|
+
var version = "2.4.0-dev.2260+42356e7d";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/type.ts
|
|
14
14
|
const HEURISTICS_CONTEXTS = [
|
|
@@ -1756,7 +1756,16 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
1756
1756
|
span.end();
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
|
-
if (isPortableIri(url))
|
|
1759
|
+
if (isPortableIri(url)) {
|
|
1760
|
+
// A reference in a portable actor's own document, e.g., its outbox,
|
|
1761
|
+
// has no location hints, so the actor's gateways are used instead:
|
|
1762
|
+
return await dereferencePortable(
|
|
1763
|
+
url,
|
|
1764
|
+
options.gateways == null
|
|
1765
|
+
? { inferredGateways: getReferrerGateways(this, url) }
|
|
1766
|
+
: {},
|
|
1767
|
+
);
|
|
1768
|
+
}
|
|
1760
1769
|
const lookupUrl = formatIri(url);
|
|
1761
1770
|
const portableMode = isPortableMode(this, options);
|
|
1762
1771
|
if (portableMode) {
|
|
@@ -2294,6 +2303,7 @@ const PORTABLE_DEREFERENCE_IMPORTS = [
|
|
|
2294
2303
|
"createSnapshotContextLoader",
|
|
2295
2304
|
"dereferencePortableIri",
|
|
2296
2305
|
"getPortableResponseClaim",
|
|
2306
|
+
"getReferrerGateways",
|
|
2297
2307
|
"isPortableIri",
|
|
2298
2308
|
"isPortableMode",
|
|
2299
2309
|
"isUnsecuredPortableObject",
|
package/dist/mod.js
CHANGED
|
@@ -7,7 +7,7 @@ import { parse } from "yaml";
|
|
|
7
7
|
import { pascalCase } from "es-toolkit";
|
|
8
8
|
//#region deno.json
|
|
9
9
|
var name = "@fedify/vocab-tools";
|
|
10
|
-
var version = "2.4.0-dev.
|
|
10
|
+
var version = "2.4.0-dev.2260+42356e7d";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/type.ts
|
|
13
13
|
const HEURISTICS_CONTEXTS = [
|
|
@@ -1755,7 +1755,16 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
1755
1755
|
span.end();
|
|
1756
1756
|
}
|
|
1757
1757
|
};
|
|
1758
|
-
if (isPortableIri(url))
|
|
1758
|
+
if (isPortableIri(url)) {
|
|
1759
|
+
// A reference in a portable actor's own document, e.g., its outbox,
|
|
1760
|
+
// has no location hints, so the actor's gateways are used instead:
|
|
1761
|
+
return await dereferencePortable(
|
|
1762
|
+
url,
|
|
1763
|
+
options.gateways == null
|
|
1764
|
+
? { inferredGateways: getReferrerGateways(this, url) }
|
|
1765
|
+
: {},
|
|
1766
|
+
);
|
|
1767
|
+
}
|
|
1759
1768
|
const lookupUrl = formatIri(url);
|
|
1760
1769
|
const portableMode = isPortableMode(this, options);
|
|
1761
1770
|
if (portableMode) {
|
|
@@ -2293,6 +2302,7 @@ const PORTABLE_DEREFERENCE_IMPORTS = [
|
|
|
2293
2302
|
"createSnapshotContextLoader",
|
|
2294
2303
|
"dereferencePortableIri",
|
|
2295
2304
|
"getPortableResponseClaim",
|
|
2305
|
+
"getReferrerGateways",
|
|
2296
2306
|
"isPortableIri",
|
|
2297
2307
|
"isPortableMode",
|
|
2298
2308
|
"isUnsecuredPortableObject",
|