@intuned/runtime-dev 1.3.17-ws.0 → 1.3.17
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/.babelrc +6 -0
- package/InterfaceTemplate/{utils.ts → __utils.ts} +3 -1
- package/InterfaceTemplate/index.playwright.ts +1 -1
- package/bin/intuned +0 -0
- package/bin/intuned-interface +7 -0
- package/dist/commands/api/run.js +7 -11
- package/dist/commands/auth-sessions/load.js +2 -2
- package/dist/commands/auth-sessions/run-check.js +8 -8
- package/dist/commands/auth-sessions/run-create.js +6 -6
- package/dist/commands/build.js +2 -3
- package/dist/commands/common/browserUtils.d.ts +3 -3
- package/dist/commands/common/browserUtils.js +3 -4
- package/dist/commands/common/getFirstLineNumber.test.js +1 -2
- package/dist/commands/common/projectExclusions.js +1 -1
- package/dist/commands/common/tsNodeImport.d.ts +1 -1
- package/dist/commands/common/tsNodeImport.js +10 -2
- package/dist/commands/common/utils/fileUtils.js +1 -2
- package/dist/commands/common/utils/{unixSocket.d.ts → interfaceClient.d.ts} +10 -2
- package/dist/commands/common/utils/{unixSocket.js → interfaceClient.js} +16 -5
- package/dist/commands/common/utils/template.js +1 -2
- package/dist/commands/interface/run.js +23 -49
- package/dist/commands/intuned-cli/commands/attempt_api.command.js +1 -1
- package/dist/commands/intuned-cli/commands/attempt_authsession.command.js +1 -1
- package/dist/commands/intuned-cli/commands/attempt_authsession_check.command.js +2 -2
- package/dist/commands/intuned-cli/commands/attempt_authsession_create.command.js +1 -1
- package/dist/commands/intuned-cli/commands/authsession.command.js +1 -1
- package/dist/commands/intuned-cli/commands/authsession_record.command.js +1 -1
- package/dist/commands/intuned-cli/commands/authsession_scaffold.command.d.ts +1 -0
- package/dist/commands/intuned-cli/commands/authsession_scaffold.command.js +16 -0
- package/dist/commands/intuned-cli/commands/deploy.command.js +13 -9
- package/dist/commands/intuned-cli/commands/index.d.ts +2 -2
- package/dist/commands/intuned-cli/commands/index.js +15 -15
- package/dist/commands/intuned-cli/commands/{save.command.d.ts → provision.command.d.ts} +3 -3
- package/dist/commands/intuned-cli/commands/provision.command.js +50 -0
- package/dist/commands/intuned-cli/commands/run_api.command.js +1 -1
- package/dist/commands/intuned-cli/commands/run_authsession.command.d.ts +5 -1
- package/dist/commands/intuned-cli/commands/run_authsession.command.js +2 -2
- package/dist/commands/intuned-cli/commands/run_authsession_create.command.js +1 -1
- package/dist/commands/intuned-cli/commands/run_authsession_update.command.js +2 -2
- package/dist/commands/intuned-cli/commands/run_authsession_validate.command.js +2 -2
- package/dist/commands/intuned-cli/commands/types.d.ts +5 -1
- package/dist/commands/intuned-cli/commands/types.js +7 -5
- package/dist/commands/intuned-cli/controller/__test__/api.test.js +12 -10
- package/dist/commands/intuned-cli/controller/__test__/authSession.test.js +18 -16
- package/dist/commands/intuned-cli/controller/api.d.ts +2 -2
- package/dist/commands/intuned-cli/controller/api.js +6 -3
- package/dist/commands/intuned-cli/controller/authSession.d.ts +13 -13
- package/dist/commands/intuned-cli/controller/authSession.js +31 -30
- package/dist/commands/intuned-cli/controller/build.js +1 -2
- package/dist/commands/intuned-cli/controller/deploy.js +53 -12
- package/dist/commands/intuned-cli/controller/index.js +2 -3
- package/dist/commands/intuned-cli/controller/{save.d.ts → provision.d.ts} +5 -1
- package/dist/commands/intuned-cli/controller/provision.js +299 -0
- package/dist/commands/intuned-cli/controller/scaffold.d.ts +1 -0
- package/dist/commands/intuned-cli/controller/scaffold.js +77 -0
- package/dist/commands/intuned-cli/helpers/__test__/browser.test.js +40 -2
- package/dist/commands/intuned-cli/helpers/__test__/tracing.test.js +4 -3
- package/dist/commands/intuned-cli/helpers/api.js +4 -7
- package/dist/commands/intuned-cli/helpers/auth.d.ts +4 -4
- package/dist/commands/intuned-cli/helpers/auth.js +24 -21
- package/dist/commands/intuned-cli/helpers/backend.js +12 -4
- package/dist/commands/intuned-cli/helpers/browser.d.ts +3 -4
- package/dist/commands/intuned-cli/helpers/browser.js +31 -2
- package/dist/commands/intuned-cli/helpers/context.js +2 -2
- package/dist/commands/intuned-cli/helpers/errors.d.ts +1 -1
- package/dist/commands/intuned-cli/helpers/errors.js +2 -2
- package/dist/commands/intuned-cli/helpers/intunedJson.d.ts +6 -5
- package/dist/commands/intuned-cli/helpers/prompts.d.ts +3 -0
- package/dist/commands/intuned-cli/helpers/prompts.js +71 -0
- package/dist/commands/intuned-cli/helpers/timeout.js +2 -2
- package/dist/commands/intuned-cli/helpers/traces.d.ts +1 -1
- package/dist/commands/intuned-cli/helpers/wrapper.js +14 -4
- package/dist/commands/intuned-cli/main.js +1 -2
- package/dist/commands/intuned-cli/types.d.ts +41 -12
- package/dist/commands/intuned-cli/types.js +12 -2
- package/dist/commands/ts-check.js +1 -2
- package/dist/common/backendFunctions/getAuthSessionParameters.js +1 -1
- package/dist/common/binStartupScript.js +16 -7
- package/dist/common/browserTabs.d.ts +72 -0
- package/dist/common/browserTabs.js +74 -0
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.js +2 -1
- package/dist/common/contextStorageStateHelpers.d.ts +4 -3
- package/dist/common/contextStorageStateHelpers.js +4 -1
- package/dist/common/extension/extensionsHelpers.d.ts +1 -1
- package/dist/common/extension/types.d.ts +14 -7
- package/dist/common/formatZodError.d.ts +1 -1
- package/dist/common/intunedJson.d.ts +29 -14
- package/dist/common/intunedJson.js +26 -5
- package/dist/common/jwtTokenManager.js +10 -6
- package/dist/common/launchBrowser.d.ts +3 -0
- package/dist/common/launchBrowser.js +60 -5
- package/dist/common/playwrightContext.d.ts +3 -5
- package/dist/common/playwrightContext.js +16 -12
- package/dist/common/runApi/importUsingImportFunction.d.ts +1 -3
- package/dist/common/runApi/importUsingImportFunction.js +7 -7
- package/dist/common/runApi/index.d.ts +3 -6
- package/dist/common/runApi/index.js +26 -52
- package/dist/common/settingsSchema.d.ts +49 -45
- package/dist/common/settingsSchema.js +1 -2
- package/dist/common/setupContextHook.d.ts +1 -2
- package/dist/common/setupContextHook.js +2 -2
- package/dist/common/telemetry.js +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -7
- package/dist/runtime/downloadDirectory.js +2 -2
- package/dist/vendor/runtime-interface.d.ts +1 -0
- package/dist/vendor/runtime-interface.js +491 -0
- package/package.json +19 -11
- package/tsup.config.ts +12 -0
- package/WebTemplate.zip +0 -0
- package/dist/commands/intuned-cli/commands/init.command.d.ts +0 -1
- package/dist/commands/intuned-cli/commands/init.command.js +0 -13
- package/dist/commands/intuned-cli/commands/save.command.js +0 -42
- package/dist/commands/intuned-cli/controller/save.js +0 -357
- package/dist/common/runApi/errors.d.ts +0 -72
- package/dist/common/runApi/errors.js +0 -169
- package/dist/common/runApi/types.d.ts +0 -830
- package/dist/common/runApi/types.js +0 -73
|
@@ -60,6 +60,7 @@ export declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
60
60
|
}>>;
|
|
61
61
|
customCaptcha: z.ZodOptional<z.ZodObject<{
|
|
62
62
|
enabled: z.ZodBoolean;
|
|
63
|
+
} & {
|
|
63
64
|
imageLocators: z.ZodArray<z.ZodString, "many">;
|
|
64
65
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
65
66
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -76,6 +77,7 @@ export declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
76
77
|
}>>;
|
|
77
78
|
text: z.ZodOptional<z.ZodObject<{
|
|
78
79
|
enabled: z.ZodBoolean;
|
|
80
|
+
} & {
|
|
79
81
|
labelLocators: z.ZodArray<z.ZodString, "many">;
|
|
80
82
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
81
83
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -114,26 +116,26 @@ export declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
114
116
|
maxRetries: number;
|
|
115
117
|
timeout: number;
|
|
116
118
|
};
|
|
117
|
-
port?: number | undefined;
|
|
118
119
|
cloudflare?: {
|
|
119
120
|
enabled: boolean;
|
|
120
121
|
} | undefined;
|
|
121
|
-
|
|
122
|
+
funcaptcha?: {
|
|
122
123
|
enabled: boolean;
|
|
123
124
|
} | undefined;
|
|
124
|
-
|
|
125
|
+
geetest?: {
|
|
125
126
|
enabled: boolean;
|
|
126
127
|
} | undefined;
|
|
127
|
-
|
|
128
|
+
hcaptcha?: {
|
|
128
129
|
enabled: boolean;
|
|
129
130
|
} | undefined;
|
|
130
|
-
|
|
131
|
+
port?: number | undefined;
|
|
132
|
+
googleRecaptchaV2?: {
|
|
131
133
|
enabled: boolean;
|
|
132
134
|
} | undefined;
|
|
133
|
-
|
|
135
|
+
googleRecaptchaV3?: {
|
|
134
136
|
enabled: boolean;
|
|
135
137
|
} | undefined;
|
|
136
|
-
|
|
138
|
+
awscaptcha?: {
|
|
137
139
|
enabled: boolean;
|
|
138
140
|
} | undefined;
|
|
139
141
|
lemin?: {
|
|
@@ -152,27 +154,27 @@ export declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
152
154
|
labelLocators: string[];
|
|
153
155
|
} | undefined;
|
|
154
156
|
}, {
|
|
155
|
-
enabled?: boolean | undefined;
|
|
156
|
-
port?: number | undefined;
|
|
157
157
|
cloudflare?: {
|
|
158
158
|
enabled: boolean;
|
|
159
159
|
} | undefined;
|
|
160
|
-
|
|
160
|
+
funcaptcha?: {
|
|
161
161
|
enabled: boolean;
|
|
162
162
|
} | undefined;
|
|
163
|
-
|
|
163
|
+
geetest?: {
|
|
164
164
|
enabled: boolean;
|
|
165
165
|
} | undefined;
|
|
166
|
-
|
|
166
|
+
hcaptcha?: {
|
|
167
167
|
enabled: boolean;
|
|
168
168
|
} | undefined;
|
|
169
|
-
|
|
169
|
+
enabled?: boolean | undefined;
|
|
170
|
+
port?: number | undefined;
|
|
171
|
+
googleRecaptchaV2?: {
|
|
170
172
|
enabled: boolean;
|
|
171
173
|
} | undefined;
|
|
172
|
-
|
|
174
|
+
googleRecaptchaV3?: {
|
|
173
175
|
enabled: boolean;
|
|
174
176
|
} | undefined;
|
|
175
|
-
|
|
177
|
+
awscaptcha?: {
|
|
176
178
|
enabled: boolean;
|
|
177
179
|
} | undefined;
|
|
178
180
|
lemin?: {
|
|
@@ -286,6 +288,7 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
286
288
|
}>>;
|
|
287
289
|
customCaptcha: z.ZodOptional<z.ZodObject<{
|
|
288
290
|
enabled: z.ZodBoolean;
|
|
291
|
+
} & {
|
|
289
292
|
imageLocators: z.ZodArray<z.ZodString, "many">;
|
|
290
293
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
291
294
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -302,6 +305,7 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
302
305
|
}>>;
|
|
303
306
|
text: z.ZodOptional<z.ZodObject<{
|
|
304
307
|
enabled: z.ZodBoolean;
|
|
308
|
+
} & {
|
|
305
309
|
labelLocators: z.ZodArray<z.ZodString, "many">;
|
|
306
310
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
307
311
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -340,26 +344,26 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
340
344
|
maxRetries: number;
|
|
341
345
|
timeout: number;
|
|
342
346
|
};
|
|
343
|
-
port?: number | undefined;
|
|
344
347
|
cloudflare?: {
|
|
345
348
|
enabled: boolean;
|
|
346
349
|
} | undefined;
|
|
347
|
-
|
|
350
|
+
funcaptcha?: {
|
|
348
351
|
enabled: boolean;
|
|
349
352
|
} | undefined;
|
|
350
|
-
|
|
353
|
+
geetest?: {
|
|
351
354
|
enabled: boolean;
|
|
352
355
|
} | undefined;
|
|
353
|
-
|
|
356
|
+
hcaptcha?: {
|
|
354
357
|
enabled: boolean;
|
|
355
358
|
} | undefined;
|
|
356
|
-
|
|
359
|
+
port?: number | undefined;
|
|
360
|
+
googleRecaptchaV2?: {
|
|
357
361
|
enabled: boolean;
|
|
358
362
|
} | undefined;
|
|
359
|
-
|
|
363
|
+
googleRecaptchaV3?: {
|
|
360
364
|
enabled: boolean;
|
|
361
365
|
} | undefined;
|
|
362
|
-
|
|
366
|
+
awscaptcha?: {
|
|
363
367
|
enabled: boolean;
|
|
364
368
|
} | undefined;
|
|
365
369
|
lemin?: {
|
|
@@ -378,27 +382,27 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
378
382
|
labelLocators: string[];
|
|
379
383
|
} | undefined;
|
|
380
384
|
}, {
|
|
381
|
-
enabled?: boolean | undefined;
|
|
382
|
-
port?: number | undefined;
|
|
383
385
|
cloudflare?: {
|
|
384
386
|
enabled: boolean;
|
|
385
387
|
} | undefined;
|
|
386
|
-
|
|
388
|
+
funcaptcha?: {
|
|
387
389
|
enabled: boolean;
|
|
388
390
|
} | undefined;
|
|
389
|
-
|
|
391
|
+
geetest?: {
|
|
390
392
|
enabled: boolean;
|
|
391
393
|
} | undefined;
|
|
392
|
-
|
|
394
|
+
hcaptcha?: {
|
|
393
395
|
enabled: boolean;
|
|
394
396
|
} | undefined;
|
|
395
|
-
|
|
397
|
+
enabled?: boolean | undefined;
|
|
398
|
+
port?: number | undefined;
|
|
399
|
+
googleRecaptchaV2?: {
|
|
396
400
|
enabled: boolean;
|
|
397
401
|
} | undefined;
|
|
398
|
-
|
|
402
|
+
googleRecaptchaV3?: {
|
|
399
403
|
enabled: boolean;
|
|
400
404
|
} | undefined;
|
|
401
|
-
|
|
405
|
+
awscaptcha?: {
|
|
402
406
|
enabled: boolean;
|
|
403
407
|
} | undefined;
|
|
404
408
|
lemin?: {
|
|
@@ -438,26 +442,26 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
438
442
|
maxRetries: number;
|
|
439
443
|
timeout: number;
|
|
440
444
|
};
|
|
441
|
-
port?: number | undefined;
|
|
442
445
|
cloudflare?: {
|
|
443
446
|
enabled: boolean;
|
|
444
447
|
} | undefined;
|
|
445
|
-
|
|
448
|
+
funcaptcha?: {
|
|
446
449
|
enabled: boolean;
|
|
447
450
|
} | undefined;
|
|
448
|
-
|
|
451
|
+
geetest?: {
|
|
449
452
|
enabled: boolean;
|
|
450
453
|
} | undefined;
|
|
451
|
-
|
|
454
|
+
hcaptcha?: {
|
|
452
455
|
enabled: boolean;
|
|
453
456
|
} | undefined;
|
|
454
|
-
|
|
457
|
+
port?: number | undefined;
|
|
458
|
+
googleRecaptchaV2?: {
|
|
455
459
|
enabled: boolean;
|
|
456
460
|
} | undefined;
|
|
457
|
-
|
|
461
|
+
googleRecaptchaV3?: {
|
|
458
462
|
enabled: boolean;
|
|
459
463
|
} | undefined;
|
|
460
|
-
|
|
464
|
+
awscaptcha?: {
|
|
461
465
|
enabled: boolean;
|
|
462
466
|
} | undefined;
|
|
463
467
|
lemin?: {
|
|
@@ -484,27 +488,27 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
484
488
|
enabled: boolean;
|
|
485
489
|
} | undefined;
|
|
486
490
|
captchaSolver?: {
|
|
487
|
-
enabled?: boolean | undefined;
|
|
488
|
-
port?: number | undefined;
|
|
489
491
|
cloudflare?: {
|
|
490
492
|
enabled: boolean;
|
|
491
493
|
} | undefined;
|
|
492
|
-
|
|
494
|
+
funcaptcha?: {
|
|
493
495
|
enabled: boolean;
|
|
494
496
|
} | undefined;
|
|
495
|
-
|
|
497
|
+
geetest?: {
|
|
496
498
|
enabled: boolean;
|
|
497
499
|
} | undefined;
|
|
498
|
-
|
|
500
|
+
hcaptcha?: {
|
|
499
501
|
enabled: boolean;
|
|
500
502
|
} | undefined;
|
|
501
|
-
|
|
503
|
+
enabled?: boolean | undefined;
|
|
504
|
+
port?: number | undefined;
|
|
505
|
+
googleRecaptchaV2?: {
|
|
502
506
|
enabled: boolean;
|
|
503
507
|
} | undefined;
|
|
504
|
-
|
|
508
|
+
googleRecaptchaV3?: {
|
|
505
509
|
enabled: boolean;
|
|
506
510
|
} | undefined;
|
|
507
|
-
|
|
511
|
+
awscaptcha?: {
|
|
508
512
|
enabled: boolean;
|
|
509
513
|
} | undefined;
|
|
510
514
|
lemin?: {
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.settingsSchema = exports.captchaSolverSettingsSchema = void 0;
|
|
7
7
|
var z = _interopRequireWildcard(require("zod"));
|
|
8
|
-
function
|
|
9
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
8
|
+
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); }
|
|
10
9
|
const baseCaptchaSchema = z.object({
|
|
11
10
|
enabled: z.boolean()
|
|
12
11
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type * as playwright from "playwright";
|
|
2
|
-
import { type RunAutomationError } from "./runApi/errors";
|
|
3
2
|
import { type Err, type Ok } from "neverthrow";
|
|
4
|
-
import { type
|
|
3
|
+
import { ImportFunction, type RunAutomationError } from "@intuned/runtime-interface";
|
|
5
4
|
export type InitializeContextHookOptions = {
|
|
6
5
|
apiName: string;
|
|
7
6
|
apiParameters: any;
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.loadSetupContextHook = loadSetupContextHook;
|
|
7
|
-
var _errors = require("./runApi/errors");
|
|
8
7
|
var _neverthrow = require("neverthrow");
|
|
9
8
|
var _importUsingImportFunction = require("./runApi/importUsingImportFunction");
|
|
9
|
+
var _runtimeInterface = require("../vendor/runtime-interface");
|
|
10
10
|
const setupContextHookPath = "hooks/setupContext";
|
|
11
11
|
async function loadSetupContextHook({
|
|
12
12
|
importFunction
|
|
@@ -15,7 +15,7 @@ async function loadSetupContextHook({
|
|
|
15
15
|
path: setupContextHookPath,
|
|
16
16
|
importFunction
|
|
17
17
|
});
|
|
18
|
-
if (importedFunctionResult.isErr() && importedFunctionResult.error instanceof
|
|
18
|
+
if (importedFunctionResult.isErr() && importedFunctionResult.error instanceof _runtimeInterface.ApiNotFoundError) {
|
|
19
19
|
return (0, _neverthrow.ok)(null);
|
|
20
20
|
}
|
|
21
21
|
return importedFunctionResult;
|
package/dist/common/telemetry.js
CHANGED
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getTelemetryClient = getTelemetryClient;
|
|
7
7
|
exports.initializeAppInsights = initializeAppInsights;
|
|
8
8
|
var appInsights = _interopRequireWildcard(require("applicationinsights"));
|
|
9
|
-
function
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
|
+
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); }
|
|
11
10
|
function gracefulShutdown() {
|
|
12
11
|
console.log("Shutting down, so flushing app insights.");
|
|
13
12
|
appInsights.defaultClient.flush();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { extendPayload, extendTimeout, runInfo, RunError, getAuthSessionParameters, attemptStore, persistentStore, getAiGatewayConfig, } from "./runtime";
|
|
2
2
|
export { runWithContext, getExecutionContext, } from "./common/asyncLocalStorage";
|
|
3
3
|
export { getDownloadDirectoryPath } from "./runtime/downloadDirectory";
|
|
4
|
-
export { withPlaywrightContext } from "./common/playwrightContext";
|
|
5
4
|
export { waitForCaptchaSolve, withWaitForCaptchaSolve, onCaptchaEvent, onceCaptchaEvent, removeCaptchaEventListener, pauseCaptchaSolver, resumeCaptchaSolver, } from "./runtime/captcha";
|
package/dist/index.js
CHANGED
|
@@ -105,12 +105,6 @@ Object.defineProperty(exports, "waitForCaptchaSolve", {
|
|
|
105
105
|
return _captcha.waitForCaptchaSolve;
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
-
Object.defineProperty(exports, "withPlaywrightContext", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function () {
|
|
111
|
-
return _playwrightContext.withPlaywrightContext;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
108
|
Object.defineProperty(exports, "withWaitForCaptchaSolve", {
|
|
115
109
|
enumerable: true,
|
|
116
110
|
get: function () {
|
|
@@ -120,5 +114,4 @@ Object.defineProperty(exports, "withWaitForCaptchaSolve", {
|
|
|
120
114
|
var _runtime = require("./runtime");
|
|
121
115
|
var _asyncLocalStorage = require("./common/asyncLocalStorage");
|
|
122
116
|
var _downloadDirectory = require("./runtime/downloadDirectory");
|
|
123
|
-
var _playwrightContext = require("./common/playwrightContext");
|
|
124
117
|
var _captcha = require("./runtime/captcha");
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getDownloadDirectoryPath = getDownloadDirectoryPath;
|
|
7
|
-
var
|
|
7
|
+
var _dist = require("../../dist");
|
|
8
8
|
var _fsExtra = require("fs-extra");
|
|
9
9
|
function getDownloadDirectoryPath() {
|
|
10
|
-
const context = (0,
|
|
10
|
+
const context = (0, _dist.getExecutionContext)();
|
|
11
11
|
if (!context) {
|
|
12
12
|
throw new Error("ExecutionContext not found");
|
|
13
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@intuned/runtime-interface';
|