@signaliz/cli 1.0.52 → 1.0.53

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.
Files changed (2) hide show
  1. package/dist/bin.js +1 -4
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -792,9 +792,6 @@ async function signalToCopy() {
792
792
  const title = flag("title");
793
793
  const campaignOffer = flag("campaign-offer") || flag("offer");
794
794
  const signalRunId = flag("signal-run-id");
795
- if (!signalRunId && (!companyDomain || !personName || !title || !campaignOffer)) {
796
- fail('Usage: signaliz signal-to-copy --company-domain example.com --person-name "Jane Doe" --title "VP Sales" --campaign-offer "pipeline intelligence" OR signaliz signal-to-copy --signal-run-id copy_...');
797
- }
798
795
  const request = {
799
796
  companyDomain,
800
797
  personName,
@@ -912,7 +909,7 @@ main().catch((error) => {
912
909
  process.stdout.write(`${stringifyMachineJson({
913
910
  success: false,
914
911
  error: "product_request_failed",
915
- error_code: signalizError?.code || (error instanceof RangeError ? "INPUT_001" : "CLI_ERROR"),
912
+ error_code: signalizError?.code || (error instanceof RangeError || error instanceof TypeError ? "INPUT_001" : "CLI_ERROR"),
916
913
  message,
917
914
  retry_eligible: signalizError?.isRetryable ?? false,
918
915
  ...signalizError?.retryAfter !== void 0 ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaliz/cli",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "Signaliz CLI for Signals Everything, Find Email, Verify Email, Company Signal Enrichment, and Signal to Copy AI.",
5
5
  "bin": {
6
6
  "signaliz": "dist/bin.js"