@hyperframes/inspector 0.9.59 → 0.9.61
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const NO_SANDBOX_ARGS: string[];
|
|
2
|
+
export interface ChromeSandboxHost {
|
|
3
|
+
platform: NodeJS.Platform;
|
|
4
|
+
env: NodeJS.ProcessEnv;
|
|
5
|
+
uid: number | undefined;
|
|
6
|
+
exists: (path: string) => boolean;
|
|
7
|
+
read: (path: string) => string | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** Chrome keeps its sandbox unless the host can't give it one: root, serverless, a container, or blocked user namespaces. */
|
|
10
|
+
export declare function chromeSandboxEnabled(host?: ChromeSandboxHost): boolean;
|
|
11
|
+
export declare function chromeSandboxArgs(sandbox?: boolean): string[];
|
|
12
|
+
export declare function _resetChromeSandboxFallbackForTests(): void;
|
|
13
|
+
export declare function startsWithChromeSandboxFallback(args: readonly string[], starts: (args: string[]) => boolean, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* A sandboxed Linux launch Chrome refuses at startup is retried once without the sandbox.
|
|
16
|
+
* The sandbox stays off for the process once Chrome names it as the cause, or after a second
|
|
17
|
+
* bare startup exit (a single one may be an unrelated kill). HYPERFRAMES_CHROME_SANDBOX=1 never retries.
|
|
18
|
+
*/
|
|
19
|
+
export declare function launchWithChromeSandboxFallback<T>(args: readonly string[], launch: (args: string[]) => Promise<T>, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): Promise<T>;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
-
import { type Page } from "puppeteer-core";
|
|
2
|
+
import { type Browser, type Page } from "puppeteer-core";
|
|
3
3
|
import type { InspectRequest, Snippet } from "./types.js";
|
|
4
|
+
export declare function inspectorChromeArgs(proxyArgs: readonly string[], sandbox?: boolean): string[];
|
|
5
|
+
export declare function launchInspectorChrome(options: {
|
|
6
|
+
executablePath: string;
|
|
7
|
+
userDataDir: string;
|
|
8
|
+
proxyArgs: readonly string[];
|
|
9
|
+
sandbox?: boolean;
|
|
10
|
+
}): Promise<Browser>;
|
|
4
11
|
export interface InspectorOptions {
|
|
5
12
|
executablePath?: string;
|
|
6
13
|
idleMs?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.61",
|
|
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/
|
|
47
|
-
"@hyperframes/
|
|
46
|
+
"@hyperframes/parsers": "0.9.61",
|
|
47
|
+
"@hyperframes/core": "0.9.61"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^25.0.10",
|