@odg/chemical-x 1.0.0 → 1.1.1
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/Helpers/retry.d.ts +68 -3
- package/dist/Helpers/retry.js +56 -8
- package/dist/Helpers/retry.js.map +1 -1
- package/dist/Helpers/sleep.d.ts +6 -0
- package/dist/Helpers/sleep.js +6 -0
- package/dist/Helpers/sleep.js.map +1 -1
- package/dist/crawler/@types/Browser.d.ts +10 -0
- package/dist/crawler/@types/Context.d.ts +0 -1
- package/dist/crawler/Browser.js +1 -1
- package/dist/crawler/Browser.js.map +1 -1
- package/dist/crawler/Context.js.map +1 -1
- package/dist/crawler/Handlers/BaseHandler.d.ts +81 -0
- package/dist/crawler/Handlers/BaseHandler.js +84 -0
- package/dist/crawler/Handlers/BaseHandler.js.map +1 -0
- package/dist/crawler/Handlers/index.d.ts +1 -0
- package/dist/crawler/Handlers/index.js +18 -0
- package/dist/crawler/Handlers/index.js.map +1 -0
- package/dist/crawler/Interfaces/HandlerInterface.d.ts +61 -0
- package/dist/crawler/Interfaces/HandlerInterface.js +17 -0
- package/dist/crawler/Interfaces/HandlerInterface.js.map +1 -0
- package/dist/crawler/Interfaces/PageInterface.d.ts +33 -1
- package/dist/crawler/Interfaces/index.d.ts +1 -0
- package/dist/crawler/Interfaces/index.js +1 -0
- package/dist/crawler/Interfaces/index.js.map +1 -1
- package/dist/crawler/Pages/BasePage.d.ts +45 -3
- package/dist/crawler/Pages/BasePage.js +48 -0
- package/dist/crawler/Pages/BasePage.js.map +1 -1
- package/dist/crawler/index.d.ts +1 -0
- package/dist/crawler/index.js +1 -0
- package/dist/crawler/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/FunctionType.d.ts +1 -0
- package/dist/types/PromiseSyncType.d.ts +1 -0
- package/dist/types/PromiseSyncType.js +3 -0
- package/dist/types/PromiseSyncType.js.map +1 -0
- package/package.json +3 -3
package/dist/Helpers/retry.d.ts
CHANGED
|
@@ -1,16 +1,81 @@
|
|
|
1
|
-
import { Exception } from "@odg/exception";
|
|
1
|
+
import { type Exception } from "@odg/exception";
|
|
2
2
|
import { type FunctionParameterType } from "../types/FunctionType";
|
|
3
|
+
import { type PromiseOrSyncType } from "../types/PromiseSyncType";
|
|
4
|
+
/**
|
|
5
|
+
* Retry Enum return type
|
|
6
|
+
*
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
3
9
|
export declare enum RetryAction {
|
|
10
|
+
/**
|
|
11
|
+
* Use this force retry.
|
|
12
|
+
*
|
|
13
|
+
* @memberof RetryAction
|
|
14
|
+
*/
|
|
4
15
|
Retry = "Retry",
|
|
16
|
+
/**
|
|
17
|
+
* Use this force retry error.
|
|
18
|
+
*
|
|
19
|
+
* @memberof RetryAction
|
|
20
|
+
*/
|
|
5
21
|
Throw = "Throw",
|
|
22
|
+
/**
|
|
23
|
+
* Use this to complete Retry with undefined return
|
|
24
|
+
*
|
|
25
|
+
* @memberof RetryAction
|
|
26
|
+
*/
|
|
6
27
|
Resolve = "Resolve",
|
|
28
|
+
/**
|
|
29
|
+
* To follow default behavior
|
|
30
|
+
* `times` is considered
|
|
31
|
+
*
|
|
32
|
+
* @memberof RetryAction
|
|
33
|
+
*/
|
|
7
34
|
Default = "Default"
|
|
8
35
|
}
|
|
9
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Retry options
|
|
38
|
+
*
|
|
39
|
+
* @template {any} ReturnType Function callback return
|
|
40
|
+
* @interface RetryOptionsInterface
|
|
41
|
+
* @template ReturnType
|
|
42
|
+
*/
|
|
43
|
+
interface RetryOptionsInterface<ReturnType = RetryAction> {
|
|
44
|
+
/**
|
|
45
|
+
* Number of times to retry
|
|
46
|
+
* 0 = No retry
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RetryOptionsInterface
|
|
50
|
+
*/
|
|
10
51
|
times: number;
|
|
52
|
+
/**
|
|
53
|
+
* Sleep Time in milliseconds before retry
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof RetryOptionsInterface
|
|
57
|
+
*/
|
|
11
58
|
sleep?: number;
|
|
12
|
-
|
|
59
|
+
/**
|
|
60
|
+
* Function to retry
|
|
61
|
+
*
|
|
62
|
+
* @type {FunctionParameterType<PromiseOrSyncType<ReturnType>, number>}
|
|
63
|
+
* @memberof RetryOptionsInterface
|
|
64
|
+
*/
|
|
65
|
+
callback: FunctionParameterType<PromiseOrSyncType<ReturnType>, number>;
|
|
66
|
+
/**
|
|
67
|
+
* Validate what must be done before trying again
|
|
68
|
+
*
|
|
69
|
+
* @memberof RetryOptionsInterface
|
|
70
|
+
*/
|
|
13
71
|
when?(exception: Exception, times: number): Promise<RetryAction> | RetryAction;
|
|
14
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Retry Function recursive
|
|
75
|
+
*
|
|
76
|
+
* @template {any} ReturnType
|
|
77
|
+
* @param {RetryOptionsInterface} options Options Retry
|
|
78
|
+
* @returns {Promise<ReturnType>}
|
|
79
|
+
*/
|
|
15
80
|
export declare function retry<ReturnType>(options: RetryOptionsInterface<ReturnType>): Promise<ReturnType | undefined>;
|
|
16
81
|
export {};
|
package/dist/Helpers/retry.js
CHANGED
|
@@ -3,28 +3,69 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.retry = exports.RetryAction = void 0;
|
|
4
4
|
const exception_1 = require("@odg/exception");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
+
/**
|
|
7
|
+
* Retry Enum return type
|
|
8
|
+
*
|
|
9
|
+
* @enum {string}
|
|
10
|
+
*/
|
|
6
11
|
var RetryAction;
|
|
7
12
|
(function (RetryAction) {
|
|
13
|
+
/**
|
|
14
|
+
* Use this force retry.
|
|
15
|
+
*
|
|
16
|
+
* @memberof RetryAction
|
|
17
|
+
*/
|
|
8
18
|
RetryAction["Retry"] = "Retry";
|
|
19
|
+
/**
|
|
20
|
+
* Use this force retry error.
|
|
21
|
+
*
|
|
22
|
+
* @memberof RetryAction
|
|
23
|
+
*/
|
|
9
24
|
RetryAction["Throw"] = "Throw";
|
|
25
|
+
/**
|
|
26
|
+
* Use this to complete Retry with undefined return
|
|
27
|
+
*
|
|
28
|
+
* @memberof RetryAction
|
|
29
|
+
*/
|
|
10
30
|
RetryAction["Resolve"] = "Resolve";
|
|
31
|
+
/**
|
|
32
|
+
* To follow default behavior
|
|
33
|
+
* `times` is considered
|
|
34
|
+
*
|
|
35
|
+
* @memberof RetryAction
|
|
36
|
+
*/
|
|
11
37
|
RetryAction["Default"] = "Default";
|
|
12
38
|
})(RetryAction = exports.RetryAction || (exports.RetryAction = {}));
|
|
39
|
+
async function getWhen(exception, options) {
|
|
40
|
+
var _a;
|
|
41
|
+
const exceptionParse = exception_1.UnknownException.parseOrDefault(exception, "Retry unknown Exception");
|
|
42
|
+
const when = await ((_a = options.when) === null || _a === void 0 ? void 0 : _a.call(options, exceptionParse, options.attempt));
|
|
43
|
+
const ignore = [RetryAction.Retry, RetryAction.Resolve];
|
|
44
|
+
if (when === RetryAction.Throw)
|
|
45
|
+
throw exceptionParse;
|
|
46
|
+
if (options.times <= 1 && !ignore.includes(when)) {
|
|
47
|
+
throw exceptionParse;
|
|
48
|
+
}
|
|
49
|
+
return when;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retry Function recursive
|
|
53
|
+
*
|
|
54
|
+
* @template {any} ReturnType
|
|
55
|
+
* @param {RetryOptionsInterface & { attempt: number }} options Options Retry
|
|
56
|
+
* @returns {Promise<ReturnType>}
|
|
57
|
+
*/
|
|
13
58
|
async function retryHelper(options) {
|
|
14
|
-
var _a
|
|
59
|
+
var _a;
|
|
15
60
|
try {
|
|
16
|
-
return await options.callback(options.attempt);
|
|
61
|
+
return await options.callback.call(options.callback, options.attempt);
|
|
17
62
|
}
|
|
18
63
|
catch (exception) {
|
|
19
|
-
const
|
|
20
|
-
const when = await ((_b = options.when) === null || _b === void 0 ? void 0 : _b.call(options, exceptionParse, options.attempt));
|
|
64
|
+
const when = await getWhen(exception, options);
|
|
21
65
|
if (when === RetryAction.Resolve) {
|
|
22
66
|
return;
|
|
23
67
|
}
|
|
24
|
-
|
|
25
|
-
throw exceptionParse;
|
|
26
|
-
}
|
|
27
|
-
await (0, _1.sleep)((_c = options.sleep) !== null && _c !== void 0 ? _c : 0);
|
|
68
|
+
await (0, _1.sleep)((_a = options.sleep) !== null && _a !== void 0 ? _a : 0);
|
|
28
69
|
return retryHelper({
|
|
29
70
|
...options,
|
|
30
71
|
times: options.times - 1,
|
|
@@ -32,6 +73,13 @@ async function retryHelper(options) {
|
|
|
32
73
|
});
|
|
33
74
|
}
|
|
34
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Retry Function recursive
|
|
78
|
+
*
|
|
79
|
+
* @template {any} ReturnType
|
|
80
|
+
* @param {RetryOptionsInterface} options Options Retry
|
|
81
|
+
* @returns {Promise<ReturnType>}
|
|
82
|
+
*/
|
|
35
83
|
async function retry(options) {
|
|
36
84
|
return retryHelper({
|
|
37
85
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../src/Helpers/retry.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../src/Helpers/retry.ts"],"names":[],"mappings":";;;AAAA,8CAAkE;AAKlE,wBAA0B;AAE1B;;;;GAIG;AACH,IAAY,WA8BX;AA9BD,WAAY,WAAW;IAEnB;;;;OAIG;IACH,8BAAe,CAAA;IAEf;;;;OAIG;IACH,8BAAe,CAAA;IAEf;;;;OAIG;IACH,kCAAmB,CAAA;IAEnB;;;;;OAKG;IACH,kCAAmB,CAAA;AACvB,CAAC,EA9BW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA8BtB;AA4CD,KAAK,UAAU,OAAO,CAClB,SAAkB,EAClB,OAA6D;;IAE7D,MAAM,cAAc,GAAG,4BAAgB,CAAC,cAAc,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;IAC7F,MAAM,IAAI,GAAG,MAAM,CAAA,MAAA,OAAO,CAAC,IAAI,wDAAG,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA,CAAC;IACnE,MAAM,MAAM,GAAG,CAAE,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAE,CAAC;IAC1D,IAAI,IAAI,KAAK,WAAW,CAAC,KAAK;QAAE,MAAM,cAAc,CAAC;IAErD,IAAI,OAAO,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAK,CAAC,EAAE;QAC/C,MAAM,cAAc,CAAC;KACxB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,WAAW,CACtB,OAAgE;;IAEhE,IAAI;QACA,OAAO,MAAM,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;KACzE;IAAC,OAAO,SAAkB,EAAE;QACzB,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC/C,IAAI,IAAI,KAAK,WAAW,CAAC,OAAO,EAAE;YAC9B,OAAO;SACV;QAED,MAAM,IAAA,QAAK,EAAC,MAAA,OAAO,CAAC,KAAK,mCAAI,CAAC,CAAC,CAAC;QAEhC,OAAO,WAAW,CAAC;YACf,GAAG,OAAO;YACV,KAAK,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC;YACxB,OAAO,EAAE,OAAO,CAAC,OAAO,GAAG,CAAC;SAC/B,CAAC,CAAC;KACN;AACL,CAAC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,KAAK,CACvB,OAA0C;IAE1C,OAAO,WAAW,CAAa;QAC3B,GAAG,OAAO;QACV,OAAO,EAAE,CAAC;KACb,CAAC,CAAC;AACP,CAAC;AAPD,sBAOC"}
|
package/dist/Helpers/sleep.d.ts
CHANGED
package/dist/Helpers/sleep.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sleep = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Sleep async function
|
|
6
|
+
*
|
|
7
|
+
* @param {number} milliseconds sleep time in milliseconds
|
|
8
|
+
* @returns {Promise<void>}
|
|
9
|
+
*/
|
|
4
10
|
async function sleep(milliseconds) {
|
|
5
11
|
return new Promise((resolve) => {
|
|
6
12
|
setTimeout(resolve, milliseconds);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/Helpers/sleep.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/Helpers/sleep.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACI,KAAK,UAAU,KAAK,CAAC,YAAoB;IAC5C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACP,CAAC;AAJD,sBAIC;AAED,kBAAe,KAAK,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { type ContextEngineInterface, type ContextChemicalXConstructorTypo, type ContextOptionsLibraryInterface, type ContextChemicalXInterface } from "./Context";
|
|
2
2
|
import { type PageEngineInterface, type PageChemicalXConstructorTypo } from "./Page";
|
|
3
3
|
export interface BrowserOptionsLibraryInterface {
|
|
4
|
+
/**
|
|
5
|
+
* Additional arguments to pass to the browser instance. The list of Chromium flags can be found
|
|
6
|
+
* [here](http://peter.sh/experiments/chromium-command-line-switches/).
|
|
7
|
+
*/
|
|
4
8
|
args?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Whether to run browser in headless mode. More details for
|
|
11
|
+
* [Chromium](https://developers.google.com/web/updates/2017/04/headless-chrome) and
|
|
12
|
+
* [Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode). Defaults to `true` unless the
|
|
13
|
+
* `devtools` option is `true`.
|
|
14
|
+
*/
|
|
5
15
|
headless?: boolean;
|
|
6
16
|
}
|
|
7
17
|
export interface BrowserEngineInterface {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type BrowserChemicalXInterface, type BrowserEngineInterface } from "./Browser";
|
|
2
2
|
import { type PageEngineInterface, type PageChemicalXConstructorTypo } from "./Page";
|
|
3
3
|
export interface ContextOptionsLibraryInterface {
|
|
4
|
-
timeout?: number;
|
|
5
4
|
}
|
|
6
5
|
export interface ContextEngineInterface {
|
|
7
6
|
newPage: CallableFunction;
|
package/dist/crawler/Browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../src/crawler/Browser.ts"],"names":[],"mappings":";;;AAcA,uCAAoC;AACpC,oFAAiF;AAEjF,MAAsB,OAAO;IASzB,YACoB,cAAiC,EACjC,aAEf,EACe,aAEf,EACe,UAEf;QATe,mBAAc,GAAd,cAAc,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAE5B;QACe,kBAAa,GAAb,aAAa,CAE5B;QACe,eAAU,GAAV,UAAU,CAEzB;IAEL,CAAC;IAEM,MAAM,CAAC,MAAM,CAMhB,cAAiC,EACjC,aAEC,EACD,aAEC,EACD,UAEC;QAED,MAAM,eAAe,GAAG,IAAI,aAAa,CACrC,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,CACb,CAAC;QAEF,OAAO,IAAI,KAAK,CAAC,eAAe,EAAE;YAC9B,GAAG,CACC,MAAyE,EACzE,QAAgB;gBAEhB,IAAI,QAAQ,IAAI,MAAM,EAAE;oBACpB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACxC;gBAED,IAAI,CAAE,MAAM,CAAC,gBAA4B,EAAE;oBACvC,MAAM,IAAI,mDAAwB,CAAC,qCAAqC,CAAC,CAAC;iBAC7E;gBAED,MAAM,aAAa,GAAI,MAAM,CAAC,gBAA4C,CAAC,QAAQ,CAAC,CAAC;gBAErF,OAAO,OAAO,aAAa,KAAK,UAAU;oBACtC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;oBAC7C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;YACzD,CAAC;SACJ,CAA2F,CAAC;IACjG,CAAC;IAEM,KAAK,CAAC,cAAc;QACvB,OAAO;YACH,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../src/crawler/Browser.ts"],"names":[],"mappings":";;;AAcA,uCAAoC;AACpC,oFAAiF;AAEjF,MAAsB,OAAO;IASzB,YACoB,cAAiC,EACjC,aAEf,EACe,aAEf,EACe,UAEf;QATe,mBAAc,GAAd,cAAc,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAE5B;QACe,kBAAa,GAAb,aAAa,CAE5B;QACe,eAAU,GAAV,UAAU,CAEzB;IAEL,CAAC;IAEM,MAAM,CAAC,MAAM,CAMhB,cAAiC,EACjC,aAEC,EACD,aAEC,EACD,UAEC;QAED,MAAM,eAAe,GAAG,IAAI,aAAa,CACrC,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,CACb,CAAC;QAEF,OAAO,IAAI,KAAK,CAAC,eAAe,EAAE;YAC9B,GAAG,CACC,MAAyE,EACzE,QAAgB;gBAEhB,IAAI,QAAQ,IAAI,MAAM,EAAE;oBACpB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACxC;gBAED,IAAI,CAAE,MAAM,CAAC,gBAA4B,EAAE;oBACvC,MAAM,IAAI,mDAAwB,CAAC,qCAAqC,CAAC,CAAC;iBAC7E;gBAED,MAAM,aAAa,GAAI,MAAM,CAAC,gBAA4C,CAAC,QAAQ,CAAC,CAAC;gBAErF,OAAO,OAAO,aAAa,KAAK,UAAU;oBACtC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;oBAC7C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;YACzD,CAAC;SACJ,CAA2F,CAAC;IACjG,CAAC;IAEM,KAAK,CAAC,cAAc;QACvB,OAAO;YACH,QAAQ,EAAE,IAAI;SACjB,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,UAAU,CACnB,OAAwC;QAExC,OAAO,iBAAO,CAAC,MAAM,CACjB,IAAI,EACJ,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,UAAU,EACf,OAAO,CACV,CAAC;IACN,CAAC;CAIJ;AAxFD,0BAwFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../src/crawler/Context.ts"],"names":[],"mappings":";;;AAeA,iCAA8B;AAE9B,MAAsB,OAAO;IASzB,YACoB,gBAAmF,EACnF,aAC2F,EAC3F,UACwF,EACxF,QAAyC;QALzC,qBAAgB,GAAhB,gBAAgB,CAAmE;QACnF,kBAAa,GAAb,aAAa,CAC8E;QAC3F,eAAU,GAAV,UAAU,CAC8E;QACxF,aAAQ,GAAR,QAAQ,CAAiC;IAE7D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAM,CAMtB,gBAAmF,EACnF,aAEC,EACD,UAEC,EACD,QAAyC;;QAEzC,MAAM,eAAe,GAAG,IAAI,aAAa,CACrC,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,QAAQ,CACX,CAAC;QACF,MAAM,cAAc,GAAG,CACnB,MAAA,gBAAgB,CAAC,gBAAgB,CAAC,UAAU,mCACzC,gBAAgB,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../src/crawler/Context.ts"],"names":[],"mappings":";;;AAeA,iCAA8B;AAE9B,MAAsB,OAAO;IASzB,YACoB,gBAAmF,EACnF,aAC2F,EAC3F,UACwF,EACxF,QAAyC;QALzC,qBAAgB,GAAhB,gBAAgB,CAAmE;QACnF,kBAAa,GAAb,aAAa,CAC8E;QAC3F,eAAU,GAAV,UAAU,CAC8E;QACxF,aAAQ,GAAR,QAAQ,CAAiC;IAE7D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAM,CAMtB,gBAAmF,EACnF,aAEC,EACD,UAEC,EACD,QAAyC;;QAEzC,MAAM,eAAe,GAAG,IAAI,aAAa,CACrC,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,QAAQ,CACX,CAAC;QACF,MAAM,cAAc,GAAG,CACnB,MAAA,gBAAgB,CAAC,gBAAgB,CAAC,UAAU,mCACzC,gBAAgB,CAAC,gBAAgB,CAAC,6BAA6B,CACkB,CAAC;QACzF,eAAe,CAAC,gBAAgB,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE;YAC5F,GAAG,MAAM,eAAe,CAAC,cAAc,EAAE;YACzC,QAAQ;SACX,CAAC,CAAC;QAEH,OAAO,IAAI,KAAK,CAAC,eAAe,EAAE;YAC9B,GAAG,CACC,MAKC,EACD,QAAgB;gBAEhB,IAAI,QAAQ,IAAI,MAAM,EAAE;oBACpB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACxC;gBAED,MAAM,aAAa,GAAI,eAAe,CAAC,gBAA4C,CAAC,QAAQ,CAAC,CAAC;gBAE9F,OAAO,OAAO,aAAa,KAAK,UAAU;oBACtC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC;oBACtD,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;YAClE,CAAC;SACJ,CAAuE,CAAC;IAC7E,CAAC;IAEM,KAAK,CAAC,cAAc;QACvB,OAAO;YACH,OAAO,EAAE,KAAM;SAClB,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,OAAO;QAChB,OAAO,WAAI,CAAC,MAAM,CACd,IAAI,CAAC,gBAAgB,EACrB,IAAI,EACJ,IAAI,CAAC,UAAU,CAClB,CAAC;IACN,CAAC;CAEJ;AAtFD,0BAsFC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type Exception } from "@odg/exception";
|
|
2
|
+
import { type PageEngineInterface } from "..";
|
|
3
|
+
import { RetryAction } from "../..";
|
|
4
|
+
import { HandlerSolution, type HandlerFunction, type HandlerInterface } from "../Interfaces/HandlerInterface";
|
|
5
|
+
export declare abstract class BaseHandler<SelectorBaseType, PageClassEngine extends PageEngineInterface> implements HandlerInterface {
|
|
6
|
+
readonly page: PageClassEngine;
|
|
7
|
+
readonly $$s: SelectorBaseType;
|
|
8
|
+
constructor(page: PageClassEngine, $$s: SelectorBaseType);
|
|
9
|
+
/**
|
|
10
|
+
* Called if Handler end with success
|
|
11
|
+
*
|
|
12
|
+
* @returns {Promise<void>}
|
|
13
|
+
* @memberof BaseHandler
|
|
14
|
+
*/
|
|
15
|
+
success?(): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Called if Handler end with fail or success
|
|
18
|
+
*
|
|
19
|
+
* @param {Exception} exception Exception if finish with error
|
|
20
|
+
* @returns {Promise<void>}
|
|
21
|
+
* @memberof BaseHandler
|
|
22
|
+
*/
|
|
23
|
+
finish?(exception?: Exception): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Execute step With retry fail and finish
|
|
26
|
+
*
|
|
27
|
+
* @memberof BasePage
|
|
28
|
+
* @template {any} ReturnType Return Type function
|
|
29
|
+
* @returns {Promise<ReturnType>}
|
|
30
|
+
*/
|
|
31
|
+
execute(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Use if you handler identify a successful response
|
|
34
|
+
*
|
|
35
|
+
* @returns {Promise<HandlerSolution>}
|
|
36
|
+
*/
|
|
37
|
+
successSolution(): Promise<HandlerSolution>;
|
|
38
|
+
/**
|
|
39
|
+
* Called Always handler attempt error.
|
|
40
|
+
*
|
|
41
|
+
* @protected
|
|
42
|
+
* @param {Exception} _exception Exception error
|
|
43
|
+
* @returns {Promise<RetryAction>}
|
|
44
|
+
* @memberof BaseHandler
|
|
45
|
+
*/
|
|
46
|
+
failedWait(_exception: Exception): Promise<RetryAction>;
|
|
47
|
+
/**
|
|
48
|
+
* Called if handler execute is failed
|
|
49
|
+
* Add the throw at the end otherwise the handler will not transmit your exception
|
|
50
|
+
*
|
|
51
|
+
* @protected
|
|
52
|
+
* @param {Exception} exception Exception error
|
|
53
|
+
* @returns {Promise<void>}
|
|
54
|
+
* @memberof BaseHandler
|
|
55
|
+
*/
|
|
56
|
+
protected failedHandler(exception: Exception): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Wait for handler with Attempt and retry
|
|
59
|
+
*
|
|
60
|
+
* @protected
|
|
61
|
+
* @returns {Promise<HandlerSolution | undefined>}
|
|
62
|
+
* @memberof BaseHandler
|
|
63
|
+
*/
|
|
64
|
+
protected waitHandlerAttempt(): Promise<HandlerSolution | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Possibility to wait for a handler
|
|
67
|
+
*
|
|
68
|
+
* @abstract
|
|
69
|
+
* @returns {Promise<HandlerFunction>}
|
|
70
|
+
* @memberof BaseHandler
|
|
71
|
+
*/
|
|
72
|
+
abstract waitForHandler(): Promise<HandlerFunction>;
|
|
73
|
+
/**
|
|
74
|
+
* Number of Attempt to waitForHandler
|
|
75
|
+
*
|
|
76
|
+
* @abstract
|
|
77
|
+
* @returns {Promise<number>}
|
|
78
|
+
* @memberof BaseHandler
|
|
79
|
+
*/
|
|
80
|
+
abstract attempt(): Promise<number>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseHandler = void 0;
|
|
4
|
+
const exception_1 = require("@odg/exception");
|
|
5
|
+
const __1 = require("../..");
|
|
6
|
+
const HandlerInterface_1 = require("../Interfaces/HandlerInterface");
|
|
7
|
+
class BaseHandler {
|
|
8
|
+
constructor(page, $$s) {
|
|
9
|
+
this.page = page;
|
|
10
|
+
this.$$s = $$s;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Execute step With retry fail and finish
|
|
14
|
+
*
|
|
15
|
+
* @memberof BasePage
|
|
16
|
+
* @template {any} ReturnType Return Type function
|
|
17
|
+
* @returns {Promise<ReturnType>}
|
|
18
|
+
*/
|
|
19
|
+
async execute() {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
try {
|
|
22
|
+
const handlerCallback = await this.waitHandlerAttempt();
|
|
23
|
+
if (handlerCallback === HandlerInterface_1.HandlerSolution.Retry) {
|
|
24
|
+
await this.execute();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
await ((_a = this.finish) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
28
|
+
await ((_b = this.success) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
const exception = exception_1.UnknownException.parseOrDefault(error, "Handler UnknownException");
|
|
32
|
+
await ((_c = this.finish) === null || _c === void 0 ? void 0 : _c.call(this, exception));
|
|
33
|
+
await this.failedHandler(exception);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Use if you handler identify a successful response
|
|
38
|
+
*
|
|
39
|
+
* @returns {Promise<HandlerSolution>}
|
|
40
|
+
*/
|
|
41
|
+
async successSolution() {
|
|
42
|
+
return HandlerInterface_1.HandlerSolution.Resolve;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Called Always handler attempt error.
|
|
46
|
+
*
|
|
47
|
+
* @protected
|
|
48
|
+
* @param {Exception} _exception Exception error
|
|
49
|
+
* @returns {Promise<RetryAction>}
|
|
50
|
+
* @memberof BaseHandler
|
|
51
|
+
*/
|
|
52
|
+
async failedWait(_exception) {
|
|
53
|
+
return __1.RetryAction.Default;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Called if handler execute is failed
|
|
57
|
+
* Add the throw at the end otherwise the handler will not transmit your exception
|
|
58
|
+
*
|
|
59
|
+
* @protected
|
|
60
|
+
* @param {Exception} exception Exception error
|
|
61
|
+
* @returns {Promise<void>}
|
|
62
|
+
* @memberof BaseHandler
|
|
63
|
+
*/
|
|
64
|
+
async failedHandler(exception) {
|
|
65
|
+
throw exception;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Wait for handler with Attempt and retry
|
|
69
|
+
*
|
|
70
|
+
* @protected
|
|
71
|
+
* @returns {Promise<HandlerSolution | undefined>}
|
|
72
|
+
* @memberof BaseHandler
|
|
73
|
+
*/
|
|
74
|
+
async waitHandlerAttempt() {
|
|
75
|
+
const handler = await (0, __1.retry)({
|
|
76
|
+
callback: this.waitForHandler.bind(this),
|
|
77
|
+
times: await this.attempt(),
|
|
78
|
+
when: this.failedWait.bind(this),
|
|
79
|
+
});
|
|
80
|
+
return handler === null || handler === void 0 ? void 0 : handler.call(this);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.BaseHandler = BaseHandler;
|
|
84
|
+
//# sourceMappingURL=BaseHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseHandler.js","sourceRoot":"","sources":["../../../src/crawler/Handlers/BaseHandler.ts"],"names":[],"mappings":";;;AAAA,8CAAkE;AAGlE,6BAA2C;AAC3C,qEAA8G;AAE9G,MAAsB,WAAW;IAK7B,YACoB,IAAqB,EACrB,GAAqB;QADrB,SAAI,GAAJ,IAAI,CAAiB;QACrB,QAAG,GAAH,GAAG,CAAkB;IAEzC,CAAC;IAmBD;;;;;;OAMG;IACI,KAAK,CAAC,OAAO;;QAChB,IAAI;YACA,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAExD,IAAI,eAAe,KAAK,kCAAe,CAAC,KAAK,EAAE;gBAC3C,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;gBAErB,OAAO;aACV;YAED,MAAM,CAAA,MAAA,IAAI,CAAC,MAAM,oDAAI,CAAA,CAAC;YACtB,MAAM,CAAA,MAAA,IAAI,CAAC,OAAO,oDAAI,CAAA,CAAC;SAC1B;QAAC,OAAO,KAAK,EAAE;YACZ,MAAM,SAAS,GAAG,4BAAgB,CAAC,cAAc,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC;YAErF,MAAM,CAAA,MAAA,IAAI,CAAC,MAAM,qDAAG,SAAS,CAAC,CAAA,CAAC;YAC/B,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SACvC;IACL,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,eAAe;QACxB,OAAO,kCAAe,CAAC,OAAO,CAAC;IACnC,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,UAAU,CAAC,UAAqB;QACzC,OAAO,eAAW,CAAC,OAAO,CAAC;IAC/B,CAAC;IAED;;;;;;;;OAQG;IACO,KAAK,CAAC,aAAa,CAAC,SAAoB;QAC9C,MAAM,SAAS,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACO,KAAK,CAAC,kBAAkB;QAC9B,MAAM,OAAO,GAAG,MAAM,IAAA,SAAK,EAAC;YACxB,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;YACxC,KAAK,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE;YAC3B,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;QAEH,OAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CAoBJ;AA5HD,kCA4HC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BaseHandler";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BaseHandler"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/Handlers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Exception } from "@odg/exception";
|
|
2
|
+
import { type RetryAction } from "../../Helpers/retry";
|
|
3
|
+
export type HandlerFunction = () => Promise<HandlerSolution>;
|
|
4
|
+
/**
|
|
5
|
+
* State Handler Function
|
|
6
|
+
*
|
|
7
|
+
* Resolve - To Resolve Handler
|
|
8
|
+
* Retry - To Execute Handler retry
|
|
9
|
+
*
|
|
10
|
+
* @enum {string}
|
|
11
|
+
*/
|
|
12
|
+
export declare enum HandlerSolution {
|
|
13
|
+
Resolve = "Resolve",
|
|
14
|
+
Retry = "Retry"
|
|
15
|
+
}
|
|
16
|
+
export interface HandlerInterface {
|
|
17
|
+
/**
|
|
18
|
+
* Execute step
|
|
19
|
+
*
|
|
20
|
+
* @memberof HandlerInterface
|
|
21
|
+
* @returns {Promise<HandlerFunction>}
|
|
22
|
+
*/
|
|
23
|
+
waitForHandler(): Promise<HandlerFunction>;
|
|
24
|
+
/**
|
|
25
|
+
* Execute Handler
|
|
26
|
+
*
|
|
27
|
+
* @memberof HandlerInterface
|
|
28
|
+
* @returns {Promise<void>}
|
|
29
|
+
*/
|
|
30
|
+
execute(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Handler Execute Failed
|
|
33
|
+
*
|
|
34
|
+
* @memberof HandlerInterface
|
|
35
|
+
* @param {Exception} exception Exception
|
|
36
|
+
* @returns {Promise<RetryAction>}
|
|
37
|
+
*/
|
|
38
|
+
failedWait(exception: Exception): Promise<RetryAction>;
|
|
39
|
+
/**
|
|
40
|
+
* If the page is finished with success or failure
|
|
41
|
+
*
|
|
42
|
+
* @memberof HandlerInterface
|
|
43
|
+
* @param {Exception} exception Exception If it ends with failure
|
|
44
|
+
* @returns {Promise<number>}
|
|
45
|
+
*/
|
|
46
|
+
finish?(exception?: Exception): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Action to do when the handler is success
|
|
49
|
+
*
|
|
50
|
+
* @memberof BasePage
|
|
51
|
+
* @returns {Promise<void>}
|
|
52
|
+
*/
|
|
53
|
+
success?(): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Number of attempt to execute the page
|
|
56
|
+
*
|
|
57
|
+
* @memberof HandlerInterface
|
|
58
|
+
* @returns {Promise<number>}
|
|
59
|
+
*/
|
|
60
|
+
attempt(): Promise<number>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HandlerSolution = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* State Handler Function
|
|
6
|
+
*
|
|
7
|
+
* Resolve - To Resolve Handler
|
|
8
|
+
* Retry - To Execute Handler retry
|
|
9
|
+
*
|
|
10
|
+
* @enum {string}
|
|
11
|
+
*/
|
|
12
|
+
var HandlerSolution;
|
|
13
|
+
(function (HandlerSolution) {
|
|
14
|
+
HandlerSolution["Resolve"] = "Resolve";
|
|
15
|
+
HandlerSolution["Retry"] = "Retry";
|
|
16
|
+
})(HandlerSolution = exports.HandlerSolution || (exports.HandlerSolution = {}));
|
|
17
|
+
//# sourceMappingURL=HandlerInterface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HandlerInterface.js","sourceRoot":"","sources":["../../../src/crawler/Interfaces/HandlerInterface.ts"],"names":[],"mappings":";;;AAMA;;;;;;;GAOG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,sCAAmB,CAAA;IACnB,kCAAe,CAAA;AACnB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { type Exception } from "@odg/exception";
|
|
2
2
|
import { type RetryAction } from "../../Helpers/retry";
|
|
3
3
|
export interface PageInterface {
|
|
4
|
+
/**
|
|
5
|
+
* Execute step With retry fail and finish
|
|
6
|
+
*
|
|
7
|
+
* @memberof BasePage
|
|
8
|
+
* @returns {Promise<void>}
|
|
9
|
+
*/
|
|
4
10
|
execute(): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Action to do when the page is success
|
|
13
|
+
*
|
|
14
|
+
* @memberof BasePage
|
|
15
|
+
* @returns {Promise<void>}
|
|
16
|
+
*/
|
|
5
17
|
success(): Promise<void>;
|
|
6
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Action to do when the page failed
|
|
20
|
+
*
|
|
21
|
+
* @memberof BasePage
|
|
22
|
+
* @param {Exception} exception Exception
|
|
23
|
+
* @returns {Promise<RetryAction>}
|
|
24
|
+
*/
|
|
25
|
+
failedAttempt?(exception: Exception): Promise<RetryAction>;
|
|
26
|
+
/**
|
|
27
|
+
* If the page is finished with success or failure
|
|
28
|
+
*
|
|
29
|
+
* @memberof BasePage
|
|
30
|
+
* @param {Exception} exception Exception If it ends with failure
|
|
31
|
+
* @returns {Promise<number>}
|
|
32
|
+
*/
|
|
7
33
|
finish?(exception?: Exception): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Number of attempt to execute the page
|
|
36
|
+
*
|
|
37
|
+
* @memberof BasePage
|
|
38
|
+
* @returns {Promise<number>}
|
|
39
|
+
*/
|
|
8
40
|
attempt(): Promise<number>;
|
|
9
41
|
}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./PageInterface"), exports);
|
|
18
|
+
__exportStar(require("./HandlerInterface"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/Interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/Interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,qDAAmC"}
|
|
@@ -1,11 +1,53 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Exception } from "@odg/exception";
|
|
2
|
+
import { type RetryAction } from "../..";
|
|
3
|
+
import { type FunctionReturnType } from "../../types/FunctionType";
|
|
4
|
+
import { type PromiseOrSyncType } from "../../types/PromiseSyncType";
|
|
5
|
+
import { type PageInterface, type PageEngineInterface } from "../index";
|
|
2
6
|
import { type SelectorType } from "../Selectors/SelectorsTypo";
|
|
3
|
-
export declare abstract class BasePage<SelectorBaseType, PageClassEngine extends PageEngineInterface> {
|
|
7
|
+
export declare abstract class BasePage<SelectorBaseType, PageClassEngine extends PageEngineInterface> implements PageInterface {
|
|
4
8
|
readonly page: PageClassEngine;
|
|
5
9
|
readonly $$s: SelectorBaseType;
|
|
10
|
+
/**
|
|
11
|
+
* Current attempt number
|
|
12
|
+
*
|
|
13
|
+
* @type {number}
|
|
14
|
+
* @memberof BasePage
|
|
15
|
+
*/
|
|
6
16
|
protected currentAttempt: number;
|
|
7
|
-
abstract readonly $s: SelectorType;
|
|
8
17
|
constructor(page: PageClassEngine, $$s: SelectorBaseType);
|
|
18
|
+
/**
|
|
19
|
+
* Pre Start Page
|
|
20
|
+
*
|
|
21
|
+
* @memberof BasePage
|
|
22
|
+
*/
|
|
9
23
|
preStart(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Action to do when the page is success
|
|
26
|
+
*
|
|
27
|
+
* @memberof BasePage
|
|
28
|
+
* @returns {Promise<void>}
|
|
29
|
+
*/
|
|
10
30
|
success(): Promise<void>;
|
|
31
|
+
finish?(exception?: Exception | undefined): Promise<void>;
|
|
32
|
+
failedAttempt?(exception: Exception): Promise<RetryAction>;
|
|
33
|
+
failedPage?(exception: Exception): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Execute step With retry fail and finish
|
|
36
|
+
*
|
|
37
|
+
* @memberof BasePage
|
|
38
|
+
* @param {FunctionReturnType<PromiseOrSyncType<void>>} callback Start Step CallbackFunction
|
|
39
|
+
* @returns {Promise<void>}
|
|
40
|
+
*/
|
|
41
|
+
protected start(callback: FunctionReturnType<PromiseOrSyncType<void>>): Promise<void>;
|
|
42
|
+
private executeCatcher;
|
|
43
|
+
/**
|
|
44
|
+
* Selector of this page
|
|
45
|
+
*
|
|
46
|
+
* @abstract
|
|
47
|
+
* @type {SelectorType}
|
|
48
|
+
* @memberof BasePage
|
|
49
|
+
*/
|
|
50
|
+
abstract readonly $s: SelectorType;
|
|
51
|
+
abstract execute(): Promise<void>;
|
|
52
|
+
abstract attempt(): Promise<number>;
|
|
11
53
|
}
|
|
@@ -1,18 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BasePage = void 0;
|
|
4
|
+
const exception_1 = require("@odg/exception");
|
|
5
|
+
const __1 = require("../..");
|
|
4
6
|
class BasePage {
|
|
5
7
|
constructor(page, $$s) {
|
|
6
8
|
this.page = page;
|
|
7
9
|
this.$$s = $$s;
|
|
10
|
+
/**
|
|
11
|
+
* Current attempt number
|
|
12
|
+
*
|
|
13
|
+
* @type {number}
|
|
14
|
+
* @memberof BasePage
|
|
15
|
+
*/
|
|
8
16
|
this.currentAttempt = 0;
|
|
9
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Pre Start Page
|
|
20
|
+
*
|
|
21
|
+
* @memberof BasePage
|
|
22
|
+
*/
|
|
10
23
|
async preStart() {
|
|
11
24
|
this.currentAttempt++;
|
|
12
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Action to do when the page is success
|
|
28
|
+
*
|
|
29
|
+
* @memberof BasePage
|
|
30
|
+
* @returns {Promise<void>}
|
|
31
|
+
*/
|
|
13
32
|
async success() {
|
|
14
33
|
this.currentAttempt = 0;
|
|
15
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Execute step With retry fail and finish
|
|
37
|
+
*
|
|
38
|
+
* @memberof BasePage
|
|
39
|
+
* @param {FunctionReturnType<PromiseOrSyncType<void>>} callback Start Step CallbackFunction
|
|
40
|
+
* @returns {Promise<void>}
|
|
41
|
+
*/
|
|
42
|
+
async start(callback) {
|
|
43
|
+
var _a;
|
|
44
|
+
return (0, __1.retry)({
|
|
45
|
+
times: await this.attempt() - 1,
|
|
46
|
+
sleep: 0,
|
|
47
|
+
callback: callback,
|
|
48
|
+
when: (_a = this.failedAttempt) === null || _a === void 0 ? void 0 : _a.bind(this),
|
|
49
|
+
}).then(async () => {
|
|
50
|
+
var _a;
|
|
51
|
+
await this.success();
|
|
52
|
+
return (_a = this.finish) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
53
|
+
}).catch(this.executeCatcher.bind(this));
|
|
54
|
+
}
|
|
55
|
+
async executeCatcher(exception) {
|
|
56
|
+
var _a;
|
|
57
|
+
const exceptionParsed = exception_1.UnknownException.parseOrDefault(exception, "Page UnknownException");
|
|
58
|
+
await ((_a = this.finish) === null || _a === void 0 ? void 0 : _a.call(this, exceptionParsed));
|
|
59
|
+
if (this.failedPage)
|
|
60
|
+
await this.failedPage(exceptionParsed);
|
|
61
|
+
else
|
|
62
|
+
throw exceptionParsed;
|
|
63
|
+
}
|
|
16
64
|
}
|
|
17
65
|
exports.BasePage = BasePage;
|
|
18
66
|
//# sourceMappingURL=BasePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePage.js","sourceRoot":"","sources":["../../../src/crawler/Pages/BasePage.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"BasePage.js","sourceRoot":"","sources":["../../../src/crawler/Pages/BasePage.ts"],"names":[],"mappings":";;;AAAA,8CAAkE;AAElE,6BAAgD;AAMhD,MAAsB,QAAQ;IAU1B,YACoB,IAAqB,EACrB,GAAqB;QADrB,SAAI,GAAJ,IAAI,CAAiB;QACrB,QAAG,GAAH,GAAG,CAAkB;QAVzC;;;;;WAKG;QACO,mBAAc,GAAW,CAAC,CAAC;IAMrC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,QAAQ;QACjB,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,OAAO;QAChB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IAC5B,CAAC;IAQD;;;;;;OAMG;IACO,KAAK,CAAC,KAAK,CAAC,QAAqD;;QACvE,OAAO,IAAA,SAAK,EACR;YACI,KAAK,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC;YAC/B,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,MAAA,IAAI,CAAC,aAAa,0CAAE,IAAI,CAAC,IAAI,CAAC;SACvC,CACJ,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;;YACd,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;YAErB,OAAO,MAAA,IAAI,CAAC,MAAM,oDAAI,CAAC;QAC3B,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,SAAkB;;QAC3C,MAAM,eAAe,GAAG,4BAAgB,CAAC,cAAc,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;QAC5F,MAAM,CAAA,MAAA,IAAI,CAAC,MAAM,qDAAG,eAAe,CAAC,CAAA,CAAC;QAErC,IAAI,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;;YACvD,MAAM,eAAe,CAAC;IAC/B,CAAC;CAeJ;AApFD,4BAoFC"}
|
package/dist/crawler/index.d.ts
CHANGED
package/dist/crawler/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Browser"), exports);
|
|
18
18
|
__exportStar(require("./Context"), exports);
|
|
19
|
+
__exportStar(require("./Handlers"), exports);
|
|
19
20
|
__exportStar(require("./Page"), exports);
|
|
20
21
|
__exportStar(require("./@types"), exports);
|
|
21
22
|
__exportStar(require("./Exceptions"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crawler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,0CAAwB;AACxB,4DAA0C;AAC1C,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crawler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,0CAAwB;AACxB,4DAA0C;AAC1C,+CAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/crawler/@types/Page.ts","../src/crawler/@types/Context.ts","../src/crawler/@types/Browser.ts","../src/crawler/Page.ts","../src/crawler/Context.ts","../node_modules/@odg/exception/dist/exceptions/Exception.d.ts","../node_modules/@odg/exception/dist/exceptions/UnknownException.d.ts","../node_modules/@odg/exception/dist/index.d.ts","../src/crawler/Exceptions/BrowserException.ts","../src/crawler/Exceptions/BrowserInstanceException.ts","../src/crawler/Browser.ts","../src/crawler/@types/index.ts","../src/crawler/Exceptions/index.ts","../src/crawler/Selectors/SelectorsTypo.ts","../src/crawler/Pages/BasePage.ts","../src/crawler/Pages/Components/BaseComponentPage.ts","../src/crawler/Pages/index.ts","../src/types/FunctionType.ts","../src/Helpers/sleep.ts","../src/Helpers/index.ts","../src/Helpers/retry.ts","../src/crawler/Interfaces/PageInterface.ts","../src/crawler/Interfaces/index.ts","../src/crawler/index.ts","../src/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","impliedFormat":1},{"version":"7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","impliedFormat":1},{"version":"8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","impliedFormat":1},{"version":"5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","impliedFormat":1},{"version":"4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","impliedFormat":1},{"version":"1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","impliedFormat":1},{"version":"746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","impliedFormat":1},{"version":"d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","impliedFormat":1},{"version":"aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c","impliedFormat":1},{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true,"impliedFormat":1},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true,"impliedFormat":1},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true,"impliedFormat":1},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true,"impliedFormat":1},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true,"impliedFormat":1},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true,"impliedFormat":1},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true,"impliedFormat":1},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f3695ecd942de2ad2cb982bc9b8011131c1c8758db1f7796209022d66bd34ba","signature":"96ab9b2fb13cb00eb8f74ba1b663f431f3ca8d60345f584ad743f2444474431a","impliedFormat":1},{"version":"3587c15957e63d5f50c08fa81d2687ddb14774d9f026b9c2e1be06151fd34755","signature":"f400b1a5d2855531e6472567a5f2a2545fa6a48197d18ed6bb042d5a131313ad","impliedFormat":1},{"version":"f09f28ed29ff661a9fcb2e5f5925aef5dea0e043862a87db483210cb49a11c74","signature":"a5295b28c307961ab34098ce51dd712a66f1edd6d49a87259835a781b86d5667","impliedFormat":1},{"version":"2b1649b851b73f3b6fbbebefc157ac173e5ded7ae21484de3c9bef6a7bf24c0b","signature":"e20b06b111c1d08b31bd396bf613a9f1923d40a1a8b1671c61358f721f6f90c3","impliedFormat":1},{"version":"443a7b332c000c51740132aa17096783ac9c6167f7dbf54504b602aef36779bc","signature":"38f601c7abe52aaf27ed2ad6a500a5acf7847f96604ade5d99be1d872d8c19e9","impliedFormat":1},{"version":"4130f986e9133b2a2d80c751ed4b7b3b1f1a93714f0462f7c36e0b32a5c66aca","impliedFormat":1},{"version":"6bb8480771517b68dc8c48553fe615e0bc38d9df1572bfa45e5db9844ef76776","impliedFormat":1},{"version":"1df58ba1cc41c4166dcbe53efd88611b9ddf5a27f33f4eb88a9189ea2ea56473","impliedFormat":1},{"version":"b6f824013a2d3b46d9daba60acf2e14325b3b11192dc30908a1f3b38f92947a5","signature":"03b43add7d2c0f27e467ddb0566bb6f5b3842fbfe7ccc646db61e79e99950349","impliedFormat":1},{"version":"d0ec7975ec37e52acd4399f224f463caf5ac6e7ec19abc937ccc4ef4f430149d","signature":"ac01ae6d1b842b37c75d476f0bc8dff6b8cdf9aef53ff60621ce3fb4a3a99b34","impliedFormat":1},{"version":"da1cf67f8a4a8b4fb252005a683e70d79a6c65e68e6ce8b50152ba4980f4d524","signature":"a25ca30e4632a76fd1a1c66ea47ec78f3781dc225cf9405c29f48544867288dd","impliedFormat":1},{"version":"1a255b6ced127cd0314cf8ca3aa27fd60fb2f6ee7735e3ca8241d29c0f3a736e","impliedFormat":1},{"version":"a99b689d1379bfd256034b8fa0d16ff1acc4ac7b3729071b515bd4d9191b8d55","impliedFormat":1},{"version":"38aee2212abb5c29f0b4dbb6a014acb68881decd3735a7053c331edf8daa13de","signature":"3998722555c15402d6f5d91cc40b5ea578a7bd964e35f4f18bddc3a9708c99fd","impliedFormat":1},{"version":"baac63e9bf1c06ebe6120cb4ee547d48b9c673cef6100ce1a8c1cfa57ff6d00e","signature":"f2cd57aba77154e8ce53c873c973a586b1c528928c1a8a4920be417bc74b8248","impliedFormat":1},{"version":"1e343a8e53d8c4216f72871579badcb29ff6dc4d637d42fc9c7545432cb03abb","signature":"25112cd85e369ce5507ffdc134db25df501960cfd52b80596a5e54a5e3704d54","impliedFormat":1},{"version":"0bcde7b0cbd741f162d5c515dff74f3b0a65ca19a535cce18497e35ff88d7157","impliedFormat":1},{"version":"7439dac966d25e8f4cdc47959edcbf705c06dce0cdb2282a35db6d53ee965c3c","impliedFormat":1},{"version":"87ee195161f9331b9c535bca8ed9c5a89e9e9778f774c08b35b0a1a4db2d13d8","signature":"7b04d32735a8e10d358db16d1bfb69a4a563c23c172fc9437b12bebfec64b003","impliedFormat":1},{"version":"5747af773d16d7b6998c1c131ea043d95bed265396ed44b771cc55a03b4457cc","impliedFormat":1},{"version":"114515757fee34e5deb1f041898ea6a410015d16425e7e6e1b1c2892b9ff2d7b","signature":"d63d5a7c02f94e4b4c2699676890666bf80118ea5a3a7cfc0d5504ff9de2cb01","impliedFormat":1},{"version":"297b4d3b5eab035e126f08e2e0e4697a46e76e7f91487e9477b69f7c66eba01e","signature":"f9f3fb35bfc9f6c42ac09a421cd0d907d39a084d9896110d5494cb6be31ba2b5","impliedFormat":1},{"version":"8a7ba92e14685df814642ddc98acf767d7fadfdf85fb271f39da6b08b01d6bcc","impliedFormat":1},{"version":"e58260356f2c3fb71e8c6fe4f36cd1b0e26b9cac9d3ef6711a07fcebe1295749","impliedFormat":1},{"version":"05228e5e206508729d3399446be7165103b798667e72966aa112acdd3f1d1dfa","impliedFormat":1},{"version":"4911d4c3a7f7c11bad0e2cec329a19a385d10ea83b0b69c76e032359e388f624","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"4f6463a60e5754bbc4a864b2aaf8fecb7706b96a21b88f27b534589b801978b6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0","impliedFormat":1},{"version":"4ffef5c4698e94e49dcf150e3270bad2b24a2aeab48b24acbe7c1366edff377d","affectsGlobalScope":true,"impliedFormat":1},{"version":"2534e46a52653b55dfb5a41ce427ec430c4afbaaf3bfcb1ae09b185c5d6bf169","impliedFormat":1},{"version":"afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565","impliedFormat":1},{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"3f2478baf49cf27aa1335ba5299e2394131284e9d50a3845e3f95e52664ff518","impliedFormat":1},{"version":"f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","impliedFormat":1},{"version":"8bd106053ee0345dde7f626ed1f6100a89fb85f13ea65352627cf78c5f30c553","impliedFormat":1},{"version":"76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","impliedFormat":1},{"version":"0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","impliedFormat":1},{"version":"06ccebc2c2db57d6bdbca63b71c4ae5e6ddc42d972fd8f122d4c1a28aa111b25","impliedFormat":1},{"version":"81e8508d1e82278f5d3fee936f267e00c308af36219bfcee2631f9513c9c4017","affectsGlobalScope":true,"impliedFormat":1},{"version":"413a4be7f94f631235bbc83dad36c4d15e5a2ff02bca1efdbd03636d6454631b","impliedFormat":1},{"version":"20c468256fd68d3ef1fa53526e76d51d6aa91711e84d72c0343589b99238287e","impliedFormat":1},{"version":"4198acced75d48a039c078734c4efca7788ff8c78609c270a2b63ec20e3e1676","impliedFormat":1},{"version":"8d4c16a26d59e3ce49741a7d4a6e8206b884e226cf308667c7778a0b2c0fee7f","impliedFormat":1},{"version":"288dd0c774a5c6e3964084c7a2bc8cc6b746d70f44a9892d028d04f915cf7ebc","impliedFormat":1},{"version":"d61c7c41eb1960b1285e242fd102c162b65c0522985b839fadda59874308a170","impliedFormat":1},{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true,"impliedFormat":1},{"version":"1805e0e4d1ed00f6361db25dff6887c7fa9b5b39f32599a34e8551da7daaa9c2","impliedFormat":1},{"version":"abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","impliedFormat":1},{"version":"fb0989383c6109f20281b3d31265293daefdd76d0d30551782c1654e93704f48","impliedFormat":1},{"version":"a4210a84a82b3e7a8cec5b2f3616e46d523f4f10cc1576d8f2fb89d0987b341e","impliedFormat":1},{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","impliedFormat":1},{"version":"22d48bfb37261136423ac687f1fa7bd4dda3083f767416d409a8260cf92bc8fc","impliedFormat":1},{"version":"29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","impliedFormat":1},{"version":"0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","impliedFormat":1},{"version":"95518ff86843e226b62a800f679f6968ad8dac8ccbe30fbfe63de3afb13761a2","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"698ab660b477b9c2cd5ccbd99e7e7df8b4a6134c1f5711fa615ed7aab51cb7f7","impliedFormat":1},{"version":"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","impliedFormat":1},{"version":"c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637","impliedFormat":1},{"version":"a4471d2bdba495b2a6a30b8765d5e0282fa7009d88345a9528f73c37869d3b93","impliedFormat":1},{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"c9d70d3d7191a66a81cb554557f8ed1cf736ea8397c44a864fe52689de18865a","impliedFormat":1},{"version":"998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","impliedFormat":1},{"version":"ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","impliedFormat":1},{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true,"impliedFormat":1},{"version":"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","impliedFormat":1},{"version":"c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","impliedFormat":1},{"version":"235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","impliedFormat":1},{"version":"bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","impliedFormat":1},{"version":"9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","impliedFormat":1},{"version":"c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"88003d9ab15507806f41b120be6d407c1afe566c2f6689ebe3a034dd5ec0c8dc","impliedFormat":1},{"version":"a7321c0e96eecb19dcbf178493836474cef21ee3f9345384ce9d74e4be31228d","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"3054ef91b855e005b9c4681399e9d64d2a7b07a22d539314d794f09e53b876a7","impliedFormat":1},{"version":"427ce5854885cfc34387e09de05c1d5c1acf94c2143e1693f1d9ff54880573e7","impliedFormat":1},{"version":"bed2c4f96fab3348be4a34d88dcb12578c1b2475b07c6acd369e99e227718d81","impliedFormat":1},{"version":"e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","impliedFormat":1},{"version":"9ac9b7b349a96ff204f4172183cca1672cc402e1ee7277bfcdec96c000b7d818","impliedFormat":1},{"version":"ac127e4c6f2b5220b293cc9d2e64ba49781225b792a51cda50f3db8eafba550c","impliedFormat":1},{"version":"9aec3838773b6daece49517d7c04777c538ae9e9881ffb4e6d9aa8fc0c775a61","affectsGlobalScope":true,"impliedFormat":1}],"options":{"alwaysStrict":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":100,"newLine":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":5},"fileIdsList":[[125],[125,135],[61,125],[61,62,125],[125,137,140],[81,125],[84,125],[85,90,116,125],[86,96,97,104,113,124,125],[86,87,96,104,125],[88,125],[89,90,97,105,125],[90,113,121,125],[91,93,96,104,125],[92,125],[93,94,125],[95,96,125],[96,125],[96,97,98,113,124,125],[96,97,98,113,125],[99,104,113,124,125],[96,97,99,100,104,113,121,124,125],[99,101,113,121,124,125],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[96,102,125],[103,124,125],[93,96,104,113,125],[105,125],[106,125],[84,107,125],[108,123,125,129],[109,125],[110,125],[96,111,125],[111,112,125,127],[85,96,113,114,115,125],[85,113,115,125],[113,114,125],[116,125],[117,125],[96,119,120,125],[119,120,125],[90,104,121,125],[122,125],[104,123,125],[85,99,110,124,125],[90,125],[113,125,126],[125,127],[125,128],[85,90,96,98,107,113,124,125,127,129],[113,125,130],[125,133,139],[125,137],[125,134,138],[125,136],[74,76,125],[63,73,75,125],[56,57,125],[56,58,125],[57,58,125],[56,57,58,125],[56,57,58,60,65,125],[56,57,58,59,125],[63,125],[64,125],[64,65,125],[63,76,125],[77,125],[69,79,125],[70,79,125],[70,71,125],[59,60,66,67,68,69,72,78,125],[75,79,125],[63,73],[56,57],[56,58],[57,58],[56,57,58],[63],[64],[63,76],[69,79],[70,79]],"referencedMap":[[133,1],[136,2],[61,1],[62,3],[63,4],[135,1],[141,5],[81,6],[82,6],[84,7],[85,8],[86,9],[87,10],[88,11],[89,12],[90,13],[91,14],[92,15],[93,16],[94,16],[95,17],[96,18],[97,19],[98,20],[83,1],[131,1],[99,21],[100,22],[101,23],[132,24],[102,25],[103,26],[104,27],[105,28],[106,29],[107,30],[108,31],[109,32],[110,33],[111,34],[112,35],[113,36],[115,37],[114,38],[116,39],[117,40],[118,1],[119,41],[120,42],[121,43],[122,44],[123,45],[124,46],[125,47],[126,48],[127,49],[128,50],[129,51],[130,52],[134,1],[140,53],[138,54],[139,55],[137,56],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[75,57],[76,58],[74,1],[58,59],[57,60],[56,61],[67,62],[66,63],[60,64],[64,65],[65,66],[68,67],[77,68],[78,69],[59,62],[70,70],[71,71],[72,72],[69,1],[79,73],[80,74],[73,1]],"exportedModulesMap":[[133,1],[136,2],[61,1],[62,3],[63,4],[135,1],[141,5],[81,6],[82,6],[84,7],[85,8],[86,9],[87,10],[88,11],[89,12],[90,13],[91,14],[92,15],[93,16],[94,16],[95,17],[96,18],[97,19],[98,20],[83,1],[131,1],[99,21],[100,22],[101,23],[132,24],[102,25],[103,26],[104,27],[105,28],[106,29],[107,30],[108,31],[109,32],[110,33],[111,34],[112,35],[113,36],[115,37],[114,38],[116,39],[117,40],[118,1],[119,41],[120,42],[121,43],[122,44],[123,45],[124,46],[125,47],[126,48],[127,49],[128,50],[129,51],[130,52],[134,1],[140,53],[138,54],[139,55],[137,56],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[75,57],[76,75],[58,76],[57,77],[56,78],[67,62],[66,79],[60,79],[64,80],[65,81],[68,67],[77,82],[78,69],[59,79],[70,83],[71,84],[72,72],[79,73],[80,74],[73,1]],"semanticDiagnosticsPerFile":[133,136,61,62,63,135,141,81,82,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,83,131,99,100,101,132,102,103,104,105,106,107,108,109,110,111,112,113,115,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,140,138,139,137,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,75,76,74,58,57,56,67,66,60,64,65,68,77,78,59,70,71,72,69,79,80,73]},"version":"4.9.4"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/crawler/@types/Page.ts","../src/crawler/@types/Context.ts","../src/crawler/@types/Browser.ts","../src/crawler/Page.ts","../src/crawler/Context.ts","../node_modules/@odg/exception/dist/exceptions/Exception.d.ts","../node_modules/@odg/exception/dist/exceptions/UnknownException.d.ts","../node_modules/@odg/exception/dist/index.d.ts","../src/crawler/Exceptions/BrowserException.ts","../src/crawler/Exceptions/BrowserInstanceException.ts","../src/crawler/Browser.ts","../src/types/FunctionType.ts","../src/types/PromiseSyncType.ts","../src/Helpers/sleep.ts","../src/Helpers/index.ts","../src/Helpers/retry.ts","../src/crawler/Interfaces/HandlerInterface.ts","../src/crawler/Handlers/BaseHandler.ts","../src/crawler/Handlers/index.ts","../src/crawler/@types/index.ts","../src/crawler/Exceptions/index.ts","../src/crawler/Selectors/SelectorsTypo.ts","../src/crawler/Pages/BasePage.ts","../src/crawler/Pages/Components/BaseComponentPage.ts","../src/crawler/Pages/index.ts","../src/crawler/Interfaces/PageInterface.ts","../src/crawler/Interfaces/index.ts","../src/crawler/index.ts","../src/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","impliedFormat":1},{"version":"7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","impliedFormat":1},{"version":"8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","impliedFormat":1},{"version":"5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","impliedFormat":1},{"version":"4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","impliedFormat":1},{"version":"1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","impliedFormat":1},{"version":"746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","impliedFormat":1},{"version":"d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","impliedFormat":1},{"version":"aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c","impliedFormat":1},{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true,"impliedFormat":1},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true,"impliedFormat":1},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true,"impliedFormat":1},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true,"impliedFormat":1},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true,"impliedFormat":1},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true,"impliedFormat":1},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true,"impliedFormat":1},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f3695ecd942de2ad2cb982bc9b8011131c1c8758db1f7796209022d66bd34ba","signature":"96ab9b2fb13cb00eb8f74ba1b663f431f3ca8d60345f584ad743f2444474431a","impliedFormat":1},{"version":"f2a455c6f7fa3485335450f30ccb60ac7f2c0854125454f5922eef3025a3abef","signature":"0e80a9b6cc481df2b19033645c3732e1f2ef78b66deb82e1d0047bca7eedba05","impliedFormat":1},{"version":"f09f28ed29ff661a9fcb2e5f5925aef5dea0e043862a87db483210cb49a11c74","signature":"fcfb5ea316620aeea3cd690174f47b650fc8b77251d13889e7edd6fc8819826a","impliedFormat":1},{"version":"2b1649b851b73f3b6fbbebefc157ac173e5ded7ae21484de3c9bef6a7bf24c0b","signature":"e20b06b111c1d08b31bd396bf613a9f1923d40a1a8b1671c61358f721f6f90c3","impliedFormat":1},{"version":"523e911617c4a51f13b36832a18954d7fab74ac6e157f0b0414a394c3ee6969f","signature":"38f601c7abe52aaf27ed2ad6a500a5acf7847f96604ade5d99be1d872d8c19e9","impliedFormat":1},{"version":"26c73c122a410b363632919067345d82ea5fbff776e063319001f9e714d7de72","impliedFormat":1},{"version":"72b9c9f40c1fe32fa9bd1e1f4546905aafd3275b4053ccea8a223d3134f5d775","impliedFormat":1},{"version":"1df58ba1cc41c4166dcbe53efd88611b9ddf5a27f33f4eb88a9189ea2ea56473","impliedFormat":1},{"version":"b6f824013a2d3b46d9daba60acf2e14325b3b11192dc30908a1f3b38f92947a5","signature":"03b43add7d2c0f27e467ddb0566bb6f5b3842fbfe7ccc646db61e79e99950349","impliedFormat":1},{"version":"d0ec7975ec37e52acd4399f224f463caf5ac6e7ec19abc937ccc4ef4f430149d","signature":"ac01ae6d1b842b37c75d476f0bc8dff6b8cdf9aef53ff60621ce3fb4a3a99b34","impliedFormat":1},{"version":"adfd3bc1b6f63de66e2d648f9639983d5c01e4f4164bb92102e6e144623c8d79","signature":"a25ca30e4632a76fd1a1c66ea47ec78f3781dc225cf9405c29f48544867288dd","impliedFormat":1},{"version":"a9fa39c9482588a6624c5aedf8647448e97050117e9e4c90026a445c0f7088c6","signature":"5846476d4bef36e8874a46bc715aadc0ae5c0c3aa6a01b9a52b5ba1afe074396","impliedFormat":1},{"version":"58cbb30728349cc20c144127060bcec4d5d4288199bf81381dbea2d9edfec6c6","impliedFormat":1},{"version":"87ee195161f9331b9c535bca8ed9c5a89e9e9778f774c08b35b0a1a4db2d13d8","signature":"4481cae90707fe3fa76364c0b65e33e0d5b5f815e03966a9849cc1ba4995f797","impliedFormat":1},{"version":"5747af773d16d7b6998c1c131ea043d95bed265396ed44b771cc55a03b4457cc","impliedFormat":1},{"version":"9c3218b52912516000c1f56ccaf2c622e03f0e3bc9bac7dd08871f405745fe5d","signature":"5a4429ca135117333fc69cf968425404319dccada176cf1bed31dbc410c00d4e","impliedFormat":1},{"version":"2acf49e5fb37c905a934767dc57530fd8891b6a81adcd9cd17f85cb4b3587290","signature":"cdf6e27246056c612d2d43f33684a1268597ffe2800e1e265357f95bc527cc8c","impliedFormat":1},{"version":"82554cf25f78c48cd01266faeb542648aed8361c4e39559af351e755b9f266fb","signature":"03f8eb3b730a4e01ba678816278a05710f160b8bf61cb74edf9b41f30de41f24","impliedFormat":1},{"version":"1ce1b69509a7fbb9fc2c848821888212aec64c8e4e9653030ebb4fbe7edd737d","impliedFormat":1},{"version":"1a255b6ced127cd0314cf8ca3aa27fd60fb2f6ee7735e3ca8241d29c0f3a736e","impliedFormat":1},{"version":"a99b689d1379bfd256034b8fa0d16ff1acc4ac7b3729071b515bd4d9191b8d55","impliedFormat":1},{"version":"38aee2212abb5c29f0b4dbb6a014acb68881decd3735a7053c331edf8daa13de","signature":"3998722555c15402d6f5d91cc40b5ea578a7bd964e35f4f18bddc3a9708c99fd","impliedFormat":1},{"version":"d4689c7043b98ac50d6ebb49a95f812c037beaf97f1aacf21f8dcbcc7f2fb07e","signature":"0692ed12873eb350ef1af36cc8abe8e59906cddf5f33d65ec460dea68574b5e4","impliedFormat":1},{"version":"1e343a8e53d8c4216f72871579badcb29ff6dc4d637d42fc9c7545432cb03abb","signature":"25112cd85e369ce5507ffdc134db25df501960cfd52b80596a5e54a5e3704d54","impliedFormat":1},{"version":"0bcde7b0cbd741f162d5c515dff74f3b0a65ca19a535cce18497e35ff88d7157","impliedFormat":1},{"version":"762f82abfc0c91028fed08d1f06bf78d71d94d5f4546d754f614a3abc712a874","signature":"4a4478dd38164d796c8ca0d0e02ba94d6622c959b1f86bbe3e0071c7880a2db1","impliedFormat":1},{"version":"fdbb2049f6a802ccc27c8c4dd979a07702aef71ea877a4b7c980975033e4145c","impliedFormat":1},{"version":"b7435d21f5727786875213c238bdcf259a720ade14f90e46764f2c4f3d3d3dc6","impliedFormat":1},{"version":"05228e5e206508729d3399446be7165103b798667e72966aa112acdd3f1d1dfa","impliedFormat":1},{"version":"4911d4c3a7f7c11bad0e2cec329a19a385d10ea83b0b69c76e032359e388f624","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"4f6463a60e5754bbc4a864b2aaf8fecb7706b96a21b88f27b534589b801978b6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0","impliedFormat":1},{"version":"4ffef5c4698e94e49dcf150e3270bad2b24a2aeab48b24acbe7c1366edff377d","affectsGlobalScope":true,"impliedFormat":1},{"version":"2534e46a52653b55dfb5a41ce427ec430c4afbaaf3bfcb1ae09b185c5d6bf169","impliedFormat":1},{"version":"afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565","impliedFormat":1},{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"3f2478baf49cf27aa1335ba5299e2394131284e9d50a3845e3f95e52664ff518","impliedFormat":1},{"version":"f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","impliedFormat":1},{"version":"8bd106053ee0345dde7f626ed1f6100a89fb85f13ea65352627cf78c5f30c553","impliedFormat":1},{"version":"76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","impliedFormat":1},{"version":"0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","impliedFormat":1},{"version":"06ccebc2c2db57d6bdbca63b71c4ae5e6ddc42d972fd8f122d4c1a28aa111b25","impliedFormat":1},{"version":"81e8508d1e82278f5d3fee936f267e00c308af36219bfcee2631f9513c9c4017","affectsGlobalScope":true,"impliedFormat":1},{"version":"413a4be7f94f631235bbc83dad36c4d15e5a2ff02bca1efdbd03636d6454631b","impliedFormat":1},{"version":"20c468256fd68d3ef1fa53526e76d51d6aa91711e84d72c0343589b99238287e","impliedFormat":1},{"version":"4198acced75d48a039c078734c4efca7788ff8c78609c270a2b63ec20e3e1676","impliedFormat":1},{"version":"8d4c16a26d59e3ce49741a7d4a6e8206b884e226cf308667c7778a0b2c0fee7f","impliedFormat":1},{"version":"288dd0c774a5c6e3964084c7a2bc8cc6b746d70f44a9892d028d04f915cf7ebc","impliedFormat":1},{"version":"d61c7c41eb1960b1285e242fd102c162b65c0522985b839fadda59874308a170","impliedFormat":1},{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true,"impliedFormat":1},{"version":"1805e0e4d1ed00f6361db25dff6887c7fa9b5b39f32599a34e8551da7daaa9c2","impliedFormat":1},{"version":"abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","impliedFormat":1},{"version":"fb0989383c6109f20281b3d31265293daefdd76d0d30551782c1654e93704f48","impliedFormat":1},{"version":"a4210a84a82b3e7a8cec5b2f3616e46d523f4f10cc1576d8f2fb89d0987b341e","impliedFormat":1},{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","impliedFormat":1},{"version":"22d48bfb37261136423ac687f1fa7bd4dda3083f767416d409a8260cf92bc8fc","impliedFormat":1},{"version":"29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","impliedFormat":1},{"version":"0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","impliedFormat":1},{"version":"95518ff86843e226b62a800f679f6968ad8dac8ccbe30fbfe63de3afb13761a2","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"698ab660b477b9c2cd5ccbd99e7e7df8b4a6134c1f5711fa615ed7aab51cb7f7","impliedFormat":1},{"version":"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","impliedFormat":1},{"version":"c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637","impliedFormat":1},{"version":"a4471d2bdba495b2a6a30b8765d5e0282fa7009d88345a9528f73c37869d3b93","impliedFormat":1},{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"c9d70d3d7191a66a81cb554557f8ed1cf736ea8397c44a864fe52689de18865a","impliedFormat":1},{"version":"998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","impliedFormat":1},{"version":"ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","impliedFormat":1},{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true,"impliedFormat":1},{"version":"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","impliedFormat":1},{"version":"c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","impliedFormat":1},{"version":"235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","impliedFormat":1},{"version":"bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","impliedFormat":1},{"version":"9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","impliedFormat":1},{"version":"c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"88003d9ab15507806f41b120be6d407c1afe566c2f6689ebe3a034dd5ec0c8dc","impliedFormat":1},{"version":"a7321c0e96eecb19dcbf178493836474cef21ee3f9345384ce9d74e4be31228d","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"3054ef91b855e005b9c4681399e9d64d2a7b07a22d539314d794f09e53b876a7","impliedFormat":1},{"version":"427ce5854885cfc34387e09de05c1d5c1acf94c2143e1693f1d9ff54880573e7","impliedFormat":1},{"version":"bed2c4f96fab3348be4a34d88dcb12578c1b2475b07c6acd369e99e227718d81","impliedFormat":1},{"version":"e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","impliedFormat":1},{"version":"9ac9b7b349a96ff204f4172183cca1672cc402e1ee7277bfcdec96c000b7d818","impliedFormat":1},{"version":"ac127e4c6f2b5220b293cc9d2e64ba49781225b792a51cda50f3db8eafba550c","impliedFormat":1},{"version":"9aec3838773b6daece49517d7c04777c538ae9e9881ffb4e6d9aa8fc0c775a61","affectsGlobalScope":true,"impliedFormat":1}],"options":{"alwaysStrict":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":100,"newLine":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","preserveConstEnums":true,"removeComments":false,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":5},"fileIdsList":[[129],[129,139],[61,129],[61,62,129],[129,141,144],[85,129],[88,129],[89,94,120,129],[90,100,101,108,117,128,129],[90,91,100,108,129],[92,129],[93,94,101,109,129],[94,117,125,129],[95,97,100,108,129],[96,129],[97,98,129],[99,100,129],[100,129],[100,101,102,117,128,129],[100,101,102,117,129],[103,108,117,128,129],[100,101,103,104,108,117,125,128,129],[103,105,117,125,128,129],[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135],[100,106,129],[107,128,129],[97,100,108,117,129],[109,129],[110,129],[88,111,129],[112,127,129,133],[113,129],[114,129],[100,115,129],[115,116,129,131],[89,100,117,118,119,129],[89,117,119,129],[117,118,129],[120,129],[121,129],[100,123,124,129],[123,124,129],[94,108,125,129],[126,129],[108,127,129],[89,103,114,128,129],[94,129],[117,129,130],[129,131],[129,132],[89,94,100,102,111,117,128,129,131,133],[117,129,134],[129,137,143],[129,141],[129,138,142],[129,140],[69,71,129],[63,67,68,70,129],[56,57,129],[56,58,129],[57,58,129],[56,57,58,129],[56,57,58,60,65,129],[56,57,58,59,129],[63,129],[64,129],[64,65,129],[63,72,83,84,129],[73,129],[63,71,129],[72,81,129],[63,67,68,77,83,84,129],[78,83,129],[78,79,129],[59,60,66,74,75,76,77,80,82,129],[70,83,129],[63,67,68],[56,57],[56,58],[57,58],[56,57,58],[63],[64],[63,72,83,84],[63,71],[63,67,68,77,83,84],[78,83]],"referencedMap":[[137,1],[140,2],[61,1],[62,3],[63,4],[139,1],[145,5],[85,6],[86,6],[88,7],[89,8],[90,9],[91,10],[92,11],[93,12],[94,13],[95,14],[96,15],[97,16],[98,16],[99,17],[100,18],[101,19],[102,20],[87,1],[135,1],[103,21],[104,22],[105,23],[136,24],[106,25],[107,26],[108,27],[109,28],[110,29],[111,30],[112,31],[113,32],[114,33],[115,34],[116,35],[117,36],[119,37],[118,38],[120,39],[121,40],[122,1],[123,41],[124,42],[125,43],[126,44],[127,45],[128,46],[129,47],[130,48],[131,49],[132,50],[133,51],[134,52],[138,1],[144,53],[142,54],[143,55],[141,56],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[70,57],[71,58],[69,1],[58,59],[57,60],[56,61],[75,62],[66,63],[60,64],[64,65],[65,66],[76,67],[73,68],[74,69],[72,70],[81,70],[82,71],[59,62],[78,72],[79,73],[80,74],[77,1],[83,75],[84,76],[67,1],[68,1]],"exportedModulesMap":[[137,1],[140,2],[61,1],[62,3],[63,4],[139,1],[145,5],[85,6],[86,6],[88,7],[89,8],[90,9],[91,10],[92,11],[93,12],[94,13],[95,14],[96,15],[97,16],[98,16],[99,17],[100,18],[101,19],[102,20],[87,1],[135,1],[103,21],[104,22],[105,23],[136,24],[106,25],[107,26],[108,27],[109,28],[110,29],[111,30],[112,31],[113,32],[114,33],[115,34],[116,35],[117,36],[119,37],[118,38],[120,39],[121,40],[122,1],[123,41],[124,42],[125,43],[126,44],[127,45],[128,46],[129,47],[130,48],[131,49],[132,50],[133,51],[134,52],[138,1],[144,53],[142,54],[143,55],[141,56],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[70,57],[71,77],[58,78],[57,79],[56,80],[75,62],[66,81],[60,81],[64,82],[65,83],[76,67],[73,84],[74,69],[72,85],[81,85],[82,71],[59,81],[78,86],[79,87],[80,74],[83,75],[84,76],[68,1]],"semanticDiagnosticsPerFile":[137,140,61,62,63,139,145,85,86,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,87,135,103,104,105,136,106,107,108,109,110,111,112,113,114,115,116,117,119,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,138,144,142,143,141,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,70,71,69,58,57,56,75,66,60,64,65,76,73,74,72,81,82,59,78,79,80,77,83,84,67,68]},"version":"4.9.4"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PromiseOrSyncType<T> = Promise<T> | T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromiseSyncType.js","sourceRoot":"","sources":["../../src/types/PromiseSyncType.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odg/chemical-x",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Chemical-X Project It's the basis of everything",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"build:watch": "rimraf build && tsc --project ./tsconfig.build.json -w",
|
|
15
15
|
"dev": "ts-node ./src/index.ts",
|
|
16
16
|
"start": "node ./dist/index.ts",
|
|
17
|
-
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.jsonc,.json5,.yml,.yaml,.xml,.txt,.svg,.properties,.gradle,.java,.cpp,.c,.cs,.html,.css,.groovy,.gitignore,.npmignore,.toml,.env,.example,.sample,.ini,.php,.bat,.powershell,.ps1,.sh,.bash",
|
|
18
|
-
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.json,.jsonc,.json5,.yml,.yaml,.xml,.txt,.svg,.properties,.gradle,.java,.cpp,.c,.cs,.html,.css,.groovy,.gitignore,.npmignore,.toml,.env,.example,.sample,.ini,.php,.bat,.powershell,.ps1,.sh,.bash --fix",
|
|
17
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.jsonc,.json5,.yml,.yaml,.xml,.txt,.svg,.properties,.gradle,.java,.cpp,.c,.cs,.html,.css,.groovy,.gitignore,.npmignore,.toml,.env,.example,.sample,.ini,.php,.bat,.powershell,.ps1,.sh,.bash,.eslintrc",
|
|
18
|
+
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.json,.jsonc,.json5,.yml,.yaml,.xml,.txt,.svg,.properties,.gradle,.java,.cpp,.c,.cs,.html,.css,.groovy,.gitignore,.npmignore,.toml,.env,.example,.sample,.ini,.php,.bat,.powershell,.ps1,.sh,.bash,.eslintrc --fix",
|
|
19
19
|
"test": "jest",
|
|
20
20
|
"test:ci": "jest --ci --passWithNoTests",
|
|
21
21
|
"test:watch": "jest --watchAll"
|