@reboot-dev/reboot 0.38.1 → 0.38.2

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "@bufbuild/protobuf": "1.3.2",
4
4
  "@bufbuild/protoplugin": "1.3.2",
5
5
  "@bufbuild/protoc-gen-es": "1.3.2",
6
- "@reboot-dev/reboot-api": "0.38.1",
6
+ "@reboot-dev/reboot-api": "0.38.2",
7
7
  "chalk": "^4.1.2",
8
8
  "node-addon-api": "^7.0.0",
9
9
  "node-gyp": ">=10.2.0",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "type": "module",
22
22
  "name": "@reboot-dev/reboot",
23
- "version": "0.38.1",
23
+ "version": "0.38.2",
24
24
  "description": "npm package for Reboot",
25
25
  "scripts": {
26
26
  "preinstall": "node preinstall.cjs",
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env tsx
2
- import { toPascalCase, toSnakeCase, ZOD_ERROR_NAMES, } from "@reboot-dev/reboot-api";
2
+ import { toCamelCase, toPascalCase, toSnakeCase, ZOD_ERROR_NAMES, } from "@reboot-dev/reboot-api";
3
3
  import { strict as assert } from "assert";
4
4
  import chalk from "chalk";
5
5
  import { mkdtemp } from "fs/promises";
@@ -530,7 +530,10 @@ const main = async () => {
530
530
  }
531
531
  proto.write(`service ${typeName}Methods {\n`);
532
532
  for (const methodName in type.methods) {
533
- // TODO: ensure `methodName` is PascalCase.
533
+ if (methodName !== toCamelCase(methodName)) {
534
+ console.error(chalk.stderr.bold.red(`'api.${typeName}' in '${path.join(filesDirectory, file)}' has a method name '${methodName}' that is not camelCase, please rename it to be camelCase (e.g., '${toCamelCase(methodName)}')\n`));
535
+ process.exit(-1);
536
+ }
534
537
  const method = type.methods[methodName];
535
538
  const requestTypeName = `${typeName}${toPascalCase(methodName)}Request`;
536
539
  const responseTypeName = method.response instanceof z.ZodVoid
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const REBOOT_VERSION = "0.38.1";
1
+ export declare const REBOOT_VERSION = "0.38.2";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const REBOOT_VERSION = "0.38.1";
1
+ export const REBOOT_VERSION = "0.38.2";