44 lines
1.6 KiB
JavaScript
44 lines
1.6 KiB
JavaScript
// Module ID: 1104
|
|
// Function ID: 1105
|
|
// Name: OpenFeatureIntegrationHook
|
|
// Dependencies: [41, 42, 817]
|
|
|
|
// Module 1104 (OpenFeatureIntegrationHook)
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation" /* 817 */;
|
|
|
|
const OpenFeatureIntegrationHook = require;
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
class OpenFeatureIntegrationHook {
|
|
constructor() {
|
|
tmp = closure_2(this, OpenFeatureIntegrationHook);
|
|
return;
|
|
}
|
|
}
|
|
const items = [
|
|
{
|
|
key: "after",
|
|
value: function after(arg0, flagKey) {
|
|
const result = OpenFeatureIntegrationHook(817)._INTERNAL_insertFlagToScope(flagKey.flagKey, flagKey.value);
|
|
const obj = OpenFeatureIntegrationHook(817);
|
|
const result1 = OpenFeatureIntegrationHook(817)._INTERNAL_addFeatureFlagToActiveSpan(flagKey.flagKey, flagKey.value);
|
|
}
|
|
},
|
|
{
|
|
key: "error",
|
|
value: function error(flagKey) {
|
|
const result = OpenFeatureIntegrationHook(817)._INTERNAL_insertFlagToScope(flagKey.flagKey, flagKey.defaultValue);
|
|
const obj = OpenFeatureIntegrationHook(817);
|
|
const result1 = OpenFeatureIntegrationHook(817)._INTERNAL_addFeatureFlagToActiveSpan(flagKey.flagKey, flagKey.defaultValue);
|
|
}
|
|
}
|
|
];
|
|
|
|
export const OpenFeatureIntegrationHook = _createClass(OpenFeatureIntegrationHook, items);
|
|
export const openFeatureIntegration = registerSpanErrorInstrumentation.defineIntegration(() => ({
|
|
name: "OpenFeature",
|
|
processEvent(contexts) {
|
|
return callback(table[2])._INTERNAL_copyFlagsFromScopeToEvent(contexts);
|
|
}
|
|
}));
|