@bgord/tools 1.5.6 → 1.5.7
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,6 +1,9 @@
|
|
|
1
1
|
import { type FeatureFlagValueType } from "./feature-flag-value.vo";
|
|
2
2
|
export declare class FeatureFlag {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
private readonly value;
|
|
4
|
+
private constructor();
|
|
5
|
+
static from(value: FeatureFlagValueType): FeatureFlag;
|
|
6
|
+
isEnabled(): boolean;
|
|
7
|
+
isDisabled(): boolean;
|
|
5
8
|
}
|
|
6
9
|
//# sourceMappingURL=feature-flag.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flag.vo.d.ts","sourceRoot":"","sources":["../src/feature-flag.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAErF,qBAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"feature-flag.vo.d.ts","sourceRoot":"","sources":["../src/feature-flag.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAErF,qBAAa,WAAW;IACF,OAAO,CAAC,QAAQ,CAAC,KAAK;IAA1C,OAAO,eAA6D;IAEpE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,oBAAoB,eAEtC;IAED,SAAS,IAAI,OAAO,CAEnB;IAED,UAAU,IAAI,OAAO,CAEpB;CACF"}
|
package/dist/feature-flag.vo.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { FeatureFlagEnum } from "./feature-flag-value.vo";
|
|
2
2
|
export class FeatureFlag {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
value;
|
|
4
|
+
constructor(value) {
|
|
5
|
+
this.value = value;
|
|
5
6
|
}
|
|
6
|
-
static
|
|
7
|
-
return
|
|
7
|
+
static from(value) {
|
|
8
|
+
return new FeatureFlag(value);
|
|
9
|
+
}
|
|
10
|
+
isEnabled() {
|
|
11
|
+
return this.value === FeatureFlagEnum.yes;
|
|
12
|
+
}
|
|
13
|
+
isDisabled() {
|
|
14
|
+
return this.value === FeatureFlagEnum.no;
|
|
8
15
|
}
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=feature-flag.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flag.vo.js","sourceRoot":"","sources":["../src/feature-flag.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA6B,MAAM,yBAAyB,CAAC;AAErF,MAAM,OAAO,WAAW;
|
|
1
|
+
{"version":3,"file":"feature-flag.vo.js","sourceRoot":"","sources":["../src/feature-flag.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA6B,MAAM,yBAAyB,CAAC;AAErF,MAAM,OAAO,WAAW;IACe,KAAK;IAA1C,YAAqC,KAA2B;qBAA3B,KAAK;IAAyB,CAAC;IAEpE,MAAM,CAAC,IAAI,CAAC,KAA2B;QACrC,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,KAAK,eAAe,CAAC,GAAG,CAAC;IAC5C,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,KAAK,KAAK,eAAe,CAAC,EAAE,CAAC;IAC3C,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgord/tools",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bartosz Gordon",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@stryker-mutator/core": "9.6.1",
|
|
27
27
|
"@stryker-mutator/typescript-checker": "9.6.1",
|
|
28
28
|
"@types/bun": "1.3.13",
|
|
29
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
29
|
+
"@typescript/native-preview": "7.0.0-dev.20260429.1",
|
|
30
30
|
"cspell": "10.0.0",
|
|
31
|
-
"knip": "6.
|
|
31
|
+
"knip": "6.8.0",
|
|
32
32
|
"lefthook": "2.1.6",
|
|
33
33
|
"lockfile-lint": "5.0.0",
|
|
34
34
|
"only-allow": "1.2.2",
|