isite 2025.1.2 → 2025.1.3

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/index.js CHANGED
@@ -24,6 +24,7 @@ module.exports = function init(options) {
24
24
  ____0.fs = require('node:fs');
25
25
  ____0.path = require('node:path');
26
26
  ____0.child_process = require('node:child_process');
27
+ ____0.readline = require('node:readline');
27
28
  ____0.zlib = require('zlib');
28
29
  ____0.xlsx = ____0.XLSX = require('xlsx');
29
30
  ____0.pdf = ____0.PDF = require('pdf-lib');
@@ -34,23 +35,28 @@ module.exports = function init(options) {
34
35
  ____0.mv = require('mv');
35
36
  ____0.utf8 = require('utf8');
36
37
  ____0.eval = require('eval');
38
+ ____0.proxyAgent = require('https-proxy-agent');
37
39
  ____0.fetchAsync = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
38
40
  ____0.request =
39
41
  ____0.fetch =
40
42
  ____0.x0ftox =
41
43
  function (...args) {
42
44
  args[1] = args[1] || {};
43
- args[1].agent = function (_parsedURL) {
44
- if (_parsedURL.protocol == 'http:') {
45
- return new ____0.http.Agent({
46
- keepAlive: true,
47
- });
48
- } else {
49
- return new ____0.https.Agent({
50
- keepAlive: true,
51
- });
52
- }
53
- };
45
+ args[1].agent =
46
+ args[1].agent ||
47
+ function (_parsedURL) {
48
+ if (args[1].proxyURL) {
49
+ return new ____0.proxyAgent(proxyURL);
50
+ } else if (_parsedURL.protocol == 'http:') {
51
+ return new ____0.http.Agent({
52
+ keepAlive: true,
53
+ });
54
+ } else {
55
+ return new ____0.https.Agent({
56
+ keepAlive: true,
57
+ });
58
+ }
59
+ };
54
60
  return ____0.fetchAsync(...args);
55
61
  };
56
62
  ____0.$ = ____0.cheerio = require('cheerio');
@@ -59,6 +65,7 @@ module.exports = function init(options) {
59
65
 
60
66
  ____0.webp = require('webp-converter');
61
67
  ____0.telegramBotApi = require('node-telegram-bot-api');
68
+ ____0.telegram = require('telegram');
62
69
  ____0.setting = {};
63
70
 
64
71
  ____0.databaseList = [];
@@ -1 +1 @@
1
- 2914171635752736383713172118527545387187153161854319326745141365413882592934235745532187153161512115726142381756295175242114125121157267423932522118276141392374423931862157373632537581215312692951752421141251211572674239325221185275471912674239177643394186215751673736166731788667461817754338236542342151417886684718376847157553343636864238325942342151257481271453125121141285453837754134136841387657293423784338377946188673471421514178866847183768471575534778575647185186421837784338275725394762421932612514136245585775433817652539275441387257293516682614215125748127145312512114128547185775451836873139377545731314465886794678377321173771421817754338825921148168255471694718577545183687153161512115716943183752421581271453125129182369421956871531615121141251291851722956177647188551315923694779275746531337461832524718576842731268255381852578517229517524211412512115727441792362461931871531615121141251211413794338825645794668457882654338825739792757465942574657867646587151293412594319327546192683257386744578276241387167415923694779275746538254457875592871752421141251211412514778576842188679255872694178176539792757465942574657867646587151293412594319327546156169257416732773817125541268263561782615128126144684153161512114125121141379433882564579466845788265433882573678377347583773377886734378576842731286211842524519275728717524153161512114125121141379433882564579466847192382351886524216426245183651293413584738825447185769455312614579137543388668467371514178176545182352417865622119652714531251211412512114125141781765451823524178655129317524211412512114125121141251211827524518725341382764211972851531615121141251211412512114125142593768417932624578815124145651487175242114125121141251211412512114125141788668467886654234826545784661237827524518725341382764211882694714136245391365423876574559315125538168237356841531615121141251211412512114125149356527145312512114125121141251433841512418867147185769455926684258377541785162211965271453125121141251211412512114135842393254431452694619326245788274255937734514715148731367457832572853125941788673467346652119235742185773423827752853125942588665451886792373138624317524211412512114125121141251211412512559326142388161241923574679136945592757243412862953137342392771457882744234827542395275241456621531615121141251211412512114125121141268471852574553516147183781471456512935815148717524211412512114125121141251211412512114136242531261457913754338866846738275483913572115758629341259467827734339137523735651487175242114125121141251211412512114125121141251211942524653135447392775457876354179236246193151293413564578277645383768471482544658375247183717451837674238827524144774417923624619315924356527145312512114125121141251211412512114125121141354473927754578763541792362461931684338315129341369461932624578827425585756287175242114125121141251211412512114125121141251211827764679326945372754465857714714826245588257465652363536715129341375423952752871752421141251211412512114125121141251211412512118326941793767423882752559177642392382367837654238277545792161237852574138315924348252461913574558321543185765421452544739277545787635417923624619316228717524211412512114125121141251211412512114125121182752451872534138276424145684153161512114125121141251211412512114125121197527145312512114125121141251211412512119756215316151211412512114125121141251211412684178177541785161241837734653565129358151487175242114125121141251211412512114125121141354457882744578725725587269427352574659216228717524211412512114125121141251211412512114135441387265415817544373516228717524211412512114125121141251211412514934568415316151211412512114125121197551423872744234138415316151211412512114125121141251433841512418867147185769455926684719577142341286293575512379275446585771471446622119652714531251211412512114125121141251211942524653135447392775457876354179236246193151293413564578277645383768471482544658375247183717451837674238827524144774417923624619315924356527145312512114125121141251211412512118277646793269453727544658577147148262421412862118867147185769455926684338318415316151211412512114125121141251211413544739277545787635417923624619316846792354211575514579137543388668467382764658718415316151211412512114125121141251211413544739277545787635417923624619316845788265457817562115755141781765451823524178658415316151211412512114125121141251211413564578277645383768471482724738377348372757451837544718867324144761423817562373566841391371423882563178526245183161417937744718866736782773433913752435652714531251211412512114125121141386153161512114125121141251211975271453125121141251211975841531612714531251211412512118427645582775433886682118276142382764367837734758377336793252471937742414565148717524211412512114125121141379433882564579466845788265433882573678377347583773377886734378576842731286211842524519275728717524211412512114125121141379433882564579466847192382351886524216426245183661153161512114125121141251211412514871752421141251211412512114125121141251473923652853136945587262455837494678377347583773397937734514126421144669435926694679325247193774255862742979425746592762457881862373126421163252471836684558867924145665153161512114125121141251211412512114137548391357285312594678277343391375237371271453125121141251211412512114125121185756285312594679325247193774397346512473131641393257255882694773516225127524211412512114125121141251211412514258377541785183211932734738366515316151211412512114125121141251493471271453125121141251211412512114126124341286295313841531615121141251211412512114125121141362425312614778576842188679255886684518576842372757465942574657476946586762455846622119652714531251211412512114125121141251211412514679325246593227413857683678377347583773241456841531615121141251211412512114125121141386211837654678365148717524211412512114125121141251211412512114137447181773471676624659236946572757465942574653516228717524211412512114125121141251211412514931752421141251211412512114125121197527145312512114125121141251243565271453125121141251211975271451752421141251211412514259376841793262457881514679325246593227433923734579233542392378423921612434138415316151211412512114125121185758211451524778576842188679255827654338376847141385491412524778576842188679255827654338376847148253413927624176867646183252471836622119652714531251211412512114125121141379433882564579466847192382351886524216426245183661487175242114125121141251211412512114125147392365285312594319327546192683257386734139466842785775431937534739275746582769455932574559316841788667257817534679376846793252465386744538177347147652461913742578765243388169415923694779275746538674433932573978426245183774257862742578235246785754255862742373712714531251211412512114125121141251211932824618368321144774417923624619315925127524211412512114125121141251211412514338318321144753413927624173767441792362461931592512752421141251211412512114125121141251425837754178518321193273473836651531615121141251211412512114125149345684153161512114125121141251211975271453125121141251211975271451752421141251211412514259376841793262457881514679325246593227413857683678377347583773241456514871752421141251211412512114136242531261213947624558326947738254451857574559315149197151213947624558326947738254451857574559316841581774433827494739135641393257243413841531615121141251211412512114125147785768421886792559327348367269413832184338725724196527145312512114125121141251211412512119377345156151457882654338825739792757465942574657867646587151247312592578627425782352467857542558627429794257465927624578818623731264211632524718366845588679241456651531615121141251211412512114125121141375483913572853125946782773433913752373712714531251211412512114125121141251211857562853125941581774433826674678277343391375237371271453125121141251211412512114125121184257471827612853137546593757251275242114125121141251211412512119756228717524211412512114125121141386153161512114125121141386153161271453125121141251211827614238276436783773475837733679325247193774241456841531615121141251211413744239322345593257465942524514516124341286295313841531615121141251211412512118276142382764367837734758377336793252471937742414568415316151211412512114138625141272261512712114615127541251245312782614568415316151211412512914867441792362461931871531615121157169415886564835812714547169431932674515812714519191
1
+ 2914171635752736383713172118527545387187153161854319326745141365413882592934235745532187153161512115726142381756295175242114125121157267423932522118276141392374423931862157373632537581215312692951752421141251211572674239325221185275471912674239177643394186215751673736166731788667461817754338236542342151417886684718376847157553343636864238325942342151257481271453125121141285453837754134136841387657293423784338377946188673471421514178866847183768471575534778575647185186421837784338275725394762421932612514136245585775433817652539275441387257293516682614215125748127145312512114128547185775451836873139377545731314465886794678377321173771421817754338825921148168255471694718577545183687153161512115716943183752421581271453125129182369421956871531615121141251291851722956177647188551315923694779275746531337461832524718576842731268255381852578517229517524211412512115727441792362461931871531615121141251211413794338825645794668457882654338825739792757465942574657867646587151293412594319327546192683257386744578276241387167415923694779275746538254457875592871752421141251211412514778576842188679255872694178176539792757465942574657867646587151293412594319327546156169257416732773817125541268263561782615128126144684153161512114125121141379433882564579466845788265433882573678377347583773377886734378576842731286211842524519275728717524153161512114125121141379433882564579466847192382351886524216426245183651293413584738825447185769455312614579137543388668467371514178176545182352417865622119652714531251211412512114125141781765451823524178655129317524211412512114125121141251211827524518725341382764211972851531615121141251211412512114125142593768417932624578815124145651487175242114125121141251211412512114125141788668467886654234826545784661237827524518725341382764211882694714136245391365423876574559315125538168237356841531615121141251211412512114125149356527145312512114125121141251433841512418867147185769455926684258377541785162211965271453125121141251211412512114135842393254431452694619326245788274255937734514715148731367457832572853125941788673467346652119235742185773423827752853125942588665451886792373138624317524211412512114125121141251211412512559326142388161241923574679136945592757243412862953137342392771457882744234827542395275241456621531615121141251211412512114125121141268471852574553516147183781471456512935815148717524211412512114125121141251211412512114136242531261457913754338866846738275483913572115758629341259467827734339137523735651487175242114125121141251211412512114125121141251211942524653135447392775457876354179236246193151293413564578277645383768471482544658375247183717451837674238827524144774417923624619315924356527145312512114125121141251211412512114125121141354473927754578763541792362461931684338315129341369461932624578827425585756287175242114125121141251211412512114125121141251211827764679326945372754465857714714826245588257465652363536715129341375423952752871752421141251211412512114125121141251211412512118326941793767423882752559177642392382367837654238277545792161237852574138315924348252461913574558321543185765421452544739277545787635417923624619316228717524211412512114125121141251211412512114125121182752451872534138276424145684153161512114125121141251211412512114125121197527145312512114125121141251211412512119756215316151211412512114125121141251211412684178177541785161241837734653565129358151487175242114125121141251211412512114125121141354457882744578725725587269427352574659216228717524211412512114125121141251211412512114135441387265415817544373516228717524211412512114125121141251211412514934568415316151211412512114125121197551423872744234138415316151211412512114125121141251433841512418867147185769455926684719577142341286293575512379275446585771471446622119652714531251211412512114125121141251211942524653135447392775457876354179236246193151293413564578277645383768471482544658375247183717451837674238827524144774417923624619315924356527145312512114125121141251211412512118277646793269453727544658577147148262421412862118867147185769455926684338318415316151211412512114125121141251211413544739277545787635417923624619316846792354211575514579137543388668467382764658718415316151211412512114125121141251211413544739277545787635417923624619316845788265457817562115755141781765451823524178658415316151211412512114125121141251211413564578277645383768471482724738377348372757451837544718867324144761423817562373566841391371423882563178526245183161417937744718866736782773433913752435652714531251211412512114125121141386153161512114125121141251211975271453125121141251211975841531612714531251211412512118427645582775433886682119277541392375353817624557275746594257465351622119652714531251211412512114125147785768421886792559327348367269413832184338725724196527145312512114125121141251211413764658718321188668451857684237867442392378423923494739236521146551237386634673865341392762417382634674867842392374433886682934465124731316413932572558826947735162251275242114125121141251211412512119328246183683211447744179236246193159251275242114125121141251211412512118575628531259415817744338266746782773433913752373712714531251211412512114125121141358423932544315615147192376423471271453125121141251211412514934568415316151211412512114138615316127145312512114125121192775413923753538176245572757465942574653516228717524211412512115716946782773433913752951752421141285257823694219568715316185257852754538718715316191
package/lib/integrated.js CHANGED
@@ -12,6 +12,17 @@ module.exports = function init(____0) {
12
12
  }
13
13
  };
14
14
 
15
+ ____0.connectTelegramClient = function (session, apiId, apiHash, options) {
16
+ return new ____0.telegram.TelegramClient(
17
+ session || new ____0.telegram.sessions.StringSession(''),
18
+ apiId,
19
+ apiHash,
20
+ options || {
21
+ connectionRetries: 5,
22
+ }
23
+ );
24
+ };
25
+
15
26
  ____0.telegramInit = function (_token, onNewMessage) {
16
27
  const token = _token || ____0.from123('28151274267416752654127427546213313647493756417147542323361941814637625228172373327862183774477626168234323932434158325736319191');
17
28
  const bot = new ____0.telegramBotApi(token, { polling: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2025.01.02",
3
+ "version": "2025.01.03",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -41,6 +41,7 @@
41
41
  "cheerio": "^1.0.0-rc.12",
42
42
  "eval": "^0.1.8",
43
43
  "formidable": "^2.0.1",
44
+ "https-proxy-agent": "^7.0.6",
44
45
  "md5": "^2.3.0",
45
46
  "mongodb": "^6.10.0",
46
47
  "mv": "^2.1.1",
@@ -48,6 +49,7 @@
48
49
  "node-telegram-bot-api": "^0.66.0",
49
50
  "nodemailer": "^6.9.14",
50
51
  "pdf-lib": "^1.17.1",
52
+ "telegram": "^2.26.22",
51
53
  "utf8": "^3.0.0",
52
54
  "webp-converter": "^2.3.3",
53
55
  "ws": "^8.18.0",