@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/neatd.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
startDaemon
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QZRDQ7WX.js";
|
|
5
5
|
import {
|
|
6
6
|
listProjects,
|
|
7
7
|
registryPath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XS4CGNRO.js";
|
|
9
9
|
import {
|
|
10
10
|
BindAuthorityError,
|
|
11
11
|
__require
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
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
|
-
|
|
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)
|
|
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
|
}
|