From 7bf0c138b8efe2a346380c478e4f713670653a18 Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Tue, 17 Sep 2019 14:24:01 +0200 Subject: [PATCH] (refactor) rename constants --- src/parsers/marker.parser.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parsers/marker.parser.ts b/src/parsers/marker.parser.ts index 314e89a..532afd8 100644 --- a/src/parsers/marker.parser.ts +++ b/src/parsers/marker.parser.ts @@ -4,15 +4,15 @@ import { ParserInterface } from './parser.interface'; import { TranslationCollection } from '../utils/translation.collection'; import { getNamedImportAlias, findFunctionCallExpressions, getStringsFromExpression } from '../utils/ast-helpers'; -const MARKER_PACKAGE_MODULE_NAME = '@biesbjerg/ngx-translate-extract-marker'; -const MARKER_PACKAGE_IMPORT_NAME = 'marker'; +const MARKER_MODULE_NAME = '@biesbjerg/ngx-translate-extract-marker'; +const MARKER_IMPORT_NAME = 'marker'; export class MarkerParser implements ParserInterface { public extract(contents: string, filePath: string): TranslationCollection | null { const sourceFile = tsquery.ast(contents, filePath); - const markerImportName = getNamedImportAlias(sourceFile, MARKER_PACKAGE_MODULE_NAME, MARKER_PACKAGE_IMPORT_NAME); + const markerImportName = getNamedImportAlias(sourceFile, MARKER_MODULE_NAME, MARKER_IMPORT_NAME); if (!markerImportName) { return; }