@statsig/react-bindings 0.0.1-beta.3 → 0.0.1-beta.5
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/package.json
CHANGED
|
@@ -5,6 +5,7 @@ var client_core_1 = require("@statsig/client-core");
|
|
|
5
5
|
var noop = function () {
|
|
6
6
|
// noop
|
|
7
7
|
};
|
|
8
|
+
var NOOP_DETAILS = { reason: 'Error' };
|
|
8
9
|
var defaultEvaluation = function (type) {
|
|
9
10
|
return function () {
|
|
10
11
|
var args = [];
|
|
@@ -14,11 +15,11 @@ var defaultEvaluation = function (type) {
|
|
|
14
15
|
var name = typeof args[0] === 'string' ? args[0] : args[1];
|
|
15
16
|
switch (type) {
|
|
16
17
|
case 'gate':
|
|
17
|
-
return (0, client_core_1.makeFeatureGate)(name,
|
|
18
|
+
return (0, client_core_1.makeFeatureGate)(name, NOOP_DETAILS);
|
|
18
19
|
case 'config':
|
|
19
|
-
return (0, client_core_1.makeDynamicConfig)(name,
|
|
20
|
+
return (0, client_core_1.makeDynamicConfig)(name, NOOP_DETAILS);
|
|
20
21
|
case 'layer':
|
|
21
|
-
return (0, client_core_1.makeLayer)(name,
|
|
22
|
+
return (0, client_core_1.makeLayer)(name, NOOP_DETAILS);
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
};
|