Socket
Socket
Sign inDemoInstall

svelte-i18n

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-i18n - npm Package Compare versions

Comparing version 3.3.12 to 3.3.13

9

dist/cli.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc