From 6949792bbb5eb3011ea3f5845c9dc042e1670937 Mon Sep 17 00:00:00 2001 From: Etienne Noel Date: Sun, 17 Nov 2024 22:36:51 -0800 Subject: [PATCH] - Replaces the .name with actual strings that can be minified. --- packages/data-mapping-common/src/normalizers/date.normalizer.ts | 2 +- .../data-mapping-common/src/normalizers/lowercase.normalizer.ts | 2 +- .../data-mapping-common/src/normalizers/number.normalizer.ts | 2 +- .../data-mapping-common/src/normalizers/string.normalizer.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/data-mapping-common/src/normalizers/date.normalizer.ts b/packages/data-mapping-common/src/normalizers/date.normalizer.ts index 0fbb00fa..8b34a363 100644 --- a/packages/data-mapping-common/src/normalizers/date.normalizer.ts +++ b/packages/data-mapping-common/src/normalizers/date.normalizer.ts @@ -5,7 +5,7 @@ import {BaseNormalizer} from "./base.normalizer"; export class DateNormalizer extends BaseNormalizer implements DataNormalizerInterface { getUniqueKey(): string { - return DateNormalizer.name; + return "PRISTINE_DATE_NORMALIZER"; } normalize(source: any, options?: DateNormalizerOptions): Date | undefined { diff --git a/packages/data-mapping-common/src/normalizers/lowercase.normalizer.ts b/packages/data-mapping-common/src/normalizers/lowercase.normalizer.ts index 48f0c9aa..2b0443cf 100644 --- a/packages/data-mapping-common/src/normalizers/lowercase.normalizer.ts +++ b/packages/data-mapping-common/src/normalizers/lowercase.normalizer.ts @@ -6,7 +6,7 @@ import {BaseNormalizer} from "./base.normalizer"; export class LowercaseNormalizer extends BaseNormalizer implements DataNormalizerInterface{ getUniqueKey(): DataNormalizerUniqueKey { - return LowercaseNormalizer.name; + return "PRISTINE_LOWERCASE_NORMALIZER"; } normalize(source: any, options?: LowercaseNormalizerOptions): string { diff --git a/packages/data-mapping-common/src/normalizers/number.normalizer.ts b/packages/data-mapping-common/src/normalizers/number.normalizer.ts index 3dfe8424..86999835 100644 --- a/packages/data-mapping-common/src/normalizers/number.normalizer.ts +++ b/packages/data-mapping-common/src/normalizers/number.normalizer.ts @@ -5,7 +5,7 @@ import {BaseNormalizer} from "./base.normalizer"; export class NumberNormalizer extends BaseNormalizer implements DataNormalizerInterface { getUniqueKey(): string { - return NumberNormalizer.name; + return "PRISTINE_NUMBER_NORMALIZER"; } normalize(source: any, options?: NumberNormalizerOptions): number | undefined { diff --git a/packages/data-mapping-common/src/normalizers/string.normalizer.ts b/packages/data-mapping-common/src/normalizers/string.normalizer.ts index 2fcacbf3..6a8cbfb1 100644 --- a/packages/data-mapping-common/src/normalizers/string.normalizer.ts +++ b/packages/data-mapping-common/src/normalizers/string.normalizer.ts @@ -6,7 +6,7 @@ import {BaseNormalizer} from "./base.normalizer"; export class StringNormalizer extends BaseNormalizer implements DataNormalizerInterface { getUniqueKey(): string { - return StringNormalizer.name; + return "PRISTINE_STRING_NORMALIZER"; } normalize(source: any, options?: StringNormalizerOptions): string | undefined {