Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18n-number

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-number - npm Package Compare versions

Comparing version 4.0.0-pre.6 to 4.0.0

CHANGELOG.md

31

i18n-number.js

@@ -119,2 +119,8 @@ /**

/**
* options property for options object for Intl.NumberFormat
* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat)
*
* Note: _optionsChanged() is called on every change
*/
get options() {

@@ -128,2 +134,7 @@ return this._options;

/**
* raw property to store a raw number string from textContent
*
* Note: _rawChanged() is called on every change
*/
get raw() {

@@ -137,2 +148,9 @@ return this._raw;

/**
* Offset for number
*
* Note:
* - Calculation: number = rawNumber - offset
* - _offsetChanged() is called on every change
*/
get offset() {

@@ -146,2 +164,11 @@ return this._offset;

/**
* connectedCallback for custom elements
*
* Tasks:
* - Sets this.lang if not set
* - Sets up observers if not set up
* - Sets this.raw from this.textNode.data
* - Triggers rendering
*/
connectedCallback() {

@@ -159,3 +186,3 @@ if (!this.lang) {

/**
* Set up observers of textContent mutations
* Sets up observers of textContent mutations
*/

@@ -302,3 +329,3 @@ _setupObservers() {

/**
* Get a cached Intl.NumberFormat object
* Gets a cached Intl.NumberFormat object
*

@@ -305,0 +332,0 @@ * @param {string} lang Locale for formatting.

2

package.json

@@ -18,3 +18,3 @@ {

"name": "i18n-number",
"version": "4.0.0-pre.6",
"version": "4.0.0",
"main": "i18n-number.js",

@@ -21,0 +21,0 @@ "directories": {

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