@forwardimpact/librpc 0.1.98 → 0.1.101
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/bin/fit-unary.js +9 -3
- package/package.json +4 -3
package/bin/fit-unary.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import "@forwardimpact/libpreflight/node22";
|
|
3
|
+
|
|
2
4
|
import { readFileSync } from "node:fs";
|
|
3
5
|
import { createCli } from "@forwardimpact/libcli";
|
|
4
6
|
import { createClient, createTracer } from "@forwardimpact/librpc";
|
|
5
7
|
import { createLogger } from "@forwardimpact/libtelemetry";
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
)
|
|
9
|
+
// `bun build --compile` injects FIT_UNARY_VERSION via --define, eliminating
|
|
10
|
+
// the readFileSync branch in the compiled binary (which would ENOENT against
|
|
11
|
+
// the bunfs virtual mount). Source execution falls through to package.json.
|
|
12
|
+
const VERSION =
|
|
13
|
+
process.env.FIT_UNARY_VERSION ||
|
|
14
|
+
JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"))
|
|
15
|
+
.version;
|
|
10
16
|
|
|
11
17
|
const definition = {
|
|
12
18
|
name: "fit-unary",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forwardimpact/librpc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.101",
|
|
4
4
|
"description": "gRPC server and client framework — ship service endpoints without reimplementing transport.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"grpc",
|
|
@@ -49,16 +49,17 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@forwardimpact/libcli": "^0.1.0",
|
|
51
51
|
"@forwardimpact/libconfig": "^0.1.58",
|
|
52
|
+
"@forwardimpact/libpreflight": "^0.1.0",
|
|
52
53
|
"@forwardimpact/libtelemetry": "^0.1.22",
|
|
53
54
|
"@forwardimpact/libutil": "^0.1.60",
|
|
54
|
-
"@grpc/grpc-js": "^1.14.
|
|
55
|
+
"@grpc/grpc-js": "^1.14.4"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@forwardimpact/libharness": "^0.1.14"
|
|
58
59
|
},
|
|
59
60
|
"engines": {
|
|
60
61
|
"bun": ">=1.2.0",
|
|
61
|
-
"node": ">=
|
|
62
|
+
"node": ">=22.0.0"
|
|
62
63
|
},
|
|
63
64
|
"publishConfig": {
|
|
64
65
|
"access": "public"
|