veryfront 0.1.961 → 0.1.962
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/esm/deno.js
CHANGED
|
@@ -65,16 +65,6 @@ function defaultCostComparison(baselineSummary, candidateSummary) {
|
|
|
65
65
|
label: "Veryfront billed cost",
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
if (baselineSummary.costSource === "gateway" &&
|
|
69
|
-
candidateSummary.costSource === "gateway" &&
|
|
70
|
-
baselineSummary.costCredits !== undefined &&
|
|
71
|
-
candidateSummary.costCredits !== undefined) {
|
|
72
|
-
return {
|
|
73
|
-
baseline: baselineSummary.costCredits,
|
|
74
|
-
candidate: candidateSummary.costCredits,
|
|
75
|
-
label: "Veryfront credits",
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
68
|
if (baselineSummary.veryfrontChargeUsd !== undefined &&
|
|
79
69
|
candidateSummary.veryfrontChargeUsd !== undefined) {
|
|
80
70
|
return {
|
|
@@ -98,6 +88,16 @@ function defaultCostComparison(baselineSummary, candidateSummary) {
|
|
|
98
88
|
label: "provider cost",
|
|
99
89
|
};
|
|
100
90
|
}
|
|
91
|
+
if (baselineSummary.costSource === "gateway" &&
|
|
92
|
+
candidateSummary.costSource === "gateway" &&
|
|
93
|
+
baselineSummary.costCredits !== undefined &&
|
|
94
|
+
candidateSummary.costCredits !== undefined) {
|
|
95
|
+
return {
|
|
96
|
+
baseline: baselineSummary.costCredits,
|
|
97
|
+
candidate: candidateSummary.costCredits,
|
|
98
|
+
label: "Veryfront credits",
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
101
|
return undefined;
|
|
102
102
|
}
|
|
103
103
|
function metricValue(summary, metric) {
|