@hyperframes/inspector 0.9.90 → 0.9.92
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/service.js +12 -8
- package/dist/types/core/src/compiler/htmlDocument.d.ts +1 -0
- package/dist/types/core/src/compositionSource.d.ts +2 -0
- package/dist/types/core/src/safePath.d.ts +5 -1
- package/dist/types/core/src/studioPreviewMark.d.ts +1 -0
- package/dist/types/engine/src/services/publicNetwork/publicNetwork.d.ts +2 -1
- package/package.json +3 -3
|
@@ -37,5 +37,6 @@ export declare function insertRuntimeTag(html: string, tag: string, atHeadStart?
|
|
|
37
37
|
* top of the document, for fragments that carry neither.
|
|
38
38
|
*/
|
|
39
39
|
export declare function injectTagsAtHeadStart(html: string, tags: string): string;
|
|
40
|
+
export declare function headContentStart(html: string): number;
|
|
40
41
|
export declare function injectScriptsAtHeadStart(html: string, scripts: readonly string[]): string;
|
|
41
42
|
export declare function injectScriptsIntoHtml(html: string, headScripts: readonly string[], bodyScripts: readonly string[], stripEmbeddedRuntime?: boolean): string;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const COMPOSITION_SRC_ATTR = "data-composition-src";
|
|
2
2
|
export declare const CODE_LOADING_ATTRS: ReadonlySet<string>;
|
|
3
|
+
export declare const SOURCE_HOST_ATTRS: readonly ["data-composition-file", "data-composition-src"];
|
|
4
|
+
export declare const COMPOSITION_ROOT_ATTRS: readonly ["data-composition-id", "data-hf-original-composition-id"];
|
|
@@ -62,5 +62,9 @@ export declare function realFilePath(filePath: string): string;
|
|
|
62
62
|
export type EntryKind = "file" | "folder";
|
|
63
63
|
/** A script only Node runs, whatever folder holds it. */
|
|
64
64
|
export declare function nodeOnlyScript(relPath: string): boolean;
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* A Node-only script, or below (at any depth, past the project too) a package.json that is not the scaffold's: a
|
|
67
|
+
* `.js`/`.mjs` file, an extensionless file, or a file Node resolves before the module of its name plus an extension
|
|
68
|
+
* beside it.
|
|
69
|
+
*/
|
|
66
70
|
export declare function nodeMayRun(projectDir: string, relPath: string, kind: EntryKind): boolean;
|
|
@@ -21,6 +21,7 @@ export declare function captureStillsIn(doc: Document): boolean;
|
|
|
21
21
|
export declare const STUDIO_PREVIEW_UPCOMING_ATTR = "data-hf-upcoming";
|
|
22
22
|
export declare const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
23
23
|
export declare const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
24
|
+
export declare const STUDIO_PREVIEW_ERROR_MESSAGE = "preview-error";
|
|
24
25
|
export declare const STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
25
26
|
export declare function previewConsoleErrorText(args: readonly unknown[]): string | null;
|
|
26
27
|
export declare const refusedPreviewMessage: (status: number) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type NonPublicIPv4Class } from "../../utils/networkPolicy.js";
|
|
2
|
+
import { type UpstreamProxy } from "./upstreamProxy.js";
|
|
2
3
|
/** IPv4-only (IPv6 fails closed), on the engine's special-use list so capture and downloads agree. */
|
|
3
4
|
export declare function isPublicIPv4(address: string): boolean;
|
|
4
5
|
export type RefusedHostClass = NonPublicIPv4Class | "internal-name" | "ipv6";
|
|
@@ -11,4 +12,4 @@ export declare function assertPublicHostname(hostname: string): string;
|
|
|
11
12
|
export declare function resolvePublicAddress(hostname: string): Promise<string>;
|
|
12
13
|
export declare function systemLookupInKillableChild(host: string, timeoutMs: number): Promise<string[]>;
|
|
13
14
|
/** Pinned asset transport, or the opt-in upstream proxy; redirects are returned for caller validation. */
|
|
14
|
-
export declare function publicRequest(url: string | URL, init?: RequestInit): Promise<Response>;
|
|
15
|
+
export declare function publicRequest(url: string | URL, init?: RequestInit, upstream?: UpstreamProxy | null): Promise<Response>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.92",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"htmlparser2": "^10.1.0",
|
|
44
44
|
"postcss": "^8.5.8",
|
|
45
45
|
"puppeteer-core": "^25.8.0",
|
|
46
|
-
"@hyperframes/parsers": "0.9.
|
|
47
|
-
"@hyperframes/core": "0.9.
|
|
46
|
+
"@hyperframes/parsers": "0.9.92",
|
|
47
|
+
"@hyperframes/core": "0.9.92"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^25.0.10",
|