@odg/chemical-x 1.0.0

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.
Files changed (69) hide show
  1. package/README.md +156 -0
  2. package/dist/Helpers/index.d.ts +2 -0
  3. package/dist/Helpers/index.js +19 -0
  4. package/dist/Helpers/index.js.map +1 -0
  5. package/dist/Helpers/retry.d.ts +16 -0
  6. package/dist/Helpers/retry.js +42 -0
  7. package/dist/Helpers/retry.js.map +1 -0
  8. package/dist/Helpers/sleep.d.ts +2 -0
  9. package/dist/Helpers/sleep.js +11 -0
  10. package/dist/Helpers/sleep.js.map +1 -0
  11. package/dist/crawler/@types/Browser.d.ts +16 -0
  12. package/dist/crawler/@types/Browser.js +3 -0
  13. package/dist/crawler/@types/Browser.js.map +1 -0
  14. package/dist/crawler/@types/Context.d.ts +14 -0
  15. package/dist/crawler/@types/Context.js +3 -0
  16. package/dist/crawler/@types/Context.js.map +1 -0
  17. package/dist/crawler/@types/Page.d.ts +9 -0
  18. package/dist/crawler/@types/Page.js +3 -0
  19. package/dist/crawler/@types/Page.js.map +1 -0
  20. package/dist/crawler/@types/index.d.ts +3 -0
  21. package/dist/crawler/@types/index.js +20 -0
  22. package/dist/crawler/@types/index.js.map +1 -0
  23. package/dist/crawler/Browser.d.ts +15 -0
  24. package/dist/crawler/Browser.js +40 -0
  25. package/dist/crawler/Browser.js.map +1 -0
  26. package/dist/crawler/Context.d.ts +14 -0
  27. package/dist/crawler/Context.js +42 -0
  28. package/dist/crawler/Context.js.map +1 -0
  29. package/dist/crawler/Exceptions/BrowserException.d.ts +3 -0
  30. package/dist/crawler/Exceptions/BrowserException.js +8 -0
  31. package/dist/crawler/Exceptions/BrowserException.js.map +1 -0
  32. package/dist/crawler/Exceptions/BrowserInstanceException.d.ts +3 -0
  33. package/dist/crawler/Exceptions/BrowserInstanceException.js +8 -0
  34. package/dist/crawler/Exceptions/BrowserInstanceException.js.map +1 -0
  35. package/dist/crawler/Exceptions/index.d.ts +2 -0
  36. package/dist/crawler/Exceptions/index.js +19 -0
  37. package/dist/crawler/Exceptions/index.js.map +1 -0
  38. package/dist/crawler/Interfaces/PageInterface.d.ts +9 -0
  39. package/dist/crawler/Interfaces/PageInterface.js +3 -0
  40. package/dist/crawler/Interfaces/PageInterface.js.map +1 -0
  41. package/dist/crawler/Interfaces/index.d.ts +1 -0
  42. package/dist/crawler/Interfaces/index.js +18 -0
  43. package/dist/crawler/Interfaces/index.js.map +1 -0
  44. package/dist/crawler/Page.d.ts +11 -0
  45. package/dist/crawler/Page.js +27 -0
  46. package/dist/crawler/Page.js.map +1 -0
  47. package/dist/crawler/Pages/BasePage.d.ts +11 -0
  48. package/dist/crawler/Pages/BasePage.js +18 -0
  49. package/dist/crawler/Pages/BasePage.js.map +1 -0
  50. package/dist/crawler/Pages/Components/BaseComponentPage.d.ts +4 -0
  51. package/dist/crawler/Pages/Components/BaseComponentPage.js +8 -0
  52. package/dist/crawler/Pages/Components/BaseComponentPage.js.map +1 -0
  53. package/dist/crawler/Pages/index.d.ts +2 -0
  54. package/dist/crawler/Pages/index.js +19 -0
  55. package/dist/crawler/Pages/index.js.map +1 -0
  56. package/dist/crawler/Selectors/SelectorsTypo.d.ts +3 -0
  57. package/dist/crawler/Selectors/SelectorsTypo.js +3 -0
  58. package/dist/crawler/Selectors/SelectorsTypo.js.map +1 -0
  59. package/dist/crawler/index.d.ts +8 -0
  60. package/dist/crawler/index.js +25 -0
  61. package/dist/crawler/index.js.map +1 -0
  62. package/dist/index.d.ts +2 -0
  63. package/dist/index.js +19 -0
  64. package/dist/index.js.map +1 -0
  65. package/dist/tsconfig.build.tsbuildinfo +1 -0
  66. package/dist/types/FunctionType.d.ts +1 -0
  67. package/dist/types/FunctionType.js +3 -0
  68. package/dist/types/FunctionType.js.map +1 -0
  69. package/package.json +73 -0
