@veryfront/ext-content-mdx 0.1.1047 → 0.1.1048
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.js +5 -5
- package/esm/src/platform/compat/fs.d.ts +4 -0
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +34 -2
- package/esm/src/platform/compat/path/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/path/runtime.js +1 -1
- package/esm/src/platform/compat/process/command.d.ts +2 -0
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +4 -3
- package/esm/src/platform/compat/runtime.d.ts +1 -1
- package/esm/src/platform/compat/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/runtime.js +5 -2
- package/esm/src/utils/platform.d.ts.map +1 -1
- package/esm/src/utils/platform.js +2 -11
- 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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1048",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"minimumDependencyAge": {
|
|
@@ -419,9 +419,9 @@ export default {
|
|
|
419
419
|
"storybook": "npm --prefix storybook run storybook",
|
|
420
420
|
"build:storybook": "npm --prefix storybook run build-storybook",
|
|
421
421
|
"storybook:check": "deno test --no-lock --config=scripts/test.deno.json --no-check --allow-read scripts/storybook/storybook-workbench.test.ts",
|
|
422
|
-
"lint": "DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno lint --config=scripts/test.deno.json scripts/test/ scripts/build/npm-package-metadata.test.ts",
|
|
423
|
-
"fmt": "deno fmt src/ cli/ react/ && deno fmt --config=scripts/test.deno.json scripts/test/",
|
|
424
|
-
"fmt:check": "deno fmt --check src/ cli/ react/ && deno fmt --check --config=scripts/test.deno.json scripts/test/",
|
|
422
|
+
"lint": "DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno lint --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/npm-package-metadata.test.ts",
|
|
423
|
+
"fmt": "deno fmt src/ cli/ react/ && deno fmt --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts",
|
|
424
|
+
"fmt:check": "deno fmt --check src/ cli/ react/ && deno fmt --check --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts",
|
|
425
425
|
"typecheck": "deno task generate:manifests:check && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/modules/index.ts src/proxy/main.ts src/react/components/ui/index.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/agent/service/route-export.check.ts src/eval/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/runs/index.ts src/mcp/index.ts src/provider/index.ts",
|
|
426
426
|
"verify": "deno task generate:manifests:check && deno task fmt:check && deno task lint && deno task lint:style && deno task lint:chat-composability && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-test-only && deno task lint:sanitizer-baseline && deno task lint:skipped-tests && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary",
|
|
427
427
|
"verify:quick": "deno task generate:manifests:check && deno task fmt:check && deno task lint && deno task lint:style && deno task lint:chat-composability && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-test-only && deno task lint:sanitizer-baseline && deno task lint:skipped-tests && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task docs:validate && deno task typecheck",
|
|
@@ -453,7 +453,7 @@ export default {
|
|
|
453
453
|
"lint:ban-test-only": "deno run --allow-read scripts/lint/ban-test-only.ts",
|
|
454
454
|
"lint:sanitizer-baseline": "deno run --allow-read scripts/lint/check-sanitizer-baseline.ts",
|
|
455
455
|
"lint:skipped-tests": "deno run --allow-read scripts/lint/check-skipped-tests-baseline.ts",
|
|
456
|
-
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/build/generate-sbom.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/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-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-circular-baseline.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-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
|
|
456
|
+
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.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/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-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-circular-baseline.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-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
|
|
457
457
|
"test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
|
|
458
458
|
"test:node": "node ./tests/node/run-tests.mjs 'src/**/*.test.ts'",
|
|
459
459
|
"test:bun": "node ./tests/bun/run-tests.mjs src/",
|
|
@@ -14,6 +14,7 @@ export interface FileSystem {
|
|
|
14
14
|
name: string;
|
|
15
15
|
isFile: boolean;
|
|
16
16
|
isDirectory: boolean;
|
|
17
|
+
isSymlink?: boolean;
|
|
17
18
|
}>;
|
|
18
19
|
remove(path: string, options?: {
|
|
19
20
|
recursive?: boolean;
|
|
@@ -37,6 +38,8 @@ export declare function writeFile(path: string, data: Uint8Array): Promise<void>
|
|
|
37
38
|
export declare function exists(path: string): Promise<boolean>;
|
|
38
39
|
/** Read file metadata. */
|
|
39
40
|
export declare function stat(path: string): Promise<FileInfo>;
|
|
41
|
+
/** Read file metadata without following a terminal symbolic link. */
|
|
42
|
+
export declare function lstat(path: string): Promise<FileInfo>;
|
|
40
43
|
/** Create a directory. */
|
|
41
44
|
export declare function mkdir(path: string, options?: {
|
|
42
45
|
recursive?: boolean;
|
|
@@ -50,6 +53,7 @@ export declare function readDir(path: string): AsyncIterable<{
|
|
|
50
53
|
name: string;
|
|
51
54
|
isFile: boolean;
|
|
52
55
|
isDirectory: boolean;
|
|
56
|
+
isSymlink?: boolean;
|
|
53
57
|
}>;
|
|
54
58
|
/** Create temp dir. */
|
|
55
59
|
export declare function makeTempDir(options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/fs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAgBpD,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC5C,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACtC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/fs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAgBpD,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,IAAI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,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAE1E;AAED,+BAA+B;AAC/B,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/D;AAED,wBAAsB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzE;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAO5D;AAWD,oCAAoC;AACpC,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAWvD;AAED,yCAAyC;AACzC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI5D"}
|
|
@@ -99,7 +99,12 @@ class NodeFileSystem {
|
|
|
99
99
|
await this.ensureInitialized();
|
|
100
100
|
const entries = await this.getFs().readdir(path, { withFileTypes: true });
|
|
101
101
|
for (const entry of entries) {
|
|
102
|
-
yield {
|
|
102
|
+
yield {
|
|
103
|
+
name: entry.name,
|
|
104
|
+
isFile: entry.isFile(),
|
|
105
|
+
isDirectory: entry.isDirectory(),
|
|
106
|
+
isSymlink: entry.isSymbolicLink(),
|
|
107
|
+
};
|
|
103
108
|
}
|
|
104
109
|
}
|
|
105
110
|
async remove(path, options) {
|
|
@@ -164,7 +169,12 @@ class DenoFileSystem {
|
|
|
164
169
|
}
|
|
165
170
|
async *readDir(path) {
|
|
166
171
|
for await (const entry of denoGlobal().readDir(path)) {
|
|
167
|
-
yield {
|
|
172
|
+
yield {
|
|
173
|
+
name: entry.name,
|
|
174
|
+
isFile: entry.isFile,
|
|
175
|
+
isDirectory: entry.isDirectory,
|
|
176
|
+
isSymlink: entry.isSymlink,
|
|
177
|
+
};
|
|
168
178
|
}
|
|
169
179
|
}
|
|
170
180
|
async remove(path, options) {
|
|
@@ -215,6 +225,28 @@ export function exists(path) {
|
|
|
215
225
|
export function stat(path) {
|
|
216
226
|
return getFs().stat(path);
|
|
217
227
|
}
|
|
228
|
+
/** Read file metadata without following a terminal symbolic link. */
|
|
229
|
+
export async function lstat(path) {
|
|
230
|
+
if (isDeno) {
|
|
231
|
+
const info = await denoGlobal().lstat(path);
|
|
232
|
+
return {
|
|
233
|
+
isFile: info.isFile,
|
|
234
|
+
isDirectory: info.isDirectory,
|
|
235
|
+
isSymlink: info.isSymlink,
|
|
236
|
+
size: info.size,
|
|
237
|
+
mtime: info.mtime,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
const fs = await import("node:fs/promises");
|
|
241
|
+
const info = await fs.lstat(path);
|
|
242
|
+
return {
|
|
243
|
+
isFile: info.isFile(),
|
|
244
|
+
isDirectory: info.isDirectory(),
|
|
245
|
+
isSymlink: info.isSymbolicLink(),
|
|
246
|
+
size: info.size,
|
|
247
|
+
mtime: info.mtime,
|
|
248
|
+
};
|
|
249
|
+
}
|
|
218
250
|
/** Create a directory. */
|
|
219
251
|
export function mkdir(path, options) {
|
|
220
252
|
return getFs().mkdir(path, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/path/runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,eAAO,MAAM,MAAM,SAAsC,CAAC;AAE1D,QAAA,IAAI,QAAQ,EAAE,cAAc,GAAG,IAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/path/runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,eAAO,MAAM,MAAM,SAAsC,CAAC;AAE1D,QAAA,IAAI,QAAQ,EAAE,cAAc,GAAG,IAAW,CAAC;AAe3C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAO,MAAM,GAAG,QAAuB,CAAC;AACxC,eAAO,MAAM,SAAS,QAA6B,CAAC;AACpD,eAAO,MAAM,WAAW,SAAoB,CAAC"}
|
|
@@ -5,7 +5,7 @@ export const isDeno = typeof dntShim.Deno !== "undefined";
|
|
|
5
5
|
let nodePath = null;
|
|
6
6
|
if (hasNodeApis) {
|
|
7
7
|
try {
|
|
8
|
-
const nodeRequire =
|
|
8
|
+
const nodeRequire = dntShim.dntGlobalThis.require;
|
|
9
9
|
if (nodeRequire) {
|
|
10
10
|
nodePath = nodeRequire("node:path");
|
|
11
11
|
}
|
|
@@ -8,6 +8,8 @@ export interface CommandOptions {
|
|
|
8
8
|
args?: string[];
|
|
9
9
|
cwd?: string;
|
|
10
10
|
env?: Record<string, string>;
|
|
11
|
+
/** Start from an empty environment before applying `env`. */
|
|
12
|
+
clearEnv?: boolean;
|
|
11
13
|
/** Capture stdout/stderr to return in result */
|
|
12
14
|
capture?: boolean;
|
|
13
15
|
/** Inherit stdio from parent process (shows output in terminal) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/process/command.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6ED;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/process/command.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6ED;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,CAoMxB"}
|
|
@@ -75,7 +75,7 @@ async function readStreamToString(stream) {
|
|
|
75
75
|
* @param options.shell - Use shell to run command (needed for .cmd on Windows)
|
|
76
76
|
*/
|
|
77
77
|
export async function runCommand(cmd, options = {}) {
|
|
78
|
-
const { args = [], cwd: cmdCwd, env: cmdEnv, capture = false, inherit = false, shell = false, timeoutMs, } = options;
|
|
78
|
+
const { args = [], cwd: cmdCwd, env: cmdEnv, clearEnv = false, capture = false, inherit = false, shell = false, timeoutMs, } = options;
|
|
79
79
|
const effectiveTimeoutMs = timeoutMs && timeoutMs > 0 ? Math.floor(timeoutMs) : undefined;
|
|
80
80
|
// Determine stdio mode: inherit > capture > null
|
|
81
81
|
const stdioMode = inherit ? "inherit" : capture ? "piped" : "null";
|
|
@@ -85,6 +85,7 @@ export async function runCommand(cmd, options = {}) {
|
|
|
85
85
|
args,
|
|
86
86
|
cwd: cmdCwd,
|
|
87
87
|
env: cmdEnv,
|
|
88
|
+
clearEnv,
|
|
88
89
|
stdin: inherit ? "inherit" : "null",
|
|
89
90
|
stdout: stdioMode,
|
|
90
91
|
stderr: stdioMode,
|
|
@@ -125,7 +126,7 @@ export async function runCommand(cmd, options = {}) {
|
|
|
125
126
|
const proc = bunGlobal.Bun.spawn({
|
|
126
127
|
cmd: bunCmd,
|
|
127
128
|
cwd: cmdCwd,
|
|
128
|
-
env: cmdEnv,
|
|
129
|
+
env: clearEnv ? cmdEnv ?? {} : cmdEnv,
|
|
129
130
|
stdout: bunStdio,
|
|
130
131
|
stderr: bunStdio,
|
|
131
132
|
});
|
|
@@ -157,7 +158,7 @@ export async function runCommand(cmd, options = {}) {
|
|
|
157
158
|
return await new Promise((resolve) => {
|
|
158
159
|
const child = spawn(cmd, args, {
|
|
159
160
|
cwd: cmdCwd,
|
|
160
|
-
env: cmdEnv ? { ...process.env, ...cmdEnv } : undefined,
|
|
161
|
+
env: clearEnv ? cmdEnv ?? {} : cmdEnv ? { ...process.env, ...cmdEnv } : undefined,
|
|
161
162
|
stdio: nodeStdio,
|
|
162
163
|
shell,
|
|
163
164
|
});
|
|
@@ -5,7 +5,7 @@ export declare function getDenoRuntime(): typeof dntShim.Deno | undefined;
|
|
|
5
5
|
* Detects by binary name: "deno" or "deno.exe" = standard runtime, anything else = compiled.
|
|
6
6
|
* @internal Exported for testing only.
|
|
7
7
|
*/
|
|
8
|
-
export declare function testDenoCompiledDetection(execPath: string): boolean;
|
|
8
|
+
export declare function testDenoCompiledDetection(execPath: string, standalone?: boolean): boolean;
|
|
9
9
|
/** True if running in Bun runtime (check first since Bun has process.versions.node) */
|
|
10
10
|
export declare const isBun: boolean;
|
|
11
11
|
/** True if running in Node.js runtime (has process.versions.node, not Bun, not shimmed Deno) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAelD,wBAAgB,cAAc,IAAI,OAAO,OAAO,CAAC,IAAI,GAAG,SAAS,CAWhE;AAMD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/platform/compat/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAelD,wBAAgB,cAAc,IAAI,OAAO,OAAO,CAAC,IAAI,GAAG,SAAS,CAWhE;AAMD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAQzF;AAuBD,uFAAuF;AACvF,eAAO,MAAM,KAAK,EAAE,OAAwB,CAAC;AAE7C,gGAAgG;AAChG,eAAO,MAAM,MAAM,EAAE,OAAoC,CAAC;AAE1D,0DAA0D;AAC1D,eAAO,MAAM,MAAM,EAAE,OAA4C,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,OAA0C,CAAC;AAExE,oDAAoD;AACpD,eAAO,MAAM,YAAY,EAAE,OAAgC,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAEvC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAK7C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C"}
|
|
@@ -24,7 +24,9 @@ function hasRealDeno() {
|
|
|
24
24
|
* Detects by binary name: "deno" or "deno.exe" = standard runtime, anything else = compiled.
|
|
25
25
|
* @internal Exported for testing only.
|
|
26
26
|
*/
|
|
27
|
-
export function testDenoCompiledDetection(execPath) {
|
|
27
|
+
export function testDenoCompiledDetection(execPath, standalone) {
|
|
28
|
+
if (standalone !== undefined)
|
|
29
|
+
return standalone;
|
|
28
30
|
if (!execPath)
|
|
29
31
|
return false;
|
|
30
32
|
const binaryName = execPath.split(/[/\\]/).pop()?.toLowerCase();
|
|
@@ -38,7 +40,8 @@ function isDenoCompiledBinary() {
|
|
|
38
40
|
if (!deno)
|
|
39
41
|
return false;
|
|
40
42
|
try {
|
|
41
|
-
|
|
43
|
+
const standalone = Reflect.get(deno.build, "standalone");
|
|
44
|
+
return testDenoCompiledDetection(deno.execPath(), typeof standalone === "boolean" ? standalone : undefined);
|
|
42
45
|
}
|
|
43
46
|
catch (_) {
|
|
44
47
|
/* expected: Deno.execPath() may not be available in all environments */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../src/src/utils/platform.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../src/src/utils/platform.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Platform detection utilities
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { execPath } from "../platform/compat/process.js";
|
|
4
|
+
import { isDenoCompiled } from "../platform/compat/runtime.js";
|
|
6
5
|
/**
|
|
7
6
|
* Detect if the code is running in a compiled Deno binary
|
|
8
7
|
* @returns true if running in a compiled binary, false otherwise
|
|
9
8
|
*/
|
|
10
9
|
export function isCompiledBinary() {
|
|
11
|
-
|
|
12
|
-
return false;
|
|
13
|
-
try {
|
|
14
|
-
return execPath().includes("veryfront");
|
|
15
|
-
}
|
|
16
|
-
catch (_) {
|
|
17
|
-
/* expected: execPath may not be available on all platforms */
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
10
|
+
return isDenoCompiled;
|
|
20
11
|
}
|
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.1048",
|
|
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.1048"
|
|
71
71
|
},
|
|
72
72
|
"type": "module",
|
|
73
73
|
"types": "./esm/extensions/ext-content-mdx/src/index.d.ts",
|