@replit/river-codegen
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -257,3 +257,4 @@ import { mkdir, mkdtemp, readFile, rm, unlink, writeFile, } from "fs/promises"; | ||
} | ||
messageChunks.push(` ${toCamelCase(oneOf.name)}: Type.Union([`); | ||
// Oneofs are not required to have a value. | ||
messageChunks.push(` ${toCamelCase(oneOf.name)}: Type.Optional(Type.Union([`); | ||
for (const [fieldIndex, field] of fields.entries()) { | ||
@@ -274,3 +275,3 @@ const fieldComment = leadingComments.get([ | ||
} | ||
messageChunks.push(`]),`); | ||
messageChunks.push(`])),`); | ||
} | ||
@@ -277,0 +278,0 @@ if (recursiveFields.size > 0) { |
{ | ||
"name": "@replit/river-codegen", | ||
"description": "codegenning river from grpc", | ||
"version": "0.0.25", | ||
"scripts": { | ||
"codegen": "tsx ./src/cli.ts", | ||
"prepack": "pnpm build", | ||
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc-alias", | ||
"test": "vitest run", | ||
"release": "npm publish --access public" | ||
}, | ||
"version": "0.0.26", | ||
"type": "module", | ||
@@ -33,3 +26,9 @@ "bin": { | ||
"tsx": "^4.6.1" | ||
}, | ||
"scripts": { | ||
"codegen": "tsx ./src/cli.ts", | ||
"build": "rm -rf ./dist && tsc -p tsconfig.json && tsc-alias", | ||
"test": "vitest run", | ||
"release": "npm publish --access public" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39337
461
1