@neat.is/core 0.4.13 → 0.4.14
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/{chunk-HVF4S7J3.js → chunk-6CO7C4IU.js} +6 -3
- package/dist/{chunk-HVF4S7J3.js.map → chunk-6CO7C4IU.js.map} +1 -1
- package/dist/{chunk-3QCRUEQD.js → chunk-GHPHVXYM.js} +5 -3
- package/dist/chunk-GHPHVXYM.js.map +1 -0
- package/dist/{chunk-TWNJX26R.js → chunk-QZRDQ7WX.js} +3 -3
- package/dist/{chunk-5W7H35JJ.js → chunk-XS4CGNRO.js} +2 -2
- package/dist/cli.cjs +17 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/neatd.cjs +7 -2
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +3 -3
- package/dist/{otel-grpc-VSPMP3OS.js → otel-grpc-QAISVAY5.js} +3 -3
- package/dist/server.cjs +7 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +3 -3
- package/package.json +6 -2
- package/dist/chunk-3QCRUEQD.js.map +0 -1
- /package/dist/{chunk-TWNJX26R.js.map → chunk-QZRDQ7WX.js.map} +0 -0
- /package/dist/{chunk-5W7H35JJ.js.map → chunk-XS4CGNRO.js.map} +0 -0
- /package/dist/{otel-grpc-VSPMP3OS.js.map → otel-grpc-QAISVAY5.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -133,7 +133,9 @@ __export(otel_grpc_exports, {
|
|
|
133
133
|
});
|
|
134
134
|
function bytesToHex(buf) {
|
|
135
135
|
if (!buf) return "";
|
|
136
|
-
|
|
136
|
+
if (Buffer.isBuffer(buf)) return buf.toString("hex");
|
|
137
|
+
if (buf instanceof Uint8Array) return Buffer.from(buf).toString("hex");
|
|
138
|
+
return "";
|
|
137
139
|
}
|
|
138
140
|
function nanosToString(n) {
|
|
139
141
|
if (n === void 0 || n === null) return "0";
|
|
@@ -406,7 +408,10 @@ function encodeProtobufResponseBody() {
|
|
|
406
408
|
}
|
|
407
409
|
async function decodeProtobufBody(buf) {
|
|
408
410
|
const Type = loadProtobufDecoder();
|
|
409
|
-
const decoded = Type.decode(buf)
|
|
411
|
+
const decoded = Type.toObject(Type.decode(buf), {
|
|
412
|
+
longs: String,
|
|
413
|
+
enums: Number
|
|
414
|
+
});
|
|
410
415
|
const { reshapeGrpcRequest: reshapeGrpcRequest2 } = await Promise.resolve().then(() => (init_otel_grpc(), otel_grpc_exports));
|
|
411
416
|
return reshapeGrpcRequest2(decoded);
|
|
412
417
|
}
|