@jsverse/transloco-keys-manager
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -15,2 +15,4 @@ import { tsquery } from '@phenomnomnominal/tsquery'; | ||
} | ||
const translocoImport = /@(jsverse|ngneat)\/transloco/; | ||
const translocoKeysManagerImport = /@(jsverse|ngneat)\/transloco-keys-manager/; | ||
function TSExtractor(config) { | ||
@@ -20,6 +22,6 @@ const { file, scopes, defaultValue, scopeToKeys } = config; | ||
const extractors = []; | ||
if (content.includes('@ngneat/transloco')) { | ||
if (translocoImport.test(content)) { | ||
extractors.push(serviceExtractor, pureFunctionExtractor); | ||
} | ||
if (content.includes('@ngneat/transloco-keys-manager')) { | ||
if (translocoKeysManagerImport.test(content)) { | ||
extractors.push(markerExtractor); | ||
@@ -26,0 +28,0 @@ } |
@@ -5,3 +5,3 @@ import { tsquery } from '@phenomnomnominal/tsquery'; | ||
// workaround from https://github.com/estools/esquery/issues/68 | ||
const [importNode] = tsquery(ast, `ImportDeclaration:has([text=/^@ngneat\\x2Ftransloco-keys-manager/])`); | ||
const [importNode] = tsquery(ast, `ImportDeclaration:has([text=/^@(jsverse|ngneat)\\x2Ftransloco-keys-manager/])`); | ||
if (!importNode) { | ||
@@ -8,0 +8,0 @@ return []; |
{ | ||
"name": "@jsverse/transloco-keys-manager", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Extract translatable keys from projects that uses Transloco", | ||
@@ -13,2 +13,6 @@ "engines": { | ||
"types": "./public-api.d.ts" | ||
}, | ||
"./marker": { | ||
"import": "./marker.js", | ||
"types": "./marker.d.ts" | ||
} | ||
@@ -25,3 +29,3 @@ }, | ||
"type": "git", | ||
"url": "git+https://github.com/ngneat/transloco-keys-manager.git" | ||
"url": "git+https://github.com/jsverse/transloco-keys-manager.git" | ||
}, | ||
@@ -41,14 +45,6 @@ "keywords": [ | ||
"author": "Shahar Kazaz", | ||
"maintainers": [ | ||
{ | ||
"name": "Shahar Kazaz" | ||
}, | ||
{ | ||
"name": "Netanel Basal" | ||
} | ||
], | ||
"bugs": { | ||
"url": "https://github.com/ngneat/transloco-keys-manager/issues" | ||
"url": "https://github.com/jsverse/transloco-keys-manager/issues" | ||
}, | ||
"homepage": "https://github.com/ngneat/transloco-keys-manager#readme", | ||
"homepage": "https://github.com/jsverse/transloco-keys-manager#readme", | ||
"dependencies": { | ||
@@ -55,0 +51,0 @@ "@angular/compiler": "17.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188340
2466