@veryfront/ext-content-mdx 0.1.1227 → 0.1.1228
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/esm/deno.d.ts +12 -2
- package/esm/deno.js +15 -5
- package/esm/src/extensions/first-party-import.js +20 -1
- package/esm/src/observability/telemetry-error.d.ts.map +1 -1
- package/esm/src/observability/telemetry-error.js +15 -3
- package/esm/src/platform/compat/std/yaml.d.ts +1 -1
- package/esm/src/platform/compat/std/yaml.js +4 -4
- package/esm/src/utils/constants/http.d.ts +8 -2
- package/esm/src/utils/constants/http.d.ts.map +1 -1
- package/esm/src/utils/constants/http.js +10 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +2 -2
package/esm/deno.d.ts
CHANGED
|
@@ -241,6 +241,7 @@ declare namespace _default {
|
|
|
241
241
|
"#veryfront/build": string;
|
|
242
242
|
"#veryfront/cache": string;
|
|
243
243
|
"#veryfront/config": string;
|
|
244
|
+
"#veryfront/config/tsconfig-paths.ts": string;
|
|
244
245
|
"#veryfront/discovery": string;
|
|
245
246
|
"#veryfront/data": string;
|
|
246
247
|
"#veryfront/errors": string;
|
|
@@ -395,6 +396,9 @@ declare namespace _default {
|
|
|
395
396
|
release: string;
|
|
396
397
|
test: string;
|
|
397
398
|
"test:unit": string;
|
|
399
|
+
"test:unit:parallel": string;
|
|
400
|
+
"test:unit:cwd": string;
|
|
401
|
+
"test:unit:cwd-exclusion": string;
|
|
398
402
|
"test:integration": string;
|
|
399
403
|
"test:integration:cli": string;
|
|
400
404
|
"test:record": string;
|
|
@@ -460,8 +464,14 @@ declare namespace _default {
|
|
|
460
464
|
"test:sentry-runtime-packages": string;
|
|
461
465
|
"test:tool-search-live": string;
|
|
462
466
|
"test:cross-runtime": string;
|
|
463
|
-
"test:node":
|
|
464
|
-
|
|
467
|
+
"test:node": {
|
|
468
|
+
command: string;
|
|
469
|
+
dependencies: string[];
|
|
470
|
+
};
|
|
471
|
+
"test:bun": {
|
|
472
|
+
command: string;
|
|
473
|
+
dependencies: string[];
|
|
474
|
+
};
|
|
465
475
|
"test:all-runtimes": string;
|
|
466
476
|
"test:e2e": string;
|
|
467
477
|
"test:e2e:playwright": string;
|
package/esm/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1228",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"minimumDependencyAge": {
|
|
@@ -311,6 +311,7 @@ export default {
|
|
|
311
311
|
"#veryfront/build": "./src/build/index.ts",
|
|
312
312
|
"#veryfront/cache": "./src/cache/index.ts",
|
|
313
313
|
"#veryfront/config": "./src/config/index.ts",
|
|
314
|
+
"#veryfront/config/tsconfig-paths.ts": "./src/config/tsconfig-paths.ts",
|
|
314
315
|
"#veryfront/discovery": "./src/discovery/index.ts",
|
|
315
316
|
"#veryfront/data": "./src/data/index.ts",
|
|
316
317
|
"#veryfront/errors": "./src/errors/index.ts",
|
|
@@ -470,7 +471,10 @@ export default {
|
|
|
470
471
|
"verify:dist": "deno task build && deno task build:npm",
|
|
471
472
|
"release": "deno run -A scripts/release.ts",
|
|
472
473
|
"test": "deno task generate && DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts,scripts' --unstable-worker-options --unstable-net",
|
|
473
|
-
"test:unit": "deno task generate &&
|
|
474
|
+
"test:unit": "deno task generate && deno task test:unit:parallel && deno task test:unit:cwd && deno task test:unit:cwd-exclusion",
|
|
475
|
+
"test:unit:parallel": "DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts*' ! -name '*.integration.test.ts*' ! -path 'src/workflow/__tests__/*' ! -path 'cli/router.test.ts' ! -path 'cli/app/operations/project-creation.test.ts' ! -path 'cli/commands/schedule/handler.test.ts' ! -path 'cli/commands/skills/validate.test.ts' ! -path 'cli/commands/webhook/handler.test.ts' ! -path 'src/platform/compat/process.test.ts' ! -path 'src/testing/cwd.test.ts' ! -path 'src/testing/cwd-exclusion-a.test.ts' ! -path 'src/testing/cwd-exclusion-b.test.ts')",
|
|
476
|
+
"test:unit:cwd": "DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --allow-all --v8-flags=--max-old-space-size=8192 --unstable-worker-options --unstable-net cli/router.test.ts cli/app/operations/project-creation.test.ts cli/commands/schedule/handler.test.ts cli/commands/skills/validate.test.ts cli/commands/webhook/handler.test.ts src/platform/compat/process.test.ts src/testing/cwd.test.ts",
|
|
477
|
+
"test:unit:cwd-exclusion": "DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 --unstable-worker-options --unstable-net src/testing/cwd-exclusion-a.test.ts src/testing/cwd-exclusion-b.test.ts",
|
|
474
478
|
"test:integration": "deno task generate && DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/testing/preload.ts --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
|
|
475
479
|
"test:integration:cli": "DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name '*.integration.test.ts')",
|
|
476
480
|
"test:record": "VCR=record deno test --no-check --allow-all $(find cli -name '*.integration.test.ts' -path '*/commands/*')",
|
|
@@ -532,12 +536,18 @@ export default {
|
|
|
532
536
|
"lint:ban-test-only": "deno run --allow-read scripts/lint/ban-test-only.ts",
|
|
533
537
|
"lint:sanitizer-baseline": "deno run --allow-read scripts/lint/check-sanitizer-baseline.ts",
|
|
534
538
|
"lint:skipped-tests": "deno run --allow-read scripts/lint/check-skipped-tests-baseline.ts",
|
|
535
|
-
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/ci/publish-npm-packages.test.ts scripts/ci/setup-deno-workflow.test.ts scripts/build/compile-binary.test.ts scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.test.ts scripts/build/generated-artifact-checks.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-extension-package-metadata.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/build/npm-runtime-helper-contract.test.ts scripts/build/prepare-framework-sources.test.ts scripts/docs/docs-coverage.test.ts scripts/docs/generate-api-reference.test.ts scripts/docs/guide-validation.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-cross-runtime-jsr.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-module-boundaries.test.ts scripts/lint/lint-config.test.ts scripts/lint/ban-test-only.test.ts scripts/lint/check-sanitizer-baseline.test.ts scripts/lint/check-skipped-tests-baseline.test.ts scripts/lint/check-test-typecheck-baseline.test.ts scripts/lint/check-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts && deno task test:tool-search-live",
|
|
539
|
+
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/ci/publish-npm-packages.test.ts scripts/ci/setup-deno-workflow.test.ts scripts/build/compile-binary.test.ts scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.test.ts scripts/build/generated-artifact-checks.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-extension-package-metadata.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/build/npm-runtime-helper-contract.test.ts scripts/build/prepare-framework-sources.test.ts scripts/docs/docs-coverage.test.ts scripts/docs/generate-api-reference.test.ts scripts/docs/guide-validation.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-cross-runtime-jsr.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-module-boundaries.test.ts scripts/lint/lint-config.test.ts scripts/lint/ban-test-only.test.ts scripts/lint/check-sanitizer-baseline.test.ts scripts/lint/check-skipped-tests-baseline.test.ts scripts/lint/check-test-typecheck-baseline.test.ts scripts/lint/check-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts scripts/test/template-runtime-e2e.test.ts && deno task test:tool-search-live",
|
|
536
540
|
"test:sentry-runtime-packages": "deno test --config=scripts/test.deno.json --no-check --no-lock --allow-read --allow-write --allow-run --allow-env=DENO_DIR,HOME,XDG_CACHE_HOME,LOCALAPPDATA,USERPROFILE scripts/build/sentry-runtime-packages.test.ts",
|
|
537
541
|
"test:tool-search-live": "VF_DISABLE_LRU_INTERVAL=1 deno test --no-check -A tests/agent/verify-tool-search-live.test.ts",
|
|
538
542
|
"test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
|
|
539
|
-
"test:node":
|
|
540
|
-
|
|
543
|
+
"test:node": {
|
|
544
|
+
"command": "node ./tests/node/run-tests.mjs 'src/**/*.test.ts' extensions/ext-bundler-esbuild/src/binary.test.ts tests/ensure-npm-links.test.mjs",
|
|
545
|
+
"dependencies": ["build:npm"]
|
|
546
|
+
},
|
|
547
|
+
"test:bun": {
|
|
548
|
+
"command": "node --test tests/bun/runner-args.test.mjs tests/bun/workspace-packages.test.mjs && node ./tests/bun/run-tests.mjs src/ tests/bun/dynamic-alias-resolution.test.ts tests/bun/npm-protocol-resolution.test.ts tests/bun/workspace-resolution.test.ts",
|
|
549
|
+
"dependencies": ["build:npm"]
|
|
550
|
+
},
|
|
541
551
|
"test:all-runtimes": "deno task test:unit && deno task test:node && deno task test:bun",
|
|
542
552
|
"test:e2e": "deno task test:e2e:playwright",
|
|
543
553
|
"test:e2e:playwright": "PW_DISABLE_TS_ESM=1 npx playwright test --config=tests/e2e/playwright.config.cjs",
|
|
@@ -197,10 +197,25 @@ function reportedMissingSpecifier(message) {
|
|
|
197
197
|
if (packageName)
|
|
198
198
|
return `${packageName}/${packageSubpath[1].slice(2)}`;
|
|
199
199
|
}
|
|
200
|
+
const bunResolveMessage = message.match(/^(?:ResolveMessage:\s+)?Cannot find module\s+["']([^"']+)["']\s+from\s+["']([^"']+)["']$/);
|
|
201
|
+
if (bunResolveMessage) {
|
|
202
|
+
const specifier = bunResolveMessage[1];
|
|
203
|
+
const importer = bunResolveMessage[2];
|
|
204
|
+
if ((specifier.startsWith("./") || specifier.startsWith("../")) &&
|
|
205
|
+
importer.startsWith("/")) {
|
|
206
|
+
try {
|
|
207
|
+
return canonicalFilePath(new URL(specifier, new URL(".", `file://${importer}`)).href);
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
return undefined;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return specifier;
|
|
214
|
+
}
|
|
200
215
|
for (const pattern of [
|
|
201
216
|
/^Cannot find module\s+["']([^"']+)["']\nRequire stack:(?:\n- [^\r\n]+)+$/,
|
|
202
217
|
/^(?:Cannot find package|Cannot find module|Module not found)\s+["']([^"']+)["'](?:(?:\s+imported from\s+.+)|\.)?$/,
|
|
203
|
-
/^Import\s+["']([^"']+)["']\s+not a dependency and not in import map(?:\s+from\s+.+)?$/,
|
|
218
|
+
/^Import\s+["']([^"']+)["']\s+not a dependency(?: and not in import map)?(?:\s+from\s+.+)?$/,
|
|
204
219
|
/^Unable to resolve\s+["']([^"']+)["'](?:\s+from\s+.+)?$/,
|
|
205
220
|
]) {
|
|
206
221
|
const match = message.match(pattern);
|
|
@@ -332,6 +347,10 @@ function errorMessage(error) {
|
|
|
332
347
|
if (error instanceof Error) {
|
|
333
348
|
return typeof error.message === "string" ? error.message : undefined;
|
|
334
349
|
}
|
|
350
|
+
if (typeof error === "object" && error !== null) {
|
|
351
|
+
const message = error.message;
|
|
352
|
+
return typeof message === "string" ? message : undefined;
|
|
353
|
+
}
|
|
335
354
|
return typeof error === "string" ? error : undefined;
|
|
336
355
|
}
|
|
337
356
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-error.d.ts","sourceRoot":"","sources":["../../../src/src/observability/telemetry-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry-error.d.ts","sourceRoot":"","sources":["../../../src/src/observability/telemetry-error.ts"],"names":[],"mappings":"AA8JA,MAAM,MAAM,uBAAuB,GAC/B,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,GACtC,SAAS,CAAC;AAUd,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAK9E;AAED,qDAAqD;AACrD,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,uBAAuB,GAC7B,uBAAuB,CAyBzB;AAED,wEAAwE;AACxE,wBAAgB,2BAA2B,CACzC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAAG,SAAS,EAC7D,UAAU,EAAE,CAAC,GAAG,CAAC,CAyClB;AA4JD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAc9D;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAwB/D"}
|
|
@@ -57,9 +57,21 @@ function readNativeErrorMessage(error) {
|
|
|
57
57
|
return "";
|
|
58
58
|
}
|
|
59
59
|
function readNativeErrorStack(error) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
if (readOwnErrorString(error, "message") === INVALID_ERROR_FIELD ||
|
|
61
|
+
readOwnErrorString(error, "name") === INVALID_ERROR_FIELD) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
const descriptor = getOwnPropertyDescriptor(error, "stack");
|
|
66
|
+
if (descriptor && hasOwn(descriptor, "value")) {
|
|
67
|
+
return typeof descriptor.value === "string" ? descriptor.value : undefined;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (_) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
// Accessor-valued runtime stacks are delegated to the compat reader, which
|
|
74
|
+
// shadows the formatter and fails closed on foreign accessors.
|
|
63
75
|
return readNativeErrorStackWithoutHooks(error);
|
|
64
76
|
}
|
|
65
77
|
function primitiveErrorMessage(error) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `jsr:@std/yaml` only resolves under Deno, so importing it from core made
|
|
5
5
|
* every Node and Bun test that transitively touched YAML unresolvable. A
|
|
6
|
-
* third-party parser cannot move into core either
|
|
6
|
+
* third-party parser cannot move into core either. Core may depend on the
|
|
7
7
|
* Deno standard library and nothing else. So core keeps the call sites and the
|
|
8
8
|
* `YamlParserProvider` contract, and the first-party `ext-yaml` extension
|
|
9
9
|
* keeps the parser.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `jsr:@std/yaml` only resolves under Deno, so importing it from core made
|
|
5
5
|
* every Node and Bun test that transitively touched YAML unresolvable. A
|
|
6
|
-
* third-party parser cannot move into core either
|
|
6
|
+
* third-party parser cannot move into core either. Core may depend on the
|
|
7
7
|
* Deno standard library and nothing else. So core keeps the call sites and the
|
|
8
8
|
* `YamlParserProvider` contract, and the first-party `ext-yaml` extension
|
|
9
9
|
* keeps the parser.
|
|
@@ -14,9 +14,9 @@ import { resolve, tryResolve } from "../../../extensions/contracts.js";
|
|
|
14
14
|
import { loadDefaultYamlParserProvider } from "../../../extensions/parser/yaml-defaults.js";
|
|
15
15
|
import { YamlParserProviderName, } from "../../../extensions/parser/yaml-parser.js";
|
|
16
16
|
/**
|
|
17
|
-
* Every framework call site for this module is synchronous
|
|
18
|
-
* extraction runs inside synchronous render and build paths
|
|
19
|
-
* extension-owned parser
|
|
17
|
+
* Every framework call site for this module is synchronous. Front matter
|
|
18
|
+
* extraction runs inside synchronous render and build paths, so the
|
|
19
|
+
* extension-owned parser must be available before `parse` is first callable.
|
|
20
20
|
* Top-level await is the same mechanism `src/agent/runtime/skill-metadata.ts`
|
|
21
21
|
* uses to load this extension's Skill parser for its own synchronous callers.
|
|
22
22
|
*/
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export { MS_PER_MINUTE, MS_PER_SECOND, SECONDS_PER_MINUTE } from "./cache.js";
|
|
2
2
|
export declare const KB_IN_BYTES = 1024;
|
|
3
|
-
/**
|
|
4
|
-
export declare const HTTP_MODULE_FETCH_TIMEOUT_MS =
|
|
3
|
+
/** HTTP module fetch timeout, including cold upstream module generation. */
|
|
4
|
+
export declare const HTTP_MODULE_FETCH_TIMEOUT_MS = 10000;
|
|
5
|
+
/** Maximum attempts for one HTTP module fetch. */
|
|
6
|
+
export declare const HTTP_MODULE_FETCH_MAX_ATTEMPTS = 3;
|
|
7
|
+
/** Linear backoff base between HTTP module fetch attempts. */
|
|
8
|
+
export declare const HTTP_MODULE_FETCH_RETRY_DELAY_MS = 100;
|
|
9
|
+
/** Maximum time consumed by all HTTP module fetch attempts and backoffs. */
|
|
10
|
+
export declare const HTTP_MODULE_FETCH_RETRY_BUDGET_MS: number;
|
|
5
11
|
export declare const HTTP_FETCH_TIMEOUT_MS = 30000; /** Default timeout for HTTP module/bundle fetch operations (30 seconds) */
|
|
6
12
|
export declare const HMR_RECONNECT_DELAY_MS = 1000;
|
|
7
13
|
export declare const HMR_RELOAD_DELAY_MS = 1000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAE9E,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/http.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export { MS_PER_MINUTE, MS_PER_SECOND, SECONDS_PER_MINUTE } from "./cache.js";
|
|
2
2
|
export const KB_IN_BYTES = 1024;
|
|
3
|
-
/**
|
|
4
|
-
export const HTTP_MODULE_FETCH_TIMEOUT_MS =
|
|
3
|
+
/** HTTP module fetch timeout, including cold upstream module generation. */
|
|
4
|
+
export const HTTP_MODULE_FETCH_TIMEOUT_MS = 10_000;
|
|
5
|
+
/** Maximum attempts for one HTTP module fetch. */
|
|
6
|
+
export const HTTP_MODULE_FETCH_MAX_ATTEMPTS = 3;
|
|
7
|
+
/** Linear backoff base between HTTP module fetch attempts. */
|
|
8
|
+
export const HTTP_MODULE_FETCH_RETRY_DELAY_MS = 100;
|
|
9
|
+
/** Maximum time consumed by all HTTP module fetch attempts and backoffs. */
|
|
10
|
+
export const HTTP_MODULE_FETCH_RETRY_BUDGET_MS = HTTP_MODULE_FETCH_TIMEOUT_MS * HTTP_MODULE_FETCH_MAX_ATTEMPTS +
|
|
11
|
+
HTTP_MODULE_FETCH_RETRY_DELAY_MS *
|
|
12
|
+
((HTTP_MODULE_FETCH_MAX_ATTEMPTS - 1) * HTTP_MODULE_FETCH_MAX_ATTEMPTS / 2);
|
|
5
13
|
export const HTTP_FETCH_TIMEOUT_MS = 30000; /** Default timeout for HTTP module/bundle fetch operations (30 seconds) */
|
|
6
14
|
export const HMR_RECONNECT_DELAY_MS = 1000;
|
|
7
15
|
export const HMR_RELOAD_DELAY_MS = 1000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-content-mdx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1228",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-content-mdx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"vfile": "6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"veryfront": "^0.1.
|
|
70
|
+
"veryfront": "^0.1.1228"
|
|
71
71
|
},
|
|
72
72
|
"type": "module",
|
|
73
73
|
"types": "./esm/extensions/ext-content-mdx/src/index.d.ts",
|