@thzero/library_server 0.18.17 → 0.18.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.
Files changed (53) hide show
  1. package/README.md +112 -112
  2. package/boot/index.js +529 -528
  3. package/boot/plugins/admin/index.js +6 -6
  4. package/boot/plugins/admin/news.js +33 -33
  5. package/boot/plugins/admin/users.js +33 -33
  6. package/boot/plugins/api.js +64 -64
  7. package/boot/plugins/apiFront.js +31 -31
  8. package/boot/plugins/index.js +70 -70
  9. package/boot/plugins/news.js +44 -44
  10. package/boot/plugins/users.js +46 -46
  11. package/boot/plugins/usersExtended.js +32 -32
  12. package/constants.js +45 -45
  13. package/data/baseNews.js +42 -42
  14. package/data/baseSettingsUser.js +9 -9
  15. package/data/baseUser.js +28 -28
  16. package/data/index.js +24 -24
  17. package/data/named.js +20 -20
  18. package/errors/tokenExpired.js +7 -7
  19. package/license.md +8 -8
  20. package/openSource.js +66 -66
  21. package/package.json +38 -38
  22. package/repository/index.js +182 -182
  23. package/repository/usageMetrics/devnull.js +16 -16
  24. package/routes/index.js +76 -76
  25. package/service/admin/baseNews.js +45 -45
  26. package/service/admin/index.js +130 -130
  27. package/service/admin/news.js +6 -6
  28. package/service/admin/users.js +107 -107
  29. package/service/baseSecurity.js +183 -183
  30. package/service/baseUser.js +122 -122
  31. package/service/communication.js +6 -6
  32. package/service/config.js +37 -37
  33. package/service/crypto.js +16 -16
  34. package/service/discovery/index.js +6 -6
  35. package/service/discovery/resources/index.js +101 -101
  36. package/service/external.js +19 -19
  37. package/service/externalRest.js +19 -19
  38. package/service/index.js +20 -20
  39. package/service/monitoring.js +12 -12
  40. package/service/news/base.js +59 -59
  41. package/service/news/index.js +6 -6
  42. package/service/news/validation/index.js +6 -6
  43. package/service/plans.js +31 -31
  44. package/service/restCommunication.js +21 -21
  45. package/service/usageMetrics.js +84 -84
  46. package/service/utility.js +190 -190
  47. package/service/version.js +37 -37
  48. package/utility/injector.js +59 -59
  49. package/utility/internalIp/index.js +48 -48
  50. package/utility/list/doubleLinked.js +88 -88
  51. package/utility/list/priorityQueue.js +109 -109
  52. package/utility/list/queue.js +72 -72
  53. package/utility/os.js +20 -20
