latinfo 0.19.1 → 0.19.2
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/sdk.js +1 -1
- package/package.json +1 -1
package/dist/sdk.js
CHANGED
|
@@ -70,7 +70,7 @@ class Country {
|
|
|
70
70
|
const tokenPostings = [];
|
|
71
71
|
for (const r of resolved) {
|
|
72
72
|
const lists = await Promise.all(r.entries.map(async (entry) => {
|
|
73
|
-
const byteLen = Math.min(entry.count,
|
|
73
|
+
const byteLen = Math.min(entry.count, 2000) * idx.entrySize;
|
|
74
74
|
const cdnUrl = `https://data.latinfo.dev/${this.cfg.baseName}-search-${entry.shard}.dat`;
|
|
75
75
|
const res = await fetch(cdnUrl, {
|
|
76
76
|
headers: { Range: `bytes=${entry.offset}-${entry.offset + byteLen - 1}` },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "latinfo",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "Tax registry & procurement API for Latin America. Query RUC, DNI, NIT, licitaciones from Peru & Colombia. Offline MPHF search, full OCDS data, updated daily.",
|
|
5
5
|
"homepage": "https://latinfo.dev",
|
|
6
6
|
"repository": {
|