@bcts/dcbor 1.0.0-beta.1 → 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 CHANGED
@@ -4829,7 +4829,7 @@ const binary64ToNumber = (data) => {
4829
4829
  * Convert number to 32-bit float binary (big-endian).
4830
4830
  */
4831
4831
  const numberToBinary32 = (n) => {
4832
- const data = new Uint8Array(4);
4832
+ const data = /* @__PURE__ */ new Uint8Array(4);
4833
4833
  import_byte_data.packTo(n, {
4834
4834
  bits: 32,
4835
4835
  fp: true,
@@ -4851,7 +4851,7 @@ const binary32ToNumber = (data) => {
4851
4851
  * Convert number to 16-bit float binary (big-endian).
4852
4852
  */
4853
4853
  const numberToBinary16 = (n) => {
4854
- const data = new Uint8Array(2);
4854
+ const data = /* @__PURE__ */ new Uint8Array(2);
4855
4855
  import_byte_data.packTo(n, {
4856
4856
  bits: 16,
4857
4857
  fp: true,
@@ -8278,7 +8278,7 @@ function stripLeadingZeros(bytes) {
8278
8278
  * @returns Big-endian byte representation
8279
8279
  */
8280
8280
  function bigintToBytes(value) {
8281
- if (value === 0n) return new Uint8Array(0);
8281
+ if (value === 0n) return /* @__PURE__ */ new Uint8Array(0);
8282
8282
  const hex = value.toString(16);
8283
8283
  const padded = hex.length % 2 !== 0 ? `0${hex}` : hex;
8284
8284
  const bytes = new Uint8Array(padded.length / 2);