@bcts/dcbor 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -4830,7 +4830,7 @@ var bctsDcbor = (function(exports) {
|
|
|
4830
4830
|
* Convert number to 32-bit float binary (big-endian).
|
|
4831
4831
|
*/
|
|
4832
4832
|
const numberToBinary32 = (n) => {
|
|
4833
|
-
const data = new Uint8Array(4);
|
|
4833
|
+
const data = /* @__PURE__ */ new Uint8Array(4);
|
|
4834
4834
|
import_byte_data.packTo(n, {
|
|
4835
4835
|
bits: 32,
|
|
4836
4836
|
fp: true,
|
|
@@ -4852,7 +4852,7 @@ var bctsDcbor = (function(exports) {
|
|
|
4852
4852
|
* Convert number to 16-bit float binary (big-endian).
|
|
4853
4853
|
*/
|
|
4854
4854
|
const numberToBinary16 = (n) => {
|
|
4855
|
-
const data = new Uint8Array(2);
|
|
4855
|
+
const data = /* @__PURE__ */ new Uint8Array(2);
|
|
4856
4856
|
import_byte_data.packTo(n, {
|
|
4857
4857
|
bits: 16,
|
|
4858
4858
|
fp: true,
|
|
@@ -8279,7 +8279,7 @@ var bctsDcbor = (function(exports) {
|
|
|
8279
8279
|
* @returns Big-endian byte representation
|
|
8280
8280
|
*/
|
|
8281
8281
|
function bigintToBytes(value) {
|
|
8282
|
-
if (value === 0n) return new Uint8Array(0);
|
|
8282
|
+
if (value === 0n) return /* @__PURE__ */ new Uint8Array(0);
|
|
8283
8283
|
const hex = value.toString(16);
|
|
8284
8284
|
const padded = hex.length % 2 !== 0 ? `0${hex}` : hex;
|
|
8285
8285
|
const bytes = new Uint8Array(padded.length / 2);
|