Socket
Socket
Sign inDemoInstall

fast-number-formatter

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.0.4

2

lib/fastnumberformatter.umd.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).fastnumberformatter={})}(this,(function(t){"use strict";function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var i,o,a,u,c="en-us",m={},s={},l=function(t){return t.match(/\w+-u-nu-\w+/i)?t:t+"-u-nu-latn"},f=function(t,e){return e?new Intl.NumberFormat(l(t),e):new Intl.NumberFormat(l(t))},p=function(t,e){s[t]||(s[t]={});var n=function(t){if(!(t.localeMatcher||t.maximumFractionDigits||t.minimumFractionDigits||t.notation||t.style||t.unitDisplay))return"noOptions";var e="";return t.localeMatcher&&(e=t.localeMatcher),t.maximumFractionDigits&&(e+=t.maximumFractionDigits),t.minimumFractionDigits&&(e+=t.minimumFractionDigits),t.style&&(e+=t.style),t.unitDisplay&&(e+=t.unitDisplay),t.notation&&(e+=t.notation),e}(e);return s[t][n]||(s[t][n]="noOptions"===n?f(t):f(t,e)),s[t][n]},b=function(t,e){var n=e;return n||(n=c),p(n,t)},y=function(t,e){return b(t,e)},g=function(t,e){var n=r({},m);return t&&(n.maximumFractionDigits=t,n.minimumFractionDigits=t),y(n,e)};(i=t.LocaleMatcher||(t.LocaleMatcher={})).lookup="lookup",i.bestFit="best fit",(o=t.Style||(t.Style={})).decimal="decimal",o.currency="currency",o.percent="percent",o.unit="unit",(a=t.UnitDisplay||(t.UnitDisplay={})).long="long",a.short="short",a.narrow="narrow",(u=t.Notation||(t.Notation={})).standard="standard",u.scientific="scientific",u.engineering="engineering",u.compact="compact",t.formatNumber=function(t,e){return g(e).format(t)},t.getCustomNumberFormatter=y,t.getNumberFormatter=g,t.getWildcardNumberFormatter=b,t.setCurrentCulture=function(t){var e=t.toLowerCase();c!==e&&(!function(t){if(2!==t.length&&t.length<5||!t.match(/^[a-z]{2}(-[a-z]{2})?(-u-nu-[a-z]+)?$/i)){var e=r({},m);p(t,e).format(0)}}(e),c=e)},t.setGlobalDefaultOptions=function(t){t&&(m=t)},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).fastnumberformatter={})}(this,(function(t){"use strict";function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var i,o,a,u,c="en-us",l={},s={},m=function(t){return t.match(/\w+-u-nu-\w+/i)?t:t+"-u-nu-latn"},f=function(t,e){return e?new Intl.NumberFormat(m(t),e):new Intl.NumberFormat(m(t))},p=function(t,e){s[t]||(s[t]={});var n=function(t){if(!(t.localeMatcher||t.maximumFractionDigits||t.minimumFractionDigits||t.notation||t.style||t.unitDisplay))return"noOptions";var e="";return t.localeMatcher&&(e=t.localeMatcher),t.maximumFractionDigits&&(e+=t.maximumFractionDigits),t.minimumFractionDigits&&(e+=t.minimumFractionDigits),t.style&&(e+=t.style),t.unitDisplay&&(e+=t.unitDisplay),t.notation&&(e+=t.notation),e}(e);return s[t][n]||(s[t][n]="noOptions"===n?f(t):f(t,e)),s[t][n]},b=function(t,e){var n=e;return n||(n=c),p(n,t)},g=function(t,e){return b(t,e)},y=function(t,e){var n=r({},l);return t&&(n.maximumFractionDigits=t,n.minimumFractionDigits=t),g(n,e)};(i=t.LocaleMatcher||(t.LocaleMatcher={})).lookup="lookup",i.bestFit="best fit",(o=t.Style||(t.Style={})).decimal="decimal",o.currency="currency",o.percent="percent",o.unit="unit",(a=t.UnitDisplay||(t.UnitDisplay={})).long="long",a.short="short",a.narrow="narrow",(u=t.Notation||(t.Notation={})).standard="standard",u.scientific="scientific",u.engineering="engineering",u.compact="compact",t.formatNumber=function(t,e){return y(e).format(t)},t.getCustomNumberFormatter=g,t.getNumberFormatter=y,t.getWildcardNumberFormatter=b,t.setCurrentCulture=function(t){var e=t.toLowerCase();c!==e&&(!function(t){if(2!==t.length&&t.length<5||!t.match(/^[a-z]{2}(-[a-z]{2})?(-u-nu-[a-z]+)?$/i)){var e=r({},l);p(t,e).format(0)}}(e),c=e)},t.setGlobalDefaultOptions=function(t){t&&(l=t)},Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "fast-number-formatter",
"description": "Fast easy number formatting",
"version": "2.0.3",
"version": "2.0.4",
"license": "MIT",

@@ -24,4 +24,4 @@ "author": "Søren Ullidtz <sullidtz@gmail.com>",

"devDependencies": {
"semantic-release": "^17.1.1",
"semantic-release-monorepo": "^7.0.2"
"semantic-release": "17.1.1",
"semantic-release-monorepo": "7.0.2"
},

@@ -28,0 +28,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc