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

idna-uts46-hx

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idna-uts46-hx - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

2

package.json
{
"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);

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