@rivetkit/engine-envoy-protocol 0.0.0-pr.4856.c68d9cb → 0.0.0-pr.4856.c7f322b

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/index.ts
2
2
  import * as bare from "@rivetkit/bare-ts";
3
+ var DEFAULT_CONFIG = /* @__PURE__ */ bare.Config({});
3
4
  function readId(bc) {
4
5
  return bare.readString(bc);
5
6
  }
@@ -1000,7 +1001,7 @@ function writeActorCommandKeyData(bc, x) {
1000
1001
  }
1001
1002
  }
1002
1003
  function encodeActorCommandKeyData(x, config) {
1003
- const fullConfig = config != null ? bare.Config(config) : bare.DEFAULT_CONFIG;
1004
+ const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG;
1004
1005
  const bc = new bare.ByteCursor(
1005
1006
  new Uint8Array(fullConfig.initialBufferLength),
1006
1007
  fullConfig
@@ -1009,7 +1010,7 @@ function encodeActorCommandKeyData(x, config) {
1009
1010
  return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset);
1010
1011
  }
1011
1012
  function decodeActorCommandKeyData(bytes) {
1012
- const bc = new bare.ByteCursor(bytes, bare.DEFAULT_CONFIG);
1013
+ const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG);
1013
1014
  const result = readActorCommandKeyData(bc);
1014
1015
  if (bc.offset < bc.view.byteLength) {
1015
1016
  throw new bare.BareError(bc.offset, "remaining bytes");
@@ -1533,7 +1534,7 @@ function writeToRivet(bc, x) {
1533
1534
  }
1534
1535
  }
1535
1536
  function encodeToRivet(x, config) {
1536
- const fullConfig = config != null ? bare.Config(config) : bare.DEFAULT_CONFIG;
1537
+ const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG;
1537
1538
  const bc = new bare.ByteCursor(
1538
1539
  new Uint8Array(fullConfig.initialBufferLength),
1539
1540
  fullConfig
@@ -1542,7 +1543,7 @@ function encodeToRivet(x, config) {
1542
1543
  return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset);
1543
1544
  }
1544
1545
  function decodeToRivet(bytes) {
1545
- const bc = new bare.ByteCursor(bytes, bare.DEFAULT_CONFIG);
1546
+ const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG);
1546
1547
  const result = readToRivet(bc);
1547
1548
  if (bc.offset < bc.view.byteLength) {
1548
1549
  throw new bare.BareError(bc.offset, "remaining bytes");
@@ -1695,7 +1696,7 @@ function writeToEnvoy(bc, x) {
1695
1696
  }
1696
1697
  }
1697
1698
  function encodeToEnvoy(x, config) {
1698
- const fullConfig = config != null ? bare.Config(config) : bare.DEFAULT_CONFIG;
1699
+ const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG;
1699
1700
  const bc = new bare.ByteCursor(
1700
1701
  new Uint8Array(fullConfig.initialBufferLength),
1701
1702
  fullConfig
@@ -1704,7 +1705,7 @@ function encodeToEnvoy(x, config) {
1704
1705
  return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset);
1705
1706
  }
1706
1707
  function decodeToEnvoy(bytes) {
1707
- const bc = new bare.ByteCursor(bytes, bare.DEFAULT_CONFIG);
1708
+ const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG);
1708
1709
  const result = readToEnvoy(bc);
1709
1710
  if (bc.offset < bc.view.byteLength) {
1710
1711
  throw new bare.BareError(bc.offset, "remaining bytes");
@@ -1772,7 +1773,7 @@ function writeToEnvoyConn(bc, x) {
1772
1773
  }
1773
1774
  }
1774
1775
  function encodeToEnvoyConn(x, config) {
1775
- const fullConfig = config != null ? bare.Config(config) : bare.DEFAULT_CONFIG;
1776
+ const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG;
1776
1777
  const bc = new bare.ByteCursor(
1777
1778
  new Uint8Array(fullConfig.initialBufferLength),
1778
1779
  fullConfig
@@ -1781,7 +1782,7 @@ function encodeToEnvoyConn(x, config) {
1781
1782
  return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset);
1782
1783
  }
1783
1784
  function decodeToEnvoyConn(bytes) {
1784
- const bc = new bare.ByteCursor(bytes, bare.DEFAULT_CONFIG);
1785
+ const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG);
1785
1786
  const result = readToEnvoyConn(bc);
1786
1787
  if (bc.offset < bc.view.byteLength) {
1787
1788
  throw new bare.BareError(bc.offset, "remaining bytes");
@@ -1827,7 +1828,7 @@ function writeToGateway(bc, x) {
1827
1828
  }
1828
1829
  }
1829
1830
  function encodeToGateway(x, config) {
1830
- const fullConfig = config != null ? bare.Config(config) : bare.DEFAULT_CONFIG;
1831
+ const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG;
1831
1832
  const bc = new bare.ByteCursor(
1832
1833
  new Uint8Array(fullConfig.initialBufferLength),
1833
1834
  fullConfig
@@ -1836,7 +1837,7 @@ function encodeToGateway(x, config) {
1836
1837
  return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset);
1837
1838
  }
1838
1839
  function decodeToGateway(bytes) {
1839
- const bc = new bare.ByteCursor(bytes, bare.DEFAULT_CONFIG);
1840
+ const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG);
1840
1841
  const result = readToGateway(bc);
1841
1842
  if (bc.offset < bc.view.byteLength) {
1842
1843
  throw new bare.BareError(bc.offset, "remaining bytes");
@@ -1879,7 +1880,7 @@ function writeToOutbound(bc, x) {
1879
1880
  }
1880
1881
  }
1881
1882
  function encodeToOutbound(x, config) {
1882
- const fullConfig = config != null ? bare.Config(config) : bare.DEFAULT_CONFIG;
1883
+ const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG;
1883
1884
  const bc = new bare.ByteCursor(
1884
1885
  new Uint8Array(fullConfig.initialBufferLength),
1885
1886
  fullConfig
@@ -1888,7 +1889,7 @@ function encodeToOutbound(x, config) {
1888
1889
  return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset);
1889
1890
  }
1890
1891
  function decodeToOutbound(bytes) {
1891
- const bc = new bare.ByteCursor(bytes, bare.DEFAULT_CONFIG);
1892
+ const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG);
1892
1893
  const result = readToOutbound(bc);
1893
1894
  if (bc.offset < bc.view.byteLength) {
1894
1895
  throw new bare.BareError(bc.offset, "remaining bytes");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/engine-envoy-protocol",
3
- "version": "0.0.0-pr.4856.c68d9cb",
3
+ "version": "0.0.0-pr.4856.c7f322b",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {