@hyperframes/inspector 0.9.58 → 0.9.59
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/server.js +11 -0
- package/dist/service.js +283 -181
- package/dist/types/core/src/cacheDir.d.ts +10 -0
- package/dist/types/core/src/safePath.d.ts +9 -15
- package/dist/types/core/src/terminalText.d.ts +2 -0
- package/dist/types/engine/src/services/publicNetwork/captureProxy.d.ts +1 -0
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -6,6 +6,17 @@ import { createServer } from "node:http";
|
|
|
6
6
|
import { readFileSync, realpathSync } from "node:fs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
9
|
+
// ../core/src/safePath.ts
|
|
10
|
+
var PROGRAM_EXTENSIONS = "exe com bat cmd ps1 psm1 vbs vbe wsf hta msi scr pif cpl lnk dll so dylib node sh bash zsh command jar appimage py rb pl php".split(
|
|
11
|
+
" "
|
|
12
|
+
);
|
|
13
|
+
var PROGRAM = new RegExp(`\\.(?:${PROGRAM_EXTENSIONS.join("|")})$`);
|
|
14
|
+
var TRUSTED_EXTENSIONS = [
|
|
15
|
+
...PROGRAM_EXTENSIONS,
|
|
16
|
+
...["json", "jsonc", "json5", "yaml", "yml", "toml", "lock", "lockb", "md"],
|
|
17
|
+
...["js", "mjs", "cjs", "jsx", "ts", "mts", "cts", "tsx"]
|
|
18
|
+
];
|
|
19
|
+
|
|
9
20
|
// src/pageServer.ts
|
|
10
21
|
function isLoopbackHost(host) {
|
|
11
22
|
if (!host) return true;
|