silgi 0.39.6 → 0.39.7

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.39.6";
4
+ const version = "0.39.7";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -1030,8 +1030,8 @@ function getEventContext(event) {
1030
1030
  function createSchema(params) {
1031
1031
  const { path, method, setup } = params;
1032
1032
  const result = {};
1033
- if (!method || method.length === 0) {
1034
- return {};
1033
+ if (!method) {
1034
+ throw new Error("Method is required createSchema " + path);
1035
1035
  }
1036
1036
  for (let i = 0; i < method.length; i++) {
1037
1037
  const methodName = method[i];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.39.6",
4
+ "version": "0.39.7",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {