@thzero/library_server 0.15.33 → 0.15.34
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.
|
@@ -4,8 +4,6 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented';
|
|
|
4
4
|
|
|
5
5
|
import AdminBootPlugin from './index';
|
|
6
6
|
|
|
7
|
-
import adminNewsRoute from '../../../routes/admin/news';
|
|
8
|
-
|
|
9
7
|
class NewsAdminBootPlugin extends AdminBootPlugin {
|
|
10
8
|
async _initRoutes() {
|
|
11
9
|
this._initRoute(this._initRoutesAdminNews());
|
|
@@ -24,7 +22,7 @@ class NewsAdminBootPlugin extends AdminBootPlugin {
|
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
_initRoutesAdminNews() {
|
|
27
|
-
|
|
25
|
+
throw new NotImplementedError();;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
_initServicesAdminNews() {
|
|
@@ -4,8 +4,6 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented';
|
|
|
4
4
|
|
|
5
5
|
import AdminBootPlugin from './index';
|
|
6
6
|
|
|
7
|
-
import adminUsersRoute from '../../../routes/admin/users'
|
|
8
|
-
|
|
9
7
|
class UsersAdminBootPlugin extends AdminBootPlugin {
|
|
10
8
|
async _initRoutes() {
|
|
11
9
|
this._initRoute(this._initRoutesAdminUsers());
|
|
@@ -24,7 +22,7 @@ class UsersAdminBootPlugin extends AdminBootPlugin {
|
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
_initRoutesAdminUsers() {
|
|
27
|
-
|
|
25
|
+
throw new NotImplementedError();
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
_initServicesAdminUsers() {
|
package/boot/plugins/api.js
CHANGED
|
@@ -30,11 +30,11 @@ class ApiBootPlugin extends BootPlugin {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
_initRoutesHome() {
|
|
33
|
-
throw NotImplementedError();
|
|
33
|
+
throw new NotImplementedError();
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
_initRoutesVersion() {
|
|
37
|
-
throw NotImplementedError();
|
|
37
|
+
throw new NotImplementedError();
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
_initServicesCrypto() {
|
package/boot/plugins/apiFront.js
CHANGED
package/boot/plugins/news.js
CHANGED
package/boot/plugins/users.js
CHANGED
|
@@ -4,6 +4,8 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented';
|
|
|
4
4
|
|
|
5
5
|
import UsersApiBootPlugin from './users';
|
|
6
6
|
|
|
7
|
+
import plansService from '../../service/plans';
|
|
8
|
+
|
|
7
9
|
class ExtendedUsersApiBootPlugin extends UsersApiBootPlugin {
|
|
8
10
|
async _initRepositories() {
|
|
9
11
|
await super._initRepositories();
|
|
@@ -23,7 +25,7 @@ class ExtendedUsersApiBootPlugin extends UsersApiBootPlugin {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
_initServicesPlans() {
|
|
26
|
-
|
|
28
|
+
return new plansService();
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.34",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 15,
|
|
7
|
-
"version_patch":
|
|
8
|
-
"version_date": "04/
|
|
7
|
+
"version_patch": 34,
|
|
8
|
+
"version_date": "04/19/2022",
|
|
9
9
|
"description": "An opinionated library of common functionality to bootstrap an API application using MongoDb and Firebase. Currently either Fastify or Koa can be used as the web server.",
|
|
10
10
|
"author": "thZero",
|
|
11
11
|
"license": "MIT",
|