@fedify/vocab-tools 2.5.0-dev.2710 → 2.5.0-dev.2726
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/dist/mod.cjs +17 -1
- package/dist/mod.js +17 -1
- package/package.json +2 -2
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.5.0-dev.
|
|
11
|
+
var version = "2.5.0-dev.2726+da549263";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/type.ts
|
|
14
14
|
const HEURISTICS_CONTEXTS = [
|
|
@@ -3050,6 +3050,13 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3050
3050
|
tracerProvider?: TracerProvider,
|
|
3051
3051
|
crossOrigin?: "ignore" | "throw" | "trust";
|
|
3052
3052
|
gateways?: readonly (string | URL)[];
|
|
3053
|
+
/**
|
|
3054
|
+
* Whether to fetch referenced objects. Defaults to \`true\`.
|
|
3055
|
+
* If \`false\`, returns only embedded or cached objects accepted
|
|
3056
|
+
* by existing trust checks, or \`null\` when fetching is required.
|
|
3057
|
+
* @since 2.5.0
|
|
3058
|
+
*/
|
|
3059
|
+
dereference?: boolean;
|
|
3053
3060
|
verifyPortableObject?: PortableObjectVerifier;
|
|
3054
3061
|
/**
|
|
3055
3062
|
* Whether objects that this call newly fetches use the
|
|
@@ -3100,6 +3107,7 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3100
3107
|
}
|
|
3101
3108
|
}
|
|
3102
3109
|
if (v instanceof URL) {
|
|
3110
|
+
if (options.dereference === false) return null;
|
|
3103
3111
|
const fetched =
|
|
3104
3112
|
await this.#fetch${(0, es_toolkit.pascalCase)(property.singularName)}(v, options);
|
|
3105
3113
|
if (fetched == null) return null;
|
|
@@ -3175,6 +3183,13 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3175
3183
|
tracerProvider?: TracerProvider,
|
|
3176
3184
|
crossOrigin?: "ignore" | "throw" | "trust";
|
|
3177
3185
|
gateways?: readonly (string | URL)[];
|
|
3186
|
+
/**
|
|
3187
|
+
* Whether to fetch referenced objects. Defaults to \`true\`.
|
|
3188
|
+
* If \`false\`, yields only embedded or cached objects accepted
|
|
3189
|
+
* by existing trust checks, skipping values that require fetching.
|
|
3190
|
+
* @since 2.5.0
|
|
3191
|
+
*/
|
|
3192
|
+
dereference?: boolean;
|
|
3178
3193
|
verifyPortableObject?: PortableObjectVerifier;
|
|
3179
3194
|
/**
|
|
3180
3195
|
* Whether objects that this call newly fetches use the
|
|
@@ -3226,6 +3241,7 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3226
3241
|
}
|
|
3227
3242
|
}
|
|
3228
3243
|
if (v instanceof URL) {
|
|
3244
|
+
if (options.dereference === false) continue;
|
|
3229
3245
|
const fetched =
|
|
3230
3246
|
await this.#fetch${(0, es_toolkit.pascalCase)(property.singularName)}(v, options);
|
|
3231
3247
|
if (fetched == null) continue;
|
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.5.0-dev.
|
|
10
|
+
var version = "2.5.0-dev.2726+da549263";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/type.ts
|
|
13
13
|
const HEURISTICS_CONTEXTS = [
|
|
@@ -3049,6 +3049,13 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3049
3049
|
tracerProvider?: TracerProvider,
|
|
3050
3050
|
crossOrigin?: "ignore" | "throw" | "trust";
|
|
3051
3051
|
gateways?: readonly (string | URL)[];
|
|
3052
|
+
/**
|
|
3053
|
+
* Whether to fetch referenced objects. Defaults to \`true\`.
|
|
3054
|
+
* If \`false\`, returns only embedded or cached objects accepted
|
|
3055
|
+
* by existing trust checks, or \`null\` when fetching is required.
|
|
3056
|
+
* @since 2.5.0
|
|
3057
|
+
*/
|
|
3058
|
+
dereference?: boolean;
|
|
3052
3059
|
verifyPortableObject?: PortableObjectVerifier;
|
|
3053
3060
|
/**
|
|
3054
3061
|
* Whether objects that this call newly fetches use the
|
|
@@ -3099,6 +3106,7 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3099
3106
|
}
|
|
3100
3107
|
}
|
|
3101
3108
|
if (v instanceof URL) {
|
|
3109
|
+
if (options.dereference === false) return null;
|
|
3102
3110
|
const fetched =
|
|
3103
3111
|
await this.#fetch${pascalCase(property.singularName)}(v, options);
|
|
3104
3112
|
if (fetched == null) return null;
|
|
@@ -3174,6 +3182,13 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3174
3182
|
tracerProvider?: TracerProvider,
|
|
3175
3183
|
crossOrigin?: "ignore" | "throw" | "trust";
|
|
3176
3184
|
gateways?: readonly (string | URL)[];
|
|
3185
|
+
/**
|
|
3186
|
+
* Whether to fetch referenced objects. Defaults to \`true\`.
|
|
3187
|
+
* If \`false\`, yields only embedded or cached objects accepted
|
|
3188
|
+
* by existing trust checks, skipping values that require fetching.
|
|
3189
|
+
* @since 2.5.0
|
|
3190
|
+
*/
|
|
3191
|
+
dereference?: boolean;
|
|
3177
3192
|
verifyPortableObject?: PortableObjectVerifier;
|
|
3178
3193
|
/**
|
|
3179
3194
|
* Whether objects that this call newly fetches use the
|
|
@@ -3225,6 +3240,7 @@ async function* generateProperty(type, property, types, moduleVarNames) {
|
|
|
3225
3240
|
}
|
|
3226
3241
|
}
|
|
3227
3242
|
if (v instanceof URL) {
|
|
3243
|
+
if (options.dereference === false) continue;
|
|
3228
3244
|
const fetched =
|
|
3229
3245
|
await this.#fetch${pascalCase(property.singularName)}(v, options);
|
|
3230
3246
|
if (fetched == null) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/vocab-tools",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2726+da549263",
|
|
4
4
|
"description": "Code generator for Activity Vocabulary APIs",
|
|
5
5
|
"homepage": "https://fedify.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@types/node": "^24.12.2",
|
|
69
69
|
"tsdown": "^0.22.0",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
|
-
"@fedify/vocab-runtime": "^2.5.0-dev.
|
|
71
|
+
"@fedify/vocab-runtime": "^2.5.0-dev.2726+da549263"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@cfworker/json-schema": "^4.1.1",
|