higherdata-sdk 0.2.0 → 0.3.0
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/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6957,6 +6957,8 @@ interface components {
|
|
|
6957
6957
|
}[];
|
|
6958
6958
|
suppressedCount: number;
|
|
6959
6959
|
zeroResults: boolean;
|
|
6960
|
+
/** @description A single email, phone, LinkedIn profile or record-id match can open directly. */
|
|
6961
|
+
exactMatch?: boolean;
|
|
6960
6962
|
};
|
|
6961
6963
|
"lookup.person.input": {
|
|
6962
6964
|
/**
|
package/dist/index.js
CHANGED
|
@@ -7628,6 +7628,10 @@ function retryAfter(response, data, now) {
|
|
|
7628
7628
|
const date = Date.parse(value);
|
|
7629
7629
|
if (Number.isFinite(date)) return Math.max(0, (date - now) / 1e3);
|
|
7630
7630
|
}
|
|
7631
|
+
if (response.status === 429) {
|
|
7632
|
+
const reset = response.headers.get("ratelimit-reset");
|
|
7633
|
+
if (reset !== null && /^\d+(?:\.\d+)?$/.test(reset.trim())) return Number(reset);
|
|
7634
|
+
}
|
|
7631
7635
|
const parsed = failure.safeParse(data);
|
|
7632
7636
|
return parsed.success && typeof parsed.data.error !== "string" ? parsed.data.error.retry_after : void 0;
|
|
7633
7637
|
}
|