@dchighs/dc-config-mapper 0.5.5 → 0.5.7
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.
|
@@ -40,8 +40,8 @@ function processRewards(rewards) {
|
|
|
40
40
|
}
|
|
41
41
|
if (reward.f) {
|
|
42
42
|
processedRewards.push({
|
|
43
|
-
type: reward_type_enum_1.RewardType.
|
|
44
|
-
amount: reward.
|
|
43
|
+
type: reward_type_enum_1.RewardType.Food,
|
|
44
|
+
amount: reward.f,
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
if (reward.b) {
|
|
@@ -84,8 +84,8 @@ function processRewards(rewards) {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
if (processedRewards.length
|
|
88
|
-
throw new Error(`
|
|
87
|
+
if (processedRewards.length < rewards.length) {
|
|
88
|
+
throw new Error(`Not processed correctly: ${JSON.stringify(rewards)} -> ${JSON.stringify(processedRewards)}`);
|
|
89
89
|
}
|
|
90
90
|
return processedRewards;
|
|
91
91
|
}
|
package/package.json
CHANGED