@thzero/library_server 0.16.5 → 0.16.6

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 (2) hide show
  1. package/boot/index.js +25 -13
  2. package/package.json +3 -3
package/boot/index.js CHANGED
@@ -14,19 +14,31 @@ import NotImplementedError from '@thzero/library_common/errors/notImplemented.js
14
14
  import nullMonitoringService from '../service/monitoring.js';
15
15
 
16
16
  // require('@thzero/library_server/utility/string.cjs');
17
- String.isNullOrEmpty = function(value) {
18
- //return !(typeof value === 'string' && value.length > 0)
19
- return !value;
20
- }
21
-
22
- String.isString = function(value) {
23
- return (typeof value === "string" || value instanceof String);
24
- }
25
-
26
- String.trim = function(value) {
27
- if (!value || !String.isString(value))
28
- return value;
29
- return value.trim();
17
+ import String2 from '@thzero/library_common/utility/string.js';
18
+
19
+ // String.capitalize = function(word) {
20
+ // if (String.isNullOrEmpty(word))
21
+ // return word;
22
+ // return word[0].toUpperCase() + word.slice(1).toLowerCase();
23
+ // };
24
+
25
+ // String.isNullOrEmpty = function(value) {
26
+ // //return !(typeof value === 'string' && value.length > 0)
27
+ // return !value;
28
+ // }
29
+
30
+ // String.isString = function(value) {
31
+ // return (typeof value === "string" || value instanceof String);
32
+ // }
33
+
34
+ // String.trim = function(value) {
35
+ // if (!value || !String.isString(value))
36
+ // return value;
37
+ // return value.trim();
38
+ // }
39
+
40
+ for (const funcName in String2) {
41
+ String[funcName] = String2[funcName];
30
42
  }
31
43
 
32
44
  import injector from '@thzero/library_common/utility/injector.js';
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server",
3
3
  "type": "module",
4
- "version": "0.16.5",
4
+ "version": "0.16.6",
5
5
  "version_major": 0,
6
6
  "version_minor": 16,
7
- "version_patch": 5,
8
- "version_date": "11/25/2022",
7
+ "version_patch": 6,
8
+ "version_date": "12/11/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",