@blake.regalia/belt
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -339,10 +339,11 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
const A_CHARS_BASE58 = Array(256).fill(-1); | ||
{ | ||
const A_CHARS_BASE58 = /*#__PURE__*/ (() => { | ||
const a_out = Array(256).fill(-1); | ||
let i_char = 0; | ||
// eslint-disable-next-line prefer-const | ||
for (let s_char of SX_CHARS_BASE58) { | ||
A_CHARS_BASE58[s_char.charCodeAt(0)] = i_char++; | ||
a_out[s_char.charCodeAt(0)] = i_char++; | ||
} | ||
} | ||
return a_out; | ||
})(); | ||
const buffer_to_base58 = (atu8_buffer) => { | ||
@@ -349,0 +350,0 @@ const a_out = []; |
@@ -5,3 +5,3 @@ /** | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
export const ATU8_NIL = new Uint8Array(0); | ||
export const ATU8_NIL = /*#__PURE__*/ new Uint8Array(0); | ||
/** | ||
@@ -8,0 +8,0 @@ * The frequently-used "no-operation" function |
@@ -309,10 +309,11 @@ import { is_dict } from './belt'; | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
const A_CHARS_BASE58 = Array(256).fill(-1); | ||
{ | ||
const A_CHARS_BASE58 = /*#__PURE__*/ (() => { | ||
const a_out = Array(256).fill(-1); | ||
let i_char = 0; | ||
// eslint-disable-next-line prefer-const | ||
for (let s_char of SX_CHARS_BASE58) { | ||
A_CHARS_BASE58[s_char.charCodeAt(0)] = i_char++; | ||
a_out[s_char.charCodeAt(0)] = i_char++; | ||
} | ||
} | ||
return a_out; | ||
})(); | ||
export const buffer_to_base58 = (atu8_buffer) => { | ||
@@ -319,0 +320,0 @@ const a_out = []; |
{ | ||
"name": "@blake.regalia/belt", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"repository": "github:blake-regalia/belt", | ||
@@ -28,3 +28,3 @@ "license": "ISC", | ||
"devDependencies": { | ||
"@blake.regalia/eslint-config-elite": "^0.2.4", | ||
"@blake.regalia/eslint-config-elite": "^0.2.6", | ||
"@blake.regalia/tsconfig": "^0.1.2", | ||
@@ -31,0 +31,0 @@ "@rollup/plugin-typescript": "^11.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
156371
3065
0