salesprompter-cli 0.1.52 → 0.1.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.
- package/dist/cli.js +8 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13887,12 +13887,18 @@ async function runSalesNavigatorImportEnrichmentCommand(options) {
|
|
|
13887
13887
|
for (const companyId of ids) {
|
|
13888
13888
|
const detail = cliImportCompanyRecord(results[companyId]);
|
|
13889
13889
|
const statusValue = statuses[companyId];
|
|
13890
|
+
const errorValue = errors[companyId];
|
|
13891
|
+
const errorRecord = cliImportCompanyRecord(errorValue);
|
|
13892
|
+
const errorStatusValue = errorRecord?.status ?? errorRecord?.code;
|
|
13890
13893
|
const status = typeof statusValue === "number"
|
|
13891
13894
|
? statusValue
|
|
13892
13895
|
: typeof statusValue === "string" && /^\d+$/.test(statusValue)
|
|
13893
13896
|
? Number(statusValue)
|
|
13894
|
-
:
|
|
13895
|
-
|
|
13897
|
+
: typeof errorStatusValue === "number"
|
|
13898
|
+
? errorStatusValue
|
|
13899
|
+
: typeof errorStatusValue === "string" && /^\d+$/.test(errorStatusValue)
|
|
13900
|
+
? Number(errorStatusValue)
|
|
13901
|
+
: response.status;
|
|
13896
13902
|
detailCache.set(companyId, {
|
|
13897
13903
|
detail,
|
|
13898
13904
|
status,
|
package/package.json
CHANGED