just-bash 2.12.6 → 2.12.7
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/bin/just-bash.js +125 -125
- package/dist/bin/shell/shell.js +124 -124
- package/dist/bundle/browser.js +327 -327
- package/dist/bundle/index.cjs +456 -456
- package/dist/bundle/index.js +111 -111
- package/dist/network/allow-list/shared.d.ts +4 -0
- package/dist/network/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -39,6 +39,10 @@ export type AdapterFactory = (options: BashOptions) => EnvAdapter | Promise<EnvA
|
|
|
39
39
|
* Utility for testing that a URL is blocked
|
|
40
40
|
*/
|
|
41
41
|
export declare function expectBlocked(env: EnvAdapter, url: string, expectedUrl?: string): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Utility for testing that a URL is blocked due to private IP
|
|
44
|
+
*/
|
|
45
|
+
export declare function expectBlockedPrivate(env: EnvAdapter, url: string, expectedUrl?: string): Promise<void>;
|
|
42
46
|
/**
|
|
43
47
|
* Utility for testing that a URL succeeds with expected mock response
|
|
44
48
|
*/
|
package/dist/network/types.d.ts
CHANGED
|
@@ -57,6 +57,10 @@ export interface NetworkConfig {
|
|
|
57
57
|
* Reject URLs with private/loopback IP addresses as hostnames.
|
|
58
58
|
* This is a URL/hostname-level check only (no DNS resolution).
|
|
59
59
|
* Useful for mitigating SSRF attacks. Default: false (opt-in).
|
|
60
|
+
*
|
|
61
|
+
* When enabled, the private IP check is enforced even when
|
|
62
|
+
* `dangerouslyAllowFullInternetAccess` is true, ensuring that
|
|
63
|
+
* internal/loopback addresses are never reachable.
|
|
60
64
|
*/
|
|
61
65
|
denyPrivateRanges?: boolean;
|
|
62
66
|
}
|
|
@@ -74,7 +78,7 @@ export interface FetchResult {
|
|
|
74
78
|
* Error thrown when a URL is not allowed
|
|
75
79
|
*/
|
|
76
80
|
export declare class NetworkAccessDeniedError extends Error {
|
|
77
|
-
constructor(url: string);
|
|
81
|
+
constructor(url: string, reason?: string);
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
84
|
* Error thrown when too many redirects occur
|