qumra-engine 2.0.25 → 2.0.26
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.
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = color_to_hex;
|
|
7
|
-
const
|
|
4
|
+
const colord_1 = require("colord");
|
|
8
5
|
function color_to_hex(color) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
catch (err) {
|
|
13
|
-
return color;
|
|
14
|
-
}
|
|
6
|
+
const result = (0, colord_1.colord)(color);
|
|
7
|
+
return result.isValid() ? result.toHex() : color;
|
|
15
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qumra-engine",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"chalk": "^5.4.1",
|
|
14
|
-
"
|
|
14
|
+
"colord": "^2.9.3",
|
|
15
15
|
"express": "^5.1.0",
|
|
16
16
|
"express-session": "^1.18.1",
|
|
17
17
|
"morgan": "^1.10.0",
|