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 1.0.1-beta to 1.0.2-beta

1

dist/i18n.js
function r(r){return r&&"object"==typeof r&&"default"in r?r.default:r}var e,t,n=require("svelte/store"),o=r(require("object-resolve-path")),u=r(require("intl-messageformat")),i=r(require("intl-format-cache"))(u);function a(r,t,n){return void 0===n&&(n=e),i(r,n).format(t)}function c(r,n,u){void 0===u&&(u=e);var a=function(r,e){return t[e][r]||o(t[e],r)}(r,u);return a?n?i(a,u).format(n):a:r}c.time=function(r,e,t){return void 0===e&&(e="short"),a("{t,time,"+e+"}",{t:r},t)},c.date=function(r,e,t){return void 0===e&&(e="short"),a("{d,date,"+e+"}",{d:r},t)},c.number=function(r,e){return a("{n,number}",{n:r},e)},c.capital=function(r,e,t){return c(r,e,t).replace(/(^|\s)\S/,function(r){return r.toUpperCase()})},c.title=function(r,e,t){return c(r,e,t).replace(/(^|\s)\S/g,function(r){return r.toUpperCase()})},c.upper=function(r,e,t){return c(r,e,t).toLocaleUpperCase()},c.lower=function(r,e,t){return c(r,e,t).toLocaleLowerCase()};var f=n.writable({});f.subscribe(function(r){t=r});var s=n.writable({});s.subscribe(function(r){e=r});var l=n.derived(s,function(){return c});exports.locale=s,exports._=l,exports.format=l,exports.dictionary=f;
//# sourceMappingURL=i18n.js.map

6

package.json
{
"name": "svelte-i18n",
"version": "1.0.1-beta",
"version": "1.0.2-beta",
"license": "MIT",
"main": "dist/i18n.js",
"module": "dist/index.mjs",
"module": "dist/i18n.mjs",
"types": "src/index.d.ts",

@@ -19,3 +19,3 @@ "description": "Internationalization library for Svelte",

"scripts": {
"build": "microbundle --format=cjs,es",
"build": "microbundle --format=cjs,es --no-sourcemap",
"start": "microbundle watch --format=cjs,es",

@@ -22,0 +22,0 @@ "test": "jest --no-cache --verbose",

Sorry, the diff of this file is not supported yet

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