@mailwoman/core 10.1.0 → 10.2.1

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 (429) hide show
  1. package/lib/api/APIClient.ts +5 -6
  2. package/lib/api/arcgis.ts +5 -5
  3. package/lib/api/ckan.ts +2 -1
  4. package/lib/api/disk-storage.ts +3 -3
  5. package/lib/api/ogc.ts +56 -52
  6. package/lib/api/pacer.ts +1 -1
  7. package/lib/api/retry.ts +6 -4
  8. package/lib/api/test/transport.ts +20 -20
  9. package/lib/api.ts +1 -0
  10. package/lib/coarse-placer/coarse-placer.ts +4 -3
  11. package/lib/crypto/node.ts +1 -2
  12. package/lib/decoder/build-tree.ts +5 -5
  13. package/lib/decoder/parse-diff.ts +47 -31
  14. package/lib/decoder/proposals-to-tree.ts +1 -0
  15. package/lib/decoder/serialize/json.ts +9 -6
  16. package/lib/decoder/serialize/tuples.ts +2 -1
  17. package/lib/decoder/serialize/xml.ts +15 -14
  18. package/lib/decoder/tree/shape.ts +14 -14
  19. package/lib/decoder/tree/walk.ts +2 -2
  20. package/lib/decoder/types.ts +48 -2
  21. package/lib/env/schema.ts +21 -23
  22. package/lib/env/utils.ts +4 -3
  23. package/lib/env.ts +4 -4
  24. package/lib/fs/delimited.ts +35 -1
  25. package/lib/fs/readers.ts +2 -5
  26. package/lib/fs/zip.ts +1 -1
  27. package/lib/geocode/result.ts +337 -0
  28. package/lib/git.ts +1 -1
  29. package/lib/html/document.ts +6 -6
  30. package/lib/html/elements.ts +26 -23
  31. package/lib/identical.ts +20 -0
  32. package/lib/json.ts +5 -7
  33. package/lib/layers/coverage.ts +28 -1
  34. package/lib/layers/feature-count.ts +3 -3
  35. package/lib/layers/manifest.ts +22 -21
  36. package/lib/layers/schema.ts +25 -1
  37. package/lib/license/configured.ts +3 -3
  38. package/lib/license/key/file.ts +2 -1
  39. package/lib/license/key.ts +3 -3
  40. package/lib/license/stamp.ts +4 -4
  41. package/lib/locale/locale.ts +1 -1
  42. package/lib/locale/registry.ts +2 -2
  43. package/lib/module/compiled-freshness.ts +1 -1
  44. package/lib/module/package-command.ts +4 -2
  45. package/lib/module/packaged-data.ts +1 -1
  46. package/lib/module/resolve-from.ts +1 -1
  47. package/lib/numeric.ts +4 -4
  48. package/lib/objects.ts +3 -0
  49. package/lib/paths.ts +16 -1
  50. package/lib/pipeline/client-result.ts +14 -14
  51. package/lib/pipeline/result.ts +5 -4
  52. package/lib/pipeline/runtime-pipeline.ts +65 -42
  53. package/lib/pipeline/span-proposer.ts +1 -1
  54. package/lib/pipeline/types.ts +328 -161
  55. package/lib/pipeline.ts +32 -7
  56. package/lib/policy/proposal-collection.ts +1 -1
  57. package/lib/policy/registry.ts +5 -3
  58. package/lib/resolver/authoritative-provider.ts +17 -17
  59. package/lib/resolver/coverage-facts.ts +3 -3
  60. package/lib/resolver/fixture-authoritative-provider.ts +4 -0
  61. package/lib/resolver/lookup-types.ts +54 -14
  62. package/lib/resolver/postcode-format.ts +9 -9
  63. package/lib/resolver/referential.ts +2 -2
  64. package/lib/resolver/types.ts +155 -51
  65. package/lib/resolver.ts +22 -20
  66. package/lib/resources/git.ts +1 -1
  67. package/lib/resources/languages.ts +0 -2
  68. package/lib/resources/libpostal.ts +1 -1
  69. package/lib/resources/whosonfirst/PlacetypeDataSource.ts +2 -6
  70. package/lib/resources/whosonfirst/extract-repo.ts +2 -1
  71. package/lib/resources/whosonfirst/placetypes/admin.ts +20 -25
  72. package/lib/resources/whosonfirst/placetypes/mermaid.ts +4 -3
  73. package/lib/resources/whosonfirst/placetypes/specificity.ts +7 -7
  74. package/lib/resources.ts +1 -0
  75. package/lib/scripting/arguments.ts +6 -5
  76. package/lib/scripting/command.ts +3 -2
  77. package/lib/scripting/operation.ts +2 -2
  78. package/lib/scripting/utils.ts +3 -5
  79. package/lib/strings/python-json.ts +1 -1
  80. package/lib/tokenization/Span.ts +1 -1
  81. package/lib/trust-policies.ts +0 -2
  82. package/lib/types/Classification.ts +1 -1
  83. package/lib/types/classifier.ts +1 -1
  84. package/lib/utils/geodatabase-archive.ts +13 -5
  85. package/lib/utils/sqlite-rows.ts +3 -3
  86. package/lib/utils/stream-to-disk.ts +1 -3
  87. package/lib/utils/union-find.ts +1 -1
  88. package/lib/vale.ts +1 -1
  89. package/lib/workspaces.ts +2 -2
  90. package/out/api/APIClient.d.ts +3 -3
  91. package/out/api/APIClient.d.ts.map +1 -1
  92. package/out/api/APIClient.js +2 -3
  93. package/out/api/APIClient.js.map +1 -1
  94. package/out/api/arcgis.d.ts +2 -2
  95. package/out/api/arcgis.d.ts.map +1 -1
  96. package/out/api/arcgis.js +6 -6
  97. package/out/api/arcgis.js.map +1 -1
  98. package/out/api/ckan.d.ts +2 -1
  99. package/out/api/ckan.d.ts.map +1 -1
  100. package/out/api/ckan.js.map +1 -1
  101. package/out/api/disk-storage.d.ts +1 -1
  102. package/out/api/disk-storage.js +2 -2
  103. package/out/api/disk-storage.js.map +1 -1
  104. package/out/api/ogc.d.ts +32 -27
  105. package/out/api/ogc.d.ts.map +1 -1
  106. package/out/api/ogc.js +41 -46
  107. package/out/api/ogc.js.map +1 -1
  108. package/out/api/pacer.d.ts +1 -1
  109. package/out/api/pacer.js +1 -1
  110. package/out/api/retry.d.ts +6 -4
  111. package/out/api/retry.d.ts.map +1 -1
  112. package/out/api/retry.js +1 -1
  113. package/out/api/retry.js.map +1 -1
  114. package/out/api/test/transport.d.ts +11 -11
  115. package/out/api/test/transport.d.ts.map +1 -1
  116. package/out/api/test/transport.js +16 -16
  117. package/out/api/test/transport.js.map +1 -1
  118. package/out/api.d.ts +1 -0
  119. package/out/api.d.ts.map +1 -1
  120. package/out/api.js +1 -0
  121. package/out/api.js.map +1 -1
  122. package/out/coarse-placer/coarse-placer.d.ts +3 -2
  123. package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
  124. package/out/coarse-placer/coarse-placer.js +1 -1
  125. package/out/coarse-placer/coarse-placer.js.map +1 -1
  126. package/out/crypto/node.d.ts +1 -2
  127. package/out/crypto/node.d.ts.map +1 -1
  128. package/out/crypto/node.js +1 -2
  129. package/out/crypto/node.js.map +1 -1
  130. package/out/decoder/build-tree.js +5 -5
  131. package/out/decoder/build-tree.js.map +1 -1
  132. package/out/decoder/parse-diff.d.ts +19 -19
  133. package/out/decoder/parse-diff.d.ts.map +1 -1
  134. package/out/decoder/parse-diff.js +28 -12
  135. package/out/decoder/parse-diff.js.map +1 -1
  136. package/out/decoder/proposals-to-tree.d.ts.map +1 -1
  137. package/out/decoder/proposals-to-tree.js +1 -0
  138. package/out/decoder/proposals-to-tree.js.map +1 -1
  139. package/out/decoder/serialize/json.d.ts +35 -17
  140. package/out/decoder/serialize/json.d.ts.map +1 -1
  141. package/out/decoder/serialize/json.js +28 -0
  142. package/out/decoder/serialize/json.js.map +1 -1
  143. package/out/decoder/serialize/tuples.d.ts +2 -1
  144. package/out/decoder/serialize/tuples.d.ts.map +1 -1
  145. package/out/decoder/serialize/tuples.js.map +1 -1
  146. package/out/decoder/serialize/xml.d.ts +12 -11
  147. package/out/decoder/serialize/xml.d.ts.map +1 -1
  148. package/out/decoder/serialize/xml.js +3 -3
  149. package/out/decoder/serialize/xml.js.map +1 -1
  150. package/out/decoder/tree/shape.d.ts +6 -6
  151. package/out/decoder/tree/shape.d.ts.map +1 -1
  152. package/out/decoder/tree/shape.js +8 -8
  153. package/out/decoder/tree/shape.js.map +1 -1
  154. package/out/decoder/tree/walk.d.ts +1 -1
  155. package/out/decoder/tree/walk.d.ts.map +1 -1
  156. package/out/decoder/tree/walk.js +1 -1
  157. package/out/decoder/tree/walk.js.map +1 -1
  158. package/out/decoder/types.d.ts +55 -2
  159. package/out/decoder/types.d.ts.map +1 -1
  160. package/out/decoder/types.js +39 -1
  161. package/out/decoder/types.js.map +1 -1
  162. package/out/env/schema.d.ts +11 -12
  163. package/out/env/schema.d.ts.map +1 -1
  164. package/out/env/schema.js +15 -17
  165. package/out/env/schema.js.map +1 -1
  166. package/out/env/utils.d.ts +2 -2
  167. package/out/env/utils.d.ts.map +1 -1
  168. package/out/env/utils.js +2 -2
  169. package/out/env/utils.js.map +1 -1
  170. package/out/env.js +4 -4
  171. package/out/env.js.map +1 -1
  172. package/out/fs/delimited.d.ts +18 -0
  173. package/out/fs/delimited.d.ts.map +1 -1
  174. package/out/fs/delimited.js +31 -1
  175. package/out/fs/delimited.js.map +1 -1
  176. package/out/fs/readers.d.ts +2 -4
  177. package/out/fs/readers.d.ts.map +1 -1
  178. package/out/fs/readers.js +2 -4
  179. package/out/fs/readers.js.map +1 -1
  180. package/out/fs/zip.js +1 -1
  181. package/out/fs/zip.js.map +1 -1
  182. package/out/geocode/result.d.ts +475 -0
  183. package/out/geocode/result.d.ts.map +1 -0
  184. package/out/geocode/result.js +280 -0
  185. package/out/geocode/result.js.map +1 -0
  186. package/out/git.js +1 -1
  187. package/out/git.js.map +1 -1
  188. package/out/html/document.d.ts +3 -3
  189. package/out/html/document.d.ts.map +1 -1
  190. package/out/html/document.js +4 -4
  191. package/out/html/document.js.map +1 -1
  192. package/out/html/elements.d.ts +18 -15
  193. package/out/html/elements.d.ts.map +1 -1
  194. package/out/html/elements.js +17 -16
  195. package/out/html/elements.js.map +1 -1
  196. package/out/identical.d.ts +16 -0
  197. package/out/identical.d.ts.map +1 -0
  198. package/out/identical.js +19 -0
  199. package/out/identical.js.map +1 -0
  200. package/out/json.d.ts +3 -5
  201. package/out/json.d.ts.map +1 -1
  202. package/out/json.js +3 -5
  203. package/out/json.js.map +1 -1
  204. package/out/layers/coverage.d.ts +26 -1
  205. package/out/layers/coverage.d.ts.map +1 -1
  206. package/out/layers/coverage.js.map +1 -1
  207. package/out/layers/feature-count.d.ts +1 -1
  208. package/out/layers/feature-count.d.ts.map +1 -1
  209. package/out/layers/feature-count.js +2 -2
  210. package/out/layers/feature-count.js.map +1 -1
  211. package/out/layers/manifest.d.ts +11 -10
  212. package/out/layers/manifest.d.ts.map +1 -1
  213. package/out/layers/manifest.js +12 -13
  214. package/out/layers/manifest.js.map +1 -1
  215. package/out/layers/schema.d.ts +23 -0
  216. package/out/layers/schema.d.ts.map +1 -1
  217. package/out/layers/schema.js +1 -1
  218. package/out/layers/schema.js.map +1 -1
  219. package/out/license/configured.d.ts +1 -1
  220. package/out/license/configured.d.ts.map +1 -1
  221. package/out/license/configured.js +2 -2
  222. package/out/license/configured.js.map +1 -1
  223. package/out/license/key/file.d.ts.map +1 -1
  224. package/out/license/key/file.js +2 -1
  225. package/out/license/key/file.js.map +1 -1
  226. package/out/license/key.d.ts +1 -1
  227. package/out/license/key.d.ts.map +1 -1
  228. package/out/license/key.js +2 -2
  229. package/out/license/key.js.map +1 -1
  230. package/out/license/stamp.d.ts +2 -2
  231. package/out/license/stamp.d.ts.map +1 -1
  232. package/out/license/stamp.js +2 -2
  233. package/out/license/stamp.js.map +1 -1
  234. package/out/locale/locale.d.ts +1 -1
  235. package/out/locale/locale.d.ts.map +1 -1
  236. package/out/locale/registry.d.ts +1 -1
  237. package/out/locale/registry.d.ts.map +1 -1
  238. package/out/locale/registry.js +1 -1
  239. package/out/locale/registry.js.map +1 -1
  240. package/out/module/compiled-freshness.js +1 -1
  241. package/out/module/compiled-freshness.js.map +1 -1
  242. package/out/module/package-command.d.ts +3 -2
  243. package/out/module/package-command.d.ts.map +1 -1
  244. package/out/module/package-command.js +3 -2
  245. package/out/module/package-command.js.map +1 -1
  246. package/out/module/packaged-data.js +1 -1
  247. package/out/module/packaged-data.js.map +1 -1
  248. package/out/module/resolve-from.js +1 -1
  249. package/out/module/resolve-from.js.map +1 -1
  250. package/out/numeric.d.ts +1 -1
  251. package/out/numeric.d.ts.map +1 -1
  252. package/out/numeric.js +3 -3
  253. package/out/numeric.js.map +1 -1
  254. package/out/objects.d.ts +3 -0
  255. package/out/objects.d.ts.map +1 -1
  256. package/out/objects.js +3 -0
  257. package/out/objects.js.map +1 -1
  258. package/out/paths.d.ts +20 -1
  259. package/out/paths.d.ts.map +1 -1
  260. package/out/paths.js +1 -1
  261. package/out/paths.js.map +1 -1
  262. package/out/pipeline/client-result.d.ts +15 -15
  263. package/out/pipeline/client-result.d.ts.map +1 -1
  264. package/out/pipeline/client-result.js +1 -1
  265. package/out/pipeline/result.d.ts +4 -3
  266. package/out/pipeline/result.d.ts.map +1 -1
  267. package/out/pipeline/runtime-pipeline.d.ts +16 -9
  268. package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
  269. package/out/pipeline/runtime-pipeline.js +43 -27
  270. package/out/pipeline/runtime-pipeline.js.map +1 -1
  271. package/out/pipeline/span-proposer.js +1 -1
  272. package/out/pipeline/span-proposer.js.map +1 -1
  273. package/out/pipeline/types.d.ts +394 -175
  274. package/out/pipeline/types.d.ts.map +1 -1
  275. package/out/pipeline/types.js +199 -4
  276. package/out/pipeline/types.js.map +1 -1
  277. package/out/pipeline.d.ts +4 -2
  278. package/out/pipeline.d.ts.map +1 -1
  279. package/out/pipeline.js +1 -1
  280. package/out/pipeline.js.map +1 -1
  281. package/out/policy/proposal-collection.d.ts +1 -1
  282. package/out/policy/proposal-collection.d.ts.map +1 -1
  283. package/out/policy/proposal-collection.js.map +1 -1
  284. package/out/policy/registry.d.ts +3 -1
  285. package/out/policy/registry.d.ts.map +1 -1
  286. package/out/policy/registry.js +4 -2
  287. package/out/policy/registry.js.map +1 -1
  288. package/out/resolver/authoritative-provider.d.ts +17 -17
  289. package/out/resolver/authoritative-provider.d.ts.map +1 -1
  290. package/out/resolver/authoritative-provider.js +2 -2
  291. package/out/resolver/coverage-facts.d.ts +3 -3
  292. package/out/resolver/coverage-facts.d.ts.map +1 -1
  293. package/out/resolver/fixture-authoritative-provider.d.ts.map +1 -1
  294. package/out/resolver/fixture-authoritative-provider.js +4 -0
  295. package/out/resolver/fixture-authoritative-provider.js.map +1 -1
  296. package/out/resolver/lookup-types.d.ts +52 -15
  297. package/out/resolver/lookup-types.d.ts.map +1 -1
  298. package/out/resolver/postcode-format.d.ts +3 -3
  299. package/out/resolver/postcode-format.d.ts.map +1 -1
  300. package/out/resolver/postcode-format.js +7 -7
  301. package/out/resolver/postcode-format.js.map +1 -1
  302. package/out/resolver/referential.d.ts +2 -2
  303. package/out/resolver/referential.d.ts.map +1 -1
  304. package/out/resolver/types.d.ts +126 -40
  305. package/out/resolver/types.d.ts.map +1 -1
  306. package/out/resolver/types.js +43 -1
  307. package/out/resolver/types.js.map +1 -1
  308. package/out/resolver.d.ts +5 -3
  309. package/out/resolver.d.ts.map +1 -1
  310. package/out/resolver.js +2 -2
  311. package/out/resolver.js.map +1 -1
  312. package/out/resources/git.js +1 -1
  313. package/out/resources/git.js.map +1 -1
  314. package/out/resources/languages.d.ts +0 -1
  315. package/out/resources/languages.d.ts.map +1 -1
  316. package/out/resources/languages.js +0 -1
  317. package/out/resources/languages.js.map +1 -1
  318. package/out/resources/libpostal.d.ts +1 -1
  319. package/out/resources/libpostal.d.ts.map +1 -1
  320. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +1 -1
  321. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
  322. package/out/resources/whosonfirst/PlacetypeDataSource.js +2 -1
  323. package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
  324. package/out/resources/whosonfirst/extract-repo.d.ts.map +1 -1
  325. package/out/resources/whosonfirst/extract-repo.js +2 -1
  326. package/out/resources/whosonfirst/extract-repo.js.map +1 -1
  327. package/out/resources/whosonfirst/placetypes/admin.d.ts +12 -12
  328. package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
  329. package/out/resources/whosonfirst/placetypes/admin.js +9 -8
  330. package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
  331. package/out/resources/whosonfirst/placetypes/mermaid.d.ts +2 -1
  332. package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
  333. package/out/resources/whosonfirst/placetypes/mermaid.js +1 -1
  334. package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
  335. package/out/resources/whosonfirst/placetypes/specificity.d.ts +3 -3
  336. package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -1
  337. package/out/resources/whosonfirst/placetypes/specificity.js +6 -6
  338. package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -1
  339. package/out/resources.d.ts +1 -0
  340. package/out/resources.d.ts.map +1 -1
  341. package/out/resources.js +1 -0
  342. package/out/resources.js.map +1 -1
  343. package/out/scripting/arguments.d.ts +5 -4
  344. package/out/scripting/arguments.d.ts.map +1 -1
  345. package/out/scripting/arguments.js +5 -4
  346. package/out/scripting/arguments.js.map +1 -1
  347. package/out/scripting/command.d.ts +2 -2
  348. package/out/scripting/command.d.ts.map +1 -1
  349. package/out/scripting/command.js +1 -0
  350. package/out/scripting/command.js.map +1 -1
  351. package/out/scripting/operation.d.ts +1 -1
  352. package/out/scripting/operation.d.ts.map +1 -1
  353. package/out/scripting/operation.js +1 -1
  354. package/out/scripting/operation.js.map +1 -1
  355. package/out/scripting/utils.d.ts +3 -4
  356. package/out/scripting/utils.d.ts.map +1 -1
  357. package/out/scripting/utils.js +3 -4
  358. package/out/scripting/utils.js.map +1 -1
  359. package/out/strings/python-json.js +1 -1
  360. package/out/strings/python-json.js.map +1 -1
  361. package/out/tokenization/Span.d.ts +1 -1
  362. package/out/tokenization/Span.d.ts.map +1 -1
  363. package/out/tools/coarse-placer/build/dataset.d.ts +4 -2
  364. package/out/tools/coarse-placer/build/dataset.d.ts.map +1 -1
  365. package/out/tools/coarse-placer/build/dataset.js.map +1 -1
  366. package/out/tools/coarse-placer/build/outlier/exposure.d.ts +5 -3
  367. package/out/tools/coarse-placer/build/outlier/exposure.d.ts.map +1 -1
  368. package/out/tools/coarse-placer/build/outlier/exposure.js.map +1 -1
  369. package/out/tools/coarse-placer/build/outlier/latin.d.ts +3 -3
  370. package/out/tools/coarse-placer/build/outlier/oa.d.ts +3 -3
  371. package/out/tools/coarse-placer/eval/latin-offmap.d.ts +3 -3
  372. package/out/tools/coarse-placer/eval/openset.js +2 -2
  373. package/out/tools/coarse-placer/eval/openset.js.map +1 -1
  374. package/out/tools/coarse-placer/eval/quant-compare.d.ts +4 -4
  375. package/out/tools/coarse-placer/eval.d.ts +3 -3
  376. package/out/tools/coarse-placer/paths.js +1 -1
  377. package/out/tools/coarse-placer/paths.js.map +1 -1
  378. package/out/tools/coarse-placer/probe-frontier.d.ts +2 -2
  379. package/out/tools/coarse-placer/quantize.d.ts +2 -2
  380. package/out/tools/coarse-placer/train.d.ts +5 -5
  381. package/out/tools/download/libpostal-resources.d.ts.map +1 -1
  382. package/out/tools/download/libpostal-resources.js +2 -1
  383. package/out/tools/download/libpostal-resources.js.map +1 -1
  384. package/out/tools/download/ssl-address.d.ts +2 -2
  385. package/out/tools/generate-language-types.d.ts +1 -1
  386. package/out/tools/generate-language-types.js +1 -1
  387. package/out/tools/generate-language-types.js.map +1 -1
  388. package/out/trust-policies.d.ts +0 -1
  389. package/out/trust-policies.d.ts.map +1 -1
  390. package/out/trust-policies.js +0 -1
  391. package/out/trust-policies.js.map +1 -1
  392. package/out/types/Classification.d.ts +1 -1
  393. package/out/types/Classification.d.ts.map +1 -1
  394. package/out/types/classifier.d.ts +1 -1
  395. package/out/types/classifier.d.ts.map +1 -1
  396. package/out/utils/geodatabase-archive.d.ts +11 -4
  397. package/out/utils/geodatabase-archive.d.ts.map +1 -1
  398. package/out/utils/geodatabase-archive.js +1 -1
  399. package/out/utils/geodatabase-archive.js.map +1 -1
  400. package/out/utils/sqlite-rows.d.ts +2 -2
  401. package/out/utils/sqlite-rows.d.ts.map +1 -1
  402. package/out/utils/sqlite-rows.js +2 -2
  403. package/out/utils/sqlite-rows.js.map +1 -1
  404. package/out/utils/stream-to-disk.d.ts.map +1 -1
  405. package/out/utils/stream-to-disk.js +1 -1
  406. package/out/utils/stream-to-disk.js.map +1 -1
  407. package/out/utils/union-find.js +1 -1
  408. package/out/utils/union-find.js.map +1 -1
  409. package/out/vale.js +1 -1
  410. package/out/vale.js.map +1 -1
  411. package/out/workspaces.d.ts +1 -1
  412. package/out/workspaces.js +1 -1
  413. package/out/workspaces.js.map +1 -1
  414. package/package.json +46 -14
  415. package/tools/coarse-placer/build/dataset.ts +4 -2
  416. package/tools/coarse-placer/build/outlier/exposure.ts +5 -3
  417. package/tools/coarse-placer/build/outlier/latin.ts +3 -3
  418. package/tools/coarse-placer/build/outlier/oa.ts +3 -3
  419. package/tools/coarse-placer/eval/latin-offmap.ts +3 -3
  420. package/tools/coarse-placer/eval/openset.ts +3 -3
  421. package/tools/coarse-placer/eval/quant-compare.ts +4 -4
  422. package/tools/coarse-placer/eval.ts +3 -3
  423. package/tools/coarse-placer/paths.ts +1 -1
  424. package/tools/coarse-placer/probe-frontier.ts +2 -2
  425. package/tools/coarse-placer/quantize.ts +2 -2
  426. package/tools/coarse-placer/train.ts +5 -5
  427. package/tools/download/libpostal-resources.ts +2 -1
  428. package/tools/download/ssl-address.ts +2 -2
  429. package/tools/generate-language-types.ts +3 -3
