Socket
Socket
Sign inDemoInstall

@adraffy/ens-normalize

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adraffy/ens-normalize - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

ens-normalize.js

@@ -35,6 +35,6 @@ function bytes_from_base64(s) {

this.pos += 2;
return 0x80 + ((x0&0x7F)<<8) + table[pos+1];
return 0x80 + ((x0 & 0x7F) << 8) + table[pos+1];
}
this.pos += 4;
return 0x7F80 + (table[pos+1]<<16) + (table[pos+2]<<8) + table[pos+3];
return 0x7F80 + (table[pos+1] << 16) + (table[pos+2] << 8) + table[pos+3];
}

@@ -187,5 +187,6 @@ read_signed() { // eg. [0,1,2,3...] => [0,-1,1,-2,...]

export function idna(s) {
if (typeof s !== 'string') throw new Error('expected string');
return [...s].map(c => {
let cp = c.codePointAt(0);
if (is_disallowed(cp)) throw new Error(`disallowed: ${cp} 0x${cp.toString(16)} ${c}`);
if (is_disallowed(cp)) throw new Error(`disallowed: 0x${cp.toString(16)}`); //new Error(`disallowed: ${cp} 0x${cp.toString(16)} ${c}`);
if (is_ignored(cp)) return '';

@@ -192,0 +193,0 @@ return get_mapped(cp) ?? c;

{
"name": "@adraffy/ens-normalize",
"version": "1.0.1",
"version": "1.0.2",
"description": "Compact ES6 Ethereum Name Service (ENS) Name Normalizer",
"keywords": ["ENS", "Ethereum"],
"type": "module",
"main": "ens-normalizer.js",
"main": "ens-normalize.js",
"repository": {
"type": "git",
"url": "git+https://github.com/adraffy/ens-normalizer.js.git"
"url": "git+https://github.com/adraffy/ens-normalize.js.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/adraffy/ens-normalizer.js/issues"
"url": "https://github.com/adraffy/ens-normalize.js/issues"
},
"homepage": "https://github.com/adraffy/ens-normalizer.js#readme",
"homepage": "https://github.com/adraffy/ens-normalize.js#readme",
"author": {

@@ -18,0 +18,0 @@ "name" : "raffy.eth",

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