svelte-i18n
Advanced tools
Comparing version 3.3.12 to 3.3.13
@@ -152,5 +152,8 @@ #!/usr/bin/env node | ||
function getLibImportDeclarations(ast) { | ||
return (ast.instance | ||
? ast.instance.content.body.filter((node) => node.type === 'ImportDeclaration' && node.source.value === LIB_NAME) | ||
: []); | ||
var _a, _b; | ||
const bodyElements = [ | ||
...(((_a = ast.instance) === null || _a === void 0 ? void 0 : _a.content.body) || []), | ||
...(((_b = ast.module) === null || _b === void 0 ? void 0 : _b.content.body) || []), | ||
]; | ||
return bodyElements.filter((node) => node.type === 'ImportDeclaration' && node.source.value === LIB_NAME); | ||
} | ||
@@ -157,0 +160,0 @@ function getDefineMessagesSpecifier(decl) { |
{ | ||
"name": "svelte-i18n", | ||
"version": "3.3.12", | ||
"version": "3.3.13", | ||
"main": "dist/runtime.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/runtime.esm.js", |
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
41289
500