@blake.regalia/belt
Advanced tools
Comparing version 0.45.2 to 0.45.3
@@ -33,4 +33,2 @@ "use strict"; | ||
} | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
let f_bytes = (_) => atu8_data.subarray(ib_read, ib_read += xn_value); | ||
let a_parsers = [ | ||
@@ -42,3 +40,3 @@ // uint | ||
// byte string | ||
f_bytes, | ||
(_) => atu8_data.subarray(ib_read, ib_read += xn_value), | ||
// text string | ||
@@ -64,12 +62,12 @@ (_) => (0, data_js_1.bytes_to_text)(a_parsers[2]()), | ||
// tagged item | ||
(__) => [ | ||
(z_payload) => [ | ||
// date/time string | ||
(_) => (0, data_js_1.bytes_to_text)(f_bytes()), | ||
(_) => (0, data_js_1.bytes_to_text)(z_payload), | ||
// epoch-based date/time as number of seconds (integer or float) | ||
(xn_timestamp = 0) => ([xn_timestamp, ib_read] = (0, exports.cbor_decode_trivial)(atu8_data, ib_read), xn_timestamp), | ||
(_) => z_payload, | ||
// unsigned bigint | ||
(_) => (0, data_js_1.bytes_to_biguint_be)(f_bytes()), | ||
(_) => (0, data_js_1.bytes_to_biguint_be)(z_payload), | ||
// negative bigint | ||
(_) => -(0, data_js_1.bytes_to_biguint_be)(f_bytes()) - 1n, | ||
][xc_additional](), | ||
(_) => -(0, data_js_1.bytes_to_biguint_be)(z_payload) - 1n, | ||
][xc_additional]([z_payload, ib_read] = (0, exports.cbor_decode_trivial)(atu8_data, ib_read)), | ||
// major type 7 | ||
@@ -76,0 +74,0 @@ (__) => [ |
@@ -30,4 +30,2 @@ /* eslint-disable prefer-const, no-sequences, @typescript-eslint/naming-convention */ | ||
} | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
let f_bytes = (_) => atu8_data.subarray(ib_read, ib_read += xn_value); | ||
let a_parsers = [ | ||
@@ -39,3 +37,3 @@ // uint | ||
// byte string | ||
f_bytes, | ||
(_) => atu8_data.subarray(ib_read, ib_read += xn_value), | ||
// text string | ||
@@ -61,12 +59,12 @@ (_) => bytes_to_text(a_parsers[2]()), | ||
// tagged item | ||
(__) => [ | ||
(z_payload) => [ | ||
// date/time string | ||
(_) => bytes_to_text(f_bytes()), | ||
(_) => bytes_to_text(z_payload), | ||
// epoch-based date/time as number of seconds (integer or float) | ||
(xn_timestamp = 0) => ([xn_timestamp, ib_read] = cbor_decode_trivial(atu8_data, ib_read), xn_timestamp), | ||
(_) => z_payload, | ||
// unsigned bigint | ||
(_) => bytes_to_biguint_be(f_bytes()), | ||
(_) => bytes_to_biguint_be(z_payload), | ||
// negative bigint | ||
(_) => -bytes_to_biguint_be(f_bytes()) - 1n, | ||
][xc_additional](), | ||
(_) => -bytes_to_biguint_be(z_payload) - 1n, | ||
][xc_additional]([z_payload, ib_read] = cbor_decode_trivial(atu8_data, ib_read)), | ||
// major type 7 | ||
@@ -73,0 +71,0 @@ (__) => [ |
{ | ||
"name": "@blake.regalia/belt", | ||
"version": "0.45.2", | ||
"version": "0.45.3", | ||
"repository": "github:blake-regalia/belt", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
364687
6907