idna-uts46-hx
Advanced tools
Comparing version 2.1.2 to 2.2.0
{ | ||
"name": "idna-uts46-hx", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "A UTS #46 processing algorithm for IDNA2008 strings", | ||
@@ -5,0 +5,0 @@ "main": "uts46.js", |
@@ -18,4 +18,6 @@ (function(root, factory) { | ||
var mapped = []; | ||
for (var ch of label) { | ||
var cp = ch.codePointAt(0); | ||
var chars = punycode.ucs2.decode(label); | ||
for (var i = 0; i < chars.length; i++) { | ||
var cp = chars[i]; | ||
var ch = punycode.ucs2.encode([chars[i]]); | ||
var composite = idna_map.mapChar(cp); | ||
@@ -22,0 +24,0 @@ var flags = (composite >> 23); |
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
199039
1562