shareneus 1.7.314 → 1.7.315
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.
|
@@ -209,7 +209,7 @@ function shouldSkipFixedTo(header) {
|
|
|
209
209
|
var _a;
|
|
210
210
|
const text = String((_a = header === null || header === void 0 ? void 0 : header.text) !== null && _a !== void 0 ? _a : '').trim().toUpperCase();
|
|
211
211
|
const normalizedText = text.replace(/\s+/g, '');
|
|
212
|
-
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'MPN') {
|
|
212
|
+
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'OFQTY' || normalizedText === 'MPN') {
|
|
213
213
|
return true;
|
|
214
214
|
}
|
|
215
215
|
const dbFields = Array.isArray(header === null || header === void 0 ? void 0 : header.dbFields) ? header.dbFields : [];
|
|
@@ -218,9 +218,11 @@ function shouldSkipFixedTo(header) {
|
|
|
218
218
|
return normalized === 'BN'
|
|
219
219
|
|| normalized === 'BNO'
|
|
220
220
|
|| normalized === 'QTY'
|
|
221
|
+
|| normalized === 'OFQTY'
|
|
221
222
|
|| normalized === 'MPN'
|
|
222
223
|
|| normalized.endsWith('.BN')
|
|
223
224
|
|| normalized.endsWith('.QTY')
|
|
225
|
+
|| normalized.endsWith('.OFQTY')
|
|
224
226
|
|| normalized.endsWith('.MPN')
|
|
225
227
|
|| normalized.endsWith('PERC')
|
|
226
228
|
|| normalized.endsWith('.PERC');
|
|
@@ -400,7 +400,7 @@ function shouldSkipFixedTo(header) {
|
|
|
400
400
|
var _a;
|
|
401
401
|
const text = String((_a = header === null || header === void 0 ? void 0 : header.text) !== null && _a !== void 0 ? _a : '').trim().toUpperCase();
|
|
402
402
|
const normalizedText = text.replace(/\s+/g, '');
|
|
403
|
-
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'MPN') {
|
|
403
|
+
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'OFQTY' || normalizedText === 'MPN') {
|
|
404
404
|
return true;
|
|
405
405
|
}
|
|
406
406
|
const dbFields = Array.isArray(header === null || header === void 0 ? void 0 : header.dbFields) ? header.dbFields : [];
|
|
@@ -409,9 +409,11 @@ function shouldSkipFixedTo(header) {
|
|
|
409
409
|
return normalized === 'BN'
|
|
410
410
|
|| normalized === 'BNO'
|
|
411
411
|
|| normalized === 'QTY'
|
|
412
|
+
|| normalized === 'OFQTY'
|
|
412
413
|
|| normalized === 'MPN'
|
|
413
414
|
|| normalized.endsWith('.BN')
|
|
414
415
|
|| normalized.endsWith('.QTY')
|
|
416
|
+
|| normalized.endsWith('.OFQTY')
|
|
415
417
|
|| normalized.endsWith('.MPN')
|
|
416
418
|
|| normalized.endsWith('PERC')
|
|
417
419
|
|| normalized.endsWith('.PERC');
|
package/package.json
CHANGED
|
@@ -237,21 +237,23 @@ function formatExpiryDateValue(value: string) {
|
|
|
237
237
|
function shouldSkipFixedTo(header: any) {
|
|
238
238
|
const text = String(header?.text ?? '').trim().toUpperCase();
|
|
239
239
|
const normalizedText = text.replace(/\s+/g, '');
|
|
240
|
-
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'MPN') {
|
|
241
|
-
return true;
|
|
242
|
-
}
|
|
240
|
+
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'OFQTY' || normalizedText === 'MPN') {
|
|
241
|
+
return true;
|
|
242
|
+
}
|
|
243
243
|
|
|
244
244
|
const dbFields = Array.isArray(header?.dbFields) ? header.dbFields : [];
|
|
245
245
|
return dbFields.some((field: any) => {
|
|
246
246
|
const normalized = String(field ?? '').trim().toUpperCase();
|
|
247
247
|
return normalized === 'BN'
|
|
248
|
-
|| normalized === 'BNO'
|
|
249
|
-
|| normalized === 'QTY'
|
|
250
|
-
|| normalized === '
|
|
251
|
-
|| normalized
|
|
252
|
-
|| normalized.endsWith('.
|
|
253
|
-
|| normalized.endsWith('.
|
|
254
|
-
|| normalized.endsWith('
|
|
255
|
-
|| normalized.endsWith('.
|
|
248
|
+
|| normalized === 'BNO'
|
|
249
|
+
|| normalized === 'QTY'
|
|
250
|
+
|| normalized === 'OFQTY'
|
|
251
|
+
|| normalized === 'MPN'
|
|
252
|
+
|| normalized.endsWith('.BN')
|
|
253
|
+
|| normalized.endsWith('.QTY')
|
|
254
|
+
|| normalized.endsWith('.OFQTY')
|
|
255
|
+
|| normalized.endsWith('.MPN')
|
|
256
|
+
|| normalized.endsWith('PERC')
|
|
257
|
+
|| normalized.endsWith('.PERC');
|
|
256
258
|
});
|
|
257
259
|
}
|
|
@@ -452,22 +452,24 @@ function shouldNegateFallbackHeaderValue(item: any, headerText: string) {
|
|
|
452
452
|
function shouldSkipFixedTo(header: any) {
|
|
453
453
|
const text = String(header?.text ?? '').trim().toUpperCase();
|
|
454
454
|
const normalizedText = text.replace(/\s+/g, '');
|
|
455
|
-
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'MPN') {
|
|
456
|
-
return true;
|
|
457
|
-
}
|
|
455
|
+
if (text === 'HSN/SAC' || text === 'BN' || text === 'BNO' || text.includes('%') || normalizedText === 'QTY' || normalizedText === 'OFFERQTY' || normalizedText === 'OFQTY' || normalizedText === 'MPN') {
|
|
456
|
+
return true;
|
|
457
|
+
}
|
|
458
458
|
|
|
459
459
|
const dbFields = Array.isArray(header?.dbFields) ? header.dbFields : [];
|
|
460
460
|
return dbFields.some((field: any) => {
|
|
461
461
|
const normalized = String(field ?? '').trim().toUpperCase();
|
|
462
462
|
return normalized === 'BN'
|
|
463
|
-
|| normalized === 'BNO'
|
|
464
|
-
|| normalized === 'QTY'
|
|
465
|
-
|| normalized === '
|
|
466
|
-
|| normalized
|
|
467
|
-
|| normalized.endsWith('.
|
|
468
|
-
|| normalized.endsWith('.
|
|
469
|
-
|| normalized.endsWith('
|
|
470
|
-
|| normalized.endsWith('.
|
|
463
|
+
|| normalized === 'BNO'
|
|
464
|
+
|| normalized === 'QTY'
|
|
465
|
+
|| normalized === 'OFQTY'
|
|
466
|
+
|| normalized === 'MPN'
|
|
467
|
+
|| normalized.endsWith('.BN')
|
|
468
|
+
|| normalized.endsWith('.QTY')
|
|
469
|
+
|| normalized.endsWith('.OFQTY')
|
|
470
|
+
|| normalized.endsWith('.MPN')
|
|
471
|
+
|| normalized.endsWith('PERC')
|
|
472
|
+
|| normalized.endsWith('.PERC');
|
|
471
473
|
});
|
|
472
474
|
}
|
|
473
475
|
|