@ancon/wildcat-utils 1.2.1 → 1.3.0
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/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -12,3 +12,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./shared"), exports);
|
|
14
14
|
__exportStar(require("./outlet"), exports);
|
|
15
|
+
__exportStar(require("./versioning"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as isVersionALessThanB } from './isVersionALessThanB';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isVersionALessThanB = void 0;
|
|
7
|
+
var isVersionALessThanB_1 = require("./isVersionALessThanB");
|
|
8
|
+
Object.defineProperty(exports, "isVersionALessThanB", { enumerable: true, get: function () { return __importDefault(isVersionALessThanB_1).default; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isVersionALessThanB(versionA: string, versionB: string): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const compare_versions_1 = __importDefault(require("compare-versions"));
|
|
7
|
+
function isVersionALessThanB(versionA, versionB) {
|
|
8
|
+
var _a;
|
|
9
|
+
return compare_versions_1.default.compare((_a = versionA.split('-')) === null || _a === void 0 ? void 0 : _a[0], versionB, '<');
|
|
10
|
+
}
|
|
11
|
+
exports.default = isVersionALessThanB;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancon/wildcat-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "git@bitbucket.org:anconab/wildcat.utils.git",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
|
31
31
|
"@typescript-eslint/parser": "^5.8.1",
|
|
32
32
|
"babel-jest": "^27.4.5",
|
|
33
|
+
"compare-versions": "^4.1.3",
|
|
33
34
|
"eslint": "^8.5.0",
|
|
34
35
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
35
36
|
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
@@ -44,7 +45,8 @@
|
|
|
44
45
|
"typescript": "^4.5.4"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"moment": "^2.29.0"
|
|
48
|
+
"moment": "^2.29.0",
|
|
49
|
+
"compare-versions": "^4.1.0"
|
|
48
50
|
},
|
|
49
51
|
"commitlint": {
|
|
50
52
|
"extends": [
|