@naturalcycles/backend-lib 9.59.2 → 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.
- package/bin/deploy-gae.js +2 -0
- package/bin/deploy-health-check.js +2 -0
- package/bin/deploy-prepare.js +2 -0
- package/bin/undeploy-gae.js +2 -0
- package/dist/admin/base.admin.service.js +2 -2
- package/dist/bin/deploy-gae.d.ts +0 -1
- package/dist/bin/deploy-gae.js +0 -1
- package/dist/bin/deploy-health-check.d.ts +0 -1
- package/dist/bin/deploy-health-check.js +0 -1
- package/dist/bin/deploy-prepare.d.ts +0 -1
- package/dist/bin/deploy-prepare.js +0 -1
- package/dist/bin/undeploy-gae.d.ts +0 -1
- package/dist/bin/undeploy-gae.js +0 -1
- package/package.json +8 -7
- package/src/admin/base.admin.service.ts +2 -2
- package/src/bin/deploy-gae.ts +0 -2
- package/src/bin/deploy-health-check.ts +0 -2
- package/src/bin/deploy-prepare.ts +0 -2
- package/src/bin/undeploy-gae.ts +0 -2
|
@@ -110,7 +110,7 @@ export class BaseAdminService {
|
|
|
110
110
|
return;
|
|
111
111
|
return {
|
|
112
112
|
email: email,
|
|
113
|
-
permissions:
|
|
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:
|
|
157
|
+
permissions: grantedPermissions.slice(),
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
// convenience method
|
package/dist/bin/deploy-gae.d.ts
CHANGED
package/dist/bin/deploy-gae.js
CHANGED
package/dist/bin/undeploy-gae.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/backend-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.60.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@naturalcycles/db-lib": "^10",
|
|
7
7
|
"@naturalcycles/js-lib": "^15",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@sentry/node-core": "^10",
|
|
46
|
-
"@typescript/native-preview": "
|
|
46
|
+
"@typescript/native-preview": "beta",
|
|
47
47
|
"fastify": "^5",
|
|
48
|
-
"@naturalcycles/dev-lib": "
|
|
48
|
+
"@naturalcycles/dev-lib": "20.48.0"
|
|
49
49
|
},
|
|
50
50
|
"exports": {
|
|
51
51
|
".": "./dist/index.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"./testing": "./dist/testing/index.js"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
|
+
"bin",
|
|
63
64
|
"dist",
|
|
64
65
|
"cfg",
|
|
65
66
|
"resources",
|
|
@@ -70,10 +71,10 @@
|
|
|
70
71
|
"!src/**/__exclude"
|
|
71
72
|
],
|
|
72
73
|
"bin": {
|
|
73
|
-
"deploy-gae": "
|
|
74
|
-
"undeploy-gae": "
|
|
75
|
-
"deploy-prepare": "
|
|
76
|
-
"deploy-health-check": "
|
|
74
|
+
"deploy-gae": "bin/deploy-gae.js",
|
|
75
|
+
"undeploy-gae": "bin/undeploy-gae.js",
|
|
76
|
+
"deploy-prepare": "bin/deploy-prepare.js",
|
|
77
|
+
"deploy-health-check": "bin/deploy-health-check.js"
|
|
77
78
|
},
|
|
78
79
|
"types": "dist/index.d.ts",
|
|
79
80
|
"publishConfig": {
|
|
@@ -168,7 +168,7 @@ export class BaseAdminService {
|
|
|
168
168
|
|
|
169
169
|
return {
|
|
170
170
|
email: email!,
|
|
171
|
-
permissions:
|
|
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:
|
|
224
|
+
permissions: grantedPermissions.slice(),
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
package/src/bin/deploy-gae.ts
CHANGED