Socket
Socket
Sign inDemoInstall

jschardet

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 3.0.0

2

package.json
{
"name": "jschardet",
"version": "2.3.0",
"version": "3.0.0",
"description": "Character encoding auto-detection in JavaScript (port of python's chardet)",

@@ -5,0 +5,0 @@ "author": "António Afonso",

@@ -312,3 +312,3 @@ /*

"keepEnglishLetter" : false,
"charsetName" : "MacCyrillic"
"charsetName" : "x-mac-cyrillic"
};

@@ -315,0 +315,0 @@

@@ -97,5 +97,3 @@ /*

if( this._mNumOfMBChar < 6 && mbCharRatio <= 0.6 ) {
for( var i = 0; i < this._mNumOfMBChar; i++ ) {
unlike *= Math.pow(ONE_CHAR_PROB, this._mNumOfMBChar);
}
unlike *= Math.pow(ONE_CHAR_PROB, this._mNumOfMBChar);
return 1 - unlike;

@@ -102,0 +100,0 @@ } else {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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