@spotify-confidence/openfeature-server-provider-local 0.14.2 → 0.15.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/CHANGELOG.md +14 -0
- package/README.md +17 -0
- package/dist/confidence_resolver.wasm +0 -0
- package/dist/index.fetch.js +4 -2
- package/dist/index.inlined.js +5 -3
- package/dist/index.node.js +4 -2
- package/package.json +1 -1
package/dist/index.node.js
CHANGED
|
@@ -1433,7 +1433,7 @@ function isObject(value) {
|
|
|
1433
1433
|
function isSet$3(value) {
|
|
1434
1434
|
return value !== null && value !== void 0;
|
|
1435
1435
|
}
|
|
1436
|
-
const VERSION = "0.
|
|
1436
|
+
const VERSION = "0.15.0";
|
|
1437
1437
|
const NOOP_LOG_FN = Object.assign(() => {}, { enabled: false });
|
|
1438
1438
|
const debugBackend = loadDebug();
|
|
1439
1439
|
const logger$2 = new class LoggerImpl {
|
|
@@ -2920,7 +2920,9 @@ var ConfidenceServerProviderLocal = class ConfidenceServerProviderLocal {
|
|
|
2920
2920
|
const startMs = performance.now();
|
|
2921
2921
|
try {
|
|
2922
2922
|
const [flagName] = flagKey.split(".", 1);
|
|
2923
|
-
const
|
|
2923
|
+
const { _confidence_skip_apply,...cleanContext } = context;
|
|
2924
|
+
const skipApply = _confidence_skip_apply === true;
|
|
2925
|
+
const resolution = await this.resolve(cleanContext, [flagName], !skipApply);
|
|
2924
2926
|
const result = resolve(resolution, flagKey, defaultValue, logger$1);
|
|
2925
2927
|
const latencyUs = Math.round((performance.now() - startMs) * 1e3);
|
|
2926
2928
|
let reason;
|