@adraffy/ens-normalize
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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", |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
28027
263
0
0