@intuned/runtime-dev 1.3.18-dev.4 → 1.3.18-dev.6
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.
|
@@ -29,7 +29,7 @@ declare function handleApiResult({ apiResult, outputFile, }: {
|
|
|
29
29
|
export declare const _handleApiResult: typeof handleApiResult;
|
|
30
30
|
declare function writeResultToFile(outputFile: string, result: any, payloadToAppend?: Payload[]): Promise<void>;
|
|
31
31
|
export declare const _writeResultToFile: typeof writeResultToFile;
|
|
32
|
-
declare function attemptApi({ apiName, inputData, auth, proxy, headless, timeout, traceId, keepBrowserOpen, cdpUrl, }: {
|
|
32
|
+
declare function attemptApi({ apiName, inputData, auth, proxy, headless, timeout, traceId, keepBrowserOpen, cdpUrl, ignoreHttpErrors, }: {
|
|
33
33
|
apiName: string;
|
|
34
34
|
inputData: object | null | undefined;
|
|
35
35
|
auth?: RunApiStorageState;
|
|
@@ -154,7 +154,8 @@ async function attemptApi({
|
|
|
154
154
|
timeout,
|
|
155
155
|
traceId,
|
|
156
156
|
keepBrowserOpen,
|
|
157
|
-
cdpUrl
|
|
157
|
+
cdpUrl,
|
|
158
|
+
ignoreHttpErrors
|
|
158
159
|
}) {
|
|
159
160
|
return await (0, _helpers.withTimeout)(async abortSignal => (0, _helpers.withCLITrace)(async tracing => {
|
|
160
161
|
const runApiResult = await (0, _runApi.runApi)({
|
|
@@ -166,7 +167,8 @@ async function attemptApi({
|
|
|
166
167
|
headless,
|
|
167
168
|
proxy,
|
|
168
169
|
keepBrowserOpen,
|
|
169
|
-
cdpUrl
|
|
170
|
+
cdpUrl,
|
|
171
|
+
ignoreHttpErrors
|
|
170
172
|
}),
|
|
171
173
|
auth: auth ? {
|
|
172
174
|
session: {
|
|
@@ -22,7 +22,6 @@ var _util = require("util");
|
|
|
22
22
|
var _neverthrow = require("neverthrow");
|
|
23
23
|
var _zod = require("zod");
|
|
24
24
|
var _intunedJson = require("./intunedJson");
|
|
25
|
-
var _env = require("./env");
|
|
26
25
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
27
26
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
28
27
|
const execAsync = (0, _util.promisify)(_child_process.exec);
|
|
@@ -100,11 +99,7 @@ async function launchChromium(options) {
|
|
|
100
99
|
let {
|
|
101
100
|
executablePath
|
|
102
101
|
} = options;
|
|
103
|
-
const
|
|
104
|
-
let ignoreHttpErrors = ignoreHttpErrorsParam;
|
|
105
|
-
if (envIgnoreHttpErrors === true && ignoreHttpErrors === undefined) {
|
|
106
|
-
ignoreHttpErrors = true;
|
|
107
|
-
}
|
|
102
|
+
const ignoreHttpErrors = await getIgnoreHttpErrorsFromConfig(ignoreHttpErrorsParam);
|
|
108
103
|
const defaultArgsToIgnore = ["--disable-extensions", "--disable-component-extensions-with-background-pages", "--disable-background-networking", "--disable-backgrounding-occluded-windows", "--disable-background-timer-throttling"];
|
|
109
104
|
const extraArgs = [];
|
|
110
105
|
const userDataDir = await createUserDirWithPreferences();
|