@naturalcycles/backend-lib 9.59.3 → 9.60.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.
@@ -110,7 +110,7 @@ export class BaseAdminService {
110
110
  return;
111
111
  return {
112
112
  email: email,
113
- permissions: [...hasPermissions],
113
+ permissions: Array.from(hasPermissions),
114
114
  };
115
115
  }
116
116
  async requirePermissions(req, reqPermissions = [], meta = {}, andComparison = true) {
@@ -154,7 +154,7 @@ export class BaseAdminService {
154
154
  }
155
155
  return {
156
156
  email,
157
- permissions: [...grantedPermissions],
157
+ permissions: grantedPermissions.slice(),
158
158
  };
159
159
  }
160
160
  // convenience method
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
3
  "type": "module",
4
- "version": "9.59.3",
4
+ "version": "9.60.0",
5
5
  "dependencies": {
6
6
  "@naturalcycles/db-lib": "^10",
7
7
  "@naturalcycles/js-lib": "^15",
@@ -45,7 +45,7 @@
45
45
  "@sentry/node-core": "^10",
46
46
  "@typescript/native-preview": "beta",
47
47
  "fastify": "^5",
48
- "@naturalcycles/dev-lib": "20.45.1"
48
+ "@naturalcycles/dev-lib": "20.48.0"
49
49
  },
50
50
  "exports": {
51
51
  ".": "./dist/index.js",
@@ -168,7 +168,7 @@ export class BaseAdminService {
168
168
 
169
169
  return {
170
170
  email: email!,
171
- permissions: [...hasPermissions],
171
+ permissions: Array.from(hasPermissions),
172
172
  }
173
173
  }
174
174
 
@@ -221,7 +221,7 @@ export class BaseAdminService {
221
221
 
222
222
  return {
223
223
  email,
224
- permissions: [...grantedPermissions],
224
+ permissions: grantedPermissions.slice(),
225
225
  }
226
226
  }
227
227