@datadog/flagging-core 0.3.1 → 0.3.3
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flagEvaluationEvent.js","sourceRoot":"","sources":["../../src/configuration/flagEvaluationEvent.ts"],"names":[],"mappings":";;AAiBA,8DAwCC;AAxCD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,SAAiB;IAC9F,MAAM,KAAK,GAAwB;QACjC,IAAI,EAAE;YACJ,GAAG,EAAE,IAAI,CAAC,OAAO;SAClB;QACD,gBAAgB,EAAE,IAAI,CAAC,eAAe;QACtC,eAAe,EAAE,IAAI,CAAC,cAAc;QACpC,gBAAgB,EAAE,IAAI,CAAC,KAAK;QAC5B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,SAAS;KACV,CAAA;IAED,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"flagEvaluationEvent.js","sourceRoot":"","sources":["../../src/configuration/flagEvaluationEvent.ts"],"names":[],"mappings":";;AAiBA,8DAwCC;AAxCD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,SAAiB;IAC9F,MAAM,KAAK,GAAwB;QACjC,IAAI,EAAE;YACJ,GAAG,EAAE,IAAI,CAAC,OAAO;SAClB;QACD,gBAAgB,EAAE,IAAI,CAAC,eAAe;QACtC,eAAe,EAAE,IAAI,CAAC,cAAc;QACpC,gBAAgB,EAAE,IAAI,CAAC,KAAK;QAC5B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,SAAS;KACV,CAAA;IAED,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE,CAAC;QAC9B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAA;IACzC,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,KAAK,CAAC,KAAK,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IACvC,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,KAAK,CAAC,OAAO,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,CAAA;IAC1C,CAAC;IAED,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,KAAK,CAAC,UAAU,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,CAAA;IAChD,CAAC;IAED,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC1B,KAAK,CAAC,cAAc,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACvD,CAAC;IAED,+CAA+C;IAC/C,IAAI,IAAI,CAAC,gBAAgB,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3E,KAAK,CAAC,OAAO,GAAG;YACd,UAAU,EAAE,IAAI,CAAC,gBAAgB;SAClC,CAAA;IACH,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -9,7 +9,7 @@ export function createFlagEvaluationEvent(data, timestamp) {
|
|
|
9
9
|
runtime_default_used: data.runtimeDefaultUsed,
|
|
10
10
|
timestamp,
|
|
11
11
|
};
|
|
12
|
-
if (data.targetingKey) {
|
|
12
|
+
if (data.targetingKey != null) {
|
|
13
13
|
event.targeting_key = data.targetingKey;
|
|
14
14
|
}
|
|
15
15
|
if (data.error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flagEvaluationEvent.js","sourceRoot":"","sources":["../../src/configuration/flagEvaluationEvent.ts"],"names":[],"mappings":"AAiBA,MAAM,UAAU,yBAAyB,CAAC,IAAmC,EAAE,SAAiB;IAC9F,MAAM,KAAK,GAAwB;QACjC,IAAI,EAAE;YACJ,GAAG,EAAE,IAAI,CAAC,OAAO;SAClB;QACD,g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AE,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACvD,CAAC;IAED,+CAA+C;IAC/C,IAAI,IAAI,CAAC,gBAAgB,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3E,KAAK,CAAC,OAAO,GAAG;YACd,UAAU,EAAE,IAAI,CAAC,gBAAgB;SAClC,CAAA;IACH,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/flagging-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Runtime-agnostic flag-evaluation logic for Datadog Flagging",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -51,9 +51,6 @@
|
|
|
51
51
|
"ts-loader": "^9.5.2",
|
|
52
52
|
"typescript": "^5.5.0"
|
|
53
53
|
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"@openfeature/core": "^1.8.1"
|
|
56
|
-
},
|
|
57
54
|
"dependencies": {
|
|
58
55
|
"spark-md5": "^3.0.2"
|
|
59
56
|
}
|