package/out/api/ogc.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare class OGCServiceError extends Error {
26
26
  get timedOut(): boolean;
27
27
  }
28
28
  /**
29
- * The exception message inside an OGC or OWS exception report, or `undefined` for a body that is neither.
29
+ * The exception message inside an OGC or OWS exception report, or `null` for a body that is neither.
30
30
  *
31
31
  * Both dialects are read, because a report shares the HTTP status a real answer arrives on
32
32
  * and a caller that recognizes one spelling parses the other as data.
@@ -38,7 +38,7 @@ export declare class OGCServiceError extends Error {
38
38
  *
39
39
  * Split from the request so the detection is testable against captured bodies.
40
40
  */
41
- export declare function readOGCServiceException(body: string): string | undefined;
41
+ export declare function readOGCServiceException(body: string): string | null;
42
42
  /**
43
43
  * Refuse a text body that is an OGC exception report.
44
44
  *
@@ -61,6 +61,16 @@ export interface CreateOGCFeaturesBBoxReaderOptions {
61
61
  */
62
62
  limit: number;
63
63
  }
64
+ /**
65
+ * One feature as an OGC API Features service publishes it, reduced to the fields a comparison reads.
66
+ */
67
+ export interface OGCFeature<Properties = Record<string, unknown>> {
68
+ properties?: Properties;
69
+ geometry?: {
70
+ type: string;
71
+ coordinates: unknown;
72
+ };
73
+ }
64
74
  /**
65
75
  * A reader answering an OGC API Features bbox query around a point.
66
76
  *
@@ -95,11 +105,12 @@ export interface ReadWFSFeatureCountOptions {
95
105
  /**
96
106
  * The feature count a WFS reports for one type.
97
107
  *
98
- * `resultType=hits`, which returns the count without a single geometry.
108
+ * `resultType=hits` returns the count without a single geometry.
99
109
  *
100
110
  * This takes the service's word for the count.
101
111
  * A caller that cannot check the number against the publisher's own figure reads
102
- * {@linkcode readCheckedWFSFeatureCount} instead, which asks a second time.
112
+ * {@linkcode readCheckedWFSFeatureCount} instead.
113
+ * That reader asks a second time.
103
114
  *
104
115
  * @param options.subject Names the layer in the refusal, where the caller reads more than one.
105
116
  */
