@spotify-confidence/openfeature-server-provider-local 0.8.1 → 0.9.1
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 +23 -0
- package/dist/confidence_resolver.wasm +0 -0
- package/dist/index.fetch.d.ts +2 -0
- package/dist/index.fetch.js +6 -1
- package/dist/index.inlined.d.ts +2 -0
- package/dist/index.inlined.js +7 -2
- package/dist/index.node.d.ts +2 -0
- package/dist/index.node.js +6 -1
- package/package.json +1 -1
package/dist/index.node.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ declare enum ResolveReason {
|
|
|
78
78
|
RESOLVE_REASON_TARGETING_KEY_ERROR = 5,
|
|
79
79
|
/** RESOLVE_REASON_ERROR - Unknown error occurred during the resolve */
|
|
80
80
|
RESOLVE_REASON_ERROR = 6,
|
|
81
|
+
/** RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE - The flag could not be resolved because a targeting rule was not recognized */
|
|
82
|
+
RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE = 7,
|
|
81
83
|
UNRECOGNIZED = -1,
|
|
82
84
|
}
|
|
83
85
|
declare enum SdkId {
|
package/dist/index.node.js
CHANGED
|
@@ -775,6 +775,7 @@ let ResolveReason = /* @__PURE__ */ function(ResolveReason$1) {
|
|
|
775
775
|
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_FLAG_ARCHIVED"] = 4] = "RESOLVE_REASON_FLAG_ARCHIVED";
|
|
776
776
|
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_TARGETING_KEY_ERROR"] = 5] = "RESOLVE_REASON_TARGETING_KEY_ERROR";
|
|
777
777
|
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_ERROR"] = 6] = "RESOLVE_REASON_ERROR";
|
|
778
|
+
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE"] = 7] = "RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE";
|
|
778
779
|
ResolveReason$1[ResolveReason$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
779
780
|
return ResolveReason$1;
|
|
780
781
|
}({});
|
|
@@ -794,6 +795,8 @@ function resolveReasonFromJSON(object) {
|
|
|
794
795
|
case "RESOLVE_REASON_TARGETING_KEY_ERROR": return ResolveReason.RESOLVE_REASON_TARGETING_KEY_ERROR;
|
|
795
796
|
case 6:
|
|
796
797
|
case "RESOLVE_REASON_ERROR": return ResolveReason.RESOLVE_REASON_ERROR;
|
|
798
|
+
case 7:
|
|
799
|
+
case "RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE": return ResolveReason.RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE;
|
|
797
800
|
case -1:
|
|
798
801
|
case "UNRECOGNIZED":
|
|
799
802
|
default: return ResolveReason.UNRECOGNIZED;
|
|
@@ -808,6 +811,7 @@ function resolveReasonToJSON(object) {
|
|
|
808
811
|
case ResolveReason.RESOLVE_REASON_FLAG_ARCHIVED: return "RESOLVE_REASON_FLAG_ARCHIVED";
|
|
809
812
|
case ResolveReason.RESOLVE_REASON_TARGETING_KEY_ERROR: return "RESOLVE_REASON_TARGETING_KEY_ERROR";
|
|
810
813
|
case ResolveReason.RESOLVE_REASON_ERROR: return "RESOLVE_REASON_ERROR";
|
|
814
|
+
case ResolveReason.RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE: return "RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE";
|
|
811
815
|
case ResolveReason.UNRECOGNIZED:
|
|
812
816
|
default: return "UNRECOGNIZED";
|
|
813
817
|
}
|
|
@@ -1405,7 +1409,7 @@ function isObject(value) {
|
|
|
1405
1409
|
function isSet$3(value) {
|
|
1406
1410
|
return value !== null && value !== void 0;
|
|
1407
1411
|
}
|
|
1408
|
-
const VERSION = "0.
|
|
1412
|
+
const VERSION = "0.9.1";
|
|
1409
1413
|
const NOOP_LOG_FN = Object.assign(() => {}, { enabled: false });
|
|
1410
1414
|
const debugBackend = loadDebug();
|
|
1411
1415
|
const logger$2 = new class LoggerImpl {
|
|
@@ -2665,6 +2669,7 @@ function convertReason(reason) {
|
|
|
2665
2669
|
case ResolveReason.RESOLVE_REASON_NO_SEGMENT_MATCH: return "NO_SEGMENT_MATCH";
|
|
2666
2670
|
case ResolveReason.RESOLVE_REASON_TARGETING_KEY_ERROR: return "TARGETING_KEY_ERROR";
|
|
2667
2671
|
case ResolveReason.RESOLVE_REASON_NO_TREATMENT_MATCH: return "NO_TREATMENT_MATCH";
|
|
2672
|
+
case ResolveReason.RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE: return "ERROR";
|
|
2668
2673
|
default: return "UNSPECIFIED";
|
|
2669
2674
|
}
|
|
2670
2675
|
}
|