@bgord/tools 0.12.23 → 0.12.25
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.
|
@@ -14,6 +14,7 @@ export declare class PackageVersion {
|
|
|
14
14
|
readonly patch: PatchType;
|
|
15
15
|
constructor(major: MajorType, minor: MinorType, patch: PatchType);
|
|
16
16
|
isGreaterThanOrEqual(another: PackageVersion): boolean;
|
|
17
|
+
toString(): string;
|
|
17
18
|
static fromStringWithV(value: string): PackageVersion;
|
|
18
19
|
static fromString(value: string): PackageVersion;
|
|
19
20
|
}
|
|
@@ -62,6 +62,9 @@ export class PackageVersion {
|
|
|
62
62
|
return false;
|
|
63
63
|
return true;
|
|
64
64
|
}
|
|
65
|
+
toString() {
|
|
66
|
+
return `${this.major}.${this.minor}.${this.patch}`;
|
|
67
|
+
}
|
|
65
68
|
static fromStringWithV(value) {
|
|
66
69
|
const version = PackageVersionValue.parse(value);
|
|
67
70
|
return new PackageVersion(version.major, version.minor, version.patch);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgord/tools",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bartosz Gordon",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"preinstall": "bunx only-allow bun"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@biomejs/biome": "2.2.
|
|
24
|
+
"@biomejs/biome": "2.2.3",
|
|
25
25
|
"@commitlint/cli": "19.8.1",
|
|
26
26
|
"@commitlint/config-conventional": "19.8.1",
|
|
27
27
|
"@types/bun": "1.2.21",
|
|
28
28
|
"@types/mime-types": "3.0.1",
|
|
29
|
-
"cspell": "9.2.
|
|
30
|
-
"knip": "5.63.
|
|
31
|
-
"lefthook": "1.12.
|
|
29
|
+
"cspell": "9.2.1",
|
|
30
|
+
"knip": "5.63.1",
|
|
31
|
+
"lefthook": "1.12.4",
|
|
32
32
|
"only-allow": "1.2.1",
|
|
33
33
|
"shellcheck": "4.1.0",
|
|
34
34
|
"typescript": "5.9.2",
|