@@ -107,7 +118,7 @@ export declare function readWFSFeatureCount(client: Pick<APIClient, "fetch">, op
107
118
  /**
108
119
  * How much a service's own feature count is worth.
109
120
  *
110
- * `reported` is the number the service stated, and `usable` says whether a second read agreed with it.
121
+ * `reported` is the number the service stated, and `usable` records whether a second read agreed with it.
111
122
  * A caller records the count only where `usable` is true and records `because` otherwise,
112
123
  * so that a service which cannot count is told apart from one that counted a small number.
113
124
  */
@@ -119,34 +130,27 @@ export interface CheckedWFSFeatureCount {
119
130
  /**
120
131
  * The feature count a WFS reports for one type, checked against a page of that type.
121
132
  *
122
- * Two INSPIRE Addresses services measured on 2026-09-30 answer a bare `resultType=hits`
123
- * request wrongly, in opposite directions, and the number alone tells a reader neither.
124
- *
125
- * Flanders (`geo.api.vlaanderen.be/ad/wfs`) answers `numberMatched="10000"` without a `startIndex`
126
- * and `4563062` with one, so the first request meets a per-request cap rather than counting the type.
127
- * This asks past index 0 for that reason.
133
+ * A bare `resultType=hits` request over a capped service answers with the cap,
134
+ * so the number cannot tell a reader whether it describes the type.
135
+ * This asks past index 0 and then probes a page.
128
136
  *
129
- * Poland (`mapy.geoportal.gov.pl/wss/service/INSPIRE/Addresses`) states three different
130
- * numbers for one type and none of them is its count, measured 2026-10-01.
131
- * A bare request answers `numberMatched="1000"`, which is MapServer's default feature cap.
137
+ * Flanders (`geo.api.vlaanderen.be/ad/wfs`) answers `numberMatched="10000"` without a
138
+ * `startIndex` and its real count with one, so this asks past index 0.
132
139
  *
133
- * The same request at `startIndex=1` answers `1`.
134
- * A feature page answers `numberMatched="unknown"`.
135
- * Its type holds 8,625,921 features.
140
+ * Poland (`mapy.geoportal.gov.pl/wss/service/INSPIRE/Addresses`) reports MapServer's feature
141
+ * cap for a bare request, `unknown` for a feature page, and another number at `startIndex=1`.
142
+ * Its type held 8,625,921 features.
136
143
  *
137
144
  * The tell is that a page of the same type returns more features than the count admits,
138
145
  * so this asks for one page and refuses a count that page contradicts.
139
- * A service answering this way is counted by paging instead: the count is the largest
140
- * `startIndex` that still returns a feature, which a doubling search followed by a bisection
141
- * finds in about 2·log2(n) requests, and a page straddling that index confirms the boundary.
146
+ * Such a service is counted by paging instead: {@linkcode countWFSFeaturesByPaging}.
142
147
  *
143
148
  * A missing `numberMatched` can also be transient.
144
- * Slovakia's `rageo.minv.sk/geoserver/ad/wfs` answered one request out of nine with
145
- * no such attribute and the other eight with `1704196`.
149
+ * Slovakia's `rageo.minv.sk/geoserver/ad/wfs` answered one request out of nine with no such attribute.
146
150
  *
147
151
  * This reports that response as unusable rather than inventing a count,
148
152
  * so a caller that needs the number retries, through `APIClient`'s `retry` configuration
149
- * or by reading the `numberMatched` a feature page carries.
153
+ * or by reading the `numberMatched` a feature page holds.
150
154
  *
151
155
  * @param options.subject Names the layer in the reason, where the caller reads more than one.
152
156
  */
@@ -159,7 +163,8 @@ export declare function readCheckedWFSFeatureCount(client: Pick<APIClient, "fetc
159
163
  export interface PagedWFSFeatureCount {
160
164
  count: number;
161
165
  /**
162
- * Requests this measurement sent, which is the cost a caller is choosing to pay.
166
+ * Requests this measurement sent.
167
+ * This is the cost a caller is choosing to pay.
163
168
  */
164
169
  requests: number;
165
170
  /**
@@ -170,8 +175,8 @@ export interface PagedWFSFeatureCount {
170
175
  /**
171
176
  * The feature count a type holds, measured by asking which indices hold a feature.
172
177
  *
173
- * For a service whose own `resultType=hits` cannot be trusted, which
174
- * {@linkcode readCheckedWFSFeatureCount} reports as `usable: false`.
178
+ * This serves a service whose own `resultType=hits` cannot be trusted.
179
+ * {@linkcode readCheckedWFSFeatureCount} reports that condition as `usable: false`.
175
180
  * What such a service still answers truthfully is whether a feature exists at a given
176
181
  * `startIndex`, so the count is the largest index that returns one, plus one.
177
182
  *
@@ -179,7 +184,7 @@ export interface PagedWFSFeatureCount {
179
184
  * It costs about 2·log2(n) requests: 51 for Poland's 8,625,921 features.
180
185
  *
181
186
  * A page straddling the last index then confirms the boundary.
182
- * `confirmed` carries that answer to the caller, because a service that caps a
187
+ * `confirmed` reports that answer to the caller, because a service that caps a
183
188
  * page would make the bisection stop early.
184
189
  *
185
190
  * The measurement means something only where paging works.
@@ -1 +1 @@
1
- {"version":3,"file":"ogc.d.ts","sourceRoot":"","sources":["../../lib/api/ogc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI/C;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACzC,SAAgB,gBAAgB,EAAE,MAAM,CAAA;IAExC,YAAY,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAOpD;IAED;;;;OAIG;IACH,IAAW,QAAQ,IAAI,OAAO,CAE7B;CACD;AA0FD;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcxE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM/E;AAUD,MAAM,WAAW,kCAAkC;IAClD,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAChC;;OAEG;IACH,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EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CACf;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,0BAA0B,CAC/C,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,0BAA0B,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1D,OAAO,CAAC,sBAAsB,CAAC,CAsFjC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;CAClB;AAWD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,wBAAwB,CAC7C,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,0BAA0B,GAAG;IACrC,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;CAC1C,GACC,OAAO,CAAC,oBAAoB,CAAC,CA0E/B"}
package/out/api/ogc.js CHANGED
@@ -40,7 +40,7 @@ export class OGCServiceError extends Error {
40
40
  */
41
41
  const EXCEPTION_OPEN = "<ServiceException";
42
42
  /**
43
- * The element a WFS 2.0 service carries its message in, with an optional namespace prefix.
43
+ * The element a WFS 2.0 service states its message in, with an optional namespace prefix.
44
44
  *
45
45
  * OGC 1.x answers `<ServiceExceptionReport>` holding `<ServiceException>`.
46
46
  * WFS 2.0 answers `<ows:ExceptionReport>` holding `<ows:Exception exceptionCode="…">`
@@ -75,7 +75,7 @@ function exceptionText(body) {
75
75
  for (;;) {
76
76
  const start = body.indexOf(EXCEPTION_OPEN, cursor);
77
77
  if (start === -1)
78
- return undefined;
78
+ return null;
79
79
  const after = start + EXCEPTION_OPEN.length;
80
80
  cursor = after;
81
81
  // `>` closes a bare tag and whitespace introduces attributes.
@@ -85,33 +85,33 @@ function exceptionText(body) {
85
85
  continue;
86
86
  const contentStart = body.indexOf(">", after);
87
87
  if (contentStart === -1)
88
- return undefined;
88
+ return null;
89
89
  const end = body.indexOf("</ServiceException>", contentStart);
90
90
  if (end === -1)
91
- return undefined;
91
+ return null;
92
92
  return body.slice(contentStart + 1, end);
93
93
  }
94
94
  }
95
95
  /**
96
96
  * The text of an `ExceptionText` element, with or without a namespace prefix.
97
97
  *
98
- * The prefix is captured so the closing tag matches the one the document opened,
99
- * which keeps a prefixed element from closing on an unprefixed one.
98
+ * The prefix is captured so the closing tag matches the one the document opened.
99
+ * A prefixed element therefore never closes on an unprefixed one.
100
100
  */
101
101
  function owsExceptionText(body) {
102
102
  const open = OWS_EXCEPTION_TEXT_OPEN.exec(body);
103
103
  if (!open)
104
- return undefined;
104
+ return null;
105
105
  const prefix = open[1];
106
106
  const contentStart = open.index + open[0].length;
107
107
  const end = body.indexOf(prefix ? `</${prefix}:ExceptionText>` : "</ExceptionText>", contentStart);
108
108
  // An unclosed element reads as unreadable rather than as empty, as the 1.x path does.
109
109
  if (end === -1)
110
- return undefined;
110
+ return null;
111
111
  return body.slice(contentStart, end);
112
112
  }
113
113
  /**
114
- * The exception message inside an OGC or OWS exception report, or `undefined` for a body that is neither.
114
+ * The exception message inside an OGC or OWS exception report, or `null` for a body that is neither.
115
115
  *
116
116
  * Both dialects are read, because a report shares the HTTP status a real answer arrives on
117
117
  * and a caller that recognizes one spelling parses the other as data.
@@ -125,7 +125,7 @@ function owsExceptionText(body) {
125
125
  */
126
126
  export function readOGCServiceException(body) {
127
127
  if (!body.includes("ExceptionReport"))
128
- return undefined;
128
+ return null;
129
129
  if (body.includes("ServiceExceptionReport")) {
130
130
  // A body remains an exception report when its exception element cannot be read.
131
131
  // A successful empty answer would misrepresent this exception report.
@@ -144,7 +144,7 @@ export function readOGCServiceException(body) {
144
144
  */
145
145
  export function assertNoOGCServiceException(body, context) {
146
146
  const exception = readOGCServiceException(body);
147
- if (exception !== undefined) {
147
+ if (exception) {
148
148
  throw new OGCServiceError(context, exception);
149
149
  }
150
150
  }
@@ -195,7 +195,7 @@ export async function readOGCCollectionBBox(client, options) {
195
195
  });
196
196
  const bbox = data.extent?.spatial?.bbox?.[0];
197
197
  if (!bbox || bbox.length < BBOX_ORDINATES) {
198
- throw new TypeError(`${options.context}: the OGC collection${options.subject === undefined ? "" : ` ${options.subject}`} carried no spatial extent`);
198
+ throw new TypeError(`${options.context}: the OGC collection${options.subject ? ` ${options.subject}` : ""} carried no spatial extent`);
199
199
  }
200
200
  return [bbox[0], bbox[1], bbox[2], bbox[3]];
201
201
  }
@@ -227,18 +227,19 @@ async function readReportedNumberMatched(client, options) {
227
227
  /**
228
228
  * The feature count a WFS reports for one type.
229
229
  *
230
- * `resultType=hits`, which returns the count without a single geometry.
230
+ * `resultType=hits` returns the count without a single geometry.
231
231
  *
232
232
  * This takes the service's word for the count.
233
233
  * A caller that cannot check the number against the publisher's own figure reads
234
- * {@linkcode readCheckedWFSFeatureCount} instead, which asks a second time.
234
+ * {@linkcode readCheckedWFSFeatureCount} instead.
235
+ * That reader asks a second time.
235
236
  *
236
237
  * @param options.subject Names the layer in the refusal, where the caller reads more than one.
237
238
  */
238
239
  export async function readWFSFeatureCount(client, options) {
239
240
  const numberMatched = await readReportedNumberMatched(client, options);
240
- const subject = options.subject === undefined ? "" : ` for ${options.subject}`;
241
- if (numberMatched === undefined) {
241
+ const subject = options.subject ? ` for ${options.subject}` : "";
242
+ if (!numberMatched) {
242
243
  throw new Error(`${options.context}: the WFS hits response${subject} carried no numberMatched attribute`);
243
244
  }
244
245
  // WFS 2.0 permits `numberMatched="unknown"`, which is the server declining to count
@@ -260,41 +261,34 @@ const COUNT_PROBE_SIZE = 10;
260
261
  /**
261
262
  * The feature count a WFS reports for one type, checked against a page of that type.
262
263
  *
263
- * Two INSPIRE Addresses services measured on 2026-09-30 answer a bare `resultType=hits`
264
- * request wrongly, in opposite directions, and the number alone tells a reader neither.
264
+ * A bare `resultType=hits` request over a capped service answers with the cap,
265
+ * so the number cannot tell a reader whether it describes the type.
266
+ * This asks past index 0 and then probes a page.
265
267
  *
266
- * Flanders (`geo.api.vlaanderen.be/ad/wfs`) answers `numberMatched="10000"` without a `startIndex`
267
- * and `4563062` with one, so the first request meets a per-request cap rather than counting the type.
268
- * This asks past index 0 for that reason.
268
+ * Flanders (`geo.api.vlaanderen.be/ad/wfs`) answers `numberMatched="10000"` without a
269
+ * `startIndex` and its real count with one, so this asks past index 0.
269
270
  *
270
- * Poland (`mapy.geoportal.gov.pl/wss/service/INSPIRE/Addresses`) states three different
271
- * numbers for one type and none of them is its count, measured 2026-10-01.
272
- * A bare request answers `numberMatched="1000"`, which is MapServer's default feature cap.
273
- *
274
- * The same request at `startIndex=1` answers `1`.
275
- * A feature page answers `numberMatched="unknown"`.
276
- * Its type holds 8,625,921 features.
271
+ * Poland (`mapy.geoportal.gov.pl/wss/service/INSPIRE/Addresses`) reports MapServer's feature
272
+ * cap for a bare request, `unknown` for a feature page, and another number at `startIndex=1`.
273
+ * Its type held 8,625,921 features.
277
274
  *
278
275
  * The tell is that a page of the same type returns more features than the count admits,
279
276
  * so this asks for one page and refuses a count that page contradicts.
280
- * A service answering this way is counted by paging instead: the count is the largest
281
- * `startIndex` that still returns a feature, which a doubling search followed by a bisection
282
- * finds in about 2·log2(n) requests, and a page straddling that index confirms the boundary.
277
+ * Such a service is counted by paging instead: {@linkcode countWFSFeaturesByPaging}.
283
278
  *
284
279
  * A missing `numberMatched` can also be transient.
285
- * Slovakia's `rageo.minv.sk/geoserver/ad/wfs` answered one request out of nine with
286
- * no such attribute and the other eight with `1704196`.
280
+ * Slovakia's `rageo.minv.sk/geoserver/ad/wfs` answered one request out of nine with no such attribute.
287
281
  *
288
282
  * This reports that response as unusable rather than inventing a count,
289
283
  * so a caller that needs the number retries, through `APIClient`'s `retry` configuration
290
- * or by reading the `numberMatched` a feature page carries.
284
+ * or by reading the `numberMatched` a feature page holds.
291
285
  *
292
286
  * @param options.subject Names the layer in the reason, where the caller reads more than one.
293
287
  */
294
288
  export async function readCheckedWFSFeatureCount(client, options) {
295
289
  const probeSize = options.probeSize ?? COUNT_PROBE_SIZE;
296
290
  const numberMatched = await readReportedNumberMatched(client, { ...options, startIndex: 1 });
297
- if (numberMatched === undefined) {
291
+ if (!numberMatched) {
298
292
  return { reported: null, usable: false, because: "the hits response carried no numberMatched attribute" };
299
293
  }
300
294
  if (!/^\d+$/u.test(numberMatched)) {
@@ -321,7 +315,7 @@ export async function readCheckedWFSFeatureCount(client, options) {
321
315
  });
322
316
  assertNoOGCServiceException(probe, options.context);
323
317
  const returned = rootAttribute(probe, "numberReturned", { xml: true });
324
- const observed = returned !== undefined && /^\d+$/u.test(returned) ? Number(returned) : null;
318
+ const observed = returned && /^\d+$/u.test(returned) ? Number(returned) : null;
325
319
  if (observed !== null && observed > reported) {
326
320
  return {
327
321
  reported,
@@ -330,12 +324,13 @@ export async function readCheckedWFSFeatureCount(client, options) {
330
324
  };
331
325
  }
332
326
  // A page no larger than the reported count agrees with it whatever the truth is,
333
- // so agreement alone does not establish that the count describes the type.
334
- // Asking for one feature at the reported index does: a service holding exactly that many has none there.
327
+ // so agreement does not establish that the count describes the type.
328
+ // One request does: asking for one feature at the reported index.
329
+ // A service holding exactly that many returns none there.
335
330
  //
336
331
  // Poland's address service is why this request exists.
337
- // It answers `numberMatched="1000"`, which is MapServer's own feature cap, and its pages cap
338
- // at 1,000 too, so a 10-feature probe agreed with 1,000 while the type held 8,626,951 on 2026-10-02.
332
+ // It answers `numberMatched="1000"`, MapServer's own feature cap, and its pages cap at 1,000 too.
333
+ // A 10-feature probe therefore agreed with 1,000 while the type held 8,626,951.
339
334
  // A caller trusting that would have stored 1,000 features and recorded the type as read whole.
340
335
  const { data: beyond } = await client.fetch({
341
336
  method: "GET",
@@ -352,7 +347,7 @@ export async function readCheckedWFSFeatureCount(client, options) {
352
347
  });
353
348
  assertNoOGCServiceException(beyond, options.context);
354
349
  const beyondReturned = rootAttribute(beyond, "numberReturned", { xml: true });
355
- if (beyondReturned !== undefined && /^[1-9]\d*$/u.test(beyondReturned)) {
350
+ if (beyondReturned && /^[1-9]\d*$/u.test(beyondReturned)) {
356
351
  return {
357
352
  reported,
358
353
  usable: false,
@@ -376,8 +371,8 @@ const PAGING_COUNT_CEILING = 2 ** 34;
376
371
  /**
377
372
  * The feature count a type holds, measured by asking which indices hold a feature.
378
373
  *
379
- * For a service whose own `resultType=hits` cannot be trusted, which
380
- * {@linkcode readCheckedWFSFeatureCount} reports as `usable: false`.
374
+ * This serves a service whose own `resultType=hits` cannot be trusted.
375
+ * {@linkcode readCheckedWFSFeatureCount} reports that condition as `usable: false`.
381
376
  * What such a service still answers truthfully is whether a feature exists at a given
382
377
  * `startIndex`, so the count is the largest index that returns one, plus one.
383
378
  *
@@ -385,7 +380,7 @@ const PAGING_COUNT_CEILING = 2 ** 34;
385
380
  * It costs about 2·log2(n) requests: 51 for Poland's 8,625,921 features.
386
381
  *
387
382
  * A page straddling the last index then confirms the boundary.
388
- * `confirmed` carries that answer to the caller, because a service that caps a
383
+ * `confirmed` reports that answer to the caller, because a service that caps a
389
384
  * page would make the bisection stop early.
390
385
  *
391
386
  * The measurement means something only where paging works.
@@ -417,7 +412,7 @@ export async function countWFSFeaturesByPaging(client, options) {
417
412
  });
418
413
  assertNoOGCServiceException(data, options.context);
419
414
  const returned = rootAttribute(data, "numberReturned", { xml: true });
420
- return { returned: returned !== undefined && /^\d+$/u.test(returned) ? Number(returned) : null, body: data };
415
+ return { returned: returned && /^\d+$/u.test(returned) ? Number(returned) : null, body: data };
421
416
  };
422
417
  const leading = options.identify ?? ((body) => /gml:id="([^"]+)"/u.exec(body)?.[1] ?? null);
423
418
  const first = await read(0, 2);
@@ -425,7 +420,7 @@ export async function countWFSFeaturesByPaging(client, options) {
425
420
  if (first.returned === 0)
426
421
  return { count: 0, requests, confirmed: true };
427
422
  const second = await read(2, 2);
428
- if (leading(first.body) !== null && leading(first.body) === leading(second.body)) {
423
+ if (leading(first.body) && leading(first.body) === leading(second.body)) {
429
424
  throw new Error(`${options.context}: the service answered startIndex 0 and startIndex 2 with the same leading feature, so it is ignoring startIndex and a count measured by paging it would be this service's page cap rather than its feature count`);
430
425
  }
431
426
  const exists = async (index) => (await read(index, 1)).returned !== 0;
@@ -1 +1 @@
1
- {"version":3,"file":"ogc.js","sourceRoot":"","sources":["../../lib/api/ogc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACzB,gBAAgB,CAAQ;IAExC,YAAY,OAAe,EAAE,gBAAwB;QACpD,+FAA+F;QAC/F,kGAAkG;QAClG,KAAK,CAAC,GAAG,OAAO,gDAAgD,gBAAgB,EAAE,CAAC,CAAA;QAEnF,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;QAC7B,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;IACzC,CAAC;IAED;;;;OAIG;IACH,IAAW,QAAQ;QAClB,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IACjD,CAAC;CACD;AAED;;GAEG;AACH,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAM,uBAAuB,GAAG,6CAA6C,CAAA;AAE7E;;GAEG;AACH,MAAM,kBAAkB,GAAG,gCAAgC,CAAA;AAE3D;;;;;;;;;;;;GAYG;AACH,SAAS,aAAa,CAAC,IAAY;IAClC,IAAI,MAAM,GAAG,CAAC,CAAA;IAEd,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MAAM,IAAI,KAAK,CACd,GAAG,OAAO,CAAC,OAAO,iDAAiD,GAAG,gHAAgH,CACtL,CAAA;QACF,CAAC;IACF,CAAC;IAED,OAAO,IAAI,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QAE3C,IAAI,MAAM,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,GAAG,GAAG,MAAM,CAAA;QACb,CAAC;aAAM,CAAC;YACP,IAAI,GAAG,MAAM,CAAA;QACd,CAAC;IACF,CAAC;IAED,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,CAAA;IACrB,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAA;IAC5C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IAE7C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,QAAQ,KAAK,KAAK,GAAG,aAAa,EAAE,CAAA;AACnF,CAAC"}
@@ -43,7 +43,7 @@ export declare class RequestPacer {
43
43
  * A zero-interval pacer would never actually pace.
44
44
  * Silently accepting one would make a misconfigured caller look throttled when it isn't.
45
45
  * @param clock Time source.
46
- * Defaults to {@linkcode systemClock}.
46
+ * @defaultValue {@linkcode systemClock}
47
47
  */
48
48
  constructor(intervalMs: number, clock?: ClockLike);
49
49
  /**
package/out/api/pacer.js CHANGED
@@ -45,7 +45,7 @@ export class RequestPacer {
45
45
  * A zero-interval pacer would never actually pace.
46
46
  * Silently accepting one would make a misconfigured caller look throttled when it isn't.
47
47
  * @param clock Time source.
48
- * Defaults to {@linkcode systemClock}.
48
+ * @defaultValue {@linkcode systemClock}
49
49
  */
50
50
  constructor(intervalMs, clock = systemClock) {
51
51
  if (!Number.isFinite(intervalMs) || intervalMs <= 0) {
@@ -91,7 +91,8 @@ export interface RetryOptions {
91
91
  * Total attempts, including the first, before giving up.
92
92
  *
93
93
  * A stated ceiling rather than "until it works".
94
- * Default {@linkcode DEFAULT_MAX_ATTEMPTS}.
94
+ *
95
+ * @defaultValue {@linkcode DEFAULT_MAX_ATTEMPTS}
95
96
  */
96
97
  maxAttempts?: number;
97
98
  /**
@@ -99,7 +100,8 @@ export interface RetryOptions {
99
100
  *
100
101
  * Attempt `n`'s wait is `baseDelayMs * 2^(n-1)`, unless the response includes a `Retry-After` header.
101
102
  * The client honors that delay instead.
102
- * Default {@linkcode DEFAULT_BASE_RETRY_DELAY_MS}.
103
+ *
104
+ * @defaultValue {@linkcode DEFAULT_BASE_RETRY_DELAY_MS}
103
105
  */
104
106
  baseDelayMs?: number;
105
107
  }
@@ -113,9 +115,9 @@ export interface ResolvedRetryPolicy {
113
115
  /**
114
116
  * Fill in {@linkcode RetryOptions}' defaults.
115
117
  *
116
- * `undefined` (the absent option) resolves to a single attempt — no retry.
118
+ * `null` (the absent option) resolves to a single attempt — no retry.
117
119
  */
118
- export declare function resolveRetryPolicy(options: RetryOptions | boolean | undefined): ResolvedRetryPolicy;
120
+ export declare function resolveRetryPolicy(options: RetryOptions | boolean | null): ResolvedRetryPolicy;
119
121
  /**
120
122
  * The wait before attempt `attempt + 1`, given the directive from attempt `attempt` (1-based).
121
123
  *
@@ -1 +1 @@
1
- {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../lib/api/retry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAS,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAA;AAY9C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;;;;OAOG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;;OAGG;IAC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C3B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAkBlF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAIzD;AAkBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAWnE;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,YAAY;IAC5B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,GAAG,IAAI,GAAG,mBAAmB,CAS9F;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAE5G"}
package/out/api/retry.js CHANGED
@@ -124,7 +124,7 @@ export function classifyAxiosFailure(error) {
124
124
  /**
125
125
  * Fill in {@linkcode RetryOptions}' defaults.
126
126
  *
127
- * `undefined` (the absent option) resolves to a single attempt — no retry.
127
+ * `null` (the absent option) resolves to a single attempt — no retry.
128
128
  */
129
129
  export function resolveRetryPolicy(options) {
130
130
  if (!options)
@@ -1 +1 @@
1
- {"version":3,"file":"retry.js","sourceRoot":"","sources":["../../lib/api/retry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEhD;;GAEG;AACH,MAAM,sBAAsB,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A;AACzE,CAAC"}
@@ -15,8 +15,8 @@
15
15
  *
16
16
  * Everything here is built structurally with `isAxiosError: true` and `config`/`code`/`response`.
17
17
  * The adapter uses `APIClientConfig["axios"]` because the packages under test reach Axios integrations through
18
- * `@mailwoman/core`. Where an axios type has to be named, such as the response
19
- * {@linkcode stubFetchingBodies} resolves, it is named here rather than by the calling test,
18
+ * `@mailwoman/core`. The axios type {@linkcode stubFetchingBodies} resolves is stated here
19
+ * rather than by the calling test,
20
20
  * so a workspace that stubs a request needs no `axios` dependency of its own.
21
21
  */
22
22
  import type { APIClient, APIClientConfig } from "#api/APIClient";
@@ -41,9 +41,9 @@ export interface StubRequestConfig {
41
41
  cache?: unknown;
42
42
  }
43
43
  /**
44
- * One scripted adapter outcome.
44
+ * One scripted adapter result.
45
45
  */
46
- export interface StubOutcome {
46
+ export interface StubResult {
47
47
  status?: number;
48
48
  statusText?: string;
49
49
  /**
@@ -102,9 +102,9 @@ export interface StubTransportOptions {
102
102
  now(): number;
103
103
  };
104
104
  /**
105
- * The body served when an outcome names none.
105
+ * The body served when a result names none.
106
106
  *
107
- * Defaults to `{ ok: true }`; pass the envelope the client under test expects
107
+ * @defaultValue `{ ok: true }`; pass the envelope the client under test expects
108
108
  * when it validates one (BDC's `{ data: [] }`, say).
109
109
  */
110
110
  defaultBody?: unknown;
@@ -113,11 +113,11 @@ export interface StubTransportOptions {
113
113
  * A client answering each `fetch` with the next of `bodies`, holding on the last once exhausted.
114
114
  *
115
115
  * A reader that takes `Pick<APIClient, "fetch">` reads only `data`, so the stub states
116
- * that field alone rather than building headers and a config.
117
- * Passing several bodies scripts a reader that asks twice, such as a count checked against a page.
116
+ * that field only rather than building headers and a config.
117
+ * Several bodies script a reader that asks twice, such as a count checked against a page.
118
118
  *
119
119
  * This lives beside {@linkcode stubTransport} so that a workspace which does not
120
- * depend on `axios` can still stub the method: the axios type is named here,
120
+ * depend on `axios` can still stub the method: the axios type is stated here,
121
121
  * in core, rather than by the test that calls this.
122
122
  */
123
123
  export declare function stubFetchingBodies(...bodies: string[]): Pick<APIClient, "fetch">;
@@ -130,7 +130,7 @@ export declare function stubFetchingBodies(...bodies: string[]): Pick<APIClient,
130
130
  */
131
131
  export declare function axiosLikeError(message: string, code: string, config: StubRequestConfig, response?: unknown): Error;
132
132
  /**
133
- * A stub Axios adapter that replays `outcomes` (holding on the last entry once exhausted)
133
+ * A stub Axios adapter that replays `results` (holding on the last entry once exhausted)
134
134
  * and records every dispatch.
135
135
  *
136
136
  * It reproduces what Axios's real adapters do on a failing status — reject with an
@@ -138,5 +138,5 @@ export declare function axiosLikeError(message: string, code: string, config: St
138
138
  * by the adapter rather than by the interceptor chain.
139
139
  * A test that resolves with a 4xx instead would exercise a path the real transport never takes.
140
140
  */
141
- export declare function stubTransport(outcomes: StubOutcome[], options?: StubTransportOptions): StubTransport;
141
+ export declare function stubTransport(results: StubResult[], options?: StubTransportOptions): StubTransport;
142
142
  //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../lib/api/test/transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAOhE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,O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