@base44-preview/cli 0.0.33-pr.259.052dce4 → 0.0.33-pr.259.5437f09

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/dist/cli/index.js CHANGED
@@ -195145,21 +195145,19 @@ async function parseRecordData(options, exampleHint) {
195145
195145
  try {
195146
195146
  return import_json52.default.parse(options.data);
195147
195147
  } catch {
195148
- throw new InvalidInputError("Invalid JSON in --data flag. Provide valid JSON.", {
195149
- hints: [{ message: `Example: --data '${exampleHint}'` }]
195150
- });
195148
+ throw new InvalidInputError("Invalid JSON in --data flag. Provide valid JSON.", exampleHint ? { hints: [{ message: `Example: --data '${exampleHint}'` }] } : undefined);
195151
195149
  }
195152
195150
  }
195153
195151
  if (options.file) {
195154
195152
  return readJsonFile(options.file);
195155
195153
  }
195156
- throw new InvalidInputError("Provide record data with --data or --file flag", {
195154
+ throw new InvalidInputError("Provide record data with --data or --file flag", exampleHint ? {
195157
195155
  hints: [
195158
195156
  {
195159
195157
  message: `Example: --data '${exampleHint}' or --file record.json`
195160
195158
  }
195161
195159
  ]
195162
- });
195160
+ } : undefined);
195163
195161
  }
195164
195162
 
195165
195163
  // src/cli/commands/entities/records/create.ts
@@ -200691,4 +200689,4 @@ export {
200691
200689
  CLIExitError
200692
200690
  };
200693
200691
 
200694
- //# debugId=CC4F575130E0CA5564756E2164756E21
200692
+ //# debugId=82F5E9B62D62601264756E2164756E21