@ethersproject/basex
Advanced tools
Comparing version 5.4.0 to 5.5.0
@@ -1,2 +0,2 @@ | ||
export declare const version = "basex/5.4.0"; | ||
export declare const version = "basex/5.5.0"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "basex/5.4.0"; | ||
export const version = "basex/5.5.0"; | ||
//# sourceMappingURL=_version.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "basex/5.4.0"; | ||
export declare const version = "basex/5.5.0"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = "basex/5.4.0"; | ||
exports.version = "basex/5.5.0"; | ||
//# sourceMappingURL=_version.js.map |
@@ -47,6 +47,6 @@ "use strict"; | ||
function BaseX(alphabet) { | ||
properties_1.defineReadOnly(this, "alphabet", alphabet); | ||
properties_1.defineReadOnly(this, "base", alphabet.length); | ||
properties_1.defineReadOnly(this, "_alphabetMap", {}); | ||
properties_1.defineReadOnly(this, "_leader", alphabet.charAt(0)); | ||
(0, properties_1.defineReadOnly)(this, "alphabet", alphabet); | ||
(0, properties_1.defineReadOnly)(this, "base", alphabet.length); | ||
(0, properties_1.defineReadOnly)(this, "_alphabetMap", {}); | ||
(0, properties_1.defineReadOnly)(this, "_leader", alphabet.charAt(0)); | ||
// pre-compute lookup table | ||
@@ -58,3 +58,3 @@ for (var i = 0; i < alphabet.length; i++) { | ||
BaseX.prototype.encode = function (value) { | ||
var source = bytes_1.arrayify(value); | ||
var source = (0, bytes_1.arrayify)(value); | ||
if (source.length === 0) { | ||
@@ -116,3 +116,3 @@ return ""; | ||
} | ||
return bytes_1.arrayify(new Uint8Array(bytes.reverse())); | ||
return (0, bytes_1.arrayify)(new Uint8Array(bytes.reverse())); | ||
}; | ||
@@ -119,0 +119,0 @@ return BaseX; |
{ | ||
"author": "Richard Moore <me@ricmoo.com>", | ||
"dependencies": { | ||
"@ethersproject/bytes": "^5.4.0", | ||
"@ethersproject/properties": "^5.4.0" | ||
"@ethersproject/bytes": "^5.5.0", | ||
"@ethersproject/properties": "^5.5.0" | ||
}, | ||
@@ -19,3 +19,3 @@ "description": "Base-X without Buffer.", | ||
], | ||
"gitHead": "c2c0ce75039e7256b287f9a764188d08ed0b7296", | ||
"gitHead": "73a46efea32c3f9a4833ed77896a216e3d3752a0", | ||
"keywords": [ | ||
@@ -41,5 +41,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0x806fdd9027b2f0acd21da73f42aedd802f3dde29fbd9180429b4be0b7b57bf71", | ||
"tarballHash": "0x1a3d6f95552d8ac4c75235b76d2b0f50bc713c3f7c0622c09aac3fe239c7e1a1", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.4.0" | ||
"version": "5.5.0" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "basex/5.4.0"; | ||
export const version = "basex/5.5.0"; |
Sorry, the diff of this file is not supported yet
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
30130