ismx-nexo-node-app 0.3.47 → 0.3.48

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.
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ColorUtils {
4
+ static transparency(color, transparency) {
5
+ if (!color || !transparency)
6
+ return undefined;
7
+ return color.substring(0, 7) + Math.ceil(transparency * 255).toString(16);
8
+ }
9
+ }
10
+ exports.default = ColorUtils;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class RestUtils {
4
+ static notNull(value) {
5
+ return value;
6
+ }
7
+ }
8
+ exports.default = RestUtils;
@@ -0,0 +1,3 @@
1
+ export default abstract class ColorUtils {
2
+ static transparency(color?: string, transparency?: number): string | undefined;
3
+ }
@@ -0,0 +1,3 @@
1
+ export default class RestUtils {
2
+ static notNull<T>(value: T | undefined): T;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.3.47",
3
+ "version": "0.3.48",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -0,0 +1,8 @@
1
+ export default abstract class ColorUtils {
2
+
3
+ static transparency(color?: string, transparency?: number) {
4
+ if (!color || !transparency) return undefined;
5
+ return color.substring(0, 7) + Math.ceil(transparency*255).toString(16);
6
+ }
7
+
8
+ }
@@ -0,0 +1,6 @@
1
+ export default class RestUtils
2
+ {
3
+ static notNull<T>(value: T | undefined): T {
4
+ return value!
5
+ }
6
+ }