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 3.0.0-pre.8 to 3.0.0-pre.9

28

i18n-number.js

@@ -466,3 +466,11 @@ /**

_setupObservers: function () {
this.textNode = dom(this).childNodes[0];
let i = 0;
do {
this.textNode = dom(this).childNodes[i++];
if (!this.textNode) {
this.textNode = dom(this).childNodes[0];
break;
}
}
while (this.textNode.nodeType !== this.textNode.TEXT_NODE);
if (!this.textNode) {

@@ -476,9 +484,15 @@ dom(this).appendChild(document.createTextNode(''));

this.nodeObserver = dom(this).observeNodes(function (info) {
if (info.addedNodes[0] &&
info.addedNodes[0].nodeType === info.addedNodes[0].TEXT_NODE) {
this.textNode = info.addedNodes[0];
this.raw = this.textNode.data;
//console.log('i18n-number: text node added with ' + this.raw);
this.observer.observe(this.textNode, { characterData: true });
let i = 0;
do {
if (info.addedNodes[i] &&
info.addedNodes[i].nodeType === info.addedNodes[i].TEXT_NODE) {
this.textNode = info.addedNodes[i];
this.raw = this.textNode.data;
//console.log('i18n-number: text node added with ' + this.raw);
this.observer.observe(this.textNode, { characterData: true });
break;
}
i++;
}
while (i < info.addedNodes.length);
}.bind(this));

@@ -485,0 +499,0 @@ },

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

"name": "i18n-number",
"version": "3.0.0-pre.8",
"version": "3.0.0-pre.9",
"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