@mu-cabin/opms-permission 0.8.18 → 0.8.19

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/index.cjs CHANGED
@@ -430,7 +430,7 @@ var Permission = class {
430
430
  try {
431
431
  const res = await getUserOrgTree(this.baseUrl);
432
432
  const { data, success, msg, code } = res;
433
- if (!success) {
433
+ if (success === false) {
434
434
  return Promise.reject({
435
435
  code,
436
436
  msg
package/dist/index.mjs CHANGED
@@ -391,7 +391,7 @@ var Permission = class {
391
391
  try {
392
392
  const res = await getUserOrgTree(this.baseUrl);
393
393
  const { data, success, msg, code } = res;
394
- if (!success) {
394
+ if (success === false) {
395
395
  return Promise.reject({
396
396
  code,
397
397
  msg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mu-cabin/opms-permission",
3
- "version": "0.8.18",
3
+ "version": "0.8.19",
4
4
  "description": "Frontend SDK for OPMS permission and auth management.",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",