@hyperframes/inspector 0.9.34 → 0.9.36
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.
|
@@ -57,7 +57,14 @@ export interface BundleOptions {
|
|
|
57
57
|
staticGuard?: boolean;
|
|
58
58
|
/** Called once per build for each project file the build reads or looks for. */
|
|
59
59
|
onRead?: (filePath: string) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Project files the build never reads; a refused file keeps its authored reference. Git metadata and env files
|
|
62
|
+
* always; `"studio"` also refuses the app's records under `.hyperframes/`, as Studio's file routes do.
|
|
63
|
+
*/
|
|
64
|
+
privateFiles?: BundlePrivateFiles;
|
|
60
65
|
}
|
|
66
|
+
/** Plain data, so the option crosses to a build thread and keys a shared build. */
|
|
67
|
+
export type BundlePrivateFiles = "vcs-and-secrets" | "studio";
|
|
61
68
|
export declare function bundleToSingleHtml(projectDir: string, options?: BundleOptions): Promise<string>;
|
|
62
69
|
/**
|
|
63
70
|
* Compile-time counterpart of the runtime's injectCompositionCssVariables:
|
|
@@ -32,6 +32,13 @@ export declare function isSafePath(base: string, resolved: string): boolean;
|
|
|
32
32
|
* let the symlink-escape slip past several call sites historically.
|
|
33
33
|
*/
|
|
34
34
|
export declare function resolveWithinProject(base: string, relativePath: string): string | null;
|
|
35
|
+
/** Segments as Windows opens them: any case, no trailing dots or spaces, no `:stream` suffix. */
|
|
36
|
+
export declare function projectPathSegments(relPath: string): string[];
|
|
37
|
+
export declare function isVcsOrSecretPath(relPath: string): boolean;
|
|
38
|
+
/** Studio's private files, for a project-relative path with `/` separators: git, env, and the app's records. */
|
|
39
|
+
export declare function isStudioPrivatePath(relPath: string): boolean;
|
|
40
|
+
/** Whether `isPrivate` holds for a file under `projectDir`, spelled as given or with its links resolved. */
|
|
41
|
+
export declare function isPrivateFileUnder(projectDir: string, filePath: string, isPrivate: (relPath: string) => boolean): boolean;
|
|
35
42
|
/** The project folder is gone, renamed or deleted while open; a write must not bring it back. */
|
|
36
43
|
export declare class ProjectRootMissingError extends Error {
|
|
37
44
|
readonly root: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.36",
|
|
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/core": "0.9.
|
|
47
|
-
"@hyperframes/parsers": "0.9.
|
|
46
|
+
"@hyperframes/core": "0.9.36",
|
|
47
|
+
"@hyperframes/parsers": "0.9.36"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^25.0.10",
|