@forwardimpact/librpc 0.1.98 → 0.1.100

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/bin/fit-unary.js +7 -3
  2. package/package.json +2 -2
package/bin/fit-unary.js CHANGED
@@ -4,9 +4,13 @@ import { createCli } from "@forwardimpact/libcli";
4
4
  import { createClient, createTracer } from "@forwardimpact/librpc";
5
5
  import { createLogger } from "@forwardimpact/libtelemetry";
6
6
 
7
- const { version: VERSION } = JSON.parse(
8
- readFileSync(new URL("../package.json", import.meta.url), "utf8"),
9
- );
7
+ // `bun build --compile` injects FIT_UNARY_VERSION via --define, eliminating
8
+ // the readFileSync branch in the compiled binary (which would ENOENT against
9
+ // the bunfs virtual mount). Source execution falls through to package.json.
10
+ const VERSION =
11
+ process.env.FIT_UNARY_VERSION ||
12
+ JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"))
13
+ .version;
10
14
 
11
15
  const definition = {
12
16
  name: "fit-unary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/librpc",
3
- "version": "0.1.98",
3
+ "version": "0.1.100",
4
4
  "description": "gRPC server and client framework — ship service endpoints without reimplementing transport.",
5
5
  "keywords": [
6
6
  "grpc",
@@ -51,7 +51,7 @@
51
51
  "@forwardimpact/libconfig": "^0.1.58",
52
52
  "@forwardimpact/libtelemetry": "^0.1.22",
53
53
  "@forwardimpact/libutil": "^0.1.60",
54
- "@grpc/grpc-js": "^1.14.3"
54
+ "@grpc/grpc-js": "^1.14.4"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@forwardimpact/libharness": "^0.1.14"