Skip to content

Commit

Permalink
- Replaces the .name with actual strings that can be minified.
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennenoel committed Nov 18, 2024
1 parent a845dcd commit 6949792
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {BaseNormalizer} from "./base.normalizer";

export class DateNormalizer extends BaseNormalizer<DateNormalizerOptions> implements DataNormalizerInterface<Date | undefined, DateNormalizerOptions> {
getUniqueKey(): string {
return DateNormalizer.name;
return "PRISTINE_DATE_NORMALIZER";
}

normalize(source: any, options?: DateNormalizerOptions): Date | undefined {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {BaseNormalizer} from "./base.normalizer";

export class LowercaseNormalizer extends BaseNormalizer<LowercaseNormalizerOptions> implements DataNormalizerInterface<string, LowercaseNormalizerOptions>{
getUniqueKey(): DataNormalizerUniqueKey {
return LowercaseNormalizer.name;
return "PRISTINE_LOWERCASE_NORMALIZER";
}

normalize(source: any, options?: LowercaseNormalizerOptions): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {BaseNormalizer} from "./base.normalizer";

export class NumberNormalizer extends BaseNormalizer<NumberNormalizerOptions> implements DataNormalizerInterface<number | undefined, NumberNormalizerOptions> {
getUniqueKey(): string {
return NumberNormalizer.name;
return "PRISTINE_NUMBER_NORMALIZER";
}

normalize(source: any, options?: NumberNormalizerOptions): number | undefined {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {BaseNormalizer} from "./base.normalizer";

export class StringNormalizer extends BaseNormalizer<StringNormalizerOptions> implements DataNormalizerInterface<string | undefined, StringNormalizerOptions> {
getUniqueKey(): string {
return StringNormalizer.name;
return "PRISTINE_STRING_NORMALIZER";
}

normalize(source: any, options?: StringNormalizerOptions): string | undefined {
Expand Down

0 comments on commit 6949792

Please sign in to comment.