@mailwoman/core 10.8.0 → 11.1.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/README.md +24 -1
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/lib/api/APIClient.ts +6 -5
- package/lib/api/arcgis.ts +6 -5
- package/lib/api/ckan.ts +8 -7
- package/lib/api/clock.ts +3 -3
- package/lib/api/content-range.ts +33 -0
- package/lib/api/defaults.ts +3 -3
- package/lib/api/disk-storage.ts +6 -6
- package/lib/api/headless.ts +3 -4
- package/lib/api/host.ts +5 -5
- package/lib/api/ogc.ts +11 -11
- package/lib/api/paced-client.ts +9 -7
- package/lib/api/pacer.ts +5 -5
- package/lib/api/responses.ts +44 -9
- package/lib/api/retry.ts +4 -4
- package/lib/api/test/clocks.ts +7 -7
- package/lib/api/test/transport.ts +5 -5
- package/lib/api.ts +3 -4
- package/lib/asset/names.ts +6 -6
- package/lib/asset/paths.ts +5 -6
- package/lib/binary-frame.ts +2 -5
- package/lib/cloudflare/tokens.ts +141 -0
- package/lib/cloudflare/wrangler.ts +98 -0
- package/lib/cloudflare.ts +10 -0
- package/lib/coarse-placer/coarse-placer.ts +6 -5
- package/lib/coarse-placer/featurize.ts +6 -6
- package/lib/coarse-placer/fnv-hash.ts +6 -6
- package/lib/coarse-placer/math.ts +10 -6
- package/lib/collections.ts +2 -5
- package/lib/crypto/base64url.ts +5 -6
- package/lib/crypto/digest.ts +7 -6
- package/lib/crypto/ed25519.ts +9 -9
- package/lib/crypto/node.ts +2 -5
- package/lib/data-root.ts +85 -11
- package/lib/decoder/build-tree.ts +14 -15
- package/lib/decoder/calibration.ts +20 -18
- package/lib/decoder/containment.ts +17 -15
- package/lib/decoder/excluded-span.ts +3 -3
- package/lib/decoder/parse-diff.ts +11 -8
- package/lib/decoder/proposals-to-tree.ts +5 -6
- package/lib/decoder/serialize/json.ts +13 -12
- package/lib/decoder/serialize/tuples.ts +7 -7
- package/lib/decoder/serialize/xml.ts +15 -12
- package/lib/decoder/tree/shape.ts +10 -11
- package/lib/decoder/tree/walk.ts +6 -6
- package/lib/decoder/types.ts +8 -7
- package/lib/decoder/unknown-spans.ts +9 -7
- package/lib/decoder/validate-tree.ts +11 -8
- package/lib/decoder.ts +2 -5
- package/lib/env/env-file.ts +4 -7
- package/lib/env/paths.ts +3 -7
- package/lib/env/schema.ts +3 -4
- package/lib/env/utils.ts +3 -4
- package/lib/env.ts +6 -9
- package/lib/errors/schema.ts +3 -4
- package/lib/fs/compression.ts +7 -4
- package/lib/fs/deflate64.ts +183 -0
- package/lib/fs/delimited.ts +4 -4
- package/lib/fs/formatters.ts +2 -5
- package/lib/fs/lock.ts +4 -4
- package/lib/fs/readers/stat.ts +12 -11
- package/lib/fs/readers.ts +22 -12
- package/lib/fs/snapshot.ts +111 -0
- package/lib/fs/streams.ts +9 -9
- package/lib/fs/temporary.ts +4 -4
- package/lib/fs/writers.ts +6 -6
- package/lib/fs/zip.ts +113 -28
- package/lib/geocode/result.ts +16 -7
- package/lib/git.ts +43 -8
- package/lib/hash.ts +13 -4
- package/lib/html/document.ts +9 -6
- package/lib/html/elements.ts +18 -14
- package/lib/html/tables.ts +5 -5
- package/lib/html/text.ts +10 -10
- package/lib/identical.ts +7 -6
- package/lib/index.ts +2 -5
- package/lib/json.ts +11 -9
- package/lib/layers/artifact.ts +14 -14
- package/lib/layers/build-command.ts +7 -7
- package/lib/layers/coverage.ts +7 -7
- package/lib/layers/feature-count.ts +3 -6
- package/lib/layers/manifest.ts +6 -7
- package/lib/layers/outcome.ts +12 -12
- package/lib/layers/publication.ts +4 -4
- package/lib/layers/recipe.ts +4 -4
- package/lib/layers/schema.ts +18 -15
- package/lib/layers/selection.ts +9 -9
- package/lib/layers.ts +5 -5
- package/lib/license/configured.ts +8 -8
- package/lib/license/decision.ts +17 -16
- package/lib/license/declaration.ts +8 -7
- package/lib/license/docs-site.ts +6 -5
- package/lib/license/install-id.ts +8 -6
- package/lib/license/key/file.ts +12 -8
- package/lib/license/key.ts +9 -8
- package/lib/license/obligations.ts +8 -9
- package/lib/license/publication.ts +9 -9
- package/lib/license/record.ts +8 -7
- package/lib/license/register.ts +12 -11
- package/lib/license/stamp.ts +5 -4
- package/lib/license/status.ts +10 -8
- package/lib/license.ts +10 -7
- package/lib/load-ledger.ts +105 -0
- package/lib/locale/locale.ts +9 -8
- package/lib/locale/profiles/en-us.ts +5 -5
- package/lib/locale/profiles/fr-fr.ts +6 -5
- package/lib/locale/profiles/ja-jp.ts +5 -5
- package/lib/locale/profiles.ts +2 -5
- package/lib/locale/registry.ts +7 -6
- package/lib/locale/zh-cn-units.ts +5 -5
- package/lib/locale.ts +2 -5
- package/lib/logging/shared.ts +4 -7
- package/lib/logging/utils.ts +3 -5
- package/lib/logging.ts +2 -5
- package/lib/memoize.ts +29 -0
- package/lib/module/checkout-locality.ts +174 -0
- package/lib/module/clean.ts +6 -5
- package/lib/module/compiled-freshness.ts +3 -3
- package/lib/module/file-url.ts +4 -5
- package/lib/module/package-command.ts +3 -0
- package/lib/module/packaged-data.ts +9 -8
- package/lib/module/resolve-from.ts +17 -12
- package/lib/module/resolvers.ts +8 -9
- package/lib/module/runtime.ts +2 -5
- package/lib/module/workspace.ts +7 -6
- package/lib/network/connectivity.ts +112 -0
- package/lib/network/reachability.ts +90 -0
- package/lib/numeric.ts +11 -11
- package/lib/objects.ts +5 -6
- package/lib/overture-pins.ts +4 -4
- package/lib/paths.ts +10 -10
- package/lib/pipeline/client-result.ts +42 -17
- package/lib/pipeline/preferences.ts +3 -2
- package/lib/pipeline/result.ts +3 -5
- package/lib/pipeline/runtime-pipeline.ts +26 -8
- package/lib/pipeline/span-proposer.ts +10 -9
- package/lib/pipeline/types.ts +33 -8
- package/lib/pipeline.ts +3 -4
- package/lib/policy/defaults.ts +5 -6
- package/lib/policy/policy.ts +3 -4
- package/lib/policy/proposal-collection.ts +3 -4
- package/lib/policy/registry.ts +9 -7
- package/lib/policy.ts +2 -5
- package/lib/postcode-prefix-files.ts +8 -7
- package/lib/process.ts +14 -14
- package/lib/promises.ts +6 -4
- package/lib/random.ts +7 -6
- package/lib/release-config.ts +12 -4
- package/lib/resolver/authoritative-provider.ts +17 -11
- package/lib/resolver/coverage-facts.ts +7 -6
- package/lib/resolver/fixture-authoritative-provider.ts +13 -11
- package/lib/resolver/lookup-types.ts +10 -5
- package/lib/resolver/referential.ts +11 -6
- package/lib/resolver/region-database-provider.ts +4 -4
- package/lib/resolver/synthetic-id-ranges.ts +4 -4
- package/lib/resolver/types.ts +75 -57
- package/lib/resolver.ts +20 -12
- package/lib/resources/debugging.ts +2 -5
- package/lib/resources/languages/types.gen.ts +3 -4
- package/lib/resources/languages.ts +2 -5
- package/lib/resources/libpostal.ts +3 -4
- package/lib/resources/locale.ts +2 -5
- package/lib/resources/set.ts +2 -5
- package/lib/resources.ts +2 -6
- package/lib/routing.ts +4 -7
- package/lib/scope-config.ts +12 -8
- package/lib/scripting/arguments.ts +10 -9
- package/lib/scripting/command.ts +6 -5
- package/lib/scripting/ingest-chunk-script.ts +5 -6
- package/lib/scripting/operation.ts +45 -5
- package/lib/scripting/utils.ts +3 -0
- package/lib/scripting.ts +4 -1
- package/lib/spdx-header.ts +314 -0
- package/lib/state-machine.ts +149 -0
- package/lib/stats.ts +3 -4
- package/lib/strings/code-points.ts +3 -4
- package/lib/strings/compare.ts +4 -4
- package/lib/strings/escape.ts +3 -3
- package/lib/strings/format.ts +3 -3
- package/lib/strings/markdown-table.ts +4 -4
- package/lib/strings/python-json.ts +11 -10
- package/lib/strings/regexp.ts +3 -3
- package/lib/strings/terminal.ts +20 -0
- package/lib/strings/unicode.ts +6 -6
- package/lib/tokenization/Graph.ts +3 -4
- package/lib/tokenization/Span.ts +3 -4
- package/lib/tokenization/normalizer.ts +3 -4
- package/lib/tokenization.ts +2 -5
- package/lib/trust-policies.ts +20 -15
- package/lib/types/Classification.ts +3 -6
- package/lib/types/classifier.ts +10 -9
- package/lib/types/mapping.ts +13 -14
- package/lib/types.ts +2 -5
- package/lib/utils/chunk-process.ts +14 -10
- package/lib/utils/collections.ts +3 -3
- package/lib/utils/events.ts +2 -5
- package/lib/utils/geodatabase-archive.ts +10 -8
- package/lib/utils/sleep.ts +2 -5
- package/lib/utils/sqlite-rows.ts +9 -7
- package/lib/utils/stream-to-disk.ts +26 -9
- package/lib/utils/system.ts +4 -4
- package/lib/utils/time.ts +3 -3
- package/lib/utils/union-find.ts +3 -3
- package/lib/utils.ts +2 -5
- package/lib/vale.ts +5 -5
- package/lib/workers.ts +10 -5
- package/lib/workspaces.ts +5 -4
- package/out/api/APIClient.d.ts +0 -7
- package/out/api/APIClient.d.ts.map +1 -1
- package/out/api/APIClient.js +5 -4
- package/out/api/APIClient.js.map +1 -1
- package/out/api/arcgis.d.ts +3 -5
- package/out/api/arcgis.d.ts.map +1 -1
- package/out/api/arcgis.js +2 -8
- package/out/api/arcgis.js.map +1 -1
- package/out/api/ckan.d.ts +5 -7
- package/out/api/ckan.d.ts.map +1 -1
- package/out/api/ckan.js +2 -11
- package/out/api/ckan.js.map +1 -1
- package/out/api/clock.d.ts +0 -3
- package/out/api/clock.d.ts.map +1 -1
- package/out/api/clock.js +2 -16
- package/out/api/clock.js.map +1 -1
- package/out/api/content-range.d.ts +17 -0
- package/out/api/content-range.d.ts.map +1 -0
- package/out/api/content-range.js +28 -0
- package/out/api/content-range.js.map +1 -0
- package/out/api/defaults.d.ts +0 -3
- package/out/api/defaults.d.ts.map +1 -1
- package/out/api/defaults.js +2 -3
- package/out/api/defaults.js.map +1 -1
- package/out/api/disk-storage.d.ts +1 -4
- package/out/api/disk-storage.d.ts.map +1 -1
- package/out/api/disk-storage.js +5 -6
- package/out/api/disk-storage.js.map +1 -1
- package/out/api/headless.d.ts +0 -4
- package/out/api/headless.d.ts.map +1 -1
- package/out/api/headless.js +2 -4
- package/out/api/headless.js.map +1 -1
- package/out/api/host.d.ts +2 -8
- package/out/api/host.d.ts.map +1 -1
- package/out/api/host.js +3 -4
- package/out/api/host.js.map +1 -1
- package/out/api/ogc.d.ts +3 -13
- package/out/api/ogc.d.ts.map +1 -1
- package/out/api/ogc.js +10 -11
- package/out/api/ogc.js.map +1 -1
- package/out/api/paced-client.d.ts +6 -7
- package/out/api/paced-client.d.ts.map +1 -1
- package/out/api/paced-client.js +2 -13
- package/out/api/paced-client.js.map +1 -1
- package/out/api/pacer.d.ts +2 -5
- package/out/api/pacer.d.ts.map +1 -1
- package/out/api/pacer.js +4 -5
- package/out/api/pacer.js.map +1 -1
- package/out/api/responses.d.ts +2 -9
- package/out/api/responses.d.ts.map +1 -1
- package/out/api/responses.js +37 -9
- package/out/api/responses.js.map +1 -1
- package/out/api/retry.d.ts +1 -7
- package/out/api/retry.d.ts.map +1 -1
- package/out/api/retry.js +3 -4
- package/out/api/retry.js.map +1 -1
- package/out/api/test/clocks.d.ts +1 -4
- package/out/api/test/clocks.d.ts.map +1 -1
- package/out/api/test/clocks.js +6 -14
- package/out/api/test/clocks.js.map +1 -1
- package/out/api/test/transport.d.ts +2 -23
- package/out/api/test/transport.d.ts.map +1 -1
- package/out/api/test/transport.js +3 -22
- package/out/api/test/transport.js.map +1 -1
- package/out/api.d.ts +0 -4
- package/out/api.d.ts.map +1 -1
- package/out/api.js +2 -4
- package/out/api.js.map +1 -1
- package/out/asset/names.d.ts +3 -6
- package/out/asset/names.d.ts.map +1 -1
- package/out/asset/names.js +5 -6
- package/out/asset/names.js.map +1 -1
- package/out/asset/paths.d.ts +2 -6
- package/out/asset/paths.d.ts.map +1 -1
- package/out/asset/paths.js +4 -6
- package/out/asset/paths.js.map +1 -1
- package/out/binary-frame.d.ts +0 -5
- package/out/binary-frame.d.ts.map +1 -1
- package/out/binary-frame.js +2 -5
- package/out/binary-frame.js.map +1 -1
- package/out/cloudflare/tokens.d.ts +61 -0
- package/out/cloudflare/tokens.d.ts.map +1 -0
- package/out/cloudflare/tokens.js +79 -0
- package/out/cloudflare/tokens.js.map +1 -0
- package/out/cloudflare/wrangler.d.ts +30 -0
- package/out/cloudflare/wrangler.d.ts.map +1 -0
- package/out/cloudflare/wrangler.js +68 -0
- package/out/cloudflare/wrangler.js.map +1 -0
- package/out/cloudflare.d.ts +7 -0
- package/out/cloudflare.d.ts.map +1 -0
- package/out/cloudflare.js +9 -0
- package/out/cloudflare.js.map +1 -0
- package/out/coarse-placer/coarse-placer.d.ts +3 -5
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js +2 -9
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts +0 -13
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/featurize.js +5 -6
- package/out/coarse-placer/featurize.js.map +1 -1
- package/out/coarse-placer/fnv-hash.d.ts +3 -6
- package/out/coarse-placer/fnv-hash.d.ts.map +1 -1
- package/out/coarse-placer/fnv-hash.js +5 -6
- package/out/coarse-placer/fnv-hash.js.map +1 -1
- package/out/coarse-placer/math.d.ts +7 -6
- package/out/coarse-placer/math.d.ts.map +1 -1
- package/out/coarse-placer/math.js +2 -11
- package/out/coarse-placer/math.js.map +1 -1
- package/out/collections.d.ts +0 -5
- package/out/collections.d.ts.map +1 -1
- package/out/collections.js +2 -5
- package/out/collections.js.map +1 -1
- package/out/crypto/base64url.d.ts +2 -6
- package/out/crypto/base64url.d.ts.map +1 -1
- package/out/crypto/base64url.js +4 -6
- package/out/crypto/base64url.js.map +1 -1
- package/out/crypto/digest.d.ts +4 -6
- package/out/crypto/digest.d.ts.map +1 -1
- package/out/crypto/digest.js +6 -6
- package/out/crypto/digest.js.map +1 -1
- package/out/crypto/ed25519.d.ts +1 -13
- package/out/crypto/ed25519.d.ts.map +1 -1
- package/out/crypto/ed25519.js +8 -9
- package/out/crypto/ed25519.js.map +1 -1
- package/out/crypto/node.d.ts +0 -5
- package/out/crypto/node.d.ts.map +1 -1
- package/out/crypto/node.js +2 -5
- package/out/crypto/node.js.map +1 -1
- package/out/data-root.d.ts +53 -11
- package/out/data-root.d.ts.map +1 -1
- package/out/data-root.js +76 -11
- package/out/data-root.js.map +1 -1
- package/out/decoder/build-tree.d.ts +0 -26
- package/out/decoder/build-tree.d.ts.map +1 -1
- package/out/decoder/build-tree.js +6 -30
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/calibration.d.ts +17 -18
- package/out/decoder/calibration.d.ts.map +1 -1
- package/out/decoder/calibration.js +2 -24
- package/out/decoder/calibration.js.map +1 -1
- package/out/decoder/containment.d.ts +14 -15
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js +2 -29
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/excluded-span.d.ts +0 -3
- package/out/decoder/excluded-span.d.ts.map +1 -1
- package/out/decoder/excluded-span.js +2 -6
- package/out/decoder/excluded-span.js.map +1 -1
- package/out/decoder/parse-diff.d.ts +0 -21
- package/out/decoder/parse-diff.d.ts.map +1 -1
- package/out/decoder/parse-diff.js +10 -8
- package/out/decoder/parse-diff.js.map +1 -1
- package/out/decoder/proposals-to-tree.d.ts +2 -6
- package/out/decoder/proposals-to-tree.d.ts.map +1 -1
- package/out/decoder/proposals-to-tree.js +4 -9
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/serialize/json.d.ts +9 -11
- package/out/decoder/serialize/json.d.ts.map +1 -1
- package/out/decoder/serialize/json.js +4 -18
- package/out/decoder/serialize/json.js.map +1 -1
- package/out/decoder/serialize/tuples.d.ts +4 -7
- package/out/decoder/serialize/tuples.d.ts.map +1 -1
- package/out/decoder/serialize/tuples.js +2 -11
- package/out/decoder/serialize/tuples.js.map +1 -1
- package/out/decoder/serialize/xml.d.ts +12 -12
- package/out/decoder/serialize/xml.d.ts.map +1 -1
- package/out/decoder/serialize/xml.js +2 -27
- package/out/decoder/serialize/xml.js.map +1 -1
- package/out/decoder/tree/shape.d.ts +7 -11
- package/out/decoder/tree/shape.d.ts.map +1 -1
- package/out/decoder/tree/shape.js +3 -13
- package/out/decoder/tree/shape.js.map +1 -1
- package/out/decoder/tree/walk.d.ts +3 -11
- package/out/decoder/tree/walk.d.ts.map +1 -1
- package/out/decoder/tree/walk.js +5 -6
- package/out/decoder/tree/walk.js.map +1 -1
- package/out/decoder/types.d.ts +5 -7
- package/out/decoder/types.d.ts.map +1 -1
- package/out/decoder/types.js +3 -5
- package/out/decoder/types.js.map +1 -1
- package/out/decoder/unknown-spans.d.ts.map +1 -1
- package/out/decoder/unknown-spans.js +8 -7
- package/out/decoder/unknown-spans.js.map +1 -1
- package/out/decoder/validate-tree.d.ts +8 -8
- package/out/decoder/validate-tree.d.ts.map +1 -1
- package/out/decoder/validate-tree.js +2 -23
- package/out/decoder/validate-tree.js.map +1 -1
- package/out/decoder.d.ts +0 -5
- package/out/decoder.d.ts.map +1 -1
- package/out/decoder.js +2 -5
- package/out/decoder.js.map +1 -1
- package/out/env/env-file.d.ts +1 -6
- package/out/env/env-file.d.ts.map +1 -1
- package/out/env/env-file.js +4 -7
- package/out/env/env-file.js.map +1 -1
- package/out/env/paths.d.ts +1 -7
- package/out/env/paths.d.ts.map +1 -1
- package/out/env/paths.js +3 -7
- package/out/env/paths.js.map +1 -1
- package/out/env/schema.d.ts +0 -8
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +2 -4
- package/out/env/schema.js.map +1 -1
- package/out/env/utils.d.ts +0 -7
- package/out/env/utils.d.ts.map +1 -1
- package/out/env/utils.js +2 -4
- package/out/env/utils.js.map +1 -1
- package/out/env.d.ts +2 -7
- package/out/env.d.ts.map +1 -1
- package/out/env.js +6 -9
- package/out/env.js.map +1 -1
- package/out/errors/schema.d.ts +0 -4
- package/out/errors/schema.d.ts.map +1 -1
- package/out/errors/schema.js +2 -0
- package/out/errors/schema.js.map +1 -1
- package/out/fs/compression.d.ts +4 -4
- package/out/fs/compression.d.ts.map +1 -1
- package/out/fs/compression.js +5 -3
- package/out/fs/compression.js.map +1 -1
- package/out/fs/deflate64.d.ts +21 -0
- package/out/fs/deflate64.d.ts.map +1 -0
- package/out/fs/deflate64.js +121 -0
- package/out/fs/deflate64.js.map +1 -0
- package/out/fs/delimited.d.ts +1 -4
- package/out/fs/delimited.d.ts.map +1 -1
- package/out/fs/delimited.js +2 -23
- package/out/fs/delimited.js.map +1 -1
- package/out/fs/formatters.d.ts +0 -5
- package/out/fs/formatters.d.ts.map +1 -1
- package/out/fs/formatters.js +2 -5
- package/out/fs/formatters.js.map +1 -1
- package/out/fs/lock.d.ts +0 -3
- package/out/fs/lock.d.ts.map +1 -1
- package/out/fs/lock.js +3 -12
- package/out/fs/lock.js.map +1 -1
- package/out/fs/readers/stat.d.ts +9 -14
- package/out/fs/readers/stat.d.ts.map +1 -1
- package/out/fs/readers/stat.js +11 -11
- package/out/fs/readers/stat.js.map +1 -1
- package/out/fs/readers.d.ts +11 -16
- package/out/fs/readers.d.ts.map +1 -1
- package/out/fs/readers.js +15 -10
- package/out/fs/readers.js.map +1 -1
- package/out/fs/snapshot.d.ts +51 -0
- package/out/fs/snapshot.d.ts.map +1 -0
- package/out/fs/snapshot.js +67 -0
- package/out/fs/snapshot.js.map +1 -0
- package/out/fs/streams.d.ts +6 -9
- package/out/fs/streams.d.ts.map +1 -1
- package/out/fs/streams.js +8 -9
- package/out/fs/streams.js.map +1 -1
- package/out/fs/temporary.d.ts +1 -10
- package/out/fs/temporary.d.ts.map +1 -1
- package/out/fs/temporary.js +3 -4
- package/out/fs/temporary.js.map +1 -1
- package/out/fs/writers.d.ts +3 -11
- package/out/fs/writers.d.ts.map +1 -1
- package/out/fs/writers.js +5 -6
- package/out/fs/writers.js.map +1 -1
- package/out/fs/zip.d.ts +2 -19
- package/out/fs/zip.d.ts.map +1 -1
- package/out/fs/zip.js +82 -20
- package/out/fs/zip.js.map +1 -1
- package/out/geocode/result.d.ts +3 -11
- package/out/geocode/result.d.ts.map +1 -1
- package/out/geocode/result.js +15 -7
- package/out/geocode/result.js.map +1 -1
- package/out/git.d.ts +15 -8
- package/out/git.d.ts.map +1 -1
- package/out/git.js +34 -9
- package/out/git.js.map +1 -1
- package/out/hash.d.ts +8 -6
- package/out/hash.d.ts.map +1 -1
- package/out/hash.js +2 -4
- package/out/hash.js.map +1 -1
- package/out/html/document.d.ts +0 -13
- package/out/html/document.d.ts.map +1 -1
- package/out/html/document.js +8 -6
- package/out/html/document.js.map +1 -1
- package/out/html/elements.d.ts +1 -20
- package/out/html/elements.d.ts.map +1 -1
- package/out/html/elements.js +17 -14
- package/out/html/elements.js.map +1 -1
- package/out/html/tables.d.ts +0 -8
- package/out/html/tables.d.ts.map +1 -1
- package/out/html/tables.js +4 -5
- package/out/html/tables.js.map +1 -1
- package/out/html/text.d.ts +1 -17
- package/out/html/text.d.ts.map +1 -1
- package/out/html/text.js +9 -10
- package/out/html/text.js.map +1 -1
- package/out/identical.d.ts +0 -9
- package/out/identical.d.ts.map +1 -1
- package/out/identical.js +6 -6
- package/out/identical.js.map +1 -1
- package/out/index.d.ts +0 -5
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -5
- package/out/index.js.map +1 -1
- package/out/json.d.ts +8 -9
- package/out/json.d.ts.map +1 -1
- package/out/json.js +6 -16
- package/out/json.js.map +1 -1
- package/out/layers/artifact.d.ts +9 -27
- package/out/layers/artifact.d.ts.map +1 -1
- package/out/layers/artifact.js +6 -7
- package/out/layers/artifact.js.map +1 -1
- package/out/layers/build-command.d.ts +0 -10
- package/out/layers/build-command.d.ts.map +1 -1
- package/out/layers/build-command.js +6 -7
- package/out/layers/build-command.js.map +1 -1
- package/out/layers/coverage.d.ts +4 -10
- package/out/layers/coverage.d.ts.map +1 -1
- package/out/layers/coverage.js +4 -5
- package/out/layers/coverage.js.map +1 -1
- package/out/layers/feature-count.d.ts +1 -6
- package/out/layers/feature-count.d.ts.map +1 -1
- package/out/layers/feature-count.js +3 -6
- package/out/layers/feature-count.js.map +1 -1
- package/out/layers/manifest.d.ts +3 -7
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +2 -4
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/outcome.d.ts +9 -12
- package/out/layers/outcome.d.ts.map +1 -1
- package/out/layers/outcome.js +11 -12
- package/out/layers/outcome.js.map +1 -1
- package/out/layers/publication.d.ts +1 -21
- package/out/layers/publication.d.ts.map +1 -1
- package/out/layers/publication.js +3 -4
- package/out/layers/publication.js.map +1 -1
- package/out/layers/recipe.d.ts +1 -4
- package/out/layers/recipe.d.ts.map +1 -1
- package/out/layers/recipe.js +2 -15
- package/out/layers/recipe.js.map +1 -1
- package/out/layers/schema.d.ts +15 -15
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +2 -13
- package/out/layers/schema.js.map +1 -1
- package/out/layers/selection.d.ts +4 -24
- package/out/layers/selection.d.ts.map +1 -1
- package/out/layers/selection.js +6 -7
- package/out/layers/selection.js.map +1 -1
- package/out/layers.d.ts +2 -5
- package/out/layers.d.ts.map +1 -1
- package/out/layers.js +4 -5
- package/out/layers.js.map +1 -1
- package/out/license/configured.d.ts +5 -8
- package/out/license/configured.d.ts.map +1 -1
- package/out/license/configured.js +7 -8
- package/out/license/configured.js.map +1 -1
- package/out/license/decision.d.ts +4 -20
- package/out/license/decision.d.ts.map +1 -1
- package/out/license/decision.js +15 -14
- package/out/license/decision.js.map +1 -1
- package/out/license/declaration.d.ts +5 -7
- package/out/license/declaration.d.ts.map +1 -1
- package/out/license/declaration.js +2 -9
- package/out/license/declaration.js.map +1 -1
- package/out/license/docs-site.d.ts +0 -8
- package/out/license/docs-site.d.ts.map +1 -1
- package/out/license/docs-site.js +5 -5
- package/out/license/docs-site.js.map +1 -1
- package/out/license/install-id.d.ts +0 -9
- package/out/license/install-id.d.ts.map +1 -1
- package/out/license/install-id.js +7 -6
- package/out/license/install-id.js.map +1 -1
- package/out/license/key/file.d.ts +0 -11
- package/out/license/key/file.d.ts.map +1 -1
- package/out/license/key/file.js +11 -8
- package/out/license/key/file.js.map +1 -1
- package/out/license/key.d.ts +5 -7
- package/out/license/key.d.ts.map +1 -1
- package/out/license/key.js +8 -8
- package/out/license/key.js.map +1 -1
- package/out/license/obligations.d.ts +2 -10
- package/out/license/obligations.d.ts.map +1 -1
- package/out/license/obligations.js +7 -9
- package/out/license/obligations.js.map +1 -1
- package/out/license/publication.d.ts +4 -7
- package/out/license/publication.d.ts.map +1 -1
- package/out/license/publication.js +8 -9
- package/out/license/publication.js.map +1 -1
- package/out/license/record.d.ts +2 -5
- package/out/license/record.d.ts.map +1 -1
- package/out/license/record.js +7 -7
- package/out/license/record.js.map +1 -1
- package/out/license/register.d.ts +9 -11
- package/out/license/register.d.ts.map +1 -1
- package/out/license/register.js +11 -11
- package/out/license/register.js.map +1 -1
- package/out/license/stamp.d.ts +0 -8
- package/out/license/stamp.d.ts.map +1 -1
- package/out/license/stamp.js +4 -4
- package/out/license/stamp.js.map +1 -1
- package/out/license/status.d.ts +2 -16
- package/out/license/status.d.ts.map +1 -1
- package/out/license/status.js +6 -18
- package/out/license/status.js.map +1 -1
- package/out/license.d.ts +7 -7
- package/out/license.d.ts.map +1 -1
- package/out/license.js +9 -7
- package/out/license.js.map +1 -1
- package/out/load-ledger.d.ts +80 -0
- package/out/load-ledger.d.ts.map +1 -0
- package/out/load-ledger.js +53 -0
- package/out/load-ledger.js.map +1 -0
- package/out/locale/locale.d.ts +6 -8
- package/out/locale/locale.d.ts.map +1 -1
- package/out/locale/locale.js +2 -12
- package/out/locale/locale.js.map +1 -1
- package/out/locale/profiles/en-us.d.ts +2 -5
- package/out/locale/profiles/en-us.d.ts.map +1 -1
- package/out/locale/profiles/en-us.js +2 -7
- package/out/locale/profiles/en-us.js.map +1 -1
- package/out/locale/profiles/fr-fr.d.ts +3 -5
- package/out/locale/profiles/fr-fr.d.ts.map +1 -1
- package/out/locale/profiles/fr-fr.js +2 -8
- package/out/locale/profiles/fr-fr.js.map +1 -1
- package/out/locale/profiles/ja-jp.d.ts +2 -5
- package/out/locale/profiles/ja-jp.d.ts.map +1 -1
- package/out/locale/profiles/ja-jp.js +2 -7
- package/out/locale/profiles/ja-jp.js.map +1 -1
- package/out/locale/profiles.d.ts +0 -5
- package/out/locale/profiles.d.ts.map +1 -1
- package/out/locale/profiles.js +2 -5
- package/out/locale/profiles.js.map +1 -1
- package/out/locale/registry.d.ts +0 -9
- package/out/locale/registry.d.ts.map +1 -1
- package/out/locale/registry.js +6 -6
- package/out/locale/registry.js.map +1 -1
- package/out/locale/zh-cn-units.d.ts +2 -5
- package/out/locale/zh-cn-units.d.ts.map +1 -1
- package/out/locale/zh-cn-units.js +4 -5
- package/out/locale/zh-cn-units.js.map +1 -1
- package/out/locale.d.ts +0 -5
- package/out/locale.d.ts.map +1 -1
- package/out/locale.js +2 -5
- package/out/locale.js.map +1 -1
- package/out/logging/shared.d.ts +0 -5
- package/out/logging/shared.d.ts.map +1 -1
- package/out/logging/shared.js +4 -7
- package/out/logging/shared.js.map +1 -1
- package/out/logging/utils.d.ts +0 -5
- package/out/logging/utils.d.ts.map +1 -1
- package/out/logging/utils.js +2 -5
- package/out/logging/utils.js.map +1 -1
- package/out/logging.d.ts +0 -5
- package/out/logging.d.ts.map +1 -1
- package/out/logging.js +2 -5
- package/out/logging.js.map +1 -1
- package/out/memoize.d.ts +13 -0
- package/out/memoize.d.ts.map +1 -0
- package/out/memoize.js +26 -0
- package/out/memoize.js.map +1 -0
- package/out/module/checkout-locality.d.ts +102 -0
- package/out/module/checkout-locality.d.ts.map +1 -0
- package/out/module/checkout-locality.js +130 -0
- package/out/module/checkout-locality.js.map +1 -0
- package/out/module/clean.d.ts +3 -5
- package/out/module/clean.d.ts.map +1 -1
- package/out/module/clean.js +2 -8
- package/out/module/clean.js.map +1 -1
- package/out/module/compiled-freshness.d.ts +0 -3
- package/out/module/compiled-freshness.d.ts.map +1 -1
- package/out/module/compiled-freshness.js +2 -3
- package/out/module/compiled-freshness.js.map +1 -1
- package/out/module/file-url.d.ts +1 -8
- package/out/module/file-url.d.ts.map +1 -1
- package/out/module/file-url.js +3 -5
- package/out/module/file-url.js.map +1 -1
- package/out/module/package-command.d.ts +0 -3
- package/out/module/package-command.d.ts.map +1 -1
- package/out/module/package-command.js +2 -0
- package/out/module/package-command.js.map +1 -1
- package/out/module/packaged-data.d.ts +0 -11
- package/out/module/packaged-data.d.ts.map +1 -1
- package/out/module/packaged-data.js +8 -8
- package/out/module/packaged-data.js.map +1 -1
- package/out/module/resolve-from.d.ts +3 -16
- package/out/module/resolve-from.d.ts.map +1 -1
- package/out/module/resolve-from.js +16 -12
- package/out/module/resolve-from.js.map +1 -1
- package/out/module/resolvers.d.ts +5 -12
- package/out/module/resolvers.d.ts.map +1 -1
- package/out/module/resolvers.js +7 -9
- package/out/module/resolvers.js.map +1 -1
- package/out/module/runtime.d.ts +0 -5
- package/out/module/runtime.d.ts.map +1 -1
- package/out/module/runtime.js +2 -5
- package/out/module/runtime.js.map +1 -1
- package/out/module/workspace.d.ts +4 -6
- package/out/module/workspace.d.ts.map +1 -1
- package/out/module/workspace.js +6 -6
- package/out/module/workspace.js.map +1 -1
- package/out/network/connectivity.d.ts +60 -0
- package/out/network/connectivity.d.ts.map +1 -0
- package/out/network/connectivity.js +66 -0
- package/out/network/connectivity.js.map +1 -0
- package/out/network/reachability.d.ts +45 -0
- package/out/network/reachability.d.ts.map +1 -0
- package/out/network/reachability.js +79 -0
- package/out/network/reachability.js.map +1 -0
- package/out/numeric.d.ts +0 -3
- package/out/numeric.d.ts.map +1 -1
- package/out/numeric.js +10 -11
- package/out/numeric.js.map +1 -1
- package/out/objects.d.ts +2 -6
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +4 -9
- package/out/objects.js.map +1 -1
- package/out/overture-pins.d.ts +1 -4
- package/out/overture-pins.d.ts.map +1 -1
- package/out/overture-pins.js +3 -4
- package/out/overture-pins.js.map +1 -1
- package/out/paths.d.ts +4 -7
- package/out/paths.d.ts.map +1 -1
- package/out/paths.js +9 -10
- package/out/paths.js.map +1 -1
- package/out/pipeline/client-result.d.ts +38 -16
- package/out/pipeline/client-result.d.ts.map +1 -1
- package/out/pipeline/client-result.js +2 -10
- package/out/pipeline/client-result.js.map +1 -1
- package/out/pipeline/preferences.d.ts +0 -2
- package/out/pipeline/preferences.d.ts.map +1 -1
- package/out/pipeline/preferences.js +2 -5
- package/out/pipeline/preferences.js.map +1 -1
- package/out/pipeline/result.d.ts +1 -5
- package/out/pipeline/result.d.ts.map +1 -1
- package/out/pipeline/result.js +2 -4
- package/out/pipeline/result.js.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +10 -7
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +21 -11
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.d.ts +2 -10
- package/out/pipeline/span-proposer.d.ts.map +1 -1
- package/out/pipeline/span-proposer.js +8 -8
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +27 -6
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +5 -9
- package/out/pipeline/types.js.map +1 -1
- package/out/pipeline.d.ts +0 -4
- package/out/pipeline.d.ts.map +1 -1
- package/out/pipeline.js +2 -4
- package/out/pipeline.js.map +1 -1
- package/out/policy/defaults.d.ts +2 -6
- package/out/policy/defaults.d.ts.map +1 -1
- package/out/policy/defaults.js +4 -6
- package/out/policy/defaults.js.map +1 -1
- package/out/policy/policy.d.ts +0 -4
- package/out/policy/policy.d.ts.map +1 -1
- package/out/policy/policy.js +2 -7
- package/out/policy/policy.js.map +1 -1
- package/out/policy/proposal-collection.d.ts +0 -4
- package/out/policy/proposal-collection.d.ts.map +1 -1
- package/out/policy/proposal-collection.js +2 -7
- package/out/policy/proposal-collection.js.map +1 -1
- package/out/policy/registry.d.ts +6 -7
- package/out/policy/registry.d.ts.map +1 -1
- package/out/policy/registry.js +2 -11
- package/out/policy/registry.js.map +1 -1
- package/out/policy.d.ts +0 -5
- package/out/policy.d.ts.map +1 -1
- package/out/policy.js +2 -5
- package/out/policy.js.map +1 -1
- package/out/postcode-prefix-files.d.ts +5 -7
- package/out/postcode-prefix-files.d.ts.map +1 -1
- package/out/postcode-prefix-files.js +7 -7
- package/out/postcode-prefix-files.js.map +1 -1
- package/out/process.d.ts +10 -13
- package/out/process.d.ts.map +1 -1
- package/out/process.js +11 -12
- package/out/process.js.map +1 -1
- package/out/promises.d.ts +3 -4
- package/out/promises.d.ts.map +1 -1
- package/out/promises.js +5 -4
- package/out/promises.js.map +1 -1
- package/out/random.d.ts +0 -10
- package/out/random.d.ts.map +1 -1
- package/out/random.js +6 -6
- package/out/random.js.map +1 -1
- package/out/release-config.d.ts +9 -4
- package/out/release-config.d.ts.map +1 -1
- package/out/release-config.js +4 -4
- package/out/release-config.js.map +1 -1
- package/out/resolver/authoritative-provider.d.ts +14 -11
- package/out/resolver/authoritative-provider.d.ts.map +1 -1
- package/out/resolver/authoritative-provider.js +3 -15
- package/out/resolver/authoritative-provider.js.map +1 -1
- package/out/resolver/coverage-facts.d.ts +4 -6
- package/out/resolver/coverage-facts.d.ts.map +1 -1
- package/out/resolver/coverage-facts.js +2 -10
- package/out/resolver/coverage-facts.js.map +1 -1
- package/out/resolver/fixture-authoritative-provider.d.ts +10 -11
- package/out/resolver/fixture-authoritative-provider.d.ts.map +1 -1
- package/out/resolver/fixture-authoritative-provider.js +12 -11
- package/out/resolver/fixture-authoritative-provider.js.map +1 -1
- package/out/resolver/lookup-types.d.ts +7 -5
- package/out/resolver/lookup-types.d.ts.map +1 -1
- package/out/resolver/lookup-types.js +2 -11
- package/out/resolver/lookup-types.js.map +1 -1
- package/out/resolver/referential.d.ts +8 -6
- package/out/resolver/referential.d.ts.map +1 -1
- package/out/resolver/referential.js +10 -6
- package/out/resolver/referential.js.map +1 -1
- package/out/resolver/region-database-provider.d.ts +1 -4
- package/out/resolver/region-database-provider.d.ts.map +1 -1
- package/out/resolver/region-database-provider.js +2 -6
- package/out/resolver/region-database-provider.js.map +1 -1
- package/out/resolver/synthetic-id-ranges.d.ts +1 -4
- package/out/resolver/synthetic-id-ranges.d.ts.map +1 -1
- package/out/resolver/synthetic-id-ranges.js +3 -4
- package/out/resolver/synthetic-id-ranges.js.map +1 -1
- package/out/resolver/types.d.ts +64 -55
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +15 -7
- package/out/resolver/types.js.map +1 -1
- package/out/resolver.d.ts +8 -11
- package/out/resolver.d.ts.map +1 -1
- package/out/resolver.js +9 -10
- package/out/resolver.js.map +1 -1
- package/out/resources/debugging.d.ts +0 -5
- package/out/resources/debugging.d.ts.map +1 -1
- package/out/resources/debugging.js +2 -5
- package/out/resources/debugging.js.map +1 -1
- package/out/resources/languages/types.gen.d.ts +0 -4
- package/out/resources/languages/types.gen.d.ts.map +1 -1
- package/out/resources/languages/types.gen.js +2 -7
- package/out/resources/languages/types.gen.js.map +1 -1
- package/out/resources/languages.d.ts +0 -5
- package/out/resources/languages.d.ts.map +1 -1
- package/out/resources/languages.js +2 -5
- package/out/resources/languages.js.map +1 -1
- package/out/resources/libpostal.d.ts +0 -9
- package/out/resources/libpostal.d.ts.map +1 -1
- package/out/resources/libpostal.js +2 -4
- package/out/resources/libpostal.js.map +1 -1
- package/out/resources/locale.d.ts +0 -5
- package/out/resources/locale.d.ts.map +1 -1
- package/out/resources/locale.js +2 -5
- package/out/resources/locale.js.map +1 -1
- package/out/resources/set.d.ts +0 -5
- package/out/resources/set.d.ts.map +1 -1
- package/out/resources/set.js +2 -5
- package/out/resources/set.js.map +1 -1
- package/out/resources.d.ts +0 -6
- package/out/resources.d.ts.map +1 -1
- package/out/resources.js +2 -6
- package/out/resources.js.map +1 -1
- package/out/routing.d.ts +0 -5
- package/out/routing.d.ts.map +1 -1
- package/out/routing.js +3 -6
- package/out/routing.js.map +1 -1
- package/out/scope-config.d.ts +9 -8
- package/out/scope-config.d.ts.map +1 -1
- package/out/scope-config.js +3 -13
- package/out/scope-config.js.map +1 -1
- package/out/scripting/arguments.d.ts +7 -9
- package/out/scripting/arguments.d.ts.map +1 -1
- package/out/scripting/arguments.js +8 -8
- package/out/scripting/arguments.js.map +1 -1
- package/out/scripting/command.d.ts +3 -5
- package/out/scripting/command.d.ts.map +1 -1
- package/out/scripting/command.js +5 -5
- package/out/scripting/command.js.map +1 -1
- package/out/scripting/ingest-chunk-script.d.ts +2 -6
- package/out/scripting/ingest-chunk-script.d.ts.map +1 -1
- package/out/scripting/ingest-chunk-script.js +4 -6
- package/out/scripting/ingest-chunk-script.js.map +1 -1
- package/out/scripting/operation.d.ts +39 -5
- package/out/scripting/operation.d.ts.map +1 -1
- package/out/scripting/operation.js +23 -15
- package/out/scripting/operation.js.map +1 -1
- package/out/scripting/utils.d.ts.map +1 -1
- package/out/scripting/utils.js +2 -0
- package/out/scripting/utils.js.map +1 -1
- package/out/scripting.d.ts.map +1 -1
- package/out/scripting.js +3 -1
- package/out/scripting.js.map +1 -1
- package/out/spdx-header.d.ts +86 -0
- package/out/spdx-header.d.ts.map +1 -0
- package/out/spdx-header.js +244 -0
- package/out/spdx-header.js.map +1 -0
- package/out/state-machine.d.ts +98 -0
- package/out/state-machine.d.ts.map +1 -0
- package/out/state-machine.js +37 -0
- package/out/state-machine.js.map +1 -0
- package/out/stats.d.ts +0 -4
- package/out/stats.d.ts.map +1 -1
- package/out/stats.js +2 -4
- package/out/stats.js.map +1 -1
- package/out/strings/code-points.d.ts +0 -4
- package/out/strings/code-points.d.ts.map +1 -1
- package/out/strings/code-points.js +2 -4
- package/out/strings/code-points.js.map +1 -1
- package/out/strings/compare.d.ts +1 -4
- package/out/strings/compare.d.ts.map +1 -1
- package/out/strings/compare.js +3 -4
- package/out/strings/compare.js.map +1 -1
- package/out/strings/escape.d.ts +0 -6
- package/out/strings/escape.d.ts.map +1 -1
- package/out/strings/escape.js +2 -3
- package/out/strings/escape.js.map +1 -1
- package/out/strings/format.d.ts +0 -3
- package/out/strings/format.d.ts.map +1 -1
- package/out/strings/format.js +2 -3
- package/out/strings/format.js.map +1 -1
- package/out/strings/markdown-table.d.ts +1 -11
- package/out/strings/markdown-table.d.ts.map +1 -1
- package/out/strings/markdown-table.js +3 -4
- package/out/strings/markdown-table.js.map +1 -1
- package/out/strings/python-json.d.ts +8 -10
- package/out/strings/python-json.d.ts.map +1 -1
- package/out/strings/python-json.js +3 -1
- package/out/strings/python-json.js.map +1 -1
- package/out/strings/regexp.d.ts +0 -3
- package/out/strings/regexp.d.ts.map +1 -1
- package/out/strings/regexp.js +2 -3
- package/out/strings/regexp.js.map +1 -1
- package/out/strings/terminal.d.ts +5 -0
- package/out/strings/terminal.d.ts.map +1 -0
- package/out/strings/terminal.js +18 -0
- package/out/strings/terminal.js.map +1 -0
- package/out/strings/unicode.d.ts +0 -8
- package/out/strings/unicode.d.ts.map +1 -1
- package/out/strings/unicode.js +5 -6
- package/out/strings/unicode.js.map +1 -1
- package/out/tokenization/Graph.d.ts +0 -4
- package/out/tokenization/Graph.d.ts.map +1 -1
- package/out/tokenization/Graph.js +2 -4
- package/out/tokenization/Graph.js.map +1 -1
- package/out/tokenization/Span.d.ts +0 -4
- package/out/tokenization/Span.d.ts.map +1 -1
- package/out/tokenization/Span.js +2 -8
- package/out/tokenization/Span.js.map +1 -1
- package/out/tokenization/normalizer.d.ts +0 -8
- package/out/tokenization/normalizer.d.ts.map +1 -1
- package/out/tokenization/normalizer.js +2 -4
- package/out/tokenization/normalizer.js.map +1 -1
- package/out/tokenization.d.ts +0 -5
- package/out/tokenization.d.ts.map +1 -1
- package/out/tokenization.js +2 -5
- package/out/tokenization.js.map +1 -1
- package/out/tools/build-deflate64-wasm.run.d.ts +2 -0
- package/out/tools/build-deflate64-wasm.run.d.ts.map +1 -0
- package/out/tools/build-deflate64-wasm.run.js +39 -0
- package/out/tools/build-deflate64-wasm.run.js.map +1 -0
- package/out/tools/coarse-placer/build/dataset.d.ts +2 -5
- package/out/tools/coarse-placer/build/dataset.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/dataset.js +6 -7
- package/out/tools/coarse-placer/build/dataset.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/exposure.d.ts +0 -12
- package/out/tools/coarse-placer/build/outlier/exposure.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/outlier/exposure.js +7 -8
- package/out/tools/coarse-placer/build/outlier/exposure.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/latin.d.ts +16 -17
- package/out/tools/coarse-placer/build/outlier/latin.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/outlier/latin.js +19 -18
- package/out/tools/coarse-placer/build/outlier/latin.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/oa.d.ts +18 -19
- package/out/tools/coarse-placer/build/outlier/oa.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/outlier/oa.js +21 -20
- package/out/tools/coarse-placer/build/outlier/oa.js.map +1 -1
- package/out/tools/coarse-placer/country-sets.d.ts +6 -7
- package/out/tools/coarse-placer/country-sets.d.ts.map +1 -1
- package/out/tools/coarse-placer/country-sets.js +10 -8
- package/out/tools/coarse-placer/country-sets.js.map +1 -1
- package/out/tools/coarse-placer/eval/latin-offmap.d.ts +6 -8
- package/out/tools/coarse-placer/eval/latin-offmap.d.ts.map +1 -1
- package/out/tools/coarse-placer/eval/latin-offmap.js +8 -8
- package/out/tools/coarse-placer/eval/latin-offmap.js.map +1 -1
- package/out/tools/coarse-placer/eval/openset.d.ts +2 -4
- package/out/tools/coarse-placer/eval/openset.d.ts.map +1 -1
- package/out/tools/coarse-placer/eval/openset.js +4 -4
- package/out/tools/coarse-placer/eval/openset.js.map +1 -1
- package/out/tools/coarse-placer/eval/quant-compare.d.ts +5 -7
- package/out/tools/coarse-placer/eval/quant-compare.d.ts.map +1 -1
- package/out/tools/coarse-placer/eval/quant-compare.js +7 -7
- package/out/tools/coarse-placer/eval/quant-compare.js.map +1 -1
- package/out/tools/coarse-placer/eval.d.ts +5 -7
- package/out/tools/coarse-placer/eval.d.ts.map +1 -1
- package/out/tools/coarse-placer/eval.js +7 -7
- package/out/tools/coarse-placer/eval.js.map +1 -1
- package/out/tools/coarse-placer/outlier-rows.d.ts +0 -10
- package/out/tools/coarse-placer/outlier-rows.d.ts.map +1 -1
- package/out/tools/coarse-placer/outlier-rows.js +9 -8
- package/out/tools/coarse-placer/outlier-rows.js.map +1 -1
- package/out/tools/coarse-placer/paths.d.ts +3 -5
- package/out/tools/coarse-placer/paths.d.ts.map +1 -1
- package/out/tools/coarse-placer/paths.js +5 -5
- package/out/tools/coarse-placer/paths.js.map +1 -1
- package/out/tools/coarse-placer/probe-frontier.d.ts +0 -22
- package/out/tools/coarse-placer/probe-frontier.d.ts.map +1 -1
- package/out/tools/coarse-placer/probe-frontier.js +14 -12
- package/out/tools/coarse-placer/probe-frontier.js.map +1 -1
- package/out/tools/coarse-placer/quantize.d.ts +7 -8
- package/out/tools/coarse-placer/quantize.d.ts.map +1 -1
- package/out/tools/coarse-placer/quantize.js +9 -8
- package/out/tools/coarse-placer/quantize.js.map +1 -1
- package/out/tools/coarse-placer/train.d.ts +6 -8
- package/out/tools/coarse-placer/train.d.ts.map +1 -1
- package/out/tools/coarse-placer/train.js +8 -8
- package/out/tools/coarse-placer/train.js.map +1 -1
- package/out/tools/generate-language-types.d.ts +0 -23
- package/out/tools/generate-language-types.d.ts.map +1 -1
- package/out/tools/generate-language-types.js +16 -17
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/trust-policies.d.ts +0 -20
- package/out/trust-policies.d.ts.map +1 -1
- package/out/trust-policies.js +19 -15
- package/out/trust-policies.js.map +1 -1
- package/out/types/Classification.d.ts +1 -6
- package/out/types/Classification.d.ts.map +1 -1
- package/out/types/Classification.js +3 -6
- package/out/types/Classification.js.map +1 -1
- package/out/types/classifier.d.ts +7 -9
- package/out/types/classifier.d.ts.map +1 -1
- package/out/types/classifier.js +2 -12
- package/out/types/classifier.js.map +1 -1
- package/out/types/mapping.d.ts +10 -14
- package/out/types/mapping.d.ts.map +1 -1
- package/out/types/mapping.js +2 -20
- package/out/types/mapping.js.map +1 -1
- package/out/types.d.ts +0 -5
- package/out/types.d.ts.map +1 -1
- package/out/types.js +2 -5
- package/out/types.js.map +1 -1
- package/out/utils/chunk-process.d.ts +2 -23
- package/out/utils/chunk-process.d.ts.map +1 -1
- package/out/utils/chunk-process.js +13 -10
- package/out/utils/chunk-process.js.map +1 -1
- package/out/utils/collections.d.ts +0 -3
- package/out/utils/collections.d.ts.map +1 -1
- package/out/utils/collections.js +2 -3
- package/out/utils/collections.js.map +1 -1
- package/out/utils/events.d.ts +0 -5
- package/out/utils/events.d.ts.map +1 -1
- package/out/utils/events.js +2 -5
- package/out/utils/events.js.map +1 -1
- package/out/utils/geodatabase-archive.d.ts +7 -8
- package/out/utils/geodatabase-archive.d.ts.map +1 -1
- package/out/utils/geodatabase-archive.js +9 -8
- package/out/utils/geodatabase-archive.js.map +1 -1
- package/out/utils/sleep.d.ts +0 -5
- package/out/utils/sleep.d.ts.map +1 -1
- package/out/utils/sleep.js +2 -5
- package/out/utils/sleep.js.map +1 -1
- package/out/utils/sqlite-rows.d.ts +6 -7
- package/out/utils/sqlite-rows.d.ts.map +1 -1
- package/out/utils/sqlite-rows.js +2 -13
- package/out/utils/sqlite-rows.js.map +1 -1
- package/out/utils/stream-to-disk.d.ts +14 -8
- package/out/utils/stream-to-disk.d.ts.map +1 -1
- package/out/utils/stream-to-disk.js +11 -11
- package/out/utils/stream-to-disk.js.map +1 -1
- package/out/utils/system.d.ts +0 -8
- package/out/utils/system.d.ts.map +1 -1
- package/out/utils/system.js +3 -4
- package/out/utils/system.js.map +1 -1
- package/out/utils/time.d.ts +0 -3
- package/out/utils/time.d.ts.map +1 -1
- package/out/utils/time.js +2 -3
- package/out/utils/time.js.map +1 -1
- package/out/utils/union-find.d.ts +0 -3
- package/out/utils/union-find.d.ts.map +1 -1
- package/out/utils/union-find.js +2 -6
- package/out/utils/union-find.js.map +1 -1
- package/out/utils.d.ts +0 -5
- package/out/utils.d.ts.map +1 -1
- package/out/utils.js +2 -5
- package/out/utils.js.map +1 -1
- package/out/vale.d.ts +0 -9
- package/out/vale.d.ts.map +1 -1
- package/out/vale.js +4 -5
- package/out/vale.js.map +1 -1
- package/out/workers.d.ts +3 -3
- package/out/workers.d.ts.map +1 -1
- package/out/workers.js +8 -4
- package/out/workers.js.map +1 -1
- package/out/workspaces.d.ts +2 -4
- package/out/workspaces.d.ts.map +1 -1
- package/out/workspaces.js +4 -4
- package/out/workspaces.js.map +1 -1
- package/package.json +106 -47
- package/tools/build-deflate64-wasm.run.ts +50 -0
- package/tools/coarse-placer/build/dataset.ts +7 -7
- package/tools/coarse-placer/build/outlier/exposure.ts +8 -8
- package/tools/coarse-placer/build/outlier/latin.ts +21 -19
- package/tools/coarse-placer/build/outlier/oa.ts +23 -21
- package/tools/coarse-placer/country-sets.ts +11 -8
- package/tools/coarse-placer/eval/latin-offmap.ts +9 -8
- package/tools/coarse-placer/eval/openset.ts +5 -4
- package/tools/coarse-placer/eval/quant-compare.ts +8 -7
- package/tools/coarse-placer/eval.ts +8 -7
- package/tools/coarse-placer/outlier-rows.ts +10 -8
- package/tools/coarse-placer/paths.ts +6 -5
- package/tools/coarse-placer/probe-frontier.ts +15 -12
- package/tools/coarse-placer/quantize.ts +10 -8
- package/tools/coarse-placer/train.ts +9 -8
- package/tools/generate-language-types.ts +17 -17
- package/wasm/deflate64.wasm +0 -0
- package/lib/resources/git.ts +0 -69
- package/out/resources/git.d.ts +0 -36
- package/out/resources/git.d.ts.map +0 -1
- package/out/resources/git.js +0 -34
- package/out/resources/git.js.map +0 -1
package/lib/fs/zip.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software.
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file Zip readers for archives already in memory or stored on disk.
|
|
6
6
|
*
|
|
7
7
|
* {@link extractZip} and {@link extractSingleFileZip} take the whole archive as a `Buffer`.
|
|
8
|
-
* That suits a client that
|
|
9
|
-
* It
|
|
8
|
+
* That suits a client that's downloaded one into memory (`bdc/sdk/download.ts`).
|
|
9
|
+
* It doesn't suit large archives because adm-zip keeps both the archive and decompressed member in memory.
|
|
10
10
|
* National address dumps under `$MAILWOMAN_DATA_ROOT` range from 0.5–2.9 GB compressed and reach 9 GB unpacked.
|
|
11
11
|
* The path-based readers stream them. Yauzl seeks the central directory through a file handle and inflates one member on demand.
|
|
12
12
|
* Memory use stays constant regardless of archive size.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* The entry's extra field stores the actual values.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { pipeline } from "node:stream/promises"
|
|
19
|
+
import { finished, pipeline } from "node:stream/promises"
|
|
20
20
|
import { crc32 } from "node:zlib"
|
|
21
21
|
|
|
22
22
|
import ADMZip from "adm-zip"
|
|
@@ -24,6 +24,7 @@ import iconv from "iconv-lite"
|
|
|
24
24
|
import { resolvePath, dirname, basename, type PathBuilderLike } from "path-ts"
|
|
25
25
|
import { open as openArchive, type Entry, type ZipFileOptions } from "yauzl-promise"
|
|
26
26
|
|
|
27
|
+
import { inflateDeflate64 } from "#fs/deflate64"
|
|
27
28
|
import { tryStat } from "#fs/readers/stat"
|
|
28
29
|
import { openWriteStream } from "#fs/streams"
|
|
29
30
|
import { makeDirectories } from "#fs/writers"
|
|
@@ -43,7 +44,7 @@ async function openStreamingArchive(
|
|
|
43
44
|
options?: ZipNameOptions
|
|
44
45
|
): Promise<StreamingArchive & AsyncDisposable> {
|
|
45
46
|
// `decodeStrings: false` returns the central directory's raw name bytes.
|
|
46
|
-
// This lets the caller read a name when the archive
|
|
47
|
+
// This lets the caller read a name when the archive doesn't declare its encoding.
|
|
47
48
|
// See {@link ZipNameOptions}. yauzl's own name check is off because it throws on a
|
|
48
49
|
// leading slash. {@link memberPath} checks every name instead.
|
|
49
50
|
const archive = await openArchive(archivePath.toString(), {
|
|
@@ -55,7 +56,7 @@ async function openStreamingArchive(
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
|
-
* How to read member names that the archive
|
|
59
|
+
* How to read member names that the archive doesn't declare an encoding for.
|
|
59
60
|
*
|
|
60
61
|
* A ZIP flags UTF-8 names with bit 11.
|
|
61
62
|
* Yauzl decodes those names correctly.
|
|
@@ -87,7 +88,7 @@ export interface ZipNameOptions {
|
|
|
87
88
|
*
|
|
88
89
|
* `iconv-lite` rather than `TextDecoder` for the reason `decodeByteStream` gives: Node's whatwg
|
|
89
90
|
* `euc-kr` is EUC-KR proper and reads 8,824 of CP949's 17,048 two-byte sequences differently,
|
|
90
|
-
* so a member whose name uses the UHC extension would be looked for under a name that
|
|
91
|
+
* so a member whose name uses the UHC extension would be looked for under a name that doesn't exist.
|
|
91
92
|
*/
|
|
92
93
|
function entryName(entry: Entry, options?: ZipNameOptions): string {
|
|
93
94
|
const raw = entry.filename as unknown
|
|
@@ -148,7 +149,7 @@ async function openEntryStream(entry: Entry, options?: ZipFileOptions): Promise<
|
|
|
148
149
|
// so waiting for that event here would wait forever.
|
|
149
150
|
// `readableEnded` separates the two paths: true after a full read, false
|
|
150
151
|
// after a `take` or a `break`.
|
|
151
|
-
// `closed`
|
|
152
|
+
// `closed` isn't the test, because Node sets it when the close event is queued
|
|
152
153
|
// rather than delivered, so a guard on it skips the wait on the path that needs it.
|
|
153
154
|
if (contents.readableEnded) return
|
|
154
155
|
|
|
@@ -164,6 +165,96 @@ async function openEntryStream(entry: Entry, options?: ZipFileOptions): Promise<
|
|
|
164
165
|
})
|
|
165
166
|
}
|
|
166
167
|
|
|
168
|
+
/**
|
|
169
|
+
* The zip method number of Deflate64.
|
|
170
|
+
*
|
|
171
|
+
* Neither yauzl nor Node's zlib decodes it, so {@link openMemberContents}
|
|
172
|
+
* inflates it with {@link inflateDeflate64}.
|
|
173
|
+
*/
|
|
174
|
+
const DEFLATE64_METHOD = 9
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Raises when a member's decompressed CRC-32 or length disagrees with its central-directory header.
|
|
178
|
+
*/
|
|
179
|
+
function assertMemberIntegrity(archivePath: PathBuilderLike, entry: Entry, checksum: number, length: number): void {
|
|
180
|
+
if (checksum !== entry.crc32) {
|
|
181
|
+
throw new Error(
|
|
182
|
+
`CRC mismatch in ${archivePath}: ${entry.filename} is 0x${checksum.toString(16)}, header claims 0x${entry.crc32.toString(16)}`
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (length !== entry.uncompressedSize) {
|
|
187
|
+
throw new Error(
|
|
188
|
+
`Length mismatch in ${archivePath}: ${entry.filename} is ${length} bytes, header claims ${entry.uncompressedSize}`
|
|
189
|
+
)
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Passes `chunks` through and raises at their end when the member's CRC-32
|
|
195
|
+
* or length disagrees with its header.
|
|
196
|
+
*/
|
|
197
|
+
async function* withIntegrityCheck(
|
|
198
|
+
archivePath: PathBuilderLike,
|
|
199
|
+
entry: Entry,
|
|
200
|
+
chunks: AsyncIterable<Uint8Array>
|
|
201
|
+
): AsyncGenerator<Uint8Array> {
|
|
202
|
+
let checksum = 0
|
|
203
|
+
let length = 0
|
|
204
|
+
|
|
205
|
+
for await (const chunk of chunks) {
|
|
206
|
+
checksum = crc32(chunk, checksum)
|
|
207
|
+
length += chunk.length
|
|
208
|
+
|
|
209
|
+
yield chunk
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
assertMemberIntegrity(archivePath, entry, checksum, length)
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
type MemberContents = AsyncIterable<Uint8Array> & AsyncDisposable
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* One member's decompressed bytes, ended when the owning scope exits.
|
|
219
|
+
*
|
|
220
|
+
* A Deflate64 member is read raw, with yauzl's `decompress: false`,
|
|
221
|
+
* and inflated by {@link inflateDeflate64}.
|
|
222
|
+
* Yauzl checks neither the CRC-32 nor the length of a raw read.
|
|
223
|
+
*
|
|
224
|
+
* This path checks both unless `checkIntegrity` is false, as for {@link verifyZipIntegrity},
|
|
225
|
+
* which checks every member itself.
|
|
226
|
+
* Every other method goes through {@link openEntryStream}, where yauzl checks a deflated member.
|
|
227
|
+
*/
|
|
228
|
+
async function openMemberContents(
|
|
229
|
+
archivePath: PathBuilderLike,
|
|
230
|
+
entry: Entry,
|
|
231
|
+
{ checkIntegrity = true }: { checkIntegrity?: boolean } = {}
|
|
232
|
+
): Promise<MemberContents> {
|
|
233
|
+
if (entry.compressionMethod !== DEFLATE64_METHOD) {
|
|
234
|
+
return openEntryStream(entry, checkIntegrity ? undefined : { validateCrc32: false })
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const raw = await entry.openReadStream({ decompress: false })
|
|
238
|
+
const inflated = inflateDeflate64(raw)
|
|
239
|
+
const contents = checkIntegrity ? withIntegrityCheck(archivePath, entry, inflated) : inflated
|
|
240
|
+
|
|
241
|
+
return {
|
|
242
|
+
[Symbol.asyncIterator]: () => contents,
|
|
243
|
+
[Symbol.asyncDispose]: async () => {
|
|
244
|
+
// The generator's return runs the decoder's cleanup and ends its iteration of the raw stream.
|
|
245
|
+
await contents.return(undefined)
|
|
246
|
+
|
|
247
|
+
// The inflater stops at the final block without reading the raw stream's end, and the generator's
|
|
248
|
+
// return destroys it, so the close may already have been delivered by now.
|
|
249
|
+
// `finished` settles on a stream that's already closed, where waiting
|
|
250
|
+
// on the `close` event would hang.
|
|
251
|
+
// The wait matters for the reason `openEntryStream` gives: the archive cannot close during a read.
|
|
252
|
+
raw.destroy()
|
|
253
|
+
await finished(raw).catch(() => undefined)
|
|
254
|
+
},
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
167
258
|
export type ZipEntryContentPair = [entry: ADMZip.IZipEntry, content: Buffer]
|
|
168
259
|
|
|
169
260
|
/**
|
|
@@ -278,7 +369,7 @@ export async function* readZipEntry(
|
|
|
278
369
|
for await (const entry of archive) {
|
|
279
370
|
if (!selectorMatches(selector, entryName(entry, options))) continue
|
|
280
371
|
|
|
281
|
-
await using contents = await
|
|
372
|
+
await using contents = await openMemberContents(archivePath, entry)
|
|
282
373
|
|
|
283
374
|
yield* contents
|
|
284
375
|
|
|
@@ -306,7 +397,9 @@ export async function extractZipEntry(
|
|
|
306
397
|
for await (const entry of archive) {
|
|
307
398
|
if (!selectorMatches(selector, entryName(entry))) continue
|
|
308
399
|
|
|
309
|
-
await
|
|
400
|
+
await using contents = await openMemberContents(archivePath, entry)
|
|
401
|
+
|
|
402
|
+
await pipeline(contents, openWriteStream(destinationPath))
|
|
310
403
|
|
|
311
404
|
return entry.uncompressedSize
|
|
312
405
|
}
|
|
@@ -372,7 +465,9 @@ export async function extractZipEntries(
|
|
|
372
465
|
const existing = skipExisting ? await tryStat(destination) : null
|
|
373
466
|
|
|
374
467
|
if (existing?.size !== entry.uncompressedSize) {
|
|
375
|
-
await
|
|
468
|
+
await using contents = await openMemberContents(archivePath, entry)
|
|
469
|
+
|
|
470
|
+
await pipeline(contents, openWriteStream(destination))
|
|
376
471
|
}
|
|
377
472
|
|
|
378
473
|
written.push(name)
|
|
@@ -390,7 +485,7 @@ export async function extractZipEntries(
|
|
|
390
485
|
*
|
|
391
486
|
* The CRC is computed here rather than delegated to yauzl's `validateCrc32`, which asserts `Cannot validate CRC32
|
|
392
487
|
* for uncompressed data` on a stored member — precisely what this is meant to catch — and folding it locally covers
|
|
393
|
-
*
|
|
488
|
+
* stored, deflated and Deflate64 members with one path.
|
|
394
489
|
*
|
|
395
490
|
* @category Files
|
|
396
491
|
*
|
|
@@ -404,26 +499,16 @@ export async function verifyZipIntegrity(archivePath: PathBuilderLike): Promise<
|
|
|
404
499
|
for await (const entry of archive) {
|
|
405
500
|
if (isDirectoryMember(entryName(entry))) continue
|
|
406
501
|
|
|
407
|
-
await using contents = await
|
|
502
|
+
await using contents = await openMemberContents(archivePath, entry, { checkIntegrity: false })
|
|
408
503
|
let checksum = 0
|
|
409
504
|
let length = 0
|
|
410
505
|
|
|
411
506
|
for await (const chunk of contents) {
|
|
412
|
-
checksum = crc32(chunk
|
|
413
|
-
length +=
|
|
507
|
+
checksum = crc32(chunk, checksum)
|
|
508
|
+
length += chunk.length
|
|
414
509
|
}
|
|
415
510
|
|
|
416
|
-
|
|
417
|
-
throw new Error(
|
|
418
|
-
`CRC mismatch in ${archivePath}: ${entry.filename} is 0x${checksum.toString(16)}, header claims 0x${entry.crc32.toString(16)}`
|
|
419
|
-
)
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
if (length !== entry.uncompressedSize) {
|
|
423
|
-
throw new Error(
|
|
424
|
-
`Length mismatch in ${archivePath}: ${entry.filename} is ${length} bytes, header claims ${entry.uncompressedSize}`
|
|
425
|
-
)
|
|
426
|
-
}
|
|
511
|
+
assertMemberIntegrity(archivePath, entry, checksum, length)
|
|
427
512
|
|
|
428
513
|
checked++
|
|
429
514
|
}
|
package/lib/geocode/result.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* The geocode result: the data shape one geocoded input projects to.
|
|
7
6
|
*
|
|
8
7
|
* The schemas here define the shapes, and each type is inferred from its schema.
|
|
@@ -69,6 +68,12 @@ export const GeocodeCandidateSchema = z
|
|
|
69
68
|
* The field is null when the resolver recorded no score for the candidate.
|
|
70
69
|
*/
|
|
71
70
|
score: z.number().nullable(),
|
|
71
|
+
/**
|
|
72
|
+
* True when the input matched an alias of this place, such as a former name, and differs from `name`.
|
|
73
|
+
*
|
|
74
|
+
* The field is absent when the input matched the primary name.
|
|
75
|
+
*/
|
|
76
|
+
matchedAlias: z.literal(true).optional(),
|
|
72
77
|
})
|
|
73
78
|
.meta({ id: "GeocodeCandidate", description: "A ranked candidate place." })
|
|
74
79
|
|
|
@@ -200,7 +205,7 @@ export type CoordinateSource = z.infer<typeof CoordinateSourceSchema>
|
|
|
200
205
|
export const OPENSTREETMAP_CREDIT = "© OpenStreetMap contributors, ODbL 1.0, https://www.openstreetmap.org/copyright"
|
|
201
206
|
|
|
202
207
|
/**
|
|
203
|
-
* Whether a row's provenance stamp
|
|
208
|
+
* Whether a row's provenance stamp identifies an OpenStreetMap-derived row.
|
|
204
209
|
*
|
|
205
210
|
* `@mailwoman/osm` stamps every row it builds `openstreetmap:<cc>`, and a row the
|
|
206
211
|
* street-recovery pass placed `openstreetmap:<cc>#recovered`, so the prefix decides.
|
|
@@ -276,7 +281,7 @@ export const GeocodeResultSchema = z
|
|
|
276
281
|
* The locality key and postcode stored on the matched address-point row.
|
|
277
282
|
*
|
|
278
283
|
* These values describe the rooftop rather than the query.
|
|
279
|
-
* Consumers may display them but
|
|
284
|
+
* Consumers may display them but mustn't filter on them.
|
|
280
285
|
*/
|
|
281
286
|
rooftop: RooftopSchema.nullable(),
|
|
282
287
|
|
|
@@ -286,6 +291,10 @@ export const GeocodeResultSchema = z
|
|
|
286
291
|
* Set on the `address_point` and `interpolated` tiers.
|
|
287
292
|
* Their coordinates come from one register row.
|
|
288
293
|
*
|
|
294
|
+
* A landmark answer also sets it, at the `venue` tier.
|
|
295
|
+
* Its source is the landmark record's `landmark_source`, or `wikidata`
|
|
296
|
+
* when the record names none, and its release is null.
|
|
297
|
+
*
|
|
289
298
|
* It is null on every other tier, including a coordinate a later pass moved to a venue
|
|
290
299
|
* or a plus code, because that coordinate no longer comes from the row.
|
|
291
300
|
*/
|
|
@@ -379,7 +388,7 @@ export const GeocodeResultSchema = z
|
|
|
379
388
|
* check the parsed `region` and `country`.
|
|
380
389
|
*
|
|
381
390
|
* It is non-null whenever a winner resolved.
|
|
382
|
-
* Downstream ranking
|
|
391
|
+
* Downstream ranking doesn't read it.
|
|
383
392
|
*/
|
|
384
393
|
admin_coherence: AdminCoherenceReportSchema.nullable(),
|
|
385
394
|
|
package/lib/git.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file The one home for running git: {@linkcode GitClient} and the readers built on it.
|
|
6
6
|
*
|
|
7
7
|
* A `GitClient` is bound to one directory. Short reads such as `rev-parse` answer their stdout.
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
type ProcessTaskOptions,
|
|
26
26
|
runFile,
|
|
27
27
|
runFileSync,
|
|
28
|
+
spawnProcess,
|
|
28
29
|
} from "#process"
|
|
29
30
|
import { TypedEventTarget } from "#utils/events"
|
|
30
31
|
|
|
@@ -129,7 +130,7 @@ export interface GitTransferOptions extends Pick<ProcessTaskOptions, "stdin" | "
|
|
|
129
130
|
*
|
|
130
131
|
* Initialize it with `construct(GitClient, options)` from `async-init` to resolve
|
|
131
132
|
* {@linkcode GitClient.root} and {@linkcode GitClient.commonDirectory} before use.
|
|
132
|
-
* A client that will clone into a directory that
|
|
133
|
+
* A client that will clone into a directory that doesn't exist yet is used without initialization.
|
|
133
134
|
*/
|
|
134
135
|
export class GitClient extends TypedEventTarget<GitClientEventMap> implements AsyncDisposable {
|
|
135
136
|
public readonly cwd: PathBuilderLike
|
|
@@ -412,7 +413,7 @@ export async function dirtyTrackedFiles(
|
|
|
412
413
|
* This answers a cache's question: has anything at all changed since a derived artifact was built.
|
|
413
414
|
*
|
|
414
415
|
* A key built from the narrower reading goes stale after a staged edit or a new file.
|
|
415
|
-
* and a stale index reports that a helper written an hour ago
|
|
416
|
+
* and a stale index reports that a helper written an hour ago doesn't exist.
|
|
416
417
|
*/
|
|
417
418
|
export async function workingTreeStatus(
|
|
418
419
|
repoRoot: PathBuilderLike = repoRootPathBuilder,
|
|
@@ -488,12 +489,46 @@ export async function trackedFiles(
|
|
|
488
489
|
return new GitClient({ cwd: repoRoot }).readNulDelimited(["ls-files", "-z", ...pathspecs])
|
|
489
490
|
}
|
|
490
491
|
|
|
492
|
+
/**
|
|
493
|
+
* {@linkcode trackedFiles} as a stream, for a repository whose listing outgrows the 64 MiB buffer.
|
|
494
|
+
*
|
|
495
|
+
* A Who's On First postcode clone tracks about 1.7 million files, more than that buffer holds.
|
|
496
|
+
* Paths arrive as git writes them, so memory holds one chunk of the listing at a time.
|
|
497
|
+
*
|
|
498
|
+
* @throws After the last path when `git ls-files` exits non-zero, so a caller never
|
|
499
|
+
* treats a listing that stopped early as complete.
|
|
500
|
+
*/
|
|
501
|
+
export async function* streamTrackedFiles(
|
|
502
|
+
repoRoot: PathBuilderLike = repoRootPathBuilder,
|
|
503
|
+
pathspecs: string[] = []
|
|
504
|
+
): AsyncGenerator<string> {
|
|
505
|
+
const child = spawnProcess("git", ["ls-files", "-z", ...pathspecs], {
|
|
506
|
+
cwd: repoRoot,
|
|
507
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
508
|
+
})
|
|
509
|
+
|
|
510
|
+
const exited = new Promise<{ code: number | null; stderr: string }>((resolve, reject) => {
|
|
511
|
+
let stderr = ""
|
|
512
|
+
|
|
513
|
+
child.stderr.on("data", (chunk: Buffer) => (stderr += chunk.toString("utf8")))
|
|
514
|
+
child.on("error", reject)
|
|
515
|
+
child.on("close", (code) => resolve({ code, stderr }))
|
|
516
|
+
})
|
|
517
|
+
|
|
518
|
+
// Untrimmed, so a path that starts or ends with a space keeps it.
|
|
519
|
+
yield* TextSpliterator.fromAsync(child.stdout, { delimiter: "\0", skipEmpty: true, trim: false })
|
|
520
|
+
|
|
521
|
+
const { code, stderr } = await exited
|
|
522
|
+
|
|
523
|
+
if (code !== 0) throw new Error(`git ls-files exited ${code} in ${repoRoot.toString()}: ${stderr.trim()}`)
|
|
524
|
+
}
|
|
525
|
+
|
|
491
526
|
/**
|
|
492
527
|
* Every path in the working tree that Git includes, repo-relative: the tracked ones
|
|
493
|
-
* and the untracked ones an ignore rule
|
|
528
|
+
* and the untracked ones an ignore rule doesn't cover, optionally narrowed by git pathspecs.
|
|
494
529
|
*
|
|
495
530
|
* This is the set a checker over repository contents needs. {@linkcode trackedFiles}
|
|
496
|
-
* answers what
|
|
531
|
+
* answers what's committed.
|
|
497
532
|
* A newly written file is absent from that set, so a checker could report a clean result without opening it.
|
|
498
533
|
*
|
|
499
534
|
* `--exclude-standard` applies `.gitignore`, so a build output stays out
|
|
@@ -527,7 +562,7 @@ export async function workingTreeFiles(
|
|
|
527
562
|
* The old path never appears, so the result contains only paths that still exist.
|
|
528
563
|
*
|
|
529
564
|
* Disabled rename detection reports every move as a deletion of the old path.
|
|
530
|
-
* That
|
|
565
|
+
* That's the path a stale literal holds.
|
|
531
566
|
*
|
|
532
567
|
* Measured on this repository: 11,696 paths over 4,398 commits in 205 ms,
|
|
533
568
|
* against 11,483 for the reading that answers the wrong set.
|
package/lib/hash.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* File and content hashing utilities.
|
|
7
6
|
*/
|
|
8
7
|
|
|
@@ -12,6 +11,16 @@ import type { PathBuilderLike } from "path-ts"
|
|
|
12
11
|
|
|
13
12
|
import { openReadStream } from "#fs/streams"
|
|
14
13
|
|
|
14
|
+
/**
|
|
15
|
+
* One file as a record lists it: its path, its size and its SHA-256,
|
|
16
|
+
* the values a later reader checks it against.
|
|
17
|
+
*/
|
|
18
|
+
export interface RecordedFile {
|
|
19
|
+
path: string
|
|
20
|
+
bytes: number
|
|
21
|
+
sha256: string
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
/**
|
|
16
25
|
* The stream produces a file's SHA-256 hash in hexadecimal.
|
|
17
26
|
*/
|
package/lib/html/document.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Narrows a document to the markup that holds content before downstream code parses it.
|
|
7
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* An archive can wrap its payload in an envelope element.
|
|
8
|
+
* Its `<head>` title can contain a filename.
|
|
9
|
+
*
|
|
8
10
|
* Its `<script>` and `<style>` blocks do not contain document content.
|
|
9
11
|
* Downstream strategies should read the same narrowed window instead of deriving their own.
|
|
10
12
|
*
|
|
11
13
|
* The function returns HTML so the caller can still parse a document.
|
|
12
|
-
* `#html/text` extracts text.
|
|
14
|
+
* `#html/text` extracts text.
|
|
15
|
+
* `#html/tables` reads grids.
|
|
13
16
|
*/
|
|
14
17
|
|
|
15
18
|
import render from "dom-serializer"
|
package/lib/html/elements.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Reads complete elements out of a markup stream, one subtree at a time.
|
|
7
6
|
*
|
|
8
|
-
* `./document.ts` parses a whole document into memory and answers text queries against it.
|
|
9
|
-
* a page.
|
|
10
|
-
*
|
|
7
|
+
* `./document.ts` parses a whole document into memory and answers text queries against it.
|
|
8
|
+
* That fits a page.
|
|
9
|
+
*
|
|
10
|
+
* It doesn't fit a feature collection: one INSPIRE Addresses download inflates to roughly
|
|
11
|
+
* 32 GB of GML, and the caller wants each `ad:Address` subtree rather than the document.
|
|
12
|
+
*
|
|
13
|
+
* This module yields one matching element at a time, with its attributes and its nested
|
|
14
|
+
* children, and holds only the elements a single chunk completed.
|
|
15
|
+
* A caller reads an attribute.
|
|
11
16
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* that path.
|
|
17
|
+
* `./document.ts` cannot do that except on the root.
|
|
18
|
+
* A caller also walks a nested path.
|
|
19
|
+
* `elementTexts` flattens that path.
|
|
16
20
|
*
|
|
17
|
-
* It decodes bytes with a streaming `TextDecoder`, so a multi-byte character
|
|
18
|
-
* survives.
|
|
21
|
+
* It decodes bytes with a streaming `TextDecoder`, so a multi-byte character
|
|
22
|
+
* split across two chunks survives.
|
|
19
23
|
*/
|
|
20
24
|
|
|
21
25
|
import { Parser } from "htmlparser2"
|
|
@@ -87,7 +91,7 @@ export interface StreamMarkupOptions {
|
|
|
87
91
|
/**
|
|
88
92
|
* The elements matching `name`, each complete, in document order.
|
|
89
93
|
*
|
|
90
|
-
* A nested element of the same name
|
|
94
|
+
* A nested element of the same name isn't yielded separately: capture starts at the
|
|
91
95
|
* outermost occurrence and ends when that one closes, so one `ad:Address` arrives once
|
|
92
96
|
* whatever the number of `ad:Address` elements its own subtree contains.
|
|
93
97
|
*
|
package/lib/html/tables.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Read HTML tables as grids of cells without assigning meaning to their columns.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* preserves table, row and cell ancestry from the document tree, including malformed markup.
|
|
7
|
+
* The parser preserves table, row and cell ancestry from the document tree, including malformed markup.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import render from "dom-serializer"
|
package/lib/html/text.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* This module reads an HTML fragment as text through `htmlparser2`, using one rule in two ways.
|
|
7
6
|
*
|
|
8
|
-
* `stripHTMLToText` (`@mailwoman/core/trust-policies`) decodes entities, survives a `<`
|
|
9
|
-
* value and leaves source whitespace runs intact, but `textContent`
|
|
10
|
-
* so `<td>a</td><td>b</td>` reads as `"ab"` and
|
|
11
|
-
* appears nowhere in the document.
|
|
7
|
+
* `stripHTMLToText` (`@mailwoman/core/trust-policies`) decodes entities, survives a `<`
|
|
8
|
+
* inside an attribute value and leaves source whitespace runs intact, but `textContent`
|
|
9
|
+
* inserts no separator at an element boundary, so `<td>a</td><td>b</td>` reads as `"ab"` and
|
|
10
|
+
* `<p>Acme Fiber</p><p>LLC</p>` as `"Acme FiberLLC"`, a name that appears nowhere in the document.
|
|
12
11
|
*
|
|
13
|
-
* Reach for the sanitizer only from a module that already sanitizes:
|
|
12
|
+
* Reach for the sanitizer only from a module that already sanitizes:
|
|
13
|
+
* its Node build constructs a jsdom window at
|
|
14
14
|
* import (measured 422 ms, 71 MB, against `htmlparser2`'s 12 ms), priced for sanitizing rather than for reading
|
|
15
15
|
* a table.
|
|
16
16
|
*/
|
|
@@ -82,7 +82,7 @@ export const BLOCK_ELEMENTS: ReadonlySet<string> = new Set([
|
|
|
82
82
|
* A run of markup is one separation rather than one per tag: `</p><p>` inserts a single break.
|
|
83
83
|
*
|
|
84
84
|
* An element in `lineBreakElements` makes that separator a newline, unconditionally,
|
|
85
|
-
* because a line boundary the document states
|
|
85
|
+
* because a line boundary the document states isn't a spacing judgment.
|
|
86
86
|
*/
|
|
87
87
|
export function htmlToLayoutText(html: string, lineBreakElements?: ReadonlySet<string>): string {
|
|
88
88
|
let text = ""
|
package/lib/identical.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Deep identity for JSON-shaped values, wrapping the runtime's `isDeepStrictEqual`
|
|
6
|
+
* so a record whose fields were reordered no longer reads as changed.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `objects.ts` stays on the browser client's static import path.
|
|
8
|
+
* Node-only: `node:util` has no browser build, and `objects.ts` stays on the
|
|
9
|
+
* browser client's static import path.
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { isDeepStrictEqual } from "node:util"
|
package/lib/index.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
4
|
export * from "#collections"
|
|
8
5
|
export * from "#decoder"
|
package/lib/json.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* This module parses and prints JSON.
|
|
6
|
+
*
|
|
7
7
|
* It provides the strict parser.
|
|
8
8
|
* It also provides a forgiving parser and a reader for JSON columns.
|
|
9
|
+
*
|
|
9
10
|
* The module includes the pretty printer.
|
|
10
11
|
* The module imports only types and uses the global `JSON` object, so it stays platform-neutral.
|
|
12
|
+
*
|
|
11
13
|
* The license key module can depend on it when a Cloudflare Worker bundles that module.
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
import type { GetTagMetadata, Tagged } from "type-fest"
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
|
-
* A branded type representing a string that
|
|
19
|
+
* A branded type representing a string that's known to be valid JSON.
|
|
18
20
|
*/
|
|
19
21
|
export type StringifiedJSON<T = unknown> = Tagged<string, "JSON", T>
|
|
20
22
|
|
|
@@ -43,7 +45,7 @@ export function prettyJSON<T = unknown>(input: T, newline = true, space: string
|
|
|
43
45
|
*
|
|
44
46
|
* This is effectively a wrapper around `JSON.stringify` that returns a branded
|
|
45
47
|
* type to indicate that the output is valid JSON.
|
|
46
|
-
* It is also one of two places in the codebase that
|
|
48
|
+
* It is also one of two places in the codebase that's allowed to use `JSON.stringify`
|
|
47
49
|
*
|
|
48
50
|
* @param input The object to be stringified.
|
|
49
51
|
* @param keys An allowlist of property names, in the order they should print.
|
|
@@ -128,7 +130,7 @@ function orderedValue(value: unknown, indent: string, sortKeys: boolean, depth:
|
|
|
128
130
|
* Serializes a value as canonical JSON for hashing.
|
|
129
131
|
*
|
|
130
132
|
* Object keys are sorted at every depth and `undefined` entries are dropped,
|
|
131
|
-
* so reformatting a file or reordering an object's keys
|
|
133
|
+
* so reformatting a file or reordering an object's keys doesn't change the hash.
|
|
132
134
|
* Array order is preserved because an array's order is part of its value.
|
|
133
135
|
*/
|
|
134
136
|
export function canonicalJSON(value: unknown): string {
|
|
@@ -197,8 +199,8 @@ export function parseJSONStrict<T = unknown>(input: string): T {
|
|
|
197
199
|
* A JSON array encoded inside a string field.
|
|
198
200
|
*
|
|
199
201
|
* `undefined` answers `[]`; a value that parses to anything but an array throws,
|
|
200
|
-
* because a non-array there
|
|
201
|
-
* An empty array would read as "none", which
|
|
202
|
+
* because a non-array there's a schema change at the source rather than something to coerce.
|
|
203
|
+
* An empty array would read as "none", which isn't what a differently-shaped value means.
|
|
202
204
|
*
|
|
203
205
|
* @param scope The reader the error message identifies, e.g. `coastal client`.
|
|
204
206
|
*/
|