@bytebrand/export-cars 1.14.1 → 1.14.2

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.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=14.0.0"
62
62
  },
63
- "gitHead": "44c930384611b8704c361f056636f999d0d2522a"
63
+ "gitHead": "4be01a08eb3a8b64a49cfc05874af0a80d9abbeb"
64
64
  }
@@ -195,7 +195,7 @@ export interface RubrikkXmlItem {
195
195
  motoring__make: string;
196
196
  motoring__mileage_kilometers: number;
197
197
  motoring__model: string;
198
- motoring__model_year: number;
198
+ motoring__model_year: string;
199
199
  motoring__number_of_doors: number;
200
200
  motoring__number_of_seats: number;
201
201
  motoring__power_kw: number;
@@ -171,12 +171,12 @@ export class RubrikkTransformer {
171
171
  return get(available, transmission);
172
172
  }
173
173
 
174
- private getYear(car: DataSchemes.Car): number {
174
+ private getYear(car: DataSchemes.Car): string {
175
175
  const firstRegistration = get(car, 'mainData.firstRegistration') as number;
176
176
  if (isNumber(firstRegistration)) {
177
- return toSafeInteger(moment(firstRegistration * 1000).format('YYYY'));
177
+ return moment(firstRegistration * 1000).format('YYYY');
178
178
  }
179
- return null;
179
+ return moment().format('YYYY');
180
180
  }
181
181
 
182
182
  private getDriveType(car: DataSchemes.Car): string {