@thi.ng/compare 2.3.4 → 2.3.5
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.
- package/CHANGELOG.md +1 -1
- package/ops.js +2 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/ops.js
CHANGED
|
@@ -8,10 +8,8 @@ const OPERATORS = {
|
|
|
8
8
|
};
|
|
9
9
|
const __ensure = (op) => {
|
|
10
10
|
if (typeof op === "string") {
|
|
11
|
-
if (op in OPERATORS)
|
|
12
|
-
|
|
13
|
-
else
|
|
14
|
-
throw new Error(`invalid operator: ${op}`);
|
|
11
|
+
if (op in OPERATORS) return OPERATORS[op];
|
|
12
|
+
else throw new Error(`invalid operator: ${op}`);
|
|
15
13
|
}
|
|
16
14
|
return op;
|
|
17
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/compare",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.5",
|
|
4
4
|
"description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.11.
|
|
39
|
+
"@thi.ng/api": "^8.11.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.43.
|
|
43
|
-
"esbuild": "^0.
|
|
44
|
-
"typedoc": "^0.25.
|
|
45
|
-
"typescript": "^5.4.
|
|
42
|
+
"@microsoft/api-extractor": "^7.43.2",
|
|
43
|
+
"esbuild": "^0.21.1",
|
|
44
|
+
"typedoc": "^0.25.13",
|
|
45
|
+
"typescript": "^5.4.5"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
48
48
|
"comparator",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"thi.ng": {
|
|
86
86
|
"alias": "cmp"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
|
|
89
89
|
}
|