Comparing version 2.1.1 to 2.1.2
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12467