package/README.md ADDED
@@ -0,0 +1,156 @@
1
+ <h1 align="center">
2
+ <a href="https://github.com/ODGodinho">
3
+ <img
4
+ src="https://raw.githubusercontent.com/ODGodinho/Stanley-TheTemplate/main/public/images/Stanley.jpg"
5
+ alt="Stanley Imagem" width="500"
6
+ />
7
+ </a>
8
+ <br />
9
+ Stanley The Template For Typescript By Dragons Gamers
10
+ <br />
11
+ </h1>
12
+
13
+ <h4 align="center">Template Stanley for Typescript projects and packages 📦!</h4>
14
+
15
+ <p align="center">
16
+
17
+ [![codecov](https://codecov.io/gh/ODGodinho/Stanley-TheTemplate-Typescript/branch/main/graph/badge.svg?token=HNBNLLPZ3J)](https://codecov.io/gh/ODGodinho/Stanley-TheTemplate-Typescript)
18
+ [![Stargazers](https://img.shields.io/github/stars/ODGodinho/Stanley-TheTemplate-Typescript?color=F430A4)](https://github.com/ODGodinho/Stanley-TheTemplate-Typescript/stargazers)
19
+ [![Made by ODGodinho](https://img.shields.io/badge/made%20by-ODGodinho-%2304A361)](https://www.linkedin.com/in/victor-alves-odgodinho/)
20
+ [![Forks](https://img.shields.io/github/forks/ODGodinho/Stanley-TheTemplate-Typescript?color=CD4D34)](https://github.com/ODGodinho/Stanley-TheTemplate-Typescript/network/members)
21
+ ![Repository size](https://img.shields.io/github/repo-size/ODGodinho/Stanley-TheTemplate-Typescript)
22
+ [![GitHub last commit](https://img.shields.io/github/last-commit/ODGodinho/Stanley-TheTemplate-Typescript)](https://github.com/ODGodinho/Stanley-TheTemplate-Typescript/commits/master)
23
+ [![License](https://img.shields.io/badge/license-MIT-brightgreen)](https://opensource.org/licenses/MIT)
24
+ [![StyleCI](https://github.styleci.io/repos/562306382/shield?branch=main)](https://github.styleci.io/repos/562306382?branch=main)
25
+
26
+ </p>
27
+
28
+ # Table of Contents
29
+
30
+ - [🎇 Benefits](#-benefits)
31
+ - [📗 Libraries](#-libraries)
32
+ - [📁 Dependencies](#-dependencies)
33
+ - [⏩ Get Started](#-get-started)
34
+ - [🔘 Use Template](#-use-template)
35
+ - [🔑 Configure Github Secrets](#-configure-github-secrets)
36
+ - [🙈 Create Github Token](#-create-github-token)
37
+ - [🍀 Code Coverage](#-code-coverage)
38
+ - [📦 Create NPM Token](#-create-npm-token)
39
+ - [🔐 Create project Environment](#-create-project-environment)
40
+ - [💻 Prepare to develop](#-prepare-to-develop)
41
+ - [📍 Start Project](#-start-project)
42
+ - [📨 Build and Run](#-build-and-run)
43
+ - [🧪 Teste Code](#-teste-code)
44
+
45
+ ---
46
+
47
+ ## 🎇 Benefits
48
+
49
+ - 🚀 Speed start new project or package using typescript
50
+ - 🚨 Over 800 rules for pattern, possible errors and errors in Linter
51
+ - 🎇 Code quality guaranteed
52
+ - 📢 AutoReview when opening a pull-request/merge
53
+ ![AutoReview Comment example](https://user-images.githubusercontent.com/3797062/97085944-87233a80-165b-11eb-94a8-0a47d5e24905.png)
54
+ - 🧪 Automatic Test when opening pull-request/merge
55
+ - 📈 Automatic Code Coverage when opening pull-request/merge
56
+ ![Code Coverage example](https://app.codecov.io/static/media/codecov-report.eeef5dba5ea18b5ed6a4.png)
57
+ - 📦 Automatic Package and release generate on merge
58
+
59
+ ## 📗 Libraries
60
+
61
+ - [Node.js 16](https://nodejs.org/?n=dragonsgamers)
62
+ - [Typescript](https://www.typescriptlang.org/?n=dragonsgamers)
63
+ - [Eslint](https://eslint.org/?n=dragonsgamers)
64
+ - [ODG-Linter-JS](https://github.com/ODGodinho/ODG-Linter-Js?n=dragonsgamers)
65
+ - [EditorConfig](https://editorconfig.org/?n=dragonsgamers)
66
+ - [ReviewDog](https://github.com/reviewdog/action-eslint)
67
+
68
+ ## 📁 Dependencies
69
+
70
+ - [Node.js](https://nodejs.org) 16 or later
71
+ - [Yarn](https://yarnpkg.com/) Optional/Recommended
72
+ - [ODG TsConfig](https://github.com/ODGodinho/tsconfig) Last Version
73
+
74
+ ## ⏩ Get Started
75
+
76
+ ---
77
+
78
+ ### 🔘 Use Template
79
+
80
+ Click in use this template button and clone your template project
81
+
82
+ ![Use Template](https://raw.githubusercontent.com/ODGodinho/Stanley-TheTemplate/main/public/images/UseTemplate.png)
83
+
84
+ ### 🔑 Configure Github Secrets
85
+
86
+ #### 🙈 Create Github Token
87
+
88
+ Before create new GITHUB_TOKEN in
89
+
90
+ - <https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token>
91
+
92
+ #### 🍀 Code Coverage
93
+
94
+ Add Code Coverage support in your project
95
+
96
+ 1. Install CodeCov in your account <https://github.com/apps/codecov>
97
+ 2. Enter In <https://app.codecov.io/gh/+> and search your repository
98
+ 3. Click `setup repo`
99
+ 4. Copy CODECOV_TOKEN and create a secret called CODECOV_TOKEN
100
+
101
+ #### 📦 Create NPM Token
102
+
103
+ if you want to generate packages create a secret called IS_PACKAGE = true AND create new NPM_TOKEN in
104
+
105
+ - <https://docs.npmjs.com/creating-and-viewing-access-tokens>
106
+
107
+ #### 🔐 Create project Environment
108
+
109
+ - On GitHub.com, navigate to the main page of the repository.
110
+ - Under your repository name, click `⚙️ Settings`.
111
+ ![Github Setting images example](https://docs.github.com/assets/cb-27528/images/help/repository/repo-actions-settings.png)
112
+ - In the "Security" section of the sidebar, select `✳️ Secrets`, then click Actions.
113
+ - Click New repository secret.
114
+ - Type a name with: **GH_TOKEN**
115
+ - Enter with your access secret token `ghp_Dsfde....`
116
+ - Click Add secret.
117
+ - If you are going to publish package:
118
+ - create **IS_PACKAGE** = `true`
119
+ - create **NPM_TOKEN** = `npm_szxw......`
120
+ - create **CODECOV_TOKEN** = `00000000-0000-0000-0000-000000000000`
121
+
122
+ ### 💻 Prepare To Develop
123
+
124
+ Copy `.env.example` to `.env` and add the values according to your needs.
125
+
126
+ ### 📍 Start Project
127
+
128
+ First install dependencies with the following command
129
+
130
+ ```bash
131
+ yarn install
132
+ # or
133
+ npm install
134
+ ```
135
+
136
+ ## 📨 Build and Run
137
+
138
+ To build the project, you can use the following command
139
+
140
+ > if you change files, you need to run `yarn build` and `yarn start` again
141
+
142
+ ```bash
143
+ yarn build && yarn start
144
+ # or
145
+ yarn dev
146
+ ```
147
+
148
+ ## 🧪 Teste Code
149
+
150
+ To Test execute this command
151
+
152
+ ```bash
153
+ yarn test
154
+ # or
155
+ yarn test:watch
156
+ ```
@@ -0,0 +1,2 @@
1
+ export * from "./sleep";
2
+ export * from "./retry";
@@ -0,0 +1,19 @@
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("./sleep"), exports);
18
+ __exportStar(require("./retry"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
@@ -0,0 +1,16 @@
1
+ import { Exception } from "@odg/exception";
2
+ import { type FunctionParameterType } from "../types/FunctionType";
3
+ export declare enum RetryAction {
4
+ Retry = "Retry",
5
+ Throw = "Throw",
6
+ Resolve = "Resolve",
7
+ Default = "Default"
8
+ }
9
+ interface RetryOptionsInterface<ReturnType> {
10
+ times: number;
11
+ sleep?: number;
12
+ callback: FunctionParameterType<Promise<ReturnType> | ReturnType, number>;
13
+ when?(exception: Exception, times: number): Promise<RetryAction> | RetryAction;
14
+ }
15
+ export declare function retry<ReturnType>(options: RetryOptionsInterface<ReturnType>): Promise<ReturnType | undefined>;
16
+ export {};
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.retry = exports.RetryAction = void 0;
4
+ const exception_1 = require("@odg/exception");
5
+ const _1 = require(".");
6
+ var RetryAction;
7
+ (function (RetryAction) {
8
+ RetryAction["Retry"] = "Retry";
9
+ RetryAction["Throw"] = "Throw";
10
+ RetryAction["Resolve"] = "Resolve";
11
+ RetryAction["Default"] = "Default";
12
+ })(RetryAction = exports.RetryAction || (exports.RetryAction = {}));
13
+ async function retryHelper(options) {
14
+ var _a, _b, _c;
15
+ try {
16
+ return await options.callback(options.attempt);
17
+ }
18
+ catch (exception) {
19
+ const exceptionParse = (_a = exception_1.Exception.parse(exception)) !== null && _a !== void 0 ? _a : new exception_1.UnknownException("Retry unknown Exception", exception);
20
+ const when = await ((_b = options.when) === null || _b === void 0 ? void 0 : _b.call(options, exceptionParse, options.attempt));
21
+ if (when === RetryAction.Resolve) {
22
+ return;
23
+ }
24
+ if ((options.times < 1 || when === RetryAction.Throw) && when !== RetryAction.Retry) {
25
+ throw exceptionParse;
26
+ }
27
+ await (0, _1.sleep)((_c = options.sleep) !== null && _c !== void 0 ? _c : 0);
28
+ return retryHelper({
29
+ ...options,
30
+ times: options.times - 1,
31
+ attempt: options.attempt + 1,
32
+ });
33
+ }
34
+ }
35
+ async function retry(options) {
36
+ return retryHelper({
37
+ ...options,
38
+ attempt: 0,
39
+ });
40
+ }
41
+ exports.retry = retry;
42
+ //# sourceMappingURL=retry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.js","sourceRoot":"","sources":["../../src/Helpers/retry.ts"],"names":[],"mappings":";;;AAAA,8CAA6D;AAI7D,wBAA0B;AAO1B,IAAY,WA8BX;AA9BD,WAAY,WAAW;IAOnB,8BAAe,CAAA;IAOf,8BAAe,CAAA;IAOf,kCAAmB,CAAA;IAQnB,kCAAmB,CAAA;AACvB,CAAC,EA9BW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA8BtB;AAmDD,KAAK,UAAU,WAAW,CACtB,OAAgE;;IAEhE,IAAI;QACA,OAAO,MAAM,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;KAClD;IAAC,OAAO,SAAkB,EAAE;QACzB,MAAM,cAAc,GAAG,MAAA,qBAAS,CAAC,KAAK,CAAC,SAAS,CAAC,mCAAI,IAAI,4BAAgB,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;QAChH,MAAM,IAAI,GAAG,MAAM,CAAA,MAAA,OAAO,CAAC,IAAI,wDAAG,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA,CAAC;QACnE,IAAI,IAAI,KAAK,WAAW,CAAC,OAAO,EAAE;YAC9B,OAAO;SACV;QAED,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,KAAK,WAAW,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,WAAW,CAAC,KAAK,EAAE;YACjF,MAAM,cAAc,CAAC;SACxB;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;AASM,KAAK,UAAU,KAAK,CACvB,OAA0C;IAE1C,OAAO,WAAW,CAAa;QAC3B,GAAG,OAAO;QACV,OAAO,EAAE,CAAC;KACb,CAAC,CAAC;AACP,CAAC;AAPD,sBAOC"}
@@ -0,0 +1,2 @@
1
+ export declare function sleep(milliseconds: number): Promise<void>;
2
+ export default sleep;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sleep = void 0;
4
+ async function sleep(milliseconds) {
5
+ return new Promise((resolve) => {
6
+ setTimeout(resolve, milliseconds);
7
+ });
8
+ }
9
+ exports.sleep = sleep;
10
+ exports.default = sleep;
11
+ //# sourceMappingURL=sleep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/Helpers/sleep.ts"],"names":[],"mappings":";;;AAMO,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"}
@@ -0,0 +1,16 @@
1
+ import { type ContextEngineInterface, type ContextChemicalXConstructorTypo, type ContextOptionsLibraryInterface, type ContextChemicalXInterface } from "./Context";
2
+ import { type PageEngineInterface, type PageChemicalXConstructorTypo } from "./Page";
3
+ export interface BrowserOptionsLibraryInterface {
4
+ args?: string[];
5
+ headless?: boolean;
6
+ }
7
+ export interface BrowserEngineInterface {
8
+ newContext?: CallableFunction;
9
+ createIncognitoBrowserContext?: CallableFunction;
10
+ }
11
+ export interface BrowserChemicalXInterface<BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface> {
12
+ $browserInstance: BrowserClassEngine;
13
+ newContext(options?: ContextOptionsLibraryInterface): Promise<ContextChemicalXInterface<ContextClassEngine> & ContextClassEngine>;
14
+ setUp(): Promise<this>;
15
+ }
16
+ export type BrowserChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface> = new ($browserEngine: BrowserTypeEngine, $browserClass: BrowserChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>) => BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../src/crawler/@types/Browser.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { type BrowserChemicalXInterface, type BrowserEngineInterface } from "./Browser";
2
+ import { type PageEngineInterface, type PageChemicalXConstructorTypo } from "./Page";
3
+ export interface ContextOptionsLibraryInterface {
4
+ timeout?: number;
5
+ }
6
+ export interface ContextEngineInterface {
7
+ newPage: CallableFunction;
8
+ }
9
+ export type ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface> = new ($browserClass: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>, $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $options?: ContextOptionsLibraryInterface) => ContextChemicalXInterface<ContextClassEngine>;
10
+ export interface ContextChemicalXInterface<ContextClassEngine extends ContextEngineInterface> {
11
+ $contextInstance: ContextClassEngine;
12
+ newPage: CallableFunction;
13
+ contextOptions(): Promise<ContextOptionsLibraryInterface>;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../src/crawler/@types/Context.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { type BrowserChemicalXInterface, type BrowserEngineInterface } from "./Browser";
2
+ import { type ContextChemicalXInterface, type ContextEngineInterface } from "./Context";
3
+ export type PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface> = new ($browserClass: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>, $contextClass: ContextChemicalXInterface<ContextClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>) => PageChemicalXInterface<PageClassEngine>;
4
+ export interface PageChemicalXInterface<PageClassEngine extends PageEngineInterface> {
5
+ $pageInstance: PageClassEngine;
6
+ }
7
+ export interface PageEngineInterface {
8
+ goto: CallableFunction;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../src/crawler/@types/Page.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from "./Browser";
2
+ export * from "./Context";
3
+ export * from "./Page";
@@ -0,0 +1,20 @@
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("./Browser"), exports);
18
+ __exportStar(require("./Context"), exports);
19
+ __exportStar(require("./Page"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/@types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB"}
@@ -0,0 +1,15 @@
1
+ import { type BrowserOptionsLibraryInterface, type BrowserChemicalXInterface, type BrowserChemicalXConstructorTypo, type BrowserEngineInterface } from "./@types/Browser";
2
+ import { type ContextChemicalXInterface, type ContextEngineInterface, type ContextOptionsLibraryInterface, type ContextChemicalXConstructorTypo } from "./@types/Context";
3
+ import { type PageEngineInterface, type PageChemicalXConstructorTypo } from "./@types/Page";
4
+ export declare abstract class Browser<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface> implements BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine> {
5
+ readonly $browserEngine: BrowserTypeEngine;
6
+ readonly $browserClass: BrowserChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>;
7
+ readonly $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>;
8
+ readonly $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>;
9
+ $browserInstance: BrowserClassEngine;
10
+ constructor($browserEngine: BrowserTypeEngine, $browserClass: BrowserChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>);
11
+ static create<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface>($browserEngine: BrowserTypeEngine, $browserClass: BrowserChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>): BrowserClassEngine & BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>;
12
+ browserOptions(): Promise<BrowserOptionsLibraryInterface>;
13
+ newContext(options?: ContextOptionsLibraryInterface): Promise<ContextChemicalXInterface<ContextClassEngine> & ContextClassEngine>;
14
+ abstract setUp(): Promise<this>;
15
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Browser = void 0;
4
+ const Context_1 = require("./Context");
5
+ const BrowserInstanceException_1 = require("./Exceptions/BrowserInstanceException");
6
+ class Browser {
7
+ constructor($browserEngine, $browserClass, $contextClass, $pageClass) {
8
+ this.$browserEngine = $browserEngine;
9
+ this.$browserClass = $browserClass;
10
+ this.$contextClass = $contextClass;
11
+ this.$pageClass = $pageClass;
12
+ }
13
+ static create($browserEngine, $browserClass, $contextClass, $pageClass) {
14
+ const browserInstance = new $browserClass($browserEngine, $browserClass, $contextClass, $pageClass);
15
+ return new Proxy(browserInstance, {
16
+ get(target, property) {
17
+ if (property in target) {
18
+ return Reflect.get(target, property);
19
+ }
20
+ if (!target.$browserInstance) {
21
+ throw new BrowserInstanceException_1.BrowserInstanceException("use browser.setUp() to init browser");
22
+ }
23
+ const propertyClass = target.$browserInstance[property];
24
+ return typeof propertyClass === "function"
25
+ ? propertyClass.bind(target.$browserInstance)
26
+ : Reflect.get(target.$browserInstance, property);
27
+ },
28
+ });
29
+ }
30
+ async browserOptions() {
31
+ return {
32
+ headless: false,
33
+ };
34
+ }
35
+ async newContext(options) {
36
+ return Context_1.Context.create(this, this.$contextClass, this.$pageClass, options);
37
+ }
38
+ }
39
+ exports.Browser = Browser;
40
+ //# sourceMappingURL=Browser.js.map
@@ -0,0 +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,KAAK;SAClB,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"}
@@ -0,0 +1,14 @@
1
+ import { type BrowserChemicalXInterface, type BrowserEngineInterface } from "./@types/Browser";
2
+ import { type ContextChemicalXInterface, type ContextOptionsLibraryInterface, type ContextChemicalXConstructorTypo, type ContextEngineInterface } from "./@types/Context";
3
+ import { type PageChemicalXInterface, type PageChemicalXConstructorTypo, type PageEngineInterface } from "./@types/Page";
4
+ export declare abstract class Context<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface> implements ContextChemicalXInterface<ContextClassEngine> {
5
+ readonly $browserInstance: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>;
6
+ readonly $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>;
7
+ readonly $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>;
8
+ readonly $options?: ContextOptionsLibraryInterface | undefined;
9
+ $contextInstance: ContextClassEngine;
10
+ constructor($browserInstance: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>, $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $options?: ContextOptionsLibraryInterface | undefined);
11
+ static create<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface>($browserInstance: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>, $contextClass: ContextChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>, $options?: ContextOptionsLibraryInterface): Promise<ContextChemicalXInterface<ContextClassEngine> & ContextClassEngine>;
12
+ contextOptions(): Promise<ContextOptionsLibraryInterface>;
13
+ newPage(): Promise<PageChemicalXInterface<PageClassEngine> & PageEngineInterface>;
14
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Context = void 0;
4
+ const Page_1 = require("./Page");
5
+ class Context {
6
+ constructor($browserInstance, $contextClass, $pageClass, $options) {
7
+ this.$browserInstance = $browserInstance;
8
+ this.$contextClass = $contextClass;
9
+ this.$pageClass = $pageClass;
10
+ this.$options = $options;
11
+ }
12
+ static async create($browserInstance, $contextClass, $pageClass, $options) {
13
+ var _a;
14
+ const contextInstance = new $contextClass($browserInstance, $contextClass, $pageClass, $options);
15
+ const prepareContext = ((_a = $browserInstance.$browserInstance.newContext) !== null && _a !== void 0 ? _a : $browserInstance.$browserInstance.createIncognitoBrowserContext);
16
+ contextInstance.$contextInstance = await prepareContext.call($browserInstance.$browserInstance, {
17
+ ...await contextInstance.contextOptions(),
18
+ $options,
19
+ });
20
+ return new Proxy(contextInstance, {
21
+ get(target, property) {
22
+ if (property in target) {
23
+ return Reflect.get(target, property);
24
+ }
25
+ const propertyClass = contextInstance.$contextInstance[property];
26
+ return typeof propertyClass === "function"
27
+ ? propertyClass.bind(contextInstance.$contextInstance)
28
+ : Reflect.get(contextInstance.$contextInstance, property);
29
+ },
30
+ });
31
+ }
32
+ async contextOptions() {
33
+ return {
34
+ timeout: 30000,
35
+ };
36
+ }
37
+ async newPage() {
38
+ return Page_1.Page.create(this.$browserInstance, this, this.$pageClass);
39
+ }
40
+ }
41
+ exports.Context = Context;
42
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +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,6BAA8B,CACiB,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,3 @@
1
+ import { Exception } from "@odg/exception";
2
+ export declare class BrowserException extends Exception {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BrowserException = void 0;
4
+ const exception_1 = require("@odg/exception");
5
+ class BrowserException extends exception_1.Exception {
6
+ }
7
+ exports.BrowserException = BrowserException;
8
+ //# sourceMappingURL=BrowserException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserException.js","sourceRoot":"","sources":["../../../src/crawler/Exceptions/BrowserException.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAE3C,MAAa,gBAAiB,SAAQ,qBAAS;CAE9C;AAFD,4CAEC"}
@@ -0,0 +1,3 @@
1
+ import { BrowserException } from "./BrowserException";
2
+ export declare class BrowserInstanceException extends BrowserException {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BrowserInstanceException = void 0;
4
+ const BrowserException_1 = require("./BrowserException");
5
+ class BrowserInstanceException extends BrowserException_1.BrowserException {
6
+ }
7
+ exports.BrowserInstanceException = BrowserInstanceException;
8
+ //# sourceMappingURL=BrowserInstanceException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserInstanceException.js","sourceRoot":"","sources":["../../../src/crawler/Exceptions/BrowserInstanceException.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAEtD,MAAa,wBAAyB,SAAQ,mCAAgB;CAE7D;AAFD,4DAEC"}
@@ -0,0 +1,2 @@
1
+ export * from "./BrowserException";
2
+ export * from "./BrowserInstanceException";
@@ -0,0 +1,19 @@
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("./BrowserException"), exports);
18
+ __exportStar(require("./BrowserInstanceException"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/Exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,6DAA2C"}
@@ -0,0 +1,9 @@
1
+ import { type Exception } from "@odg/exception";
2
+ import { type RetryAction } from "../../Helpers/retry";
3
+ export interface PageInterface {
4
+ execute(): Promise<void>;
5
+ success(): Promise<void>;
6
+ failed(exception: Exception): Promise<RetryAction>;
7
+ finish?(exception?: Exception): Promise<void>;
8
+ attempt(): Promise<number>;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PageInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageInterface.js","sourceRoot":"","sources":["../../../src/crawler/Interfaces/PageInterface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from "./PageInterface";
@@ -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("./PageInterface"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/Interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
@@ -0,0 +1,11 @@
1
+ import { type BrowserChemicalXInterface, type BrowserEngineInterface } from "./@types/Browser";
2
+ import { type ContextChemicalXInterface, type ContextEngineInterface } from "./@types/Context";
3
+ import { type PageChemicalXInterface, type PageChemicalXConstructorTypo, type PageEngineInterface } from "./@types/Page";
4
+ export declare abstract class Page<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface> implements PageChemicalXInterface<PageClassEngine> {
5
+ readonly $browserInstance: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>;
6
+ readonly $contextClass: ContextChemicalXInterface<ContextClassEngine>;
7
+ readonly $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>;
8
+ $pageInstance: PageClassEngine;
9
+ constructor($browserInstance: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>, $contextClass: ContextChemicalXInterface<ContextClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>);
10
+ static create<BrowserTypeEngine, BrowserClassEngine extends BrowserEngineInterface, ContextClassEngine extends ContextEngineInterface, PageClassEngine extends PageEngineInterface>($browserInstance: BrowserChemicalXInterface<BrowserClassEngine, ContextClassEngine>, $contextClass: ContextChemicalXInterface<ContextClassEngine>, $pageClass: PageChemicalXConstructorTypo<BrowserTypeEngine, BrowserClassEngine, ContextClassEngine, PageClassEngine>): Promise<PageChemicalXInterface<PageClassEngine> & PageClassEngine>;
11
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Page = void 0;
4
+ class Page {
5
+ constructor($browserInstance, $contextClass, $pageClass) {
6
+ this.$browserInstance = $browserInstance;
7
+ this.$contextClass = $contextClass;
8
+ this.$pageClass = $pageClass;
9
+ }
10
+ static async create($browserInstance, $contextClass, $pageClass) {
11
+ const pageInstance = new $pageClass($browserInstance, $contextClass, $pageClass);
12
+ pageInstance.$pageInstance = await $contextClass.$contextInstance.newPage();
13
+ return new Proxy(pageInstance, {
14
+ get(target, property) {
15
+ if (property in target) {
16
+ return Reflect.get(target, property);
17
+ }
18
+ const propertyClass = pageInstance.$pageInstance[property];
19
+ return typeof propertyClass === "function"
20
+ ? propertyClass.bind(pageInstance.$pageInstance)
21
+ : Reflect.get(pageInstance.$pageInstance, property);
22
+ },
23
+ });
24
+ }
25
+ }
26
+ exports.Page = Page;
27
+ //# sourceMappingURL=Page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.js","sourceRoot":"","sources":["../../src/crawler/Page.ts"],"names":[],"mappings":";;;AAcA,MAAsB,IAAI;IAStB,YACoB,gBAAmF,EACnF,aAA4D,EAC5D,UACwF;QAHxF,qBAAgB,GAAhB,gBAAgB,CAAmE;QACnF,kBAAa,GAAb,aAAa,CAA+C;QAC5D,eAAU,GAAV,UAAU,CAC8E;IAE5G,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAM,CAMtB,gBAAmF,EACnF,aAA4D,EAC5D,UAEC;QAED,MAAM,YAAY,GAAG,IAAI,UAAU,CAC/B,gBAAgB,EAChB,aAAa,EACb,UAAU,CACb,CAAC;QACF,YAAY,CAAC,aAAa,GAAG,MAAM,aAAa,CAAC,gBAAgB,CAAC,OAAO,EAAgC,CAAC;QAE1G,OAAO,IAAI,KAAK,CAAC,YAAY,EAAE;YAC3B,GAAG,CACC,MAAwF,EACxF,QAAgB;gBAEhB,IAAI,QAAQ,IAAI,MAAM,EAAE;oBACpB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACxC;gBAED,MAAM,aAAa,GAAI,YAAY,CAAC,aAAyC,CAAC,QAAQ,CAAC,CAAC;gBAExF,OAAO,OAAO,aAAa,KAAK,UAAU;oBACtC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC;oBAChD,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;YAC5D,CAAC;SACJ,CAA8D,CAAC;IACpE,CAAC;CAEJ;AAtDD,oBAsDC"}
@@ -0,0 +1,11 @@
1
+ import { type PageEngineInterface } from "../index";
2
+ import { type SelectorType } from "../Selectors/SelectorsTypo";
3
+ export declare abstract class BasePage<SelectorBaseType, PageClassEngine extends PageEngineInterface> {
4
+ readonly page: PageClassEngine;
5
+ readonly $$s: SelectorBaseType;
6
+ protected currentAttempt: number;
7
+ abstract readonly $s: SelectorType;
8
+ constructor(page: PageClassEngine, $$s: SelectorBaseType);
9
+ preStart(): Promise<void>;
10
+ success(): Promise<void>;
11
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BasePage = void 0;
4
+ class BasePage {
5
+ constructor(page, $$s) {
6
+ this.page = page;
7
+ this.$$s = $$s;
8
+ this.currentAttempt = 0;
9
+ }
10
+ async preStart() {
11
+ this.currentAttempt++;
12
+ }
13
+ async success() {
14
+ this.currentAttempt = 0;
15
+ }
16
+ }
17
+ exports.BasePage = BasePage;
18
+ //# sourceMappingURL=BasePage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasePage.js","sourceRoot":"","sources":["../../../src/crawler/Pages/BasePage.ts"],"names":[],"mappings":";;;AAGA,MAAsB,QAAQ;IAmB1B,YACoB,IAAqB,EACrB,GAAqB;QADrB,SAAI,GAAJ,IAAI,CAAiB;QACrB,QAAG,GAAH,GAAG,CAAkB;QAb/B,mBAAc,GAAW,CAAC,CAAC;IAerC,CAAC;IAOM,KAAK,CAAC,QAAQ;QACjB,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;IAQM,KAAK,CAAC,OAAO;QAChB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IAC5B,CAAC;CAEJ;AA5CD,4BA4CC"}
@@ -0,0 +1,4 @@
1
+ import { type PageEngineInterface } from "../../index";
2
+ import { BasePage } from "../BasePage";
3
+ export declare abstract class BaseComponentPage<SelectorBaseType, PageClassEngine extends PageEngineInterface> extends BasePage<SelectorBaseType, PageClassEngine> {
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseComponentPage = void 0;
4
+ const BasePage_1 = require("../BasePage");
5
+ class BaseComponentPage extends BasePage_1.BasePage {
6
+ }
7
+ exports.BaseComponentPage = BaseComponentPage;
8
+ //# sourceMappingURL=BaseComponentPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseComponentPage.js","sourceRoot":"","sources":["../../../../src/crawler/Pages/Components/BaseComponentPage.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,MAAsB,iBAGpB,SAAQ,mBAA2C;CAEpD;AALD,8CAKC"}
@@ -0,0 +1,2 @@
1
+ export * from "./BasePage";
2
+ export * from "./Components/BaseComponentPage";
@@ -0,0 +1,19 @@
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("./BasePage"), exports);
18
+ __exportStar(require("./Components/BaseComponentPage"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crawler/Pages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,iEAA+C"}
@@ -0,0 +1,3 @@
1
+ export type SelectorValuesType = Record<string, SelectorType | string> | string;
2
+ export interface SelectorType extends Record<string, SelectorValuesType> {
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SelectorsTypo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectorsTypo.js","sourceRoot":"","sources":["../../../src/crawler/Selectors/SelectorsTypo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export * from "./Browser";
2
+ export * from "./Context";
3
+ export * from "./Page";
4
+ export * from "./@types";
5
+ export * from "./Exceptions";
6
+ export * from "./Pages";
7
+ export * from "./Selectors/SelectorsTypo";
8
+ export * from "./Interfaces";
@@ -0,0 +1,25 @@
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("./Browser"), exports);
18
+ __exportStar(require("./Context"), exports);
19
+ __exportStar(require("./Page"), exports);
20
+ __exportStar(require("./@types"), exports);
21
+ __exportStar(require("./Exceptions"), exports);
22
+ __exportStar(require("./Pages"), exports);
23
+ __exportStar(require("./Selectors/SelectorsTypo"), exports);
24
+ __exportStar(require("./Interfaces"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export * from "./crawler/index";
2
+ export * from "./Helpers/index";
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
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("./crawler/index"), exports);
18
+ __exportStar(require("./Helpers/index"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC"}
@@ -0,0 +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"}
@@ -0,0 +1 @@
1
+ export type FunctionParameterType<ReturnType, ParameterType> = (parameter: ParameterType) => ReturnType;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FunctionType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionType.js","sourceRoot":"","sources":["../../src/types/FunctionType.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@odg/chemical-x",
3
+ "version": "1.0.0",
4
+ "description": "Chemical-X Project It's the basis of everything",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "homepage": "https://github.com/ODGodinho/ChemicalX",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/ODGodinho/ChemicalX"
11
+ },
12
+ "scripts": {
13
+ "build": "rimraf build && tsc --project ./tsconfig.build.json",
14
+ "build:watch": "rimraf build && tsc --project ./tsconfig.build.json -w",
15
+ "dev": "ts-node ./src/index.ts",
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",
19
+ "test": "jest",
20
+ "test:ci": "jest --ci --passWithNoTests",
21
+ "test:watch": "jest --watchAll"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "release": {
27
+ "branches": [
28
+ "+([0-9])?(.{+([0-9]),x}).x",
29
+ "main",
30
+ "master",
31
+ "next",
32
+ "next-major",
33
+ {
34
+ "name": "beta",
35
+ "prerelease": true
36
+ },
37
+ {
38
+ "name": "alpha",
39
+ "prerelease": true
40
+ }
41
+ ],
42
+ "plugins": [
43
+ "@semantic-release/commit-analyzer",
44
+ "@semantic-release/release-notes-generator",
45
+ "@semantic-release/npm",
46
+ "@semantic-release/github"
47
+ ]
48
+ },
49
+ "files": [
50
+ "./dist/",
51
+ "./README.md"
52
+ ],
53
+ "author": "Dragons Gamers <https://www.linkedin.com/in/victor-alves-odgodinho>",
54
+ "license": "MIT",
55
+ "devDependencies": {
56
+ "@odg/eslint-config": "*",
57
+ "@odg/tsconfig": "*",
58
+ "@types/jest": "^29.2.4",
59
+ "@types/node": "^16",
60
+ "eslint": "*",
61
+ "jest": "^29.3.1",
62
+ "playwright": "^1.28.1",
63
+ "puppeteer": "^19.4.1",
64
+ "rimraf": "^3.0.2",
65
+ "semantic-release": "^19.0.5",
66
+ "ts-jest": "^29.0.3",
67
+ "ts-node": "^10.9.1",
68
+ "typescript": "^4.9.4"
69
+ },
70
+ "dependencies": {
71
+ "@odg/exception": "*"
72
+ }
73
+ }