@neat.is/core 0.4.13 → 0.4.15

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/neatd.js CHANGED
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startDaemon
4
- } from "./chunk-TWNJX26R.js";
4
+ } from "./chunk-VMLWUK7W.js";
5
5
  import {
6
6
  listProjects,
7
7
  registryPath
8
- } from "./chunk-5W7H35JJ.js";
8
+ } from "./chunk-XS4CGNRO.js";
9
9
  import {
10
10
  BindAuthorityError,
11
11
  __require
12
- } from "./chunk-HVF4S7J3.js";
12
+ } from "./chunk-6CO7C4IU.js";
13
13
 
14
14
  // src/neatd.ts
15
15
  import { promises as fs } from "fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  reshapeGrpcRequest,
3
3
  startOtelGrpcReceiver
4
- } from "./chunk-3QCRUEQD.js";
5
- import "./chunk-HVF4S7J3.js";
4
+ } from "./chunk-GHPHVXYM.js";
5
+ import "./chunk-6CO7C4IU.js";
6
6
  export {
7
7
  reshapeGrpcRequest,
8
8
  startOtelGrpcReceiver
9
9
  };
10
- //# sourceMappingURL=otel-grpc-VSPMP3OS.js.map
10
+ //# sourceMappingURL=otel-grpc-QAISVAY5.js.map
package/dist/server.cjs CHANGED
@@ -132,7 +132,9 @@ __export(otel_grpc_exports, {
132
132
  });
133
133
  function bytesToHex(buf) {
134
134
  if (!buf) return "";
135
- return Buffer.isBuffer(buf) ? buf.toString("hex") : "";
135
+ if (Buffer.isBuffer(buf)) return buf.toString("hex");
136
+ if (buf instanceof Uint8Array) return Buffer.from(buf).toString("hex");
137
+ return "";
136
138
  }
137
139
  function nanosToString(n) {
138
140
  if (n === void 0 || n === null) return "0";
@@ -405,7 +407,10 @@ function encodeProtobufResponseBody() {
405
407
  }
406
408
  async function decodeProtobufBody(buf) {
407
409
  const Type = loadProtobufDecoder();
408
- const decoded = Type.decode(buf).toJSON();
410
+ const decoded = Type.toObject(Type.decode(buf), {
411
+ longs: String,
412
+ enums: Number
413
+ });
409
414
  const { reshapeGrpcRequest: reshapeGrpcRequest2 } = await Promise.resolve().then(() => (init_otel_grpc(), otel_grpc_exports));
410
415
  return reshapeGrpcRequest2(decoded);
411
416
  }