@makarandkate/ezo-connect-wa 5.0.8 → 6.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.
package/lib/h2i.d.ts CHANGED
@@ -1,15 +1,17 @@
1
1
  export declare class H2I {
2
- static getImage(config: {
2
+ static getImg(config: {
3
3
  html: string;
4
+ debug?: boolean;
4
5
  }): Promise<string>;
5
- static getImageV2(config: {
6
+ static getImgTryOnce(domain: string, config: {
6
7
  html: string;
7
8
  debug?: boolean;
8
9
  }): Promise<string>;
9
- static getImageTryOnce(config: {
10
+ static getPdf(config: {
10
11
  html: string;
12
+ debug?: boolean;
11
13
  }): Promise<string>;
12
- static getImageTryOnceV2(config: {
14
+ static getPdfTryOnce(domain: string, config: {
13
15
  html: string;
14
16
  debug?: boolean;
15
17
  }): Promise<string>;
package/lib/h2i.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"h2i.d.ts","sourceRoot":"","sources":["../src/h2i.ts"],"names":[],"mappings":"AAEA,qBAAa,GAAG;WAEE,QAAQ,CAAC,MAAM,EAAE;QAC3B,IAAI,EAAE,MAAM,CAAC;KAChB,GAAE,OAAO,CAAC,MAAM,CAAC;WA4BJ,UAAU,CAAC,MAAM,EAAE;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAC,OAAO,CAAA;KACjB,GAAE,OAAO,CAAC,MAAM,CAAC;WAuDJ,eAAe,CAAC,MAAM,EAAE;QAClC,IAAI,EAAE,MAAM,CAAC;KAChB,GAAE,OAAO,CAAC,MAAM,CAAC;WAwCJ,iBAAiB,CAAC,MAAM,EAAE;QACpC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAG,OAAO,CAAA;KACnB,GAAE,OAAO,CAAC,MAAM,CAAC;CA6CrB"}
1
+ {"version":3,"file":"h2i.d.ts","sourceRoot":"","sources":["../src/h2i.ts"],"names":[],"mappings":"AAEA,qBAAa,GAAG;WAEE,MAAM,CAAC,MAAM,EAAE;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAC,OAAO,CAAA;KACjB,GAAE,OAAO,CAAC,MAAM,CAAC;WA2FJ,aAAa,CAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAE;QAC9C,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAG,OAAO,CAAA;KACnB,GAAE,OAAO,CAAC,MAAM,CAAC;WAwCJ,MAAM,CAAC,MAAM,EAAE;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAC,OAAO,CAAA;KACjB,GAAE,OAAO,CAAC,MAAM,CAAC;WA0FJ,aAAa,CAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAE;QAC9C,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAG,OAAO,CAAA;KACnB,GAAE,OAAO,CAAC,MAAM,CAAC;CAwCrB"}
package/lib/h2i.js CHANGED
@@ -16,92 +16,107 @@ exports.H2I = void 0;
16
16
  const request_1 = __importDefault(require("request"));
17
17
  const utils_1 = require("./utils");
18
18
  class H2I {
19
- static getImage(config) {
19
+ static getImg(config) {
20
+ let availableDomains = ["h4", "h5", "h6", "h7", "h8", "h9", "h10", "h11", "h12", "h13"];
21
+ let domains = availableDomains.sort(() => 0.5 - Math.random());
20
22
  return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
21
- let url = yield this.getImageTryOnce(config);
22
- if (!url.length) {
23
- yield utils_1.Utils.wait(5000);
24
- url = yield this.getImageTryOnce(config);
25
- if (!url.length) {
26
- yield utils_1.Utils.wait(15000);
27
- url = yield this.getImageTryOnce(config);
28
- }
29
- url = yield this.getImageTryOnce(config);
30
- if (!url.length) {
31
- yield utils_1.Utils.wait(30000);
32
- url = yield this.getImageTryOnce(config);
33
- }
34
- url = yield this.getImageTryOnce(config);
35
- if (!url.length) {
36
- yield utils_1.Utils.wait(40000);
37
- url = yield this.getImageTryOnce(config);
38
- }
23
+ let url = yield this.getImgTryOnce((domains[0] + ''), config);
24
+ if (url === null || url === void 0 ? void 0 : url.length) {
25
+ return resolve(url);
39
26
  }
40
- return resolve(url);
41
- }));
42
- }
43
- static getImageV2(config) {
44
- return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
45
- let url = yield this.getImageTryOnceV2(config);
46
- if (!url.length) {
47
- yield utils_1.Utils.wait(2000);
48
- url = yield this.getImageTryOnceV2(config);
49
- if (!url.length) {
50
- yield utils_1.Utils.wait(2000);
51
- url = yield this.getImageTryOnceV2(config);
52
- }
53
- url = yield this.getImageTryOnceV2(config);
54
- if (!url.length) {
55
- yield utils_1.Utils.wait(2000);
56
- url = yield this.getImageTryOnceV2(config);
57
- }
58
- url = yield this.getImageTryOnceV2(config);
59
- if (!url.length) {
60
- yield utils_1.Utils.wait(2000);
61
- url = yield this.getImageTryOnceV2(config);
62
- }
63
- url = yield this.getImageTryOnceV2(config);
64
- if (!url.length) {
65
- yield utils_1.Utils.wait(2000);
66
- url = yield this.getImageTryOnceV2(config);
67
- }
68
- url = yield this.getImageTryOnceV2(config);
69
- if (!url.length) {
70
- yield utils_1.Utils.wait(10000);
71
- url = yield this.getImageTryOnceV2(config);
72
- }
73
- url = yield this.getImageTryOnceV2(config);
74
- if (!url.length) {
75
- yield utils_1.Utils.wait(10000);
76
- url = yield this.getImageTryOnceV2(config);
77
- }
78
- url = yield this.getImageTryOnceV2(config);
79
- if (!url.length) {
80
- yield utils_1.Utils.wait(15000);
81
- url = yield this.getImageTryOnceV2(config);
82
- }
83
- url = yield this.getImageTryOnceV2(config);
84
- if (!url.length) {
85
- yield utils_1.Utils.wait(30000);
86
- url = yield this.getImageTryOnceV2(config);
87
- }
27
+ yield utils_1.Utils.wait(50);
28
+ url = yield this.getImgTryOnce((domains[1] + ''), config);
29
+ if (url === null || url === void 0 ? void 0 : url.length) {
30
+ return resolve(url);
31
+ }
32
+ yield utils_1.Utils.wait(100);
33
+ url = yield this.getImgTryOnce((domains[2] + ''), config);
34
+ if (url === null || url === void 0 ? void 0 : url.length) {
35
+ return resolve(url);
36
+ }
37
+ yield utils_1.Utils.wait(200);
38
+ url = yield this.getImgTryOnce((domains[3] + ''), config);
39
+ if (url === null || url === void 0 ? void 0 : url.length) {
40
+ return resolve(url);
41
+ }
42
+ yield utils_1.Utils.wait(300);
43
+ url = yield this.getImgTryOnce((domains[4] + ''), config);
44
+ if (url === null || url === void 0 ? void 0 : url.length) {
45
+ return resolve(url);
46
+ }
47
+ yield utils_1.Utils.wait(300);
48
+ url = yield this.getImgTryOnce((domains[5] + ''), config);
49
+ if (url === null || url === void 0 ? void 0 : url.length) {
50
+ return resolve(url);
51
+ }
52
+ yield utils_1.Utils.wait(300);
53
+ url = yield this.getImgTryOnce((domains[6] + ''), config);
54
+ if (url === null || url === void 0 ? void 0 : url.length) {
55
+ return resolve(url);
56
+ }
57
+ yield utils_1.Utils.wait(300);
58
+ url = yield this.getImgTryOnce((domains[7] + ''), config);
59
+ if (url === null || url === void 0 ? void 0 : url.length) {
60
+ return resolve(url);
61
+ }
62
+ yield utils_1.Utils.wait(300);
63
+ url = yield this.getImgTryOnce((domains[8] + ''), config);
64
+ if (url === null || url === void 0 ? void 0 : url.length) {
65
+ return resolve(url);
66
+ }
67
+ yield utils_1.Utils.wait(300);
68
+ url = yield this.getImgTryOnce((domains[9] + ''), config);
69
+ if (url === null || url === void 0 ? void 0 : url.length) {
70
+ return resolve(url);
71
+ }
72
+ yield utils_1.Utils.wait(300);
73
+ url = yield this.getImgTryOnce((domains[10] + ''), config);
74
+ if (url === null || url === void 0 ? void 0 : url.length) {
75
+ return resolve(url);
76
+ }
77
+ yield utils_1.Utils.wait(1000);
78
+ url = yield this.getImgTryOnce((domains[0] + ''), config);
79
+ if (url === null || url === void 0 ? void 0 : url.length) {
80
+ return resolve(url);
81
+ }
82
+ yield utils_1.Utils.wait(2000);
83
+ url = yield this.getImgTryOnce((domains[1] + ''), config);
84
+ if (url === null || url === void 0 ? void 0 : url.length) {
85
+ return resolve(url);
86
+ }
87
+ yield utils_1.Utils.wait(4000);
88
+ url = yield this.getImgTryOnce((domains[2] + ''), config);
89
+ if (url === null || url === void 0 ? void 0 : url.length) {
90
+ return resolve(url);
91
+ }
92
+ yield utils_1.Utils.wait(7000);
93
+ url = yield this.getImgTryOnce((domains[3] + ''), config);
94
+ if (url === null || url === void 0 ? void 0 : url.length) {
95
+ return resolve(url);
96
+ }
97
+ yield utils_1.Utils.wait(11000);
98
+ url = yield this.getImgTryOnce((domains[4] + ''), config);
99
+ if (url === null || url === void 0 ? void 0 : url.length) {
100
+ return resolve(url);
88
101
  }
89
102
  return resolve(url);
90
103
  }));
91
104
  }
92
- static getImageTryOnce(config) {
105
+ static getImgTryOnce(domain, config) {
93
106
  return new Promise((resolve) => {
94
107
  request_1.default({
95
108
  method: 'POST',
96
109
  headers: { 'Content-Type': 'application/json' },
97
- url: `https://hi.ezobooks.in/html2image`,
110
+ url: `https://${domain}.ezobooks.in/html2image`,
98
111
  body: JSON.stringify({
99
112
  htmlStr: config.html
100
113
  })
101
114
  }, (error, res) => {
102
115
  var _a;
103
116
  if (error) {
104
- console.error('H2I:18', error);
117
+ if ((config === null || config === void 0 ? void 0 : config.debug) === true) {
118
+ console.error('H2I:95', error);
119
+ }
105
120
  return resolve('');
106
121
  }
107
122
  if (res === null || res === void 0 ? void 0 : res.body) {
@@ -111,12 +126,16 @@ class H2I {
111
126
  return resolve(obj === null || obj === void 0 ? void 0 : obj.image);
112
127
  }
113
128
  else {
114
- console.error('H2I:28', obj);
129
+ if ((config === null || config === void 0 ? void 0 : config.debug) === true) {
130
+ console.error('H2I:105', obj);
131
+ }
115
132
  return resolve('');
116
133
  }
117
134
  }
118
135
  catch (err) {
119
- console.error('H2I:34', err);
136
+ if ((config === null || config === void 0 ? void 0 : config.debug) === true) {
137
+ console.error('H2I:111', err);
138
+ }
120
139
  return resolve('');
121
140
  }
122
141
  }
@@ -124,18 +143,98 @@ class H2I {
124
143
  });
125
144
  });
126
145
  }
127
- static getImageTryOnceV2(config) {
146
+ static getPdf(config) {
147
+ let availableDomains = ["h4", "h5", "h6", "h7", "h8", "h9", "h10", "h11", "h12", "h13"];
148
+ let domains = availableDomains.sort(() => 0.5 - Math.random());
149
+ return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
150
+ let url = yield this.getPdfTryOnce((domains[0] + ''), config);
151
+ if (url === null || url === void 0 ? void 0 : url.length) {
152
+ return resolve(url);
153
+ }
154
+ yield utils_1.Utils.wait(50);
155
+ url = yield this.getPdfTryOnce((domains[1] + ''), config);
156
+ if (url === null || url === void 0 ? void 0 : url.length) {
157
+ return resolve(url);
158
+ }
159
+ yield utils_1.Utils.wait(100);
160
+ url = yield this.getPdfTryOnce((domains[2] + ''), config);
161
+ if (url === null || url === void 0 ? void 0 : url.length) {
162
+ return resolve(url);
163
+ }
164
+ yield utils_1.Utils.wait(200);
165
+ url = yield this.getPdfTryOnce((domains[3] + ''), config);
166
+ if (url === null || url === void 0 ? void 0 : url.length) {
167
+ return resolve(url);
168
+ }
169
+ yield utils_1.Utils.wait(300);
170
+ url = yield this.getPdfTryOnce((domains[4] + ''), config);
171
+ if (url === null || url === void 0 ? void 0 : url.length) {
172
+ return resolve(url);
173
+ }
174
+ yield utils_1.Utils.wait(300);
175
+ url = yield this.getPdfTryOnce((domains[5] + ''), config);
176
+ if (url === null || url === void 0 ? void 0 : url.length) {
177
+ return resolve(url);
178
+ }
179
+ yield utils_1.Utils.wait(300);
180
+ url = yield this.getPdfTryOnce((domains[6] + ''), config);
181
+ if (url === null || url === void 0 ? void 0 : url.length) {
182
+ return resolve(url);
183
+ }
184
+ yield utils_1.Utils.wait(300);
185
+ url = yield this.getPdfTryOnce((domains[7] + ''), config);
186
+ if (url === null || url === void 0 ? void 0 : url.length) {
187
+ return resolve(url);
188
+ }
189
+ yield utils_1.Utils.wait(300);
190
+ url = yield this.getPdfTryOnce((domains[8] + ''), config);
191
+ if (url === null || url === void 0 ? void 0 : url.length) {
192
+ return resolve(url);
193
+ }
194
+ yield utils_1.Utils.wait(300);
195
+ url = yield this.getPdfTryOnce((domains[9] + ''), config);
196
+ if (url === null || url === void 0 ? void 0 : url.length) {
197
+ return resolve(url);
198
+ }
199
+ yield utils_1.Utils.wait(300);
200
+ url = yield this.getPdfTryOnce((domains[10] + ''), config);
201
+ if (url === null || url === void 0 ? void 0 : url.length) {
202
+ return resolve(url);
203
+ }
204
+ yield utils_1.Utils.wait(1000);
205
+ url = yield this.getPdfTryOnce((domains[0] + ''), config);
206
+ if (url === null || url === void 0 ? void 0 : url.length) {
207
+ return resolve(url);
208
+ }
209
+ yield utils_1.Utils.wait(2000);
210
+ url = yield this.getPdfTryOnce((domains[1] + ''), config);
211
+ if (url === null || url === void 0 ? void 0 : url.length) {
212
+ return resolve(url);
213
+ }
214
+ yield utils_1.Utils.wait(4000);
215
+ url = yield this.getPdfTryOnce((domains[2] + ''), config);
216
+ if (url === null || url === void 0 ? void 0 : url.length) {
217
+ return resolve(url);
218
+ }
219
+ yield utils_1.Utils.wait(7000);
220
+ url = yield this.getPdfTryOnce((domains[3] + ''), config);
221
+ if (url === null || url === void 0 ? void 0 : url.length) {
222
+ return resolve(url);
223
+ }
224
+ yield utils_1.Utils.wait(11000);
225
+ url = yield this.getPdfTryOnce((domains[4] + ''), config);
226
+ if (url === null || url === void 0 ? void 0 : url.length) {
227
+ return resolve(url);
228
+ }
229
+ return resolve(url);
230
+ }));
231
+ }
232
+ static getPdfTryOnce(domain, config) {
128
233
  return new Promise((resolve) => {
129
- let url = ([
130
- `https://h4.ezobooks.in/html2image`,
131
- `https://h5.ezobooks.in/html2image`,
132
- `https://h6.ezobooks.in/html2image`,
133
- `https://h7.ezobooks.in/html2image`
134
- ][Math.floor(Math.random() * 4)]) + '';
135
234
  request_1.default({
136
235
  method: 'POST',
137
236
  headers: { 'Content-Type': 'application/json' },
138
- url,
237
+ url: `https://${domain}.ezobooks.in/html2pdf`,
139
238
  body: JSON.stringify({
140
239
  htmlStr: config.html
141
240
  })
@@ -143,7 +242,7 @@ class H2I {
143
242
  var _a;
144
243
  if (error) {
145
244
  if ((config === null || config === void 0 ? void 0 : config.debug) === true) {
146
- console.error('H2I:95', error);
245
+ console.error('H2I:262', error);
147
246
  }
148
247
  return resolve('');
149
248
  }
@@ -151,18 +250,19 @@ class H2I {
151
250
  try {
152
251
  let obj = JSON.parse(res === null || res === void 0 ? void 0 : res.body);
153
252
  if ((obj === null || obj === void 0 ? void 0 : obj.status) == 'success' && ((_a = obj === null || obj === void 0 ? void 0 : obj.image) === null || _a === void 0 ? void 0 : _a.length)) {
154
- return resolve(obj === null || obj === void 0 ? void 0 : obj.image);
253
+ let finalUrl = obj === null || obj === void 0 ? void 0 : obj.image.replace(/h(4|5|6|7|8|9|10|11|12|13)\.ezobooks/, 'ir.ezobooks');
254
+ return resolve(finalUrl);
155
255
  }
156
256
  else {
157
257
  if ((config === null || config === void 0 ? void 0 : config.debug) === true) {
158
- console.error('H2I:105', obj);
258
+ console.error('H2I:272', obj);
159
259
  }
160
260
  return resolve('');
161
261
  }
162
262
  }
163
263
  catch (err) {
164
264
  if ((config === null || config === void 0 ? void 0 : config.debug) === true) {
165
- console.error('H2I:111', err);
265
+ console.error('H2I:278', err);
166
266
  }
167
267
  return resolve('');
168
268
  }
package/lib/h2i.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"h2i.js","sourceRoot":"","sources":["../src/h2i.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,mCAAgC;AAChC,MAAa,GAAG;IAEL,MAAM,CAAC,QAAQ,CAAC,MAEtB;QACG,OAAO,IAAI,OAAO,CAAC,CAAO,OAAO,EAAC,EAAE;YAChC,IAAI,GAAG,GAAC,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;YAC1C,IAAG,CAAC,GAAG,CAAC,MAAM,EAAC;gBACX,MAAM,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;g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AG,uBAAH,GAAG,CAAE,IAAI,CAAC,CAAC;wBAC9B,IAAG,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,KAAI,SAAS,KAAI,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAK,0CAAE,MAAM,CAAA,EAAC;4BAC9C,IAAI,QAAQ,GAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAK,CAAC,OAAO,CAAC,sCAAsC,EAAE,aAAa,CAAC,CAAC;4BACzF,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;yBAE5B;6BAAI;4BACD,IAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAG,IAAI,EAAC;gCAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAC,GAAG,CAAC,CAAC;6BAAC;4BAEvD,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;yBAEtB;qBACJ;oBAAA,OAAM,GAAG,EAAC;wBACP,IAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAG,IAAI,EAAC;4BAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAC,GAAG,CAAC,CAAC;yBAAC;wBAEvD,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;qBAEtB;iBACJ;gBACD,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;YACvB,CAAC,CAAC,CAAA;QAEN,CAAC,CAAC,CAAA;IAEN,CAAC;CACJ;AAnRD,kBAmRC"}
@@ -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.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.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.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/dns.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/string_decoder.d.ts","../node_modules/@types/node/timers.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/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/caseless/index.d.ts","../node_modules/@types/request/node_modules/form-data/index.d.ts","../node_modules/@types/tough-cookie/index.d.ts","../node_modules/@types/request/index.d.ts","../src/utils.ts","../src/h2i.ts","../src/whatsapp.ts","../src/sms.ts","../src/taggtele.ts","../src/index.ts","../node_modules/@types/range-parser/index.d.ts","../node_modules/@types/qs/index.d.ts","../node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/mime/index.d.ts","../node_modules/@types/serve-static/index.d.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/body-parser/index.d.ts","../node_modules/@types/express/index.d.ts","../node_modules/@types/express-handlebars/lib/express-handlebars.d.ts","../node_modules/@types/express-handlebars/index.d.ts","../src/server.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/strip-bom/index.d.ts","../node_modules/@types/strip-json-comments/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},{"version":"583b4bd4e441916be4bf152ee323c4ffa6e178fd25df2ee2215ef05c7feb5ad4","affectsGlobalScope":true},"d20f08527645f62facb2d66c2b7bd31ea964b59c897d00bddb1efe8c13890b72","5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1","674bedbfd2004e233e2a266a3d2286e524f0d58787a98522d834d6ccda1d215a","714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef",{"version":"23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096","affectsGlobalScope":true},"0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83","d53b352a01645c470a0d8c31bf290ba791fc28ade0ce187a4a50f5c2f826f75e","5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed","2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317",{"version":"06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70","affectsGlobalScope":true},{"version":"bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb","affectsGlobalScope":true},"a106a0bea088b70879ac88ff606dc253c0cc474ea05ad3a282b8bfb1091ae576","c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10","37eed30fc8318b8ac76eac6f41d0758a9d0bffd8f3ff353e3ad0f8717dd08d92","9aff68f1b847b846d3d50a58c9f8f99389bedd0258d1b1c201f11b97ecfd36f8","1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba","05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466","8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340","f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657","32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc","0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca","ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f",{"version":"fcb95c45150c717706119f12f2a3639d51baa041cd5bb441eb8501e04b52c501","affectsGlobalScope":true},"a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8","f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3","73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da","8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71","74594bec8a9fa1a2cd40268f9ab95d0c44b6080345da6e8b913939d19b1d57ae","94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa","2d713cbcbd5bcc38d91546eaeea7bb1c8686dc4a2995a28556d957b1b9de11d9","bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3","0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a","3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837","631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9","2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7","da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14","141a943e5690105898a67537a470f70b56d0e183441b56051d929e902376b7b2","ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877","515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f","5343f3c160282dfbaab9af350119a0c3b59b7076ef0117bb5995a66e240dab28","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c",{"version":"6d045f26d872003c2562edc79c0743c61186e4682325a717b3c3ace983a672f2","signature":"a3352dc89bbe52ae381b125128093d48a61df5dcc54eba5b09ebe59aaee8f221"},{"version":"b6daecc73ce9ea6d480017ee0ee2c7349e13c3da45b8d1d5dad8a3821e0d4838","signature":"48be616b9d6bc12ee24053ec6c974e82de25b41d15346cb0b6053745a00c9f2e"},{"version":"62a72daa71e8d3d2d43ffe6d7d5073ee167ad92bc57196fe94f3e9c4a2a8f070","signature":"9842dac688001fb695b36b39b28fd22f52126cb527a44bca9ad5e4c6d248c3cb"},{"version":"31aa7872fc778a61b2eb599a6a5e641c5f16b36de6d76f7d6668994f993814f8","signature":"a13e58033e030c88c6b24678f7f5e3ecd1872128305c258500f49fcc4c935ffd"},{"version":"32eb088162129edbc36c369ce858ecb6e463128b0a53e7bc3d0e3c836555d599","signature":"1c68542bb4c78a526a1012137c1ec6934541ff86e3baeee95daab1b1c32735d7"},{"version":"02cf0fced83b0781e479fd16ec803e23e51c66c2ee625c6f0289afce5047ab73","signature":"c4432ba4a8a627ab0cd61ea1bfdddf37d72faf2fed99b9f760bcc2037132de58"},"4e88b833be14c7f384e0dcd57bb30acd799e8e34d212635d693e41a75a71164b","98437d5a640b67c41534f0de2dcb64c75433dcdff54ff8f8432e613663619a2e",{"version":"e41a1ce538d71d5a3389b7fc2e39c15a4972f0d4cb14bf2fe8cda8c361150028","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","3b02517f9be71f255eadab9892406055d069167891f1e1ea16c96c4ff1ddda01","81c14b89fa607b86dd726e2e3e91360cf8155ce97468404324d404a5bd65b2eb","ebddbd167c2fabd0151f50e5df94ca6d845149c47521280d8867afe3429dd078","3b05c396564e51753e921e1cc4aae1cf7cd9be53c891cf2e81fa29f11c0bd373","81d37eeee9aa25d5e70d9fb7fd7b3910465eb2b17b7c53a288d8cc365dd900e2","ebfc61b7e8389c3012c191386ea0fb355887007d69dc50c5f63a89cc403c1092",{"version":"5e55e48d12e6923a7f06fc660a91163a04c729751cc1f40042ab90c7bebce737","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","4006c872e38a2c4e09c593bc0cdd32b7b4f5c4843910bea0def631c483fff6c5","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":2},"fileIdsList":[[43,74,90],[43,74],[93],[94],[40,43,74,85,86],[86,87,89,91],[72],[30],[71,72],[31],[32,40,41,48,57],[32,33,40,48],[64],[35,36,41,49],[36,57],[37,38,40,48],[38],[39,40],[40],[40,41,42,57,63],[41,42],[43,48,57,63],[40,41,43,44,48,57,60,63],[43,45,60,63],[73],[40,46],[47,63],[38,40,48,57],[49],[50],[30,51],[62],[53],[54],[40,55],[55,56,64,66],[40,57],[58],[59],[48,60],[61],[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70],[48,62],[54,63],[57,65],[66],[70],[40,42,57,63,66,67],[57,68],[41,43,45,48,57,63,74,75,76,77],[43,57,74],[43,74,88],[78,79],[80,81,82,83],[50,80,81,82,92,94]],"referencedMap":[[91,1],[90,2],[94,3],[93,4],[87,5],[92,6],[72,7],[30,8],[73,9],[31,10],[32,11],[33,12],[34,13],[35,14],[36,15],[37,16],[38,17],[39,18],[40,19],[41,20],[42,21],[43,22],[44,23],[45,24],[74,25],[46,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,37],[58,38],[59,39],[60,40],[61,41],[71,42],[62,43],[63,44],[64,13],[65,45],[66,46],[70,47],[67,48],[68,49],[78,50],[76,51],[89,52],[80,53],[84,54],[95,55],[82,53],[83,53],[81,53]],"exportedModulesMap":[[91,1],[90,2],[94,3],[93,4],[87,5],[92,6],[72,7],[30,8],[73,9],[31,10],[32,11],[33,12],[34,13],[35,14],[36,15],[37,16],[38,17],[39,18],[40,19],[41,20],[42,21],[43,22],[44,23],[45,24],[74,25],[46,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,37],[58,38],[59,39],[60,40],[61,41],[71,42],[62,43],[63,44],[64,13],[65,45],[66,46],[70,47],[67,48],[68,49],[78,50],[76,51],[89,52],[84,54]],"semanticDiagnosticsPerFile":[91,75,90,94,93,87,92,96,88,72,30,73,31,32,33,34,35,36,37,38,39,40,41,42,29,69,43,44,45,74,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,71,62,63,64,65,66,70,67,68,86,85,78,76,89,97,98,77,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,80,84,95,82,83,79,81]},"version":"4.3.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.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.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.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/dns.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/string_decoder.d.ts","../node_modules/@types/node/timers.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/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/caseless/index.d.ts","../node_modules/@types/request/node_modules/form-data/index.d.ts","../node_modules/@types/tough-cookie/index.d.ts","../node_modules/@types/request/index.d.ts","../src/utils.ts","../src/h2i.ts","../src/whatsapp.ts","../src/sms.ts","../src/taggtele.ts","../src/index.ts","../node_modules/@types/range-parser/index.d.ts","../node_modules/@types/qs/index.d.ts","../node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/@types/mime/index.d.ts","../node_modules/@types/serve-static/index.d.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/body-parser/index.d.ts","../node_modules/@types/express/index.d.ts","../node_modules/@types/express-handlebars/lib/express-handlebars.d.ts","../node_modules/@types/express-handlebars/index.d.ts","../src/server.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/strip-bom/index.d.ts","../node_modules/@types/strip-json-comments/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},{"version":"583b4bd4e441916be4bf152ee323c4ffa6e178fd25df2ee2215ef05c7feb5ad4","affectsGlobalScope":true},"d20f08527645f62facb2d66c2b7bd31ea964b59c897d00bddb1efe8c13890b72","5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1","674bedbfd2004e233e2a266a3d2286e524f0d58787a98522d834d6ccda1d215a","714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef",{"version":"23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096","affectsGlobalScope":true},"0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83","d53b352a01645c470a0d8c31bf290ba791fc28ade0ce187a4a50f5c2f826f75e","5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed","2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317",{"version":"06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70","affectsGlobalScope":true},{"version":"bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb","affectsGlobalScope":true},"a106a0bea088b70879ac88ff606dc253c0cc474ea05ad3a282b8bfb1091ae576","c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10","37eed30fc8318b8ac76eac6f41d0758a9d0bffd8f3ff353e3ad0f8717dd08d92","9aff68f1b847b846d3d50a58c9f8f99389bedd0258d1b1c201f11b97ecfd36f8","1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba","05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466","8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340","f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657","32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc","0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca","ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f",{"version":"fcb95c45150c717706119f12f2a3639d51baa041cd5bb441eb8501e04b52c501","affectsGlobalScope":true},"a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8","f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3","73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da","8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71","74594bec8a9fa1a2cd40268f9ab95d0c44b6080345da6e8b913939d19b1d57ae","94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa","2d713cbcbd5bcc38d91546eaeea7bb1c8686dc4a2995a28556d957b1b9de11d9","bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3","0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a","3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837","631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9","2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7","da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14","141a943e5690105898a67537a470f70b56d0e183441b56051d929e902376b7b2","ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877","515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f","5343f3c160282dfbaab9af350119a0c3b59b7076ef0117bb5995a66e240dab28","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c",{"version":"6d045f26d872003c2562edc79c0743c61186e4682325a717b3c3ace983a672f2","signature":"a3352dc89bbe52ae381b125128093d48a61df5dcc54eba5b09ebe59aaee8f221"},{"version":"208260567f4bb6889a1242e04363f2dd81dceef2964c26cc28d731e3857a7c9a","signature":"78fe0af3c0ccab3e8b2d86f977155dfef798d98519d3817a33aaad23637ef14b"},{"version":"62a72daa71e8d3d2d43ffe6d7d5073ee167ad92bc57196fe94f3e9c4a2a8f070","signature":"9842dac688001fb695b36b39b28fd22f52126cb527a44bca9ad5e4c6d248c3cb"},{"version":"31aa7872fc778a61b2eb599a6a5e641c5f16b36de6d76f7d6668994f993814f8","signature":"a13e58033e030c88c6b24678f7f5e3ecd1872128305c258500f49fcc4c935ffd"},{"version":"32eb088162129edbc36c369ce858ecb6e463128b0a53e7bc3d0e3c836555d599","signature":"1c68542bb4c78a526a1012137c1ec6934541ff86e3baeee95daab1b1c32735d7"},{"version":"02cf0fced83b0781e479fd16ec803e23e51c66c2ee625c6f0289afce5047ab73","signature":"c4432ba4a8a627ab0cd61ea1bfdddf37d72faf2fed99b9f760bcc2037132de58"},"4e88b833be14c7f384e0dcd57bb30acd799e8e34d212635d693e41a75a71164b","98437d5a640b67c41534f0de2dcb64c75433dcdff54ff8f8432e613663619a2e",{"version":"e41a1ce538d71d5a3389b7fc2e39c15a4972f0d4cb14bf2fe8cda8c361150028","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","3b02517f9be71f255eadab9892406055d069167891f1e1ea16c96c4ff1ddda01","81c14b89fa607b86dd726e2e3e91360cf8155ce97468404324d404a5bd65b2eb","ebddbd167c2fabd0151f50e5df94ca6d845149c47521280d8867afe3429dd078","3b05c396564e51753e921e1cc4aae1cf7cd9be53c891cf2e81fa29f11c0bd373","81d37eeee9aa25d5e70d9fb7fd7b3910465eb2b17b7c53a288d8cc365dd900e2","ebfc61b7e8389c3012c191386ea0fb355887007d69dc50c5f63a89cc403c1092",{"version":"5e55e48d12e6923a7f06fc660a91163a04c729751cc1f40042ab90c7bebce737","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","4006c872e38a2c4e09c593bc0cdd32b7b4f5c4843910bea0def631c483fff6c5","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":2},"fileIdsList":[[43,74,90],[43,74],[93],[94],[40,43,74,85,86],[86,87,89,91],[72],[30],[71,72],[31],[32,40,41,48,57],[32,33,40,48],[64],[35,36,41,49],[36,57],[37,38,40,48],[38],[39,40],[40],[40,41,42,57,63],[41,42],[43,48,57,63],[40,41,43,44,48,57,60,63],[43,45,60,63],[73],[40,46],[47,63],[38,40,48,57],[49],[50],[30,51],[62],[53],[54],[40,55],[55,56,64,66],[40,57],[58],[59],[48,60],[61],[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70],[48,62],[54,63],[57,65],[66],[70],[40,42,57,63,66,67],[57,68],[41,43,45,48,57,63,74,75,76,77],[43,57,74],[43,74,88],[78,79],[80,81,82,83],[50,80,81,82,92,94]],"referencedMap":[[91,1],[90,2],[94,3],[93,4],[87,5],[92,6],[72,7],[30,8],[73,9],[31,10],[32,11],[33,12],[34,13],[35,14],[36,15],[37,16],[38,17],[39,18],[40,19],[41,20],[42,21],[43,22],[44,23],[45,24],[74,25],[46,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,37],[58,38],[59,39],[60,40],[61,41],[71,42],[62,43],[63,44],[64,13],[65,45],[66,46],[70,47],[67,48],[68,49],[78,50],[76,51],[89,52],[80,53],[84,54],[95,55],[82,53],[83,53],[81,53]],"exportedModulesMap":[[91,1],[90,2],[94,3],[93,4],[87,5],[92,6],[72,7],[30,8],[73,9],[31,10],[32,11],[33,12],[34,13],[35,14],[36,15],[37,16],[38,17],[39,18],[40,19],[41,20],[42,21],[43,22],[44,23],[45,24],[74,25],[46,26],[47,27],[48,28],[49,29],[50,30],[51,31],[52,32],[53,33],[54,34],[55,35],[56,36],[57,37],[58,38],[59,39],[60,40],[61,41],[71,42],[62,43],[63,44],[64,13],[65,45],[66,46],[70,47],[67,48],[68,49],[78,50],[76,51],[89,52],[84,54]],"semanticDiagnosticsPerFile":[91,75,90,94,93,87,92,96,88,72,30,73,31,32,33,34,35,36,37,38,39,40,41,42,29,69,43,44,45,74,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,71,62,63,64,65,66,70,67,68,86,85,78,76,89,97,98,77,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,80,84,95,82,83,79,81]},"version":"4.3.4"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makarandkate/ezo-connect-wa",
3
- "version": "5.0.8",
3
+ "version": "6.0.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",
package/src/h2i.ts CHANGED
@@ -2,86 +2,91 @@ import request from 'request';
2
2
  import { Utils } from './utils';
3
3
  export class H2I {
4
4
 
5
- public static getImage(config: {
6
- html: string,
7
- }):Promise<string> {
8
- return new Promise(async (resolve)=>{
9
- let url=await this.getImageTryOnce(config)
10
- if(!url.length){
11
- await Utils.wait(5000);
12
- url=await this.getImageTryOnce(config)
13
- if(!url.length){
14
- await Utils.wait(15000);
15
- url=await this.getImageTryOnce(config)
16
- }
17
- url=await this.getImageTryOnce(config)
18
- if(!url.length){
19
- await Utils.wait(30000);
20
- url=await this.getImageTryOnce(config)
21
- }
22
- url=await this.getImageTryOnce(config)
23
- if(!url.length){
24
- await Utils.wait(40000);
25
- url=await this.getImageTryOnce(config)
26
- }
27
- }
28
-
29
- return resolve(url);
30
-
31
- })
32
-
33
- }
34
-
35
- public static getImageV2(config: {
5
+ public static getImg(config: {
36
6
  html: string,
37
7
  debug?:boolean
38
8
  }):Promise<string> {
9
+ let availableDomains=["h4","h5","h6","h7","h8","h9","h10","h11","h12","h13"];
10
+ let domains = availableDomains.sort(() => 0.5 - Math.random());
39
11
  return new Promise(async (resolve)=>{
40
- let url=await this.getImageTryOnceV2(config)
41
- if(!url.length){
42
- await Utils.wait(2000);
43
- url=await this.getImageTryOnceV2(config)
44
- if(!url.length){
45
- await Utils.wait(2000);
46
- url=await this.getImageTryOnceV2(config)
47
- }
48
- url=await this.getImageTryOnceV2(config)
49
- if(!url.length){
50
- await Utils.wait(2000);
51
- url=await this.getImageTryOnceV2(config)
52
- }
53
- url=await this.getImageTryOnceV2(config)
54
- if(!url.length){
55
- await Utils.wait(2000);
56
- url=await this.getImageTryOnceV2(config)
57
- }
58
- url=await this.getImageTryOnceV2(config)
59
- if(!url.length){
60
- await Utils.wait(2000);
61
- url=await this.getImageTryOnceV2(config)
62
- }
63
-
64
- url=await this.getImageTryOnceV2(config)
65
- if(!url.length){
66
- await Utils.wait(10000);
67
- url=await this.getImageTryOnceV2(config)
68
- }
69
- url=await this.getImageTryOnceV2(config)
70
- if(!url.length){
71
- await Utils.wait(10000);
72
- url=await this.getImageTryOnceV2(config)
73
- }
74
-
75
- url=await this.getImageTryOnceV2(config)
76
- if(!url.length){
77
- await Utils.wait(15000);
78
- url=await this.getImageTryOnceV2(config)
79
- }
80
- url=await this.getImageTryOnceV2(config)
81
- if(!url.length){
82
- await Utils.wait(30000);
83
- url=await this.getImageTryOnceV2(config)
84
- }
12
+ let url=await this.getImgTryOnce((domains[0]+''),config)
13
+ if(url?.length){
14
+ return resolve(url);
15
+ }
16
+ await Utils.wait(50);
17
+ url=await this.getImgTryOnce((domains[1]+''),config)
18
+ if(url?.length){
19
+ return resolve(url);
20
+ }
21
+ await Utils.wait(100);
22
+ url=await this.getImgTryOnce((domains[2]+''),config)
23
+ if(url?.length){
24
+ return resolve(url);
25
+ }
26
+ await Utils.wait(200);
27
+ url=await this.getImgTryOnce((domains[3]+''),config)
28
+ if(url?.length){
29
+ return resolve(url);
30
+ }
31
+ await Utils.wait(300);
32
+ url=await this.getImgTryOnce((domains[4]+''),config)
33
+ if(url?.length){
34
+ return resolve(url);
35
+ }
36
+ await Utils.wait(300);
37
+ url=await this.getImgTryOnce((domains[5]+''),config)
38
+ if(url?.length){
39
+ return resolve(url);
40
+ }
41
+ await Utils.wait(300);
42
+ url=await this.getImgTryOnce((domains[6]+''),config)
43
+ if(url?.length){
44
+ return resolve(url);
45
+ }
46
+ await Utils.wait(300);
47
+ url=await this.getImgTryOnce((domains[7]+''),config)
48
+ if(url?.length){
49
+ return resolve(url);
50
+ }
51
+ await Utils.wait(300);
52
+ url=await this.getImgTryOnce((domains[8]+''),config)
53
+ if(url?.length){
54
+ return resolve(url);
55
+ }
56
+ await Utils.wait(300);
57
+ url=await this.getImgTryOnce((domains[9]+''),config)
58
+ if(url?.length){
59
+ return resolve(url);
60
+ }
61
+ await Utils.wait(300);
62
+ url=await this.getImgTryOnce((domains[10]+''),config)
63
+ if(url?.length){
64
+ return resolve(url);
65
+ }
66
+ await Utils.wait(1000);
67
+ url=await this.getImgTryOnce((domains[0]+''),config)
68
+ if(url?.length){
69
+ return resolve(url);
70
+ }
71
+ await Utils.wait(2000);
72
+ url=await this.getImgTryOnce((domains[1]+''),config)
73
+ if(url?.length){
74
+ return resolve(url);
75
+ }
76
+ await Utils.wait(4000);
77
+ url=await this.getImgTryOnce((domains[2]+''),config)
78
+ if(url?.length){
79
+ return resolve(url);
80
+ }
81
+ await Utils.wait(7000);
82
+ url=await this.getImgTryOnce((domains[3]+''),config)
83
+ if(url?.length){
84
+ return resolve(url);
85
+ }
86
+ await Utils.wait(11000);
87
+ url=await this.getImgTryOnce((domains[4]+''),config)
88
+ if(url?.length){
89
+ return resolve(url);
85
90
  }
86
91
 
87
92
  return resolve(url);
@@ -90,20 +95,22 @@ export class H2I {
90
95
 
91
96
  }
92
97
 
93
- public static getImageTryOnce(config: {
98
+
99
+ public static getImgTryOnce(domain:string,config: {
94
100
  html: string,
101
+ debug? : boolean
95
102
  }):Promise<string> {
96
103
  return new Promise((resolve)=>{
97
104
  request({
98
105
  method: 'POST',
99
106
  headers: {'Content-Type': 'application/json'},
100
- url: `https://hi.ezobooks.in/html2image`,
107
+ url:`https://${domain}.ezobooks.in/html2image`,
101
108
  body:JSON.stringify({
102
109
  htmlStr:config.html
103
110
  })
104
111
  },(error,res)=>{
105
112
  if(error){
106
- console.error('H2I:18',error);
113
+ if(config?.debug===true){console.error('H2I:95',error);}
107
114
  return resolve('');
108
115
  }
109
116
  if(res?.body){
@@ -113,13 +120,13 @@ export class H2I {
113
120
  return resolve(obj?.image);
114
121
 
115
122
  }else{
116
- console.error('H2I:28',obj);
123
+ if(config?.debug===true){console.error('H2I:105',obj);}
117
124
 
118
125
  return resolve('');
119
126
 
120
127
  }
121
128
  }catch(err){
122
- console.error('H2I:34',err);
129
+ if(config?.debug===true){console.error('H2I:111',err);}
123
130
 
124
131
  return resolve('');
125
132
 
@@ -132,43 +139,131 @@ export class H2I {
132
139
 
133
140
  }
134
141
 
135
- public static getImageTryOnceV2(config: {
142
+ public static getPdf(config: {
143
+ html: string,
144
+ debug?:boolean
145
+ }):Promise<string> {
146
+ let availableDomains=["h4","h5","h6","h7","h8","h9","h10","h11","h12","h13"];
147
+ let domains = availableDomains.sort(() => 0.5 - Math.random());
148
+ return new Promise(async (resolve)=>{
149
+ let url=await this.getPdfTryOnce((domains[0]+''),config)
150
+ if(url?.length){
151
+ return resolve(url);
152
+ }
153
+ await Utils.wait(50);
154
+ url=await this.getPdfTryOnce((domains[1]+''),config)
155
+ if(url?.length){
156
+ return resolve(url);
157
+ }
158
+ await Utils.wait(100);
159
+ url=await this.getPdfTryOnce((domains[2]+''),config)
160
+ if(url?.length){
161
+ return resolve(url);
162
+ }
163
+ await Utils.wait(200);
164
+ url=await this.getPdfTryOnce((domains[3]+''),config)
165
+ if(url?.length){
166
+ return resolve(url);
167
+ }
168
+ await Utils.wait(300);
169
+ url=await this.getPdfTryOnce((domains[4]+''),config)
170
+ if(url?.length){
171
+ return resolve(url);
172
+ }
173
+ await Utils.wait(300);
174
+ url=await this.getPdfTryOnce((domains[5]+''),config)
175
+ if(url?.length){
176
+ return resolve(url);
177
+ }
178
+ await Utils.wait(300);
179
+ url=await this.getPdfTryOnce((domains[6]+''),config)
180
+ if(url?.length){
181
+ return resolve(url);
182
+ }
183
+ await Utils.wait(300);
184
+ url=await this.getPdfTryOnce((domains[7]+''),config)
185
+ if(url?.length){
186
+ return resolve(url);
187
+ }
188
+ await Utils.wait(300);
189
+ url=await this.getPdfTryOnce((domains[8]+''),config)
190
+ if(url?.length){
191
+ return resolve(url);
192
+ }
193
+ await Utils.wait(300);
194
+ url=await this.getPdfTryOnce((domains[9]+''),config)
195
+ if(url?.length){
196
+ return resolve(url);
197
+ }
198
+ await Utils.wait(300);
199
+ url=await this.getPdfTryOnce((domains[10]+''),config)
200
+ if(url?.length){
201
+ return resolve(url);
202
+ }
203
+ await Utils.wait(1000);
204
+ url=await this.getPdfTryOnce((domains[0]+''),config)
205
+ if(url?.length){
206
+ return resolve(url);
207
+ }
208
+ await Utils.wait(2000);
209
+ url=await this.getPdfTryOnce((domains[1]+''),config)
210
+ if(url?.length){
211
+ return resolve(url);
212
+ }
213
+ await Utils.wait(4000);
214
+ url=await this.getPdfTryOnce((domains[2]+''),config)
215
+ if(url?.length){
216
+ return resolve(url);
217
+ }
218
+ await Utils.wait(7000);
219
+ url=await this.getPdfTryOnce((domains[3]+''),config)
220
+ if(url?.length){
221
+ return resolve(url);
222
+ }
223
+ await Utils.wait(11000);
224
+ url=await this.getPdfTryOnce((domains[4]+''),config)
225
+ if(url?.length){
226
+ return resolve(url);
227
+ }
228
+
229
+ return resolve(url);
230
+
231
+ })
232
+
233
+ }
234
+
235
+ public static getPdfTryOnce(domain:string,config: {
136
236
  html: string,
137
237
  debug? : boolean
138
238
  }):Promise<string> {
139
239
  return new Promise((resolve)=>{
140
- let url=([
141
- `https://h4.ezobooks.in/html2image`,
142
- `https://h5.ezobooks.in/html2image`,
143
- `https://h6.ezobooks.in/html2image`,
144
- `https://h7.ezobooks.in/html2image`
145
- ][Math.floor(Math.random() * 4)])+'';
146
240
  request({
147
241
  method: 'POST',
148
242
  headers: {'Content-Type': 'application/json'},
149
- url,
243
+ url:`https://${domain}.ezobooks.in/html2pdf`,
150
244
  body:JSON.stringify({
151
245
  htmlStr:config.html
152
246
  })
153
247
  },(error,res)=>{
154
248
  if(error){
155
- if(config?.debug===true){console.error('H2I:95',error);}
249
+ if(config?.debug===true){console.error('H2I:262',error);}
156
250
  return resolve('');
157
251
  }
158
252
  if(res?.body){
159
253
  try{
160
254
  let obj=JSON.parse(res?.body);
161
255
  if(obj?.status == 'success' && obj?.image?.length){
162
- return resolve(obj?.image);
256
+ let finalUrl = obj?.image.replace(/h(4|5|6|7|8|9|10|11|12|13)\.ezobooks/, 'ir.ezobooks');
257
+ return resolve(finalUrl);
163
258
 
164
259
  }else{
165
- if(config?.debug===true){console.error('H2I:105',obj);}
260
+ if(config?.debug===true){console.error('H2I:272',obj);}
166
261
 
167
262
  return resolve('');
168
263
 
169
264
  }
170
265
  }catch(err){
171
- if(config?.debug===true){console.error('H2I:111',err);}
266
+ if(config?.debug===true){console.error('H2I:278',err);}
172
267
 
173
268
  return resolve('');
174
269