@bytebrand/export-cars 1.21.57 → 1.21.59

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.21.57",
3
+ "version": "1.21.59",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -181,9 +181,9 @@ export class GoogleTransformer {
181
181
 
182
182
  private mapState(car: DataSchemes.Car): string {
183
183
  const available = {
184
- selector_condition_new: 'Neu',
185
- selector_condition_used: 'Gebraucht',
186
- selector_unknown: 'Gebraucht',
184
+ selector_condition_new: 'New',
185
+ selector_condition_used: 'Used',
186
+ selector_unknown: 'Used',
187
187
  };
188
188
  const condition = get(car, 'mainData.condition', 'selector_unknown');
189
189
  return get(available, condition);
@@ -215,7 +215,7 @@ export class GoogleTransformer {
215
215
  };
216
216
  const energyClass = get(car, 'environmentEmissions.energyEfficiencyClass', 'selector_unknown');
217
217
  const value = get(available, energyClass);
218
- return value.replace('+', '');
218
+ return value.replace(/\+/g, '');
219
219
  }
220
220
 
221
221
  private getInstallment(car: DataSchemes.Car) {