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.7.2 to 3.7.3-0

9

dist/runtime.cjs.js

@@ -5,3 +5,2 @@ 'use strict';

var deepmerge = require('deepmerge');
var intlGetcanonicallocales = require('@formatjs/intl-getcanonicallocales');
var IntlMessageFormat = require('intl-messageformat');

@@ -247,7 +246,9 @@

try {
const canonicalizedLocale = intlGetcanonicallocales.getCanonicalLocales(opts.initialLocale);
if (canonicalizedLocale.length >= 1) {
initialLocale = canonicalizedLocale[0];
if (IntlMessageFormat.resolveLocale(opts.initialLocale)) {
initialLocale = opts.initialLocale;
}
} catch (e) {
console.warn(
`[svelte-i18n] The initial locale "${opts.initialLocale}" is not a valid locale.`
);
}

@@ -254,0 +255,0 @@ }

import { writable, derived } from 'svelte/store';
import deepmerge from 'deepmerge';
import { getCanonicalLocales } from '@formatjs/intl-getcanonicallocales';
import IntlMessageFormat from 'intl-messageformat';

@@ -244,7 +243,9 @@

try {
const canonicalizedLocale = getCanonicalLocales(opts.initialLocale);
if (canonicalizedLocale.length >= 1) {
initialLocale = canonicalizedLocale[0];
if (IntlMessageFormat.resolveLocale(opts.initialLocale)) {
initialLocale = opts.initialLocale;
}
} catch (e) {
console.warn(
`[svelte-i18n] The initial locale "${opts.initialLocale}" is not a valid locale.`
);
}

@@ -251,0 +252,0 @@ }

{
"name": "svelte-i18n",
"version": "3.7.2",
"version": "3.7.3-0",
"main": "dist/runtime.cjs.js",

@@ -27,2 +27,15 @@ "module": "dist/runtime.esm.js",

},
"scripts": {
"clean": "rm -rf dist/",
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "cross-env NODE_ICU_DATA=node_modules/full-icu jest",
"test:ci": "pnpm test -- --silent",
"lint": "eslint \"{src,test}/**/*.ts\"",
"format": "prettier --loglevel silent --write \"{src,test}/**/*.ts\"",
"release": " git add package.json && git commit -m \"chore(release): v$npm_package_version :tada:\"",
"prebuild": "pnpm clean",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1 && git add CHANGELOG.md",
"prepublishOnly": "pnpm test -- --no-cache && pnpm build"
},
"files": [

@@ -79,3 +92,2 @@ "dist/"

"dependencies": {
"@formatjs/intl-getcanonicallocales": "^2.2.1",
"cli-color": "^2.0.3",

@@ -88,15 +100,3 @@ "deepmerge": "^4.2.2",

"tiny-glob": "^0.2.9"
},
"scripts": {
"clean": "rm -rf dist/",
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "cross-env NODE_ICU_DATA=node_modules/full-icu jest",
"test:ci": "pnpm test -- --silent",
"lint": "eslint \"{src,test}/**/*.ts\"",
"format": "prettier --loglevel silent --write \"{src,test}/**/*.ts\"",
"release": " git add package.json && git commit -m \"chore(release): v$npm_package_version :tada:\"",
"prebuild": "pnpm clean",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1 && git add CHANGELOG.md"
}
}
}
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