From cca7177c70ceb499f66a0db62a6fe7ea70e6fd9f Mon Sep 17 00:00:00 2001 From: Jori Lethinen Date: Mon, 16 Nov 2026 13:04:55 +0200 Subject: [PATCH 1/2] chore: backup #35 fix --- docs/assets/navigation.js | 2 +- docs/assets/search.js | 2 +- docs/classes/index.BytecodecError.html | 203 +++ docs/classes/index.Bytes.html | 60 +- .../base45.bytesFromBase45String.html | 8 +- .../functions/base45.bytesToBase45String.html | 2 +- .../base64.bytesFromBase64String.html | 8 +- .../base64.bytesFromBase64UrlString.html | 8 +- .../functions/base64.bytesToBase64String.html | 2 +- .../base64.bytesToBase64UrlString.html | 2 +- docs/functions/gzip.bytesFromGzipBytes.html | 6 +- docs/functions/gzip.bytesToGzipBytes.html | 6 +- docs/functions/utf8.bytesFromUTF8String.html | 6 +- docs/functions/utf8.bytesToUTF8String.html | 2 +- docs/functions/util.concatBytes.html | 8 +- docs/functions/util.deriveBytes.html | 6 +- docs/functions/util.equalBytes.html | 2 +- docs/functions/util.generateBytes.html | 6 +- docs/functions/util.normalizeBytes.html | 8 +- docs/modules/index.html | 4 +- docs/types/index.ByteSource.html | 2 +- docs/types/index.BytecodecErrorCode.html | 4 +- package-lock.json | 1306 ++++++++++------- package.json | 26 +- src/.errors/class.ts | 25 +- src/base45/index.ts | 124 +- src/base64/index.ts | 112 +- src/gzip/index.ts | 110 +- src/index.ts | 10 +- src/utf8/index.ts | 66 +- src/util/index.ts | 194 +-- 31 files changed, 1457 insertions(+), 873 deletions(-) create mode 100644 docs/classes/index.BytecodecError.html diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 7ed662a..091297d 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "eJyVkt1ugjAUgN+l18RNg8xx6TL3AOqV8aJrj9CstKyURVn27guYSCu1lEsOX7/ze/hFGs4apegTVxAvUYRKrHOUokLSmkP1dI3Pcl1wFKEvJihKFxEiOeNUgUDpoVdcNFQbJYt192arFRNZbzzVgmgmxc3p5O1MSfwX2f6dnGK36YH7aNpxBUnsHkASTx9AEvtLTOKZkx8bQM/vFZ+a4vYkbMyhPdh0qDu4/sED7yKzhpXDNbbRaUv8aFi5bj9c5XW6ITreeqDVAL3NMkHhPOy2Cwe1e1cL4biqbgJH/vliZaRvASIpkHelpHqTFHqVvpSWyObuint+fZkvF3fmrawV8Riv/90mc0i1Pq2GM2qj0y5iv9usHl9s53Ow4zcR6jVJ71XUmnFXw4wHNUykIFg/vNLOYzCeBiko9gN+k8F4TPBdY+4X9YjHk4EAhfVITRblsQmpCsxZM6KzMcfqjv/BCJeb" \ No newline at end of file +window.navigationData = "eJyVk9FuwiAUht+F68ZNUzvXS5e5B1CvjBcM0JJR6IAu6rJ3X1oTAUFKL8WP75z/cLr7BZqcNCjBJ1Qkn4MMNFBXoAS1wC0j6ul6Pql0zUAGvijHoJxlAFWUYUk4KHdGcdZEraSol/2dtZaUH43x0HKkqeA3Z5B3KxX5X+b6N2KM3aU99962Q0WKPDyAIh8/gCKPt1jkkyA/NADDbyUbW+J2JW3MqRlcOtWd3L93IfqQxwtt/GfsTsc94seFNsvuR6i9Xuejw9ETrRYYDUs5Jic/bX+cFLcrgQQm6F1KIY0JMajUzeRSrng6W1gN3WXzNWrotqnzJjAxKn1uHvTTcXdhn19fpvPZnXktWokixuv/YZM99FYfFv7Mu9NxG7bdrBaPv4DeF2CHdyzVa5PRLWs1ZaHAlCUFRoIjqB9ufe+xmEhATCT9IXGTxURM5LuFLC4ySMRzJJxIqAd6cqiIjQtZQ0YvAzoXCzzd/h8ltLNK" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index b2b65d8..60394a1 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "eJytmU2P2zYQhv8LcyUcz1CWZR9TNEXPSXoRjMK1tVuhsuTK8raJsf+9IPXB4XIkU96eksgz7ztDPiQl5ibq6p+L2KY38VdeHsUWpSj3p0xsxR/7SxathBTXuhB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YtVBdjE0xA9ue41XNNL1ll4Xw95+RuB8kZK6MunFMLZIOCGVNRFyNTSwas/JbI49oHMqngtya6y04iEpGJ9JvJRoR1CImSUr5Kw9U/qYlsatBt4X5UdHesRIwsSvQrqxHhAyRKyq/f5tqECSnCkvLbd7obXVINEUG/aoarWiJDdmr0q6WT4eMiWspvvpr/JQwShKGoSUG/xdb+75HMO30F+S0wcrdMGkR3Or9B9Tq8Q0RM+W1KzYUuGRfZ1hDaHvm9bZo7TzI0IqU81v5Bimt6TbI0T8Q+Pry+/gc+WDRo"; \ No newline at end of file diff --git a/docs/classes/index.BytecodecError.html b/docs/classes/index.BytecodecError.html new file mode 100644 index 0000000..01cb4cd --- /dev/null +++ b/docs/classes/index.BytecodecError.html @@ -0,0 +1,203 @@ +BytecodecError | @sovereignbase/bytecodec
+
@sovereignbase/bytecodec + +
    +
    +
    Preparing search index...
    +
    +
    +
    + +

    Class BytecodecError

    +
    +

    Error type used by the bytecodec helpers to expose a stable error code.

    +
    +
    +

    Hierarchy

    +
      +
    • Error +
        +
      • BytecodecError
    +
    +
    +
    +
    Index
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
      +
    • + +
      +

      Creates a new bytecodec error with a package-prefixed message.

      +
      +
      +

      Parameters

      +
        +
      • code: BytecodecErrorCode +

        Stable error code describing the failure category.

        +
      • +
      • Optionalmessage: string +

        Optional human-readable detail appended to the package prefix.

        +
      • +
      • Optionaloptions: ErrorOptions +

        Error options, including the original cause.

        +
      +

      Returns BytecodecError

    +
    + +
    +
    + +
    cause?: unknown
    +
    + + +

    Machine-readable error code for programmatic handling.

    +
    +
    + +
    message: string
    +
    + +
    name: string
    +
    + +
    stack?: string
    +
    + +
    stackTraceLimit: number
    +

    The Error.stackTraceLimit property specifies the number of stack frames +collected by a stack trace (whether generated by new Error().stack or +Error.captureStackTrace(obj)).

    +

    The default value is 10 but may be set to any valid JavaScript number. Changes +will affect any stack trace captured after the value has been changed.

    +

    If set to a non-number value, or set to a negative number, stack traces will +not capture any frames.

    +
    +
    + +
    +
    + +
      +
    • + +
      +

      Creates a .stack property on targetObject, which when accessed returns +a string representing the location in the code at which +Error.captureStackTrace() was called.

      +
      const myObject = {};
      Error.captureStackTrace(myObject);
      myObject.stack; // Similar to `new Error().stack` +
      + +

      The first line of the trace will be prefixed with +${myObject.name}: ${myObject.message}.

      +

      The optional constructorOpt argument accepts a function. If given, all frames +above constructorOpt, including constructorOpt, will be omitted from the +generated stack trace.

      +

      The constructorOpt argument is useful for hiding implementation +details of error generation from the user. For instance:

      +
      function a() {
      b();
      }

      function b() {
      c();
      }

      function c() {
      // Create an error without stack trace to avoid calculating the stack trace twice.
      const { stackTraceLimit } = Error;
      Error.stackTraceLimit = 0;
      const error = new Error();
      Error.stackTraceLimit = stackTraceLimit;

      // Capture the stack trace above function b
      Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
      throw error;
      }

      a(); +
      + +
      +
      +

      Parameters

      +
        +
      • targetObject: object
      • +
      • OptionalconstructorOpt: Function
      +

      Returns void

    +
    + +
    +
    + +
    +
    diff --git a/docs/classes/index.Bytes.html b/docs/classes/index.Bytes.html index 369288d..a108024 100644 --- a/docs/classes/index.Bytes.html +++ b/docs/classes/index.Bytes.html @@ -15,7 +15,7 @@

    Class Bytes

    Convenience wrapper around the codec functions.

    +
  • Defined in src/index.ts:28
  • @@ -56,64 +56,64 @@
    -
    base64: {
        decode: (base64String: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...
    +
    base64: {
        decode: (base64String: string) => Uint8Array<ArrayBuffer>;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • -
      decode: (base64String: string) => Uint8Array
    • +
      decode: (base64String: string) => Uint8Array<ArrayBuffer>
    • encode: (bytes: ByteSource) => string
    +
  • Defined in src/index.ts:34
  • -
    base64url: {
        decode: (base64UrlString: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...
    +
    base64url: {
        decode: (base64UrlString: string) => Uint8Array<ArrayBuffer>;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • -
      decode: (base64UrlString: string) => Uint8Array
    • +
      decode: (base64UrlString: string) => Uint8Array<ArrayBuffer>
    • encode: (bytes: ByteSource) => string
    +
  • Defined in src/index.ts:39
  • -
    gzip: {
        decode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>;
        encode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>;
    } = ...
    +
    gzip: {
        decode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBuffer>>;
        encode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBuffer>>;
    } = ...

    Type Declaration

    • -
      decode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>
    • +
      decode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBuffer>>
    • -
      encode: (bytes: ByteSource) => Promise<Uint8Array<ArrayBufferLike>>
    +
  • Defined in src/index.ts:49
  • -
    utf8: {
        decode: (text: string) => Uint8Array;
        encode: (bytes: ByteSource) => string;
    } = ...
    +
    utf8: {
        decode: (text: string) => Uint8Array<ArrayBuffer>;
        encode: (bytes: ByteSource) => string;
    } = ...

    Type Declaration

    • -
      decode: (text: string) => Uint8Array
    • +
      decode: (text: string) => Uint8Array<ArrayBuffer>
    • encode: (bytes: ByteSource) => string
    +
  • Defined in src/index.ts:44
  • @@ -121,20 +121,20 @@
    • - +

      Parameters

      -

      Returns Uint8Array

    +
  • Defined in src/index.ts:54
    • - +

      Parameters

      @@ -142,9 +142,9 @@

      Parameters

    • base: ByteSource
    • domain: ByteSource
    • byteLength: number
    -

    Returns Promise<Uint8Array<ArrayBufferLike>>

    +
  • Defined in src/index.ts:62
  • Returns boolean

    +
  • Defined in src/index.ts:58
    • - +

      Parameters

      • byteLength: number
      -

      Returns Uint8Array

    +
  • Defined in src/index.ts:70
  • +
  • Defined in src/index.ts:74
  • -

    Returns Uint8Array

    A new Uint8Array containing the decoded bytes.

    +

    Returns Uint8Array<ArrayBuffer>

    A new Uint8Array<ArrayBuffer> containing the decoded bytes.

    +
  • Defined in src/base45/index.ts:46
  • +
  • Defined in src/base45/index.ts:14
  • -

    Returns Uint8Array

    A new Uint8Array containing the decoded bytes.

    +

    Returns Uint8Array<ArrayBuffer>

    A new Uint8Array<ArrayBuffer> containing the decoded bytes.

    +
  • Defined in src/base64/index.ts:44
  • -

    Returns Uint8Array

    A new Uint8Array containing the decoded bytes.

    +

    Returns Uint8Array<ArrayBuffer>

    A new Uint8Array<ArrayBuffer> containing the decoded bytes.

    +
  • Defined in src/base64/index.ts:88
  • +
  • Defined in src/base64/index.ts:11
  • +
  • Defined in src/base64/index.ts:73
  • -

    Returns Promise<Uint8Array<ArrayBufferLike>>

    A promise that resolves to a new Uint8Array containing the decompressed bytes.

    +

    Returns Promise<Uint8Array<ArrayBuffer>>

    A promise that resolves to a new Uint8Array<ArrayBuffer> containing the decompressed bytes.

    +
  • Defined in src/gzip/index.ts:48
  • -

    Returns Promise<Uint8Array<ArrayBufferLike>>

    A promise that resolves to a new Uint8Array containing the gzip payload.

    +

    Returns Promise<Uint8Array<ArrayBuffer>>

    A promise that resolves to a new Uint8Array<ArrayBuffer> containing the gzip payload.

    +
  • Defined in src/gzip/index.ts:12
  • -

    Returns Uint8Array

    A new Uint8Array containing the UTF-8 encoded bytes.

    +

    Returns Uint8Array<ArrayBuffer>

    A new Uint8Array<ArrayBuffer> containing the UTF-8 encoded bytes.

    +
  • Defined in src/utf8/index.ts:42
  • +
  • Defined in src/utf8/index.ts:15
  • -

    Returns Uint8Array

    A new Uint8Array containing the concatenated bytes.

    +

    Returns Uint8Array<ArrayBuffer>

    A new Uint8Array<ArrayBuffer> containing the concatenated bytes.

    +
  • Defined in src/util/index.ts:10
  • -

    Returns Promise<Uint8Array<ArrayBufferLike>>

    A promise that resolves to exactly byteLength derived bytes.

    +

    Returns Promise<Uint8Array<ArrayBuffer>>

    A promise that resolves to exactly byteLength derived bytes.

    @@ -46,7 +46,7 @@
    +
  • Defined in src/util/index.ts:134
  • +
  • Defined in src/util/index.ts:55
  • +
  • Defined in src/util/index.ts:166
  • -

    Returns Uint8Array

    A new Uint8Array copy of input.

    +

    Returns Uint8Array<ArrayBuffer>

    A new Uint8Array<ArrayBuffer> copy of input.

    +
  • Defined in src/util/index.ts:74
  • @@ -30,7 +30,7 @@

    Settings

    On This Page

    A supported byte input source accepted by the codec helpers.

    +
  • Defined in src/index.ts:20
  • +
  • Defined in src/.errors/class.ts:4