@spotify-confidence/openfeature-server-provider-local 0.12.0 → 0.12.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 +15 -0
- package/dist/confidence_resolver.wasm +0 -0
- package/dist/index.fetch.js +2 -2
- package/dist/index.inlined.js +3 -3
- package/dist/index.node.js +2 -2
- package/dist/server.js +5 -1
- package/package.json +1 -1
package/dist/index.node.js
CHANGED
|
@@ -1421,7 +1421,7 @@ function isObject(value) {
|
|
|
1421
1421
|
function isSet$3(value) {
|
|
1422
1422
|
return value !== null && value !== void 0;
|
|
1423
1423
|
}
|
|
1424
|
-
const VERSION = "0.12.
|
|
1424
|
+
const VERSION = "0.12.1";
|
|
1425
1425
|
const NOOP_LOG_FN = Object.assign(() => {}, { enabled: false });
|
|
1426
1426
|
const debugBackend = loadDebug();
|
|
1427
1427
|
const logger$2 = new class LoggerImpl {
|
|
@@ -3744,7 +3744,7 @@ var WasmResolver = class {
|
|
|
3744
3744
|
this.delegate.applyFlags(request);
|
|
3745
3745
|
} catch (error$1) {
|
|
3746
3746
|
if (error$1 instanceof WebAssembly.RuntimeError) this.reloadInstance(error$1);
|
|
3747
|
-
|
|
3747
|
+
else logger.warn("Failed to apply flags:", error$1);
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
3750
|
prometheusSnapshot(instance) {
|
package/dist/server.js
CHANGED
|
@@ -85,8 +85,12 @@ async function ConfidenceProvider({ context, providerName, flags = [], children
|
|
|
85
85
|
const serverProvider = providerName ? OpenFeature.getProvider(providerName) : OpenFeature.getProvider();
|
|
86
86
|
if (!bundle.errorCode && isConfidenceServerProviderLocal(serverProvider)) serverProvider.applyFlag(bundle.resolveToken, flagName);
|
|
87
87
|
}
|
|
88
|
+
const clientBundle = {
|
|
89
|
+
...bundle,
|
|
90
|
+
resolveToken: ""
|
|
91
|
+
};
|
|
88
92
|
return /* @__PURE__ */ jsx(ConfidenceClientProvider, {
|
|
89
|
-
bundle,
|
|
93
|
+
bundle: clientBundle,
|
|
90
94
|
apply: applyFlag,
|
|
91
95
|
children
|
|
92
96
|
});
|