w-web-perm 1.0.72 → 1.0.74
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/docs/WWebPerm.html
CHANGED
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
<br class="clear">
|
|
1046
1046
|
|
|
1047
1047
|
<footer>
|
|
1048
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026
|
|
1048
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 16:59:37 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1049
1049
|
</footer>
|
|
1050
1050
|
|
|
1051
1051
|
<script>prettyPrint();</script>
|
package/docs/WWebPerm.mjs.html
CHANGED
|
@@ -1231,7 +1231,7 @@ export default WWebPerm
|
|
|
1231
1231
|
<br class="clear">
|
|
1232
1232
|
|
|
1233
1233
|
<footer>
|
|
1234
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026
|
|
1234
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 16:59:37 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1235
1235
|
</footer>
|
|
1236
1236
|
|
|
1237
1237
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<br class="clear">
|
|
72
72
|
|
|
73
73
|
<footer>
|
|
74
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 16:59:37 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
75
75
|
</footer>
|
|
76
76
|
|
|
77
77
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-web-perm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
4
4
|
"main": "dist/w-web-perm.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"axios": "^1.18.1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"w-serv-orm": "^1.0.51",
|
|
14
14
|
"w-syslog": "^1.0.23",
|
|
15
15
|
"w-ui-loginout": "^1.0.22",
|
|
16
|
-
"wsemi": "^1.8.
|
|
16
|
+
"wsemi": "^1.8.84"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@vue/cli-plugin-babel": "^5.0.8",
|
package/server/procStaInfor.mjs
CHANGED
|
@@ -80,9 +80,9 @@ function proc(opt = {}) {
|
|
|
80
80
|
//cacheKey: 含 timeLength + timeInterval 避免不同分組互蓋快取
|
|
81
81
|
let cacheKey = `${timeLength}:${timeInterval}`
|
|
82
82
|
|
|
83
|
-
//wsemi ≥1.8.81 cache: 執行中共用 in-flight promise (併發不輪詢); timeFrom:'end' 使 30 秒自掃描完成起算;
|
|
83
|
+
//wsemi ≥1.8.81 cache: 執行中共用 in-flight promise (併發不輪詢); timeFrom:'end' 使 30 秒自掃描完成起算; useCacheWhenError:false 失敗不快取且拋錯
|
|
84
84
|
//(取代原「非陣列即 clear + reject」之繞道), 失敗一律 reject 'cannotGetStaEvent' 讓上層 (kpFunExt) 記 err key
|
|
85
|
-
let r = await ocGetStaEvent.getProxy(cacheKey, { fun: _getStaEvent, inputs: [timeLength, timeInterval], timeExpired: 30 * 1000, timeFrom: 'end',
|
|
85
|
+
let r = await ocGetStaEvent.getProxy(cacheKey, { fun: _getStaEvent, inputs: [timeLength, timeInterval], timeExpired: 30 * 1000, timeFrom: 'end', useCacheWhenError: false }) //快取30秒
|
|
86
86
|
.catch(() => {
|
|
87
87
|
return Promise.reject('cannotGetStaEvent')
|
|
88
88
|
})
|
|
@@ -110,7 +110,7 @@ function proc(opt = {}) {
|
|
|
110
110
|
let getStaEventTable = async (userId) => {
|
|
111
111
|
|
|
112
112
|
//cache 選項同 getStaEvent
|
|
113
|
-
let r = await ocGetStaEventTable.getProxy('staEventTable', { fun: _getStaEventTable, inputs: [], timeExpired: 30 * 1000, timeFrom: 'end',
|
|
113
|
+
let r = await ocGetStaEventTable.getProxy('staEventTable', { fun: _getStaEventTable, inputs: [], timeExpired: 30 * 1000, timeFrom: 'end', useCacheWhenError: false }) //快取30秒
|
|
114
114
|
.catch(() => {
|
|
115
115
|
return Promise.reject('cannotGetStaEventTable')
|
|
116
116
|
})
|