@@ -1,32 +1,32 @@
1
- import LibraryServerConstants from '../../constants.js';
2
-
3
- import NotImplementedError from '@thzero/library_common/errors/notImplemented.js';
4
-
5
- import UsersApiBootPlugin from './users.js';
6
-
7
- import plansService from '../../service/plans.js';
8
-
9
- class ExtendedUsersApiBootPlugin extends UsersApiBootPlugin {
10
- async _initRepositories() {
11
- await super._initRepositories();
12
-
13
- this._injectRepository(LibraryServerConstants.InjectorKeys.REPOSITORY_PLANS, this._initRepositoriesPlans());
14
- }
15
-
16
- async _initServices() {
17
- await super._initServices();
18
-
19
- this._injectService(LibraryServerConstants.InjectorKeys.SERVICE_PLANS, this._initServicesPlans());
20
- this._injectService(LibraryServerConstants.InjectorKeys.SERVICE_SECURITY, this._initServicesSecurity());
21
- }
22
-
23
- _initRepositoriesPlans() {
24
- throw new NotImplementedError();
25
- }
26
-
27
- _initServicesPlans() {
28
- return new plansService();
29
- }
30
- }
31
-
32
- export default ExtendedUsersApiBootPlugin;
1
+ import LibraryServerConstants from '../../constants.js';
2
+
3
+ import NotImplementedError from '@thzero/library_common/errors/notImplemented.js';
4
+
5
+ import UsersApiBootPlugin from './users.js';
6
+
7
+ import plansService from '../../service/plans.js';
8
+
9
+ class ExtendedUsersApiBootPlugin extends UsersApiBootPlugin {
10
+ async _initRepositories() {
11
+ await super._initRepositories();
12
+
13
+ this._injectRepository(LibraryServerConstants.InjectorKeys.REPOSITORY_PLANS, this._initRepositoriesPlans());
14
+ }
15
+
16
+ async _initServices() {
17
+ await super._initServices();
18
+
19
+ this._injectService(LibraryServerConstants.InjectorKeys.SERVICE_PLANS, this._initServicesPlans());
20
+ this._injectService(LibraryServerConstants.InjectorKeys.SERVICE_SECURITY, this._initServicesSecurity());
21
+ }
22
+
23
+ _initRepositoriesPlans() {
24
+ throw new NotImplementedError();
25
+ }
26
+
27
+ _initServicesPlans() {
28
+ return new plansService();
29
+ }
30
+ }
31
+
32
+ export default ExtendedUsersApiBootPlugin;
package/constants.js CHANGED
@@ -1,45 +1,45 @@
1
- const LibraryConstants = {
2
- InjectorKeys: {
3
- REPOSITORY_ADMIN_NEWS: 'repositoryAdminNews',
4
- REPOSITORY_ADMIN_USERS: 'repositoryAdminUsers',
5
- REPOSITORY_NEWS: 'repositoryNews',
6
- REPOSITORY_PLANS: 'repositoryPlans',
7
- REPOSITORY_USAGE_METRIC: 'repositoryUsageMetrics',
8
- REPOSITORY_USERS: 'repositoryUsers',
9
- SERVICE_ADMIN_NEWS: 'serviceAdminNews',
10
- SERVICE_ADMIN_USERS: 'serviceAdminUsers',
11
- SERVICE_AUTH: 'serviceAuth',
12
- SERVICE_COMMUNICATION_REST: 'serviceCommunicationRest',
13
- SERVICE_CRYPTO: 'serviceCrypto',
14
- SERVICE_DISCOVERY_MDNS: 'serviceMdns',
15
- SERVICE_DISCOVERY_RESOURCES: 'serviceDiscoveryResources',
16
- SERVICE_NEWS: 'serviceNews',
17
- SERVICE_PLANS: 'servicePlans',
18
- SERVICE_SECURITY: 'serviceSecurity',
19
- SERVICE_USAGE_METRIC: 'serviceUsageMetric',
20
- SERVICE_USERS: 'serviceUser',
21
- SERVICE_UTILITY: 'serviceUtility',
22
- SERVICE_VALIDATION_NEWS: 'serviceNewsValidation',
23
- SERVICE_VERSION: 'serviceVersion'
24
- },
25
- HealthCheck: {
26
- DefaultPath: '/healthcheck'
27
- },
28
- Headers: {
29
- AuthKeys: {
30
- API: 'x-api-key',
31
- AUTH: 'authorization',
32
- AUTH_BEARER: 'bearer'
33
- },
34
- CorrelationId: 'correlation-id'
35
- },
36
- NewsStatus: {
37
- ACTIVE: 'active',
38
- DISABLED: 'disabled'
39
- },
40
- NewsTypes: {
41
- MAIN: 'main'
42
- }
43
- }
44
-
45
- export default LibraryConstants;
1
+ const LibraryConstants = {
2
+ InjectorKeys: {
3
+ REPOSITORY_ADMIN_NEWS: 'repositoryAdminNews',
4
+ REPOSITORY_ADMIN_USERS: 'repositoryAdminUsers',
5
+ REPOSITORY_NEWS: 'repositoryNews',
6
+ REPOSITORY_PLANS: 'repositoryPlans',
7
+ REPOSITORY_USAGE_METRIC: 'repositoryUsageMetrics',
8
+ REPOSITORY_USERS: 'repositoryUsers',
9
+ SERVICE_ADMIN_NEWS: 'serviceAdminNews',
10
+ SERVICE_ADMIN_USERS: 'serviceAdminUsers',
11
+ SERVICE_AUTH: 'serviceAuth',
12
+ SERVICE_COMMUNICATION_REST: 'serviceCommunicationRest',
13
+ SERVICE_CRYPTO: 'serviceCrypto',
14
+ SERVICE_DISCOVERY_MDNS: 'serviceMdns',
15
+ SERVICE_DISCOVERY_RESOURCES: 'serviceDiscoveryResources',
16
+ SERVICE_NEWS: 'serviceNews',
17
+ SERVICE_PLANS: 'servicePlans',
18
+ SERVICE_SECURITY: 'serviceSecurity',
19
+ SERVICE_USAGE_METRIC: 'serviceUsageMetric',
20
+ SERVICE_USERS: 'serviceUser',
21
+ SERVICE_UTILITY: 'serviceUtility',
22
+ SERVICE_VALIDATION_NEWS: 'serviceNewsValidation',
23
+ SERVICE_VERSION: 'serviceVersion'
24
+ },
25
+ HealthCheck: {
26
+ DefaultPath: '/healthcheck'
27
+ },
28
+ Headers: {
29
+ AuthKeys: {
30
+ API: 'x-api-key',
31
+ AUTH: 'authorization',
32
+ AUTH_BEARER: 'bearer'
33
+ },
34
+ CorrelationId: 'correlation-id'
35
+ },
36
+ NewsStatus: {
37
+ ACTIVE: 'active',
38
+ DISABLED: 'disabled'
39
+ },
40
+ NewsTypes: {
41
+ MAIN: 'main'
42
+ }
43
+ }
44
+
45
+ export default LibraryConstants;
package/data/baseNews.js CHANGED
@@ -1,42 +1,42 @@
1
- import Data from './index.js';
2
-
3
- import NotImplementedError from '@thzero/library_common/errors/notImplemented.js';
4
-
5
- class BaseNewsData extends Data {
6
- constructor() {
7
- super();
8
-
9
- this.article = '';
10
- this.gameSystemId = null;
11
- this.requiresAuth = false;
12
- this.status = this._defaultStatus();
13
- this.sticky = false;
14
- this.timestamp = null;
15
- this.title = '';
16
- this.type = this._defaultType();
17
- }
18
-
19
- map(requested) {
20
- if (!requested)
21
- return;
22
-
23
- this.article = requested.article;
24
- this.gameSystemId = requested.gameSystemId;
25
- this.requiresAuth = requested.requiresAuth;
26
- this.status = requested.status;
27
- this.sticky = false;
28
- this.timestamp = requested.timestamp;
29
- this.title = requested.title;
30
- this.type = requested.type;
31
- }
32
-
33
- _defaultStatus() {
34
- throw new NotImplementedError();
35
- }
36
-
37
- _defaultType() {
38
- throw new NotImplementedError();
39
- }
40
- }
41
-
42
- export default BaseNewsData;
1
+ import Data from './index.js';
2
+
3
+ import NotImplementedError from '@thzero/library_common/errors/notImplemented.js';
4
+
5
+ class BaseNewsData extends Data {
6
+ constructor() {
7
+ super();
8
+
9
+ this.article = '';
10
+ this.gameSystemId = null;
11
+ this.requiresAuth = false;
12
+ this.status = this._defaultStatus();
13
+ this.sticky = false;
14
+ this.timestamp = null;
15
+ this.title = '';
16
+ this.type = this._defaultType();
17
+ }
18
+
19
+ map(requested) {
20
+ if (!requested)
21
+ return;
22
+
23
+ this.article = requested.article;
24
+ this.gameSystemId = requested.gameSystemId;
25
+ this.requiresAuth = requested.requiresAuth;
26
+ this.status = requested.status;
27
+ this.sticky = false;
28
+ this.timestamp = requested.timestamp;
29
+ this.title = requested.title;
30
+ this.type = requested.type;
31
+ }
32
+
33
+ _defaultStatus() {
34
+ throw new NotImplementedError();
35
+ }
36
+
37
+ _defaultType() {
38
+ throw new NotImplementedError();
39
+ }
40
+ }
41
+
42
+ export default BaseNewsData;
@@ -1,9 +1,9 @@
1
- class BaseSettings {
2
- constructor() {
3
- this.gamerTag = null;
4
- this.gamerTagSearch = null;
5
- this.home = {};
6
- }
7
- }
8
-
9
- export default BaseSettings;
1
+ class BaseSettings {
2
+ constructor() {
3
+ this.gamerTag = null;
4
+ this.gamerTagSearch = null;
5
+ this.home = {};
6
+ }
7
+ }
8
+
9
+ export default BaseSettings;
package/data/baseUser.js CHANGED
@@ -1,28 +1,28 @@
1
- import Data from './index.js';
2
-
3
- import NotImplementedError from '@thzero/library_common/errors/notImplemented.js';
4
-
5
- class BaseUserData extends Data {
6
- constructor() {
7
- super();
8
-
9
- this.planId = null;
10
- this.roles = [];
11
- this.settings = this._initUserSettings();
12
- this.user = null;
13
- }
14
-
15
- map(requested) {
16
- if (!requested)
17
- return;
18
-
19
- this.planId = requested.planId;
20
- this.roles = requested.roles;
21
- }
22
-
23
- _initUserSettings() {
24
- throw new NotImplementedError();
25
- }
26
- }
27
-
28
- export default BaseUserData;
1
+ import Data from './index.js';
2
+
3
+ import NotImplementedError from '@thzero/library_common/errors/notImplemented.js';
4
+
5
+ class BaseUserData extends Data {
6
+ constructor() {
7
+ super();
8
+
9
+ this.planId = null;
10
+ this.roles = [];
11
+ this.settings = this._initUserSettings();
12
+ this.user = null;
13
+ }
14
+
15
+ map(requested) {
16
+ if (!requested)
17
+ return;
18
+
19
+ this.planId = requested.planId;
20
+ this.roles = requested.roles;
21
+ }
22
+
23
+ _initUserSettings() {
24
+ throw new NotImplementedError();
25
+ }
26
+ }
27
+
28
+ export default BaseUserData;
package/data/index.js CHANGED
@@ -1,24 +1,24 @@
1
- import LibraryCommonUtility from '@thzero/library_common/utility/index.js';
2
-
3
- class Data {
4
- constructor() {
5
- this.id = LibraryCommonUtility.generateId();
6
- this.createdTimestamp = CommonUtility.getTimestamp();
7
- this.createdUserId = null;
8
- this.updatedTimestamp = CommonUtility.getTimestamp();
9
- this.updatedUserId = null;
10
- }
11
-
12
- map(requested) {
13
- if (!requested)
14
- return;
15
-
16
- this.id = requested.id;
17
- this.createdTimestamp = requested.createdTimestamp;
18
- this.createdUserId = requested.createdUserId;
19
- this.updatedTimestamp = requested.updatedTimestamp;
20
- this.updatedUserId = requested.updatedUserId;
21
- }
22
- }
23
-
24
- export default Data;
1
+ import LibraryCommonUtility from '@thzero/library_common/utility/index.js';
2
+
3
+ class Data {
4
+ constructor() {
5
+ this.id = LibraryCommonUtility.generateId();
6
+ this.createdTimestamp = CommonUtility.getTimestamp();
7
+ this.createdUserId = null;
8
+ this.updatedTimestamp = CommonUtility.getTimestamp();
9
+ this.updatedUserId = null;
10
+ }
11
+
12
+ map(requested) {
13
+ if (!requested)
14
+ return;
15
+
16
+ this.id = requested.id;
17
+ this.createdTimestamp = requested.createdTimestamp;
18
+ this.createdUserId = requested.createdUserId;
19
+ this.updatedTimestamp = requested.updatedTimestamp;
20
+ this.updatedUserId = requested.updatedUserId;
21
+ }
22
+ }
23
+
24
+ export default Data;
package/data/named.js CHANGED
@@ -1,20 +1,20 @@
1
- import Data from './index.js';
2
-
3
- class NamedData extends Data {
4
- constructor() {
5
- super();
6
-
7
- this.name = '';
8
- }
9
-
10
- map(requested) {
11
- super.map(requested);
12
-
13
- if (!requested)
14
- return;
15
-
16
- this.name = requested.name;
17
- }
18
- }
19
-
20
- export default NamedData;
1
+ import Data from './index.js';
2
+
3
+ class NamedData extends Data {
4
+ constructor() {
5
+ super();
6
+
7
+ this.name = '';
8
+ }
9
+
10
+ map(requested) {
11
+ super.map(requested);
12
+
13
+ if (!requested)
14
+ return;
15
+
16
+ this.name = requested.name;
17
+ }
18
+ }
19
+
20
+ export default NamedData;
@@ -1,7 +1,7 @@
1
- class TokenExpiredError extends Error {
2
- constructor() {
3
- super('Token Expired.');
4
- }
5
- }
6
-
7
- export default TokenExpiredError;
1
+ class TokenExpiredError extends Error {
2
+ constructor() {
3
+ super('Token Expired.');
4
+ }
5
+ }
6
+
7
+ export default TokenExpiredError;
package/license.md CHANGED
@@ -1,9 +1,9 @@
1
- MIT License
2
-
3
- Copyright (c) 2020-2024 thZero.com
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2024 thZero.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
9
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/openSource.js CHANGED
@@ -1,67 +1,67 @@
1
- export default () => {
2
- return [
3
- {
4
- category: 'server',
5
- name: '@godaddy/terminus',
6
- url: 'https://github.com/godaddy/terminus',
7
- licenseName: 'MIT',
8
- licenseUrl: 'https://github.com/godaddy/terminus/blob/master/LICENSE'
9
- },
10
- {
11
- category: 'server',
12
- name: '@thzero/library_common',
13
- url: 'https://github.com/thzero/library_common',
14
- licenseName: 'MIT',
15
- licenseUrl: 'https://github.com/thzero/library_common/blob/master/license.md'
16
- },
17
- {
18
- category: 'server',
19
- name: '@thzero/library_common_service',
20
- url: 'https://github.com/thzero/library_common_service',
21
- licenseName: 'MIT',
22
- licenseUrl: 'https://github.com/thzero/library_common_service/blob/master/license.md'
23
- },
24
- {
25
- category: 'server',
26
- name: '@thzero/library_server',
27
- url: 'https://github.com/thzero/library_server',
28
- licenseName: 'MIT',
29
- licenseUrl: 'https://github.com/thzero/library_server/blob/master/license.md'
30
- },
31
- {
32
- category: 'server',
33
- name: 'async-mutex',
34
- url: 'https://github.com/DirtyHairy/async-mutex',
35
- licenseName: 'MIT',
36
- licenseUrl: 'https://github.com/DirtyHairy/async-mutex/blob/master/LICENSE'
37
- },
38
- {
39
- category: 'server',
40
- name: 'config',
41
- url: 'https://github.com/lorenwest/node-config',
42
- licenseName: 'MIT',
43
- licenseUrl: 'https://github.com/lorenwest/node-config/blob/master/LICENSE'
44
- },
45
- {
46
- category: 'server',
47
- name: 'default-gateway',
48
- url: 'https://github.com/silverwind/default-gateway',
49
- licenseName: 'BSD 2',
50
- licenseUrl: 'https://github.com/silverwind/default-gateway/blob/master/LICENSE'
51
- },
52
- {
53
- category: 'server',
54
- name: 'easy-rbac',
55
- url: 'https://github.com/DeadAlready/easy-rbac',
56
- licenseName: 'MIT',
57
- licenseUrl: 'https://github.com/DeadAlready/easy-rbac/blob/master/LICENSE'
58
- },
59
- {
60
- category: 'server',
61
- name: 'ipaddr.js',
62
- url: 'https://github.com/whitequark/ipaddr.js',
63
- licenseName: 'MIT',
64
- licenseUrl: 'https://github.com/whitequark/ipaddr.js/blob/master/LICENSE'
65
- }
66
- ];
1
+ export default () => {
2
+ return [
3
+ {
4
+ category: 'server',
5
+ name: '@godaddy/terminus',
6
+ url: 'https://github.com/godaddy/terminus',
7
+ licenseName: 'MIT',
8
+ licenseUrl: 'https://github.com/godaddy/terminus/blob/master/LICENSE'
9
+ },
10
+ {
11
+ category: 'server',
12
+ name: '@thzero/library_common',
13
+ url: 'https://github.com/thzero/library_common',
14
+ licenseName: 'MIT',
15
+ licenseUrl: 'https://github.com/thzero/library_common/blob/master/license.md'
16
+ },
17
+ {
18
+ category: 'server',
19
+ name: '@thzero/library_common_service',
20
+ url: 'https://github.com/thzero/library_common_service',
21
+ licenseName: 'MIT',
22
+ licenseUrl: 'https://github.com/thzero/library_common_service/blob/master/license.md'
23
+ },
24
+ {
25
+ category: 'server',
26
+ name: '@thzero/library_server',
27
+ url: 'https://github.com/thzero/library_server',
28
+ licenseName: 'MIT',
29
+ licenseUrl: 'https://github.com/thzero/library_server/blob/master/license.md'
30
+ },
31
+ {
32
+ category: 'server',
33
+ name: 'async-mutex',
34
+ url: 'https://github.com/DirtyHairy/async-mutex',
35
+ licenseName: 'MIT',
36
+ licenseUrl: 'https://github.com/DirtyHairy/async-mutex/blob/master/LICENSE'
37
+ },
38
+ {
39
+ category: 'server',
40
+ name: 'config',
41
+ url: 'https://github.com/lorenwest/node-config',
42
+ licenseName: 'MIT',
43
+ licenseUrl: 'https://github.com/lorenwest/node-config/blob/master/LICENSE'
44
+ },
45
+ {
46
+ category: 'server',
47
+ name: 'default-gateway',
48
+ url: 'https://github.com/silverwind/default-gateway',
49
+ licenseName: 'BSD 2',
50
+ licenseUrl: 'https://github.com/silverwind/default-gateway/blob/master/LICENSE'
51
+ },
52
+ {
53
+ category: 'server',
54
+ name: 'easy-rbac',
55
+ url: 'https://github.com/DeadAlready/easy-rbac',
56
+ licenseName: 'MIT',
57
+ licenseUrl: 'https://github.com/DeadAlready/easy-rbac/blob/master/LICENSE'
58
+ },
59
+ {
60
+ category: 'server',
61
+ name: 'ipaddr.js',
62
+ url: 'https://github.com/whitequark/ipaddr.js',
63
+ licenseName: 'MIT',
64
+ licenseUrl: 'https://github.com/whitequark/ipaddr.js/blob/master/LICENSE'
65
+ }
66
+ ];
67
67
  }
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "@thzero/library_server",
3
- "type": "module",
4
- "version": "0.18.17",
5
- "version_major": 0,
6
- "version_minor": 18,
7
- "version_patch": 17,
8
- "version_date": "12/23/2024",
9
- "description": "An opinionated library of common functionality to bootstrap an API using either Fastify or Koa as the web server.",
10
- "author": "thZero",
11
- "license": "MIT",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/thzero/library_server.git"
15
- },
16
- "bugs": {
17
- "url": "https://github.com/thzero/library_server/issues"
18
- },
19
- "homepage": "https://github.com/thzero/library_server#readme",
20
- "engines": {
21
- "node": ">=12.8.3"
22
- },
23
- "scripts": {
24
- "cli-update": "library-cli --updateversion --pi",
25
- "test": "echo \"Error: no test specified\" && exit 1"
26
- },
27
- "dependencies": {
28
- "@godaddy/terminus": "^4.12.1",
29
- "async-mutex": "^0.5.0",
30
- "config": "^3.3.12",
31
- "default-gateway": "^7.2.2",
32
- "easy-rbac": "^3.2.0",
33
- "ipaddr.js": "^2.2.0"
34
- },
35
- "peerDependencies": {
36
- "@thzero/library_common": "^0.18",
37
- "@thzero/library_common_service": "^0.18"
38
- }
1
+ {
2
+ "name": "@thzero/library_server",
3
+ "type": "module",
4
+ "version": "0.18.19",
5
+ "version_major": 0,
6
+ "version_minor": 18,
7
+ "version_patch": 19,
8
+ "version_date": "05/17/2025",
9
+ "description": "An opinionated library of common functionality to bootstrap an API using either Fastify or Koa as the web server.",
10
+ "author": "thZero",
11
+ "license": "MIT",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/thzero/library_server.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/thzero/library_server/issues"
18
+ },
19
+ "homepage": "https://github.com/thzero/library_server#readme",
20
+ "engines": {
21
+ "node": ">=12.8.3"
22
+ },
23
+ "scripts": {
24
+ "cli-update": "library-cli --updateversion --pi",
25
+ "test": "echo \"Error: no test specified\" && exit 1"
26
+ },
27
+ "dependencies": {
28
+ "@godaddy/terminus": "^4.12.1",
29
+ "async-mutex": "^0.5.0",
30
+ "config": "^4.0.0",
31
+ "default-gateway": "^7.2.2",
32
+ "easy-rbac": "^3.2.0",
33
+ "ipaddr.js": "^2.2.0"
34
+ },
35
+ "peerDependencies": {
36
+ "@thzero/library_common": "^0.18",
37
+ "@thzero/library_common_service": "^0.18"
38
+ }
39
39
  }