encode-utf8
Advanced tools
Comparing version 1.0.2 to 1.0.3
10
index.js
'use strict' | ||
module.exports = function encodeUtf8 (input) { | ||
const result = [] | ||
const size = input.length | ||
var result = [] | ||
var size = input.length | ||
for (let index = 0; index < size; index++) { | ||
let point = input.charCodeAt(index) | ||
for (var index = 0; index < size; index++) { | ||
var point = input.charCodeAt(index) | ||
if (point >= 0xD800 && point <= 0xDBFF && size > index + 1) { | ||
const second = input.charCodeAt(index + 1) | ||
var second = input.charCodeAt(index + 1) | ||
@@ -13,0 +13,0 @@ if (second >= 0xDC00 && second <= 0xDFFF) { |
{ | ||
"name": "encode-utf8", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -10,5 +10,5 @@ "repository": "LinusU/encode-utf8", | ||
"devDependencies": { | ||
"mocha": "^4.0.1", | ||
"standard": "^10.0.3" | ||
"mocha": "^6.2.2", | ||
"standard": "^14.3.1" | ||
} | ||
} |
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
4033