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

utf8

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utf8 - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

10

package.json
{
"name": "utf8",
"version": "2.1.1",
"version": "2.1.2",
"description": "A well-tested UTF-8 encoder/decoder written in JavaScript.",

@@ -31,10 +31,10 @@ "homepage": "https://mths.be/utf8js",

"devDependencies": {
"coveralls": "^2.11.3",
"grunt": "^0.4.5",
"coveralls": "^2.11.14",
"grunt": "^1.0.1",
"grunt-shell": "^1.1.2",
"istanbul": "^0.3.17",
"istanbul": "^0.4.5",
"qunit-extras": "^1.4.2",
"qunitjs": "~1.11.0",
"requirejs": "^2.1.19"
"requirejs": "^2.3.2"
}
}

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

/*! https://mths.be/utf8js v2.0.0 by @mathias */
/*! https://mths.be/utf8js v2.1.2 by @mathias */
;(function(root) {

@@ -160,3 +160,3 @@

if ((byte1 & 0xE0) == 0xC0) {
var byte2 = readContinuationByte();
byte2 = readContinuationByte();
codePoint = ((byte1 & 0x1F) << 6) | byte2;

@@ -188,3 +188,3 @@ if (codePoint >= 0x80) {

byte4 = readContinuationByte();
codePoint = ((byte1 & 0x0F) << 0x12) | (byte2 << 0x0C) |
codePoint = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0C) |
(byte3 << 0x06) | byte4;

@@ -217,3 +217,3 @@ if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) {

var utf8 = {
'version': '2.0.0',
'version': '2.1.2',
'encode': utf8encode,

@@ -220,0 +220,0 @@ 'decode': utf8decode

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