@eagleoutice/flowr - v2.16.3
    Preparing search index...

    Variable SecureModeConst

    SecureMode: {
        decompressionLimit(this: void): number | undefined;
        enable(this: void): void;
        EnvVar: "FLOWR_SECURE_MODE";
        guard(this: void, operation: SecureModeOperation, detail?: string): void;
        isEnabled(this: void): boolean;
        MaxDecompressedBytes: number;
    } = ...

    The process-wide secure mode, see the module documentation.

    Type Declaration

    • decompressionLimit: function
      • The maximum number of bytes decompressing a project file may yield, undefined (no limit) outside the secure mode.

        Parameters

        • this: void

        Returns number | undefined

    • enable: function
      • Enables the secure mode for the rest of the process's lifetime (there is no way back).

        Parameters

        • this: void

        Returns void

    • EnvVar: "FLOWR_SECURE_MODE"

      Environment variable that enables SecureMode when flowR is loaded.

    • guard: function
    • isEnabled: function
      • Whether the secure mode is enabled.

        Parameters

        • this: void

        Returns boolean

    • ReadonlyMaxDecompressedBytes: number

      In secure mode, decompressing a file of the analyzed project must not yield more than this many bytes, so a decompression bomb cannot exhaust the memory. Use SecureMode.decompressionLimit.

    security