@bytebrand/export-cars 1.21.75 → 1.21.76

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.75",
3
+ "version": "1.21.76",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -61,8 +61,9 @@ export class SantanderTransformer {
61
61
  for (const rule of rules) {
62
62
  const importFieldNumber = Number(rule.importField.match(/\d+/)[0]);
63
63
 
64
- if (!isNew && this.checkFieldsOnlyForNew(importFieldNumber)) {
64
+ if (isNew && this.checkFieldsOnlyForNew(importFieldNumber)) {
65
65
  console.log(`NEW - ${rule.importField} - ${importFieldNumber}`);
66
+ } else {
66
67
  continue;
67
68
  }
68
69
 
@@ -101,12 +102,12 @@ export class SantanderTransformer {
101
102
  }
102
103
 
103
104
  private async checkFieldsOnlyForNew(importFieldNumber: number) {
104
- const fieldsOnlyForNewCar = new Set<number>([
105
+ const fieldsOnlyForNewCar: any = [
105
106
  336, 337, 338, 339, 313, 320, 405, 468, 469, 470, 471, 472, 473, 474, 475,
106
107
  513, 514, 515, 516, 517, 520, 521, 522, 523, 524, 525, 526, 527
107
- ]);
108
+ ];
108
109
 
109
- return fieldsOnlyForNewCar.has(importFieldNumber);
110
+ return fieldsOnlyForNewCar.includes(importFieldNumber);
110
111
  }
111
112
 
112
113
  private async transformField(fieldValue: any, rule: MappingRules): Promise<string | void> {