isite 2025.1.2 → 2025.1.4
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 +33 -32
- package/isite_files/html/browser.html +1 -1
- package/lib/collection.js +1 -1
- package/lib/integrated.js +11 -0
- package/lib/mongodb.js +2 -2
- package/lib/routing.js +2 -5
- package/object-options/index.js +1 -1
- package/package.json +3 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = function init(options) {
|
|
2
|
-
console.log('
|
|
2
|
+
console.log('>==================<');
|
|
3
3
|
const ____0 = function () {};
|
|
4
4
|
|
|
5
5
|
____0.args = {};
|
|
@@ -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 =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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 = [];
|
|
@@ -99,18 +106,18 @@ module.exports = function init(options) {
|
|
|
99
106
|
return false;
|
|
100
107
|
}
|
|
101
108
|
____0.closing = true;
|
|
102
|
-
|
|
109
|
+
____0.log('Try Closing Site : ' + ____0.options.name);
|
|
103
110
|
|
|
104
111
|
let count = 0;
|
|
105
112
|
____0.servers = ____0.servers || [];
|
|
106
113
|
____0.servers.forEach((s, i) => {
|
|
107
|
-
|
|
114
|
+
____0.log('Closing Server Number : ' + (i + 1));
|
|
108
115
|
s.close(() => {
|
|
109
116
|
count++;
|
|
110
117
|
if (count == ____0.servers.length) {
|
|
111
|
-
|
|
118
|
+
____0.log('Closing All Database ...');
|
|
112
119
|
____0.call('[close-database]', null, () => {
|
|
113
|
-
|
|
120
|
+
____0.log('Closing Process');
|
|
114
121
|
process.exit(0);
|
|
115
122
|
});
|
|
116
123
|
}
|
|
@@ -118,7 +125,7 @@ module.exports = function init(options) {
|
|
|
118
125
|
});
|
|
119
126
|
|
|
120
127
|
setTimeout(() => {
|
|
121
|
-
|
|
128
|
+
____0.log('Closing Process');
|
|
122
129
|
process.exit(0);
|
|
123
130
|
}, 1000 * wait);
|
|
124
131
|
};
|
|
@@ -176,7 +183,7 @@ module.exports = function init(options) {
|
|
|
176
183
|
}
|
|
177
184
|
|
|
178
185
|
// if (____0.options.cluster.enabled && ____0.cluster.isPrimary) {
|
|
179
|
-
//
|
|
186
|
+
// ____0.log(`Primary cluster : ${process.pid} is running`);
|
|
180
187
|
|
|
181
188
|
// if (____0.options.cluster.enabled) {
|
|
182
189
|
// for (let i = 0; i < ____0.options.cluster.count; i++) {
|
|
@@ -184,16 +191,16 @@ module.exports = function init(options) {
|
|
|
184
191
|
// }
|
|
185
192
|
|
|
186
193
|
// ____0.cluster.on('exit', (worker, code, signal) => {
|
|
187
|
-
//
|
|
194
|
+
// ____0.log(`worker cluster : ${worker.process.pid} died`);
|
|
188
195
|
// });
|
|
189
196
|
// }
|
|
190
197
|
// } else if (____0.options.cluster.enabled && !____0.cluster.isPrimary) {
|
|
191
|
-
//
|
|
198
|
+
// ____0.log(`Worker cluster : ${process.pid} started`);
|
|
192
199
|
// } else {
|
|
193
|
-
//
|
|
200
|
+
// ____0.log(`Process : ${process.pid} started`);
|
|
194
201
|
// }
|
|
195
202
|
|
|
196
|
-
|
|
203
|
+
____0.log(`Process ID : ${process.pid} `);
|
|
197
204
|
|
|
198
205
|
____0.fsm = require('./lib/data.js')(____0);
|
|
199
206
|
____0.fsm = require('./lib/fsm.js')(____0);
|
|
@@ -261,16 +268,10 @@ module.exports = function init(options) {
|
|
|
261
268
|
|
|
262
269
|
//DataBase Management Oprations
|
|
263
270
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
____0
|
|
267
|
-
|
|
268
|
-
};
|
|
269
|
-
} else {
|
|
270
|
-
____0.connectCollection = function (option, db) {
|
|
271
|
-
return require('./lib/collectionFile')(____0, option, db);
|
|
272
|
-
};
|
|
273
|
-
}
|
|
271
|
+
____0.mongodb = require('./lib/mongodb.js')(____0);
|
|
272
|
+
____0.connectCollection = function (option, db) {
|
|
273
|
+
return require('./lib/collection')(____0, option, db);
|
|
274
|
+
};
|
|
274
275
|
|
|
275
276
|
____0.words = require('./lib/words.js')(____0);
|
|
276
277
|
____0.word = ____0.words.word;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2914171635752736383713172118527545387187153161854319326745141365413882592934235745532187153161512115726142381756295175242114125121157267423932522118276141392374423931862157373632537581215312692951752421141251211572674239325221185275471912674239177643394186215751673736166731788667461817754338236542342151417886684718376847157553343636864238325942342151257481271453125121141285453837754134136841387657293423784338377946188673471421514178866847183768471575534778575647185186421837784338275725394762421932612514136245585775433817652539275441387257293516682614215125748127145312512114128547185775451836873139377545731314465886794678377321173771421817754338825921148168255471694718577545183687153161512115716943183752421581271453125129182369421956871531615121141251291851722956177647188551315923694779275746531337461832524718576842731268255381852578517229517524211412512115727441792362461931871531615121141251211413794338825645794668457882654338825739792757465942574657867646587151293412594319327546192683257386744578276241387167415923694779275746538254457875592871752421141251211412514778576842188679255872694178176539792757465942574657867646587151293412594319327546156169257416732773817125541268263561782615128126144684153161512114125121141379433882564579466845788265433882573678377347583773377886734378576842731286211842524519275728717524153161512114125121141379433882564579466847192382351886524216426245183651293413584738825447185769455312614579137543388668467371514178176545182352417865622119652714531251211412512114125141781765451823524178655129317524211412512114125121141251211827524518725341382764211972851531615121141251211412512114125142593768417932624578815124145651487175242114125121141251211412512114125141788668467886654234826545784661237827524518725341382764211882694714136245391365423876574559315125538168237356841531615121141251211412512114125149356527145312512114125121141251433841512418867147185769455926684258377541785162211965271453125121141251211412512114135842393254431452694619326245788274255937734514715148731367457832572853125941788673467346652119235742185773423827752853125942588665451886792373138624317524211412512114125121141251211412512559326142388161241923574679136945592757243412862953137342392771457882744234827542395275241456621531615121141251211412512114125121141268471852574553516147183781471456512935815148717524211412512114125121141251211412512114136242531261457913754338866846738275483913572115758629341259467827734339137523735651487175242114125121141251211412512114125121141251211942524653135447392775457876354179236246193151293413564578277645383768471482544658375247183717451837674238827524144774417923624619315924356527145312512114125121141251211412512114125121141354473927754578763541792362461931684338315129341369461932624578827425585756287175242114125121141251211412512114125121141251211827764679326945372754465857714714826245588257465652363536715129341375423952752871752421141251211412512114125121141251211412512118326941793767423882752559177642392382367837654238277545792161237852574138315924348252461913574558321543185765421452544739277545787635417923624619316228717524211412512114125121141251211412512114125121182752451872534138276424145684153161512114125121141251211412512114125121197527145312512114125121141251211412512119756215316151211412512114125121141251211412684178177541785161241837734653565129358151487175242114125121141251211412512114125121141354457882744578725725587269427352574659216228717524211412512114125121141251211412512114135441387265415817544373516228717524211412512114125121141251211412514934568415316151211412512114125121197551423872744234138415316151211412512114125121141251433841512418867147185769455926684719577142341286293575512379275446585771471446622119652714531251211412512114125121141251211942524653135447392775457876354179236246193151293413564578277645383768471482544658375247183717451837674238827524144774417923624619315924356527145312512114125121141251211412512118277646793269453727544658577147148262421412862118867147185769455926684338318415316151211412512114125121141251211413544739277545787635417923624619316846792354211575514579137543388668467382764658718415316151211412512114125121141251211413544739277545787635417923624619316845788265457817562115755141781765451823524178658415316151211412512114125121141251211413564578277645383768471482724738377348372757451837544718867324144761423817562373566841391371423882563178526245183161417937744718866736782773433913752435652714531251211412512114125121141386153161512114125121141251211975271453125121141251211975841531612714531251211412512118427645582775433886682119277541392375353817624557275746594257465351622119652714531251211412512114125147785768421886792559327348367269413832184338725724196527145312512114125121141251211413764658718321188668451857684237867442392378423923494739236521146551237386634673865341392762417382634674867842392374433886682934465124731316413932572558826947735162251275242114125121141251211412512119328246183683211447744179236246193159251275242114125121141251211412512118575628531259415817744338266746782773433913752373712714531251211412512114125121141358423932544315615147192376423471271453125121141251211412514934568415316151211412512114138615316127145312512114125121192775413923753538176245572757465942574653516228717524211412512115716946782773433913752951752421141285257823694219568715316185257852754538718715316191
|
package/lib/collection.js
CHANGED
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/lib/mongodb.js
CHANGED
|
@@ -14,7 +14,7 @@ module.exports = function init(____0) {
|
|
|
14
14
|
|
|
15
15
|
const _mongo = function () {};
|
|
16
16
|
_mongo.callback = function (...args) {
|
|
17
|
-
|
|
17
|
+
____0.log(...args);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
_mongo.lib = mongodb;
|
|
@@ -38,7 +38,7 @@ module.exports = function init(____0) {
|
|
|
38
38
|
|
|
39
39
|
_mongo.closeDbBusy = !1;
|
|
40
40
|
____0.on('[close-database]', (args, callback) => {
|
|
41
|
-
callback = callback ||
|
|
41
|
+
callback = callback || _mongo.callback;
|
|
42
42
|
|
|
43
43
|
if (_mongo.closeDbBusy == !0) {
|
|
44
44
|
setTimeout(() => {
|
package/lib/routing.js
CHANGED
|
@@ -690,7 +690,7 @@ module.exports = function init(____0) {
|
|
|
690
690
|
_0xrrxo.handleServer = async function (req, res) {
|
|
691
691
|
____0.validateServerRequest(req, res, (req, res) => {
|
|
692
692
|
req.host = req.headers['host'] || '';
|
|
693
|
-
req.origin = req.headers['origin'] ||
|
|
693
|
+
req.origin = req.headers['origin'] || '';
|
|
694
694
|
req.referer = req.headers['referer'] || '';
|
|
695
695
|
req.domain = '';
|
|
696
696
|
req.subDomain = '';
|
|
@@ -1213,10 +1213,7 @@ module.exports = function init(____0) {
|
|
|
1213
1213
|
res.set('Access-Control-Allow-Credentials', 'true');
|
|
1214
1214
|
res.set('Access-Control-Allow-Headers', req.headers['access-control-request-headers'] || 'Origin, X-Requested-With, Content-Type, Accept , Access-Token , Authorization');
|
|
1215
1215
|
res.set('Access-Control-Allow-Methods', req.headers['access-control-request-method'] || 'POST,GET,DELETE,PUT,OPTIONS,VIEW,HEAD,CONNECT,TRACE');
|
|
1216
|
-
res.set('Access-Control-Allow-Origin', req.referer || '*');
|
|
1217
|
-
if (req.origin) {
|
|
1218
|
-
res.set('Access-Control-Allow-Origin', req.origin);
|
|
1219
|
-
}
|
|
1216
|
+
res.set('Access-Control-Allow-Origin', req.origin || req.referer || '*');
|
|
1220
1217
|
|
|
1221
1218
|
____0.validateRequest(req, res, (req, res) => {
|
|
1222
1219
|
if (____0.options.www === false && req.host.contains('www')) {
|
package/object-options/index.js
CHANGED
|
@@ -38,7 +38,7 @@ function setOptions(_options, ____0) {
|
|
|
38
38
|
responseTimeout: 60,
|
|
39
39
|
_0x14xo: _0x14xo, // 3259376545129191
|
|
40
40
|
_0xddxo: _0xddxo, // 421957684138766241719191
|
|
41
|
-
log: !
|
|
41
|
+
log: !1,
|
|
42
42
|
lang: 'En',
|
|
43
43
|
language: { id: 'En', dir: 'ltr', text: 'left' },
|
|
44
44
|
theme: 'default',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isite",
|
|
3
|
-
"version": "2025.01.
|
|
3
|
+
"version": "2025.01.04",
|
|
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",
|