@bytebrand/export-cars 1.21.50 → 1.21.52
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/dist/formats/google-xml.builder.js +2 -2
- package/dist/transformers/google.transformer.js +1 -3
- package/dist/transformers/google.transformer.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/formats/google-xml.builder.ts +2 -2
- package/src/transformers/google.transformer.ts +1 -3
package/package.json
CHANGED
|
@@ -57,8 +57,8 @@ export class GoogleXmlBuilder extends XMLBuilderBase {
|
|
|
57
57
|
}): string {
|
|
58
58
|
return `<g:${rootTag}>
|
|
59
59
|
<g:certification_authority>${data.certification_authority}</g:certification_authority>
|
|
60
|
-
<g:certification_name>${data.certification_name}
|
|
61
|
-
<g:certification_value>${data.certification_value}
|
|
60
|
+
<g:certification_name>${data.certification_name}</g:certification_name>
|
|
61
|
+
<g:certification_value>${data.certification_value}</g:certification_value>
|
|
62
62
|
</g:${rootTag}>`;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -351,14 +351,12 @@ export class GoogleTransformer {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
const date = new Date(timestamp * 1000);
|
|
354
|
-
const day = date.getUTCDate();
|
|
355
354
|
const month = date.getUTCMonth() + 1;
|
|
356
355
|
const year = date.getUTCFullYear();
|
|
357
356
|
|
|
358
|
-
const formattedDay = day < 10 ? `0${day}` : day;
|
|
359
357
|
const formattedMonth = month < 10 ? `0${month}` : month;
|
|
360
358
|
|
|
361
|
-
return `${year}-${formattedMonth}
|
|
359
|
+
return `${year}-${formattedMonth}`;
|
|
362
360
|
}
|
|
363
361
|
|
|
364
362
|
private isNotEmptyArray(array: any[]): boolean {
|