@forwardimpact/libcodegen
Advanced tools
@@ -23,5 +23,9 @@ #!/usr/bin/env node | ||
| const { version: VERSION } = JSON.parse( | ||
| readFileSync(new URL("../package.json", import.meta.url), "utf8"), | ||
| ); | ||
| // `bun build --compile` injects FIT_CODEGEN_VERSION via --define, eliminating | ||
| // the readFileSync branch in the compiled binary (which would ENOENT against | ||
| // the bunfs virtual mount). Source execution falls through to package.json. | ||
| const VERSION = | ||
| process.env.FIT_CODEGEN_VERSION || | ||
| JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")) | ||
| .version; | ||
@@ -28,0 +32,0 @@ const definition = { |
+2
-2
| { | ||
| "name": "@forwardimpact/libcodegen", | ||
| "version": "0.1.50", | ||
| "version": "0.1.52", | ||
| "description": "Protobuf code generation — keep types in sync with proto definitions without hand-writing.", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
| "@forwardimpact/libutil": "^0.1.64", | ||
| "@grpc/proto-loader": "^0.8.0", | ||
| "@grpc/proto-loader": "^0.8.1", | ||
| "mustache": "^4.2.0", | ||
@@ -55,0 +55,0 @@ "protobufjs": "^7.5.6", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
57865
0.47%1036
0.39%1
Infinity%Updated