ts-glitter 21.6.0 → 21.6.2
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/lowcode/Entry.js
CHANGED
|
@@ -146,7 +146,7 @@ export class Entry {
|
|
|
146
146
|
}
|
|
147
147
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
148
148
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
149
|
-
glitter.share.editerVersion = 'V_21.6.
|
|
149
|
+
glitter.share.editerVersion = 'V_21.6.2';
|
|
150
150
|
glitter.share.start = new Date();
|
|
151
151
|
const vm = { appConfig: [] };
|
|
152
152
|
window.saasConfig = {
|
package/lowcode/Entry.ts
CHANGED
|
@@ -150,7 +150,7 @@ export class Entry {
|
|
|
150
150
|
}
|
|
151
151
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
152
152
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
153
|
-
glitter.share.editerVersion = 'V_21.6.
|
|
153
|
+
glitter.share.editerVersion = 'V_21.6.2';
|
|
154
154
|
glitter.share.start = new Date();
|
|
155
155
|
const vm = { appConfig: [] };
|
|
156
156
|
(window as any).saasConfig = {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const ssh_1 = require("../modules/ssh");
|
|
|
10
10
|
class SystemSchedule {
|
|
11
11
|
async checkMysqlStatus(sec) {
|
|
12
12
|
const prepared_stmt_count = (await database_1.default.query(`show global status like 'prepared_stmt_count';`, []))[0]['Value'];
|
|
13
|
-
if (parseInt(prepared_stmt_count, 10) >
|
|
13
|
+
if (parseInt(prepared_stmt_count, 10) > 150000) {
|
|
14
14
|
const response = await new Promise((resolve, reject) => {
|
|
15
15
|
ssh_1.Ssh.exec([
|
|
16
16
|
`sudo docker restart $(sudo docker ps --filter "expose=3080" --format "{{.ID}}")`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-schedule.js","sourceRoot":"","sources":["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AA;QACV,CAAC;IACJ,CAAC;IAEA,KAAK;QACF,MAAM,YAAY,GAAmB;YACjC,EAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,WAAW,EAAC;SAC1E,CAAC;QACF,IAAI,CAAC;YACD,YAAY,CAAC,OAAO,CAAC,CAAC,QAAa,EAAE,EAAE;gBACnC,IAAI,QAAQ,CAAC,MAAM,IAAI,OAAQ,IAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,UAAU,EAAE,CAAC;oBACtE,IAAY,CAAC,QAAQ,CAAC,IAAI,CAA2B,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAC7E,CAAC;YACL,CAAC,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,mBAAS,CAAC,eAAe,CAAC,aAAa,EAAE,uBAAuB,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;QACtF,CAAC;IACL,CAAC;CACJ;AArCD,wCAqCC"}
|
|
@@ -13,7 +13,7 @@ export class SystemSchedule {
|
|
|
13
13
|
//檢查mysql狀態,如異常則重啟。
|
|
14
14
|
async checkMysqlStatus(sec: number) {
|
|
15
15
|
const prepared_stmt_count=(await db.query(`show global status like 'prepared_stmt_count';`,[]))[0]['Value']
|
|
16
|
-
if(parseInt(prepared_stmt_count,10)>
|
|
16
|
+
if(parseInt(prepared_stmt_count,10)> 150000){
|
|
17
17
|
const response = await new Promise((resolve, reject) => {
|
|
18
18
|
Ssh.exec([
|
|
19
19
|
//重啟MYSQL
|