w-web-perm 1.0.20 → 1.0.21
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/w-web-perm.umd.js +1 -1
- package/docs/WWebPerm.html +1 -1
- package/docs/WWebPerm.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/perm.mjs +5 -0
package/dist/w-web-perm.umd.js
CHANGED
package/docs/WWebPerm.html
CHANGED
|
@@ -925,7 +925,7 @@
|
|
|
925
925
|
<br class="clear">
|
|
926
926
|
|
|
927
927
|
<footer>
|
|
928
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Sep 24 2024 20:
|
|
928
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Sep 24 2024 20:21:16 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
929
929
|
</footer>
|
|
930
930
|
|
|
931
931
|
<script>prettyPrint();</script>
|
package/docs/WWebPerm.mjs.html
CHANGED
|
@@ -1176,7 +1176,7 @@ export default WWebPerm
|
|
|
1176
1176
|
<br class="clear">
|
|
1177
1177
|
|
|
1178
1178
|
<footer>
|
|
1179
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Sep 24 2024 20:
|
|
1179
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Sep 24 2024 20:21:16 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1180
1180
|
</footer>
|
|
1181
1181
|
|
|
1182
1182
|
<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.2</a> on Tue Sep 24 2024 20:
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Sep 24 2024 20:21:16 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
package/src/perm.mjs
CHANGED
|
@@ -65,6 +65,10 @@ function perm() {
|
|
|
65
65
|
return pm
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
let isInit = () => {
|
|
69
|
+
return pmd !== null
|
|
70
|
+
}
|
|
71
|
+
|
|
68
72
|
let genUser = () => {
|
|
69
73
|
_user = get(pmd, `user`, {})
|
|
70
74
|
}
|
|
@@ -97,6 +101,7 @@ function perm() {
|
|
|
97
101
|
//kp
|
|
98
102
|
let kp = {
|
|
99
103
|
conn,
|
|
104
|
+
isInit,
|
|
100
105
|
getUser: () => {
|
|
101
106
|
return _user
|
|
102
107
|
},
|