@pdfme/pdf-lib 6.2.2 → 6.2.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.js CHANGED
@@ -854,7 +854,7 @@ var splitTextIntoShapingRuns = (text) => {
854
854
  return runs;
855
855
  };
856
856
  //#endregion
857
- //#region \0@oxc-project+runtime@0.147.0/helpers/esm/typeof.js
857
+ //#region \0@oxc-project+runtime@0.151.0/helpers/esm/typeof.js
858
858
  function _typeof(o) {
859
859
  "@babel/helpers - typeof";
860
860
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -864,7 +864,7 @@ function _typeof(o) {
864
864
  }, _typeof(o);
865
865
  }
866
866
  //#endregion
867
- //#region \0@oxc-project+runtime@0.147.0/helpers/esm/toPrimitive.js
867
+ //#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPrimitive.js
868
868
  function toPrimitive(t, r) {
869
869
  if ("object" != _typeof(t) || !t) return t;
870
870
  var e = t[Symbol.toPrimitive];
@@ -876,13 +876,13 @@ function toPrimitive(t, r) {
876
876
  return ("string" === r ? String : Number)(t);
877
877
  }
878
878
  //#endregion
879
- //#region \0@oxc-project+runtime@0.147.0/helpers/esm/toPropertyKey.js
879
+ //#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPropertyKey.js
880
880
  function toPropertyKey(t) {
881
881
  var i = toPrimitive(t, "string");
882
882
  return "symbol" == _typeof(i) ? i : i + "";
883
883
  }
884
884
  //#endregion
885
- //#region \0@oxc-project+runtime@0.147.0/helpers/esm/defineProperty.js
885
+ //#region \0@oxc-project+runtime@0.151.0/helpers/esm/defineProperty.js
886
886
  function _defineProperty(e, r, t) {
887
887
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
888
888
  value: t,
@@ -4845,8 +4845,8 @@ var FlateStream = class extends DecodeStream {
4845
4845
  const numDistCodes = this.getBits(5) + 1;
4846
4846
  const numCodeLenCodes = this.getBits(4) + 4;
4847
4847
  const codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
4848
- let i;
4849
- for (i = 0; i < numCodeLenCodes; ++i) codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
4848
+ let i = 0;
4849
+ for (; i < numCodeLenCodes; ++i) codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
4850
4850
  const codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
4851
4851
  len = 0;
4852
4852
  i = 0;
@@ -4952,8 +4952,8 @@ var FlateStream = class extends DecodeStream {
4952
4952
  generateHuffmanTable(lengths) {
4953
4953
  const n = lengths.length;
4954
4954
  let maxLen = 0;
4955
- let i;
4956
- for (i = 0; i < n; ++i) if (lengths[i] > maxLen) maxLen = lengths[i];
4955
+ let i = 0;
4956
+ for (; i < n; ++i) if (lengths[i] > maxLen) maxLen = lengths[i];
4957
4957
  const size = 1 << maxLen;
4958
4958
  const codes = new Int32Array(size);
4959
4959
  for (let len = 1, code = 0, skip = 2; len <= maxLen; ++len, code <<= 1, skip <<= 1) for (let val = 0; val < n; ++val) if (lengths[val] === len) {
@@ -15840,8 +15840,8 @@ var CipherTransformFactory = class {
15840
15840
  buildObjectKey(num, gen, encryptionKey, isAes = false) {
15841
15841
  const key = new Uint8Array(encryptionKey.length + 9);
15842
15842
  const n = encryptionKey.length;
15843
- let i;
15844
- for (i = 0; i < n; ++i) key[i] = encryptionKey[i];
15843
+ let i = 0;
15844
+ for (; i < n; ++i) key[i] = encryptionKey[i];
15845
15845
  key[i++] = num & 255;
15846
15846
  key[i++] = num >> 8 & 255;
15847
15847
  key[i++] = num >> 16 & 255;