@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/out/workers.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
import { threadId, workerData } from "node:worker_threads";
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Returns the `threadId` of the thread running this module: 0 on the main thread,
|
|
6
|
+
* and a positive integer in a worker.
|
|
5
7
|
*/
|
|
6
|
-
|
|
8
|
+
export function workerThreadID() {
|
|
9
|
+
return threadId;
|
|
10
|
+
}
|
|
7
11
|
/**
|
|
8
12
|
* The `userData` a spliterator `parallelMapWorkers` coordinator passed this worker thread.
|
|
9
13
|
*
|
package/out/workers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.js","sourceRoot":"","sources":["../lib/workers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workers.js","sourceRoot":"","sources":["../lib/workers.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAE1D;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC7B,OAAO,QAAQ,CAAA;AAChB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc;IAC7B,MAAM,QAAQ,GAAI,UAA4C,EAAE,QAAQ,CAAA;IAExE,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CACd,yGAAyG;YACxG,6CAA6C,CAC9C,CAAA;IACF,CAAC;IAED,OAAO,QAAa,CAAA;AACrB,CAAC"}
|
package/out/workspaces.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
2
|
* This function expands the root manifest's `workspaces` field to the directories it names.
|
|
3
|
+
*
|
|
7
4
|
* It supports only a single trailing `*` segment, and a `!directory` entry excludes one literal directory.
|
|
8
5
|
* A literal entry without a manifest is an error instead of an empty result.
|
|
6
|
+
*
|
|
9
7
|
* The function refuses patterns it cannot expand instead of reporting no matches.
|
|
10
8
|
*/
|
|
11
9
|
import { type PathBuilderLike } from "path-ts";
|
package/out/workspaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,SAAS,CAAA;AA8B3D,MAAM,WAAW,+BAA+B;IAC/C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC7C,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE,+BAAoC,GAC3C,OAAO,CAAC,MAAM,EAAE,CAAC,CAsDnB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE1G;AAED;;;;GAIG;AAEH,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA8B9F"}
|
package/out/workspaces.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* This function expands the root manifest's `workspaces` field to the directories it names.
|
|
5
|
+
*
|
|
7
6
|
* It supports only a single trailing `*` segment, and a `!directory` entry excludes one literal directory.
|
|
8
7
|
* A literal entry without a manifest is an error instead of an empty result.
|
|
8
|
+
*
|
|
9
9
|
* The function refuses patterns it cannot expand instead of reporting no matches.
|
|
10
10
|
*/
|
|
11
11
|
import { resolvePath } from "path-ts";
|
package/out/workspaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Mailwoman core: tokenization, decoder, formatter, resources, filters, utils.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"lib/**/*.ts",
|
|
18
18
|
"lib/**/*.tsx",
|
|
19
19
|
"tools/**/*.ts",
|
|
20
|
+
"wasm/deflate64.wasm",
|
|
20
21
|
"!**/*.test.ts",
|
|
21
22
|
"!**/*.test.tsx"
|
|
22
23
|
],
|
|
@@ -80,6 +81,11 @@
|
|
|
80
81
|
"node": "./out/index.js",
|
|
81
82
|
"default": "./out/index.js"
|
|
82
83
|
},
|
|
84
|
+
"./cloudflare": {
|
|
85
|
+
"types": "./out/cloudflare.d.ts",
|
|
86
|
+
"node": "./out/cloudflare.js",
|
|
87
|
+
"default": "./out/cloudflare.js"
|
|
88
|
+
},
|
|
83
89
|
"./coarse-placer": {
|
|
84
90
|
"types": "./out/coarse-placer/coarse-placer.d.ts",
|
|
85
91
|
"node": "./out/coarse-placer/coarse-placer.js",
|
|
@@ -175,6 +181,11 @@
|
|
|
175
181
|
"node": "./out/license/status.js",
|
|
176
182
|
"default": "./out/license/status.js"
|
|
177
183
|
},
|
|
184
|
+
"./license/stamp": {
|
|
185
|
+
"types": "./out/license/stamp.d.ts",
|
|
186
|
+
"node": "./out/license/stamp.js",
|
|
187
|
+
"default": "./out/license/stamp.js"
|
|
188
|
+
},
|
|
178
189
|
"./resources": {
|
|
179
190
|
"types": "./out/resources.d.ts",
|
|
180
191
|
"node": "./out/resources.js",
|
|
@@ -190,11 +201,6 @@
|
|
|
190
201
|
"node": "./out/resources/languages.js",
|
|
191
202
|
"default": "./out/resources/languages.js"
|
|
192
203
|
},
|
|
193
|
-
"./resources/git": {
|
|
194
|
-
"types": "./out/resources/git.d.ts",
|
|
195
|
-
"node": "./out/resources/git.js",
|
|
196
|
-
"default": "./out/resources/git.js"
|
|
197
|
-
},
|
|
198
204
|
"./resources/languages/types.gen": {
|
|
199
205
|
"types": "./out/resources/languages/types.gen.d.ts",
|
|
200
206
|
"node": "./out/resources/languages/types.gen.js",
|
|
@@ -260,6 +266,11 @@
|
|
|
260
266
|
"node": "./out/scripting.js",
|
|
261
267
|
"default": "./out/scripting.js"
|
|
262
268
|
},
|
|
269
|
+
"./state-machine": {
|
|
270
|
+
"types": "./out/state-machine.d.ts",
|
|
271
|
+
"node": "./out/state-machine.js",
|
|
272
|
+
"default": "./out/state-machine.js"
|
|
273
|
+
},
|
|
263
274
|
"./scripting/ingest-chunk-script": {
|
|
264
275
|
"types": "./out/scripting/ingest-chunk-script.d.ts",
|
|
265
276
|
"node": "./out/scripting/ingest-chunk-script.js",
|
|
@@ -300,21 +311,6 @@
|
|
|
300
311
|
"node": "./out/api.js",
|
|
301
312
|
"default": "./out/api.js"
|
|
302
313
|
},
|
|
303
|
-
"./api/disk-storage": {
|
|
304
|
-
"types": "./out/api/disk-storage.d.ts",
|
|
305
|
-
"node": "./out/api/disk-storage.js",
|
|
306
|
-
"default": "./out/api/disk-storage.js"
|
|
307
|
-
},
|
|
308
|
-
"./api/paced-client": {
|
|
309
|
-
"types": "./out/api/paced-client.d.ts",
|
|
310
|
-
"node": "./out/api/paced-client.js",
|
|
311
|
-
"default": "./out/api/paced-client.js"
|
|
312
|
-
},
|
|
313
|
-
"./resolver/fixture-authoritative-provider": {
|
|
314
|
-
"types": "./out/resolver/fixture-authoritative-provider.d.ts",
|
|
315
|
-
"node": "./out/resolver/fixture-authoritative-provider.js",
|
|
316
|
-
"default": "./out/resolver/fixture-authoritative-provider.js"
|
|
317
|
-
},
|
|
318
314
|
"./api/test-clocks": {
|
|
319
315
|
"types": "./out/api/test/clocks.d.ts",
|
|
320
316
|
"node": "./out/api/test/clocks.js",
|
|
@@ -325,6 +321,11 @@
|
|
|
325
321
|
"node": "./out/api/test/transport.js",
|
|
326
322
|
"default": "./out/api/test/transport.js"
|
|
327
323
|
},
|
|
324
|
+
"./api/*": {
|
|
325
|
+
"types": "./out/api/*.d.ts",
|
|
326
|
+
"node": "./out/api/*.js",
|
|
327
|
+
"default": "./out/api/*.js"
|
|
328
|
+
},
|
|
328
329
|
"./logging": {
|
|
329
330
|
"types": "./out/logging.d.ts",
|
|
330
331
|
"node": "./out/logging.js",
|
|
@@ -345,6 +346,11 @@
|
|
|
345
346
|
"node": "./out/resolver.js",
|
|
346
347
|
"default": "./out/resolver.js"
|
|
347
348
|
},
|
|
349
|
+
"./resolver/fixture-authoritative-provider": {
|
|
350
|
+
"types": "./out/resolver/fixture-authoritative-provider.d.ts",
|
|
351
|
+
"node": "./out/resolver/fixture-authoritative-provider.js",
|
|
352
|
+
"default": "./out/resolver/fixture-authoritative-provider.js"
|
|
353
|
+
},
|
|
348
354
|
"./errors": {
|
|
349
355
|
"types": "./out/errors/schema.d.ts",
|
|
350
356
|
"node": "./out/errors/schema.js",
|
|
@@ -355,6 +361,11 @@
|
|
|
355
361
|
"node": "./out/routing.js",
|
|
356
362
|
"default": "./out/routing.js"
|
|
357
363
|
},
|
|
364
|
+
"./network/*": {
|
|
365
|
+
"types": "./out/network/*.d.ts",
|
|
366
|
+
"node": "./out/network/*.js",
|
|
367
|
+
"default": "./out/network/*.js"
|
|
368
|
+
},
|
|
358
369
|
"./strings/*": {
|
|
359
370
|
"types": "./out/strings/*.d.ts",
|
|
360
371
|
"node": "./out/strings/*.js",
|
|
@@ -610,6 +621,11 @@
|
|
|
610
621
|
"node": "./out/json.js",
|
|
611
622
|
"default": "./out/json.js"
|
|
612
623
|
},
|
|
624
|
+
"./spdx-header": {
|
|
625
|
+
"types": "./out/spdx-header.d.ts",
|
|
626
|
+
"node": "./out/spdx-header.js",
|
|
627
|
+
"default": "./out/spdx-header.js"
|
|
628
|
+
},
|
|
613
629
|
"./binary-frame": {
|
|
614
630
|
"types": "./out/binary-frame.d.ts",
|
|
615
631
|
"node": "./out/binary-frame.js",
|
|
@@ -625,6 +641,16 @@
|
|
|
625
641
|
"node": "./out/promises.js",
|
|
626
642
|
"default": "./out/promises.js"
|
|
627
643
|
},
|
|
644
|
+
"./load-ledger": {
|
|
645
|
+
"types": "./out/load-ledger.d.ts",
|
|
646
|
+
"node": "./out/load-ledger.js",
|
|
647
|
+
"default": "./out/load-ledger.js"
|
|
648
|
+
},
|
|
649
|
+
"./memoize": {
|
|
650
|
+
"types": "./out/memoize.d.ts",
|
|
651
|
+
"node": "./out/memoize.js",
|
|
652
|
+
"default": "./out/memoize.js"
|
|
653
|
+
},
|
|
628
654
|
"./stats": {
|
|
629
655
|
"types": "./out/stats.d.ts",
|
|
630
656
|
"node": "./out/stats.js",
|
|
@@ -665,6 +691,11 @@
|
|
|
665
691
|
"node": "./out/index.js",
|
|
666
692
|
"default": "./out/index.js"
|
|
667
693
|
},
|
|
694
|
+
"./cloudflare": {
|
|
695
|
+
"types": "./out/cloudflare.d.ts",
|
|
696
|
+
"node": "./out/cloudflare.js",
|
|
697
|
+
"default": "./out/cloudflare.js"
|
|
698
|
+
},
|
|
668
699
|
"./coarse-placer": {
|
|
669
700
|
"types": "./out/coarse-placer/coarse-placer.d.ts",
|
|
670
701
|
"node": "./out/coarse-placer/coarse-placer.js",
|
|
@@ -760,6 +791,11 @@
|
|
|
760
791
|
"node": "./out/license/status.js",
|
|
761
792
|
"default": "./out/license/status.js"
|
|
762
793
|
},
|
|
794
|
+
"./license/stamp": {
|
|
795
|
+
"types": "./out/license/stamp.d.ts",
|
|
796
|
+
"node": "./out/license/stamp.js",
|
|
797
|
+
"default": "./out/license/stamp.js"
|
|
798
|
+
},
|
|
763
799
|
"./resources": {
|
|
764
800
|
"types": "./out/resources.d.ts",
|
|
765
801
|
"node": "./out/resources.js",
|
|
@@ -775,11 +811,6 @@
|
|
|
775
811
|
"node": "./out/resources/languages.js",
|
|
776
812
|
"default": "./out/resources/languages.js"
|
|
777
813
|
},
|
|
778
|
-
"./resources/git": {
|
|
779
|
-
"types": "./out/resources/git.d.ts",
|
|
780
|
-
"node": "./out/resources/git.js",
|
|
781
|
-
"default": "./out/resources/git.js"
|
|
782
|
-
},
|
|
783
814
|
"./resources/languages/types.gen": {
|
|
784
815
|
"types": "./out/resources/languages/types.gen.d.ts",
|
|
785
816
|
"node": "./out/resources/languages/types.gen.js",
|
|
@@ -845,6 +876,11 @@
|
|
|
845
876
|
"node": "./out/scripting.js",
|
|
846
877
|
"default": "./out/scripting.js"
|
|
847
878
|
},
|
|
879
|
+
"./state-machine": {
|
|
880
|
+
"types": "./out/state-machine.d.ts",
|
|
881
|
+
"node": "./out/state-machine.js",
|
|
882
|
+
"default": "./out/state-machine.js"
|
|
883
|
+
},
|
|
848
884
|
"./scripting/ingest-chunk-script": {
|
|
849
885
|
"types": "./out/scripting/ingest-chunk-script.d.ts",
|
|
850
886
|
"node": "./out/scripting/ingest-chunk-script.js",
|
|
@@ -885,21 +921,6 @@
|
|
|
885
921
|
"node": "./out/api.js",
|
|
886
922
|
"default": "./out/api.js"
|
|
887
923
|
},
|
|
888
|
-
"./api/disk-storage": {
|
|
889
|
-
"types": "./out/api/disk-storage.d.ts",
|
|
890
|
-
"node": "./out/api/disk-storage.js",
|
|
891
|
-
"default": "./out/api/disk-storage.js"
|
|
892
|
-
},
|
|
893
|
-
"./api/paced-client": {
|
|
894
|
-
"types": "./out/api/paced-client.d.ts",
|
|
895
|
-
"node": "./out/api/paced-client.js",
|
|
896
|
-
"default": "./out/api/paced-client.js"
|
|
897
|
-
},
|
|
898
|
-
"./resolver/fixture-authoritative-provider": {
|
|
899
|
-
"types": "./out/resolver/fixture-authoritative-provider.d.ts",
|
|
900
|
-
"node": "./out/resolver/fixture-authoritative-provider.js",
|
|
901
|
-
"default": "./out/resolver/fixture-authoritative-provider.js"
|
|
902
|
-
},
|
|
903
924
|
"./api/test-clocks": {
|
|
904
925
|
"types": "./out/api/test/clocks.d.ts",
|
|
905
926
|
"node": "./out/api/test/clocks.js",
|
|
@@ -910,6 +931,11 @@
|
|
|
910
931
|
"node": "./out/api/test/transport.js",
|
|
911
932
|
"default": "./out/api/test/transport.js"
|
|
912
933
|
},
|
|
934
|
+
"./api/*": {
|
|
935
|
+
"types": "./out/api/*.d.ts",
|
|
936
|
+
"node": "./out/api/*.js",
|
|
937
|
+
"default": "./out/api/*.js"
|
|
938
|
+
},
|
|
913
939
|
"./logging": {
|
|
914
940
|
"types": "./out/logging.d.ts",
|
|
915
941
|
"node": "./out/logging.js",
|
|
@@ -930,6 +956,11 @@
|
|
|
930
956
|
"node": "./out/resolver.js",
|
|
931
957
|
"default": "./out/resolver.js"
|
|
932
958
|
},
|
|
959
|
+
"./resolver/fixture-authoritative-provider": {
|
|
960
|
+
"types": "./out/resolver/fixture-authoritative-provider.d.ts",
|
|
961
|
+
"node": "./out/resolver/fixture-authoritative-provider.js",
|
|
962
|
+
"default": "./out/resolver/fixture-authoritative-provider.js"
|
|
963
|
+
},
|
|
933
964
|
"./errors": {
|
|
934
965
|
"types": "./out/errors/schema.d.ts",
|
|
935
966
|
"node": "./out/errors/schema.js",
|
|
@@ -940,6 +971,11 @@
|
|
|
940
971
|
"node": "./out/routing.js",
|
|
941
972
|
"default": "./out/routing.js"
|
|
942
973
|
},
|
|
974
|
+
"./network/*": {
|
|
975
|
+
"types": "./out/network/*.d.ts",
|
|
976
|
+
"node": "./out/network/*.js",
|
|
977
|
+
"default": "./out/network/*.js"
|
|
978
|
+
},
|
|
943
979
|
"./strings/*": {
|
|
944
980
|
"types": "./out/strings/*.d.ts",
|
|
945
981
|
"node": "./out/strings/*.js",
|
|
@@ -1195,6 +1231,11 @@
|
|
|
1195
1231
|
"node": "./out/json.js",
|
|
1196
1232
|
"default": "./out/json.js"
|
|
1197
1233
|
},
|
|
1234
|
+
"./spdx-header": {
|
|
1235
|
+
"types": "./out/spdx-header.d.ts",
|
|
1236
|
+
"node": "./out/spdx-header.js",
|
|
1237
|
+
"default": "./out/spdx-header.js"
|
|
1238
|
+
},
|
|
1198
1239
|
"./binary-frame": {
|
|
1199
1240
|
"types": "./out/binary-frame.d.ts",
|
|
1200
1241
|
"node": "./out/binary-frame.js",
|
|
@@ -1210,6 +1251,16 @@
|
|
|
1210
1251
|
"node": "./out/promises.js",
|
|
1211
1252
|
"default": "./out/promises.js"
|
|
1212
1253
|
},
|
|
1254
|
+
"./load-ledger": {
|
|
1255
|
+
"types": "./out/load-ledger.d.ts",
|
|
1256
|
+
"node": "./out/load-ledger.js",
|
|
1257
|
+
"default": "./out/load-ledger.js"
|
|
1258
|
+
},
|
|
1259
|
+
"./memoize": {
|
|
1260
|
+
"types": "./out/memoize.d.ts",
|
|
1261
|
+
"node": "./out/memoize.js",
|
|
1262
|
+
"default": "./out/memoize.js"
|
|
1263
|
+
},
|
|
1213
1264
|
"./stats": {
|
|
1214
1265
|
"types": "./out/stats.d.ts",
|
|
1215
1266
|
"node": "./out/stats.js",
|
|
@@ -1295,13 +1346,13 @@
|
|
|
1295
1346
|
}
|
|
1296
1347
|
},
|
|
1297
1348
|
"dependencies": {
|
|
1298
|
-
"@mailwoman/annotations": "
|
|
1299
|
-
"@mailwoman/codex": "
|
|
1300
|
-
"@mailwoman/evidence": "
|
|
1301
|
-
"@mailwoman/query-shape": "
|
|
1302
|
-
"@mailwoman/sqlite": "
|
|
1349
|
+
"@mailwoman/annotations": "11.1.0",
|
|
1350
|
+
"@mailwoman/codex": "11.1.0",
|
|
1351
|
+
"@mailwoman/evidence": "11.1.0",
|
|
1352
|
+
"@mailwoman/query-shape": "11.1.0",
|
|
1353
|
+
"@mailwoman/sqlite": "11.1.0",
|
|
1303
1354
|
"adm-zip": "^0.6.1",
|
|
1304
|
-
"async-init": "^1.
|
|
1355
|
+
"async-init": "^1.1.0",
|
|
1305
1356
|
"axios": "^1.21.0",
|
|
1306
1357
|
"axios-cache-interceptor": "^1.13.0",
|
|
1307
1358
|
"change-case": "^5.4.4",
|
|
@@ -1328,5 +1379,13 @@
|
|
|
1328
1379
|
"@duckdb/node-api": "^2.0.0-r.1",
|
|
1329
1380
|
"@types/trusted-types": "^2.0.7",
|
|
1330
1381
|
"@types/yauzl-promise": "^4.0.1"
|
|
1382
|
+
},
|
|
1383
|
+
"peerDependencies": {
|
|
1384
|
+
"wrangler": "^4.156.0"
|
|
1385
|
+
},
|
|
1386
|
+
"peerDependenciesMeta": {
|
|
1387
|
+
"wrangler": {
|
|
1388
|
+
"optional": true
|
|
1389
|
+
}
|
|
1331
1390
|
}
|
|
1332
1391
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Builds `crates/deflate64-wasm` for `wasm32-unknown-unknown` and writes the
|
|
6
|
+
* result to `wasm/deflate64.wasm`.
|
|
7
|
+
*
|
|
8
|
+
* With `--check`, the tool builds without writing.
|
|
9
|
+
* It exits non-zero when the build's SHA-256 differs from the committed binary's.
|
|
10
|
+
*
|
|
11
|
+
* Usage: `node packages/core/tools/build-deflate64-wasm.run.ts [--check]`
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { statPath } from "#fs/readers/stat"
|
|
15
|
+
import { replaceFileAtomically } from "#fs/writers"
|
|
16
|
+
import { sha256File } from "#hash"
|
|
17
|
+
import { repoRootPath, workspacePath } from "#paths"
|
|
18
|
+
import { runFile } from "#process"
|
|
19
|
+
import { parseArguments } from "#scripting/arguments"
|
|
20
|
+
|
|
21
|
+
const { values } = parseArguments({ options: { check: { type: "boolean", default: false } } })
|
|
22
|
+
|
|
23
|
+
const workspace = workspacePath("core")
|
|
24
|
+
const built = repoRootPath("target", "wasm32-unknown-unknown", "release", "deflate64_wasm.wasm")
|
|
25
|
+
const committed = workspacePath("core", "wasm", "deflate64.wasm")
|
|
26
|
+
|
|
27
|
+
await runFile(
|
|
28
|
+
"cargo",
|
|
29
|
+
["build", "--release", "--locked", "--target", "wasm32-unknown-unknown", "-p", "deflate64-wasm"],
|
|
30
|
+
{ cwd: workspace }
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
const builtDigest = await sha256File(built)
|
|
34
|
+
const { size } = await statPath(built)
|
|
35
|
+
|
|
36
|
+
if (values.check) {
|
|
37
|
+
const committedDigest = await sha256File(committed)
|
|
38
|
+
|
|
39
|
+
if (committedDigest === builtDigest) {
|
|
40
|
+
console.log(`wasm/deflate64.wasm matches the build: ${builtDigest} (${size} bytes)`)
|
|
41
|
+
} else {
|
|
42
|
+
console.error(`wasm/deflate64.wasm is stale: committed ${committedDigest}, built ${builtDigest} (${size} bytes)`)
|
|
43
|
+
|
|
44
|
+
process.exitCode = 1
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
await replaceFileAtomically(built, committed)
|
|
48
|
+
|
|
49
|
+
console.log(`wrote wasm/deflate64.wasm: ${builtDigest} (${size} bytes)`)
|
|
50
|
+
}
|
|
@@ -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
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Builds balanced coarse-placer train, validation and test sets.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* deduplicated and split 80/10/10.
|
|
7
|
+
* Each country is sampled separately, deduplicated and split 80/10/10.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { type PathBuilderLike, resolvePath, resolvePathBuilder } from "path-ts"
|
|
11
11
|
|
|
12
12
|
import { hashFNV1a } from "#coarse-placer/fnv-hash"
|
|
13
|
-
import { dataRootPath } from "#data-root"
|
|
13
|
+
import { dataRootPath, snapshotSourcePath } from "#data-root"
|
|
14
14
|
import { errorMessage } from "#errors/schema"
|
|
15
15
|
import { makeDirectories, writeLocalJSONLFile } from "#fs/writers"
|
|
16
16
|
import { OVERTURE_ADDRESSES_RELEASE } from "#overture-pins"
|
|
@@ -101,7 +101,7 @@ export async function buildDataset(
|
|
|
101
101
|
"*.parquet"
|
|
102
102
|
)
|
|
103
103
|
|
|
104
|
-
const OVERTURE_DIR =
|
|
104
|
+
const OVERTURE_DIR = snapshotSourcePath("overture", OVERTURE_ADDRESSES_RELEASE)
|
|
105
105
|
await makeDirectories(OUT_DIR)
|
|
106
106
|
|
|
107
107
|
const { DuckDBInstance } = await import("@duckdb/node-api")
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
* Builds training rows for the coarse placer's `OTHER` class from scripts outside the model's countries.
|
|
7
6
|
*
|
|
8
|
-
* Without these rows the model assigns unseen scripts to an in-map country with high confidence.
|
|
9
|
-
* from native-script names in the WOF `names` table, sampled evenly per language
|
|
10
|
-
* mostly in a script other than Latin or CJK.
|
|
11
|
-
*
|
|
7
|
+
* Without these rows the model assigns unseen scripts to an in-map country with high confidence.
|
|
8
|
+
* The rows come from native-script names in the WOF `names` table, sampled evenly per language
|
|
9
|
+
* and kept only when the name is mostly in a script other than Latin or CJK.
|
|
10
|
+
*
|
|
11
|
+
* They're appended to the existing splits, so run this after `mailwoman placer build-dataset`.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { DatabaseClient } from "@mailwoman/sqlite/client"
|
|
@@ -1,31 +1,33 @@
|
|
|
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
|
+
* Latin-script off-map outlier exposure for the coarse-placer.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* The `other` class is trained on non-Latin and non-CJK scripts (Cyrillic, Arabic, …) from
|
|
8
|
+
* WOF names, so off-map countries written in Latin script (Poland, Brazil, Mexico, …)
|
|
9
|
+
* still mis-place to a trained Latin country, the "Latin-off-map residual".
|
|
10
|
+
* The fix assembles real off-map addresses from the Overture per-country address parquet
|
|
11
|
+
* and appends them as `country: "other"`.
|
|
11
12
|
*
|
|
12
|
-
* Discipline: countries split into train (their rows feed train/val `other`)
|
|
13
|
-
* only to the dedicated test file), so generalization to
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Discipline: countries split into train (their rows feed train/val `other`)
|
|
14
|
+
* and heldout (rows go only to the dedicated test file), so generalization to
|
|
15
|
+
* off-map countries the model never saw stays measurable.
|
|
16
|
+
* The in-map test.jsonl is left untouched so the before/after in-map regression check stays clean.
|
|
17
|
+
* The Latin metric lives in its own file.
|
|
16
18
|
*
|
|
17
|
-
* Run after build-dataset + the exposure outliers (it appends).
|
|
18
|
-
* dedicated test file and appends fresh `other` rows
|
|
19
|
-
* without rebuilding train/val).
|
|
19
|
+
* Run after build-dataset + the exposure outliers (it appends).
|
|
20
|
+
* Re-runnable: it rewrites the dedicated test file and appends fresh `other` rows
|
|
21
|
+
* (so don't run it twice onto the same splits without rebuilding train/val).
|
|
20
22
|
*
|
|
21
23
|
* Run: `mailwoman placer build-dataset --outliers latin [--per-country 6000] [--overture
|
|
22
|
-
* $MAILWOMAN_DATA_ROOT/overture/<release>]` (default: the addresses-theme pin, `OVERTURE_ADDRESSES_RELEASE`)
|
|
24
|
+
* $MAILWOMAN_DATA_ROOT/snapshots/overture/<release>]` (default: the addresses-theme pin, `OVERTURE_ADDRESSES_RELEASE`)
|
|
23
25
|
*/
|
|
24
26
|
|
|
25
27
|
import { type PathBuilderLike, resolvePath } from "path-ts"
|
|
26
28
|
|
|
27
29
|
import { hashFNV1a } from "#coarse-placer/fnv-hash"
|
|
28
|
-
import {
|
|
30
|
+
import { snapshotSourcePath } from "#data-root"
|
|
29
31
|
import { errorMessage } from "#errors/schema"
|
|
30
32
|
import { appendLocalTextFile, writeLocalJSONLFile } from "#fs/writers"
|
|
31
33
|
import { OVERTURE_ADDRESSES_RELEASE } from "#overture-pins"
|
|
@@ -52,7 +54,7 @@ export interface BuildOutlierLatinOptions {
|
|
|
52
54
|
/**
|
|
53
55
|
* Overture release dir.
|
|
54
56
|
*
|
|
55
|
-
* @defaultValue `$MAILWOMAN_DATA_ROOT/overture/<OVERTURE_ADDRESSES_RELEASE>`
|
|
57
|
+
* @defaultValue `$MAILWOMAN_DATA_ROOT/snapshots/overture/<OVERTURE_ADDRESSES_RELEASE>`
|
|
56
58
|
*/
|
|
57
59
|
overture?: PathBuilderLike
|
|
58
60
|
/**
|
|
@@ -125,7 +127,7 @@ export async function buildOutlierLatin(
|
|
|
125
127
|
report?: (line: string) => void
|
|
126
128
|
): Promise<BuildOutlierLatinResult> {
|
|
127
129
|
const PER = options.perCountry ?? 6000
|
|
128
|
-
const overtureDir = options.overture ||
|
|
130
|
+
const overtureDir = options.overture || snapshotSourcePath("overture", OVERTURE_ADDRESSES_RELEASE)
|
|
129
131
|
const dataDir = options.data || defaultDataDir()
|
|
130
132
|
|
|
131
133
|
// Heavy dep (devDependency — operator tooling), lazy-imported so loading the tools barrel stays cheap.
|
|
@@ -1,27 +1,29 @@
|
|
|
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
|
+
* OpenAddresses Latin-off-map outlier exposure for the coarse-placer.
|
|
5
6
|
*
|
|
6
|
-
* OpenAddresses
|
|
7
|
-
*
|
|
8
|
-
* per-country CSVs and appends them as `country: "other"`.
|
|
7
|
+
* OpenAddresses covers far more countries than the Overture addresses theme, so this assembles
|
|
8
|
+
* address strings from OA's per-country CSVs and appends them as `country: "other"`.
|
|
9
9
|
*
|
|
10
10
|
* Discipline:
|
|
11
11
|
*
|
|
12
|
-
* - hold out whole language families (Nordic, Baltic, …) so a trained sibling's
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
12
|
+
* - hold out whole language families (Nordic, Baltic, …) so a trained sibling's
|
|
13
|
+
* shared n-grams cannot rescue the generalization metric.
|
|
14
|
+
* Train families feed train/val/test(indist).
|
|
15
|
+
* Heldout families go only to the dedicated test file.
|
|
16
|
+
* - Schema variance: read via DuckDB read_csv_auto(..., union_by_name)
|
|
17
|
+
* so differing per-source OA schemas align.
|
|
18
|
+
* Assemble to the same format the in-map rows use (build-outlier-latin's assemble).
|
|
19
|
+
* - Dedup (per country) plus per-country CAP (downsample): PL/CZ dwarf others,
|
|
20
|
+
* so cap so `other` keeps a mixed country profile.
|
|
21
|
+
* - Country filter: only off-map countries (never the 11 in-map).
|
|
22
|
+
* The in-map test.jsonl is untouched.
|
|
22
23
|
*
|
|
23
|
-
* Run after build-dataset + the exposure outliers (it appends).
|
|
24
|
-
* dedicated test file and appends fresh `other` rows.
|
|
24
|
+
* Run after build-dataset + the exposure outliers (it appends).
|
|
25
|
+
* Re-runnable: it rewrites the dedicated test file and appends fresh `other` rows.
|
|
26
|
+
* Rebuild train/val before re-running.
|
|
25
27
|
*
|
|
26
28
|
* Run: `mailwoman placer build-dataset --outliers oa --oa-dir <extracted-OA-root> [--per-country
|
|
27
29
|
* 6000]`
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
import { type PathBuilderLike, resolvePath } from "path-ts"
|
|
31
33
|
|
|
32
34
|
import { hashFNV1a } from "#coarse-placer/fnv-hash"
|
|
33
|
-
import {
|
|
35
|
+
import { currentSourcePath } from "#data-root"
|
|
34
36
|
import { errorMessage } from "#errors/schema"
|
|
35
37
|
import { appendLocalTextFile, writeLocalJSONLFile } from "#fs/writers"
|
|
36
38
|
import { COUNTRIES } from "#tools/coarse-placer/country-sets"
|
|
@@ -52,7 +54,7 @@ export interface BuildOutlierOAOptions {
|
|
|
52
54
|
/**
|
|
53
55
|
* Extracted OpenAddresses root.
|
|
54
56
|
*
|
|
55
|
-
* @defaultValue `$
|
|
57
|
+
* @defaultValue `$MAILWOMAN_CACHE_ROOT/sources/openaddresses/extracted`
|
|
56
58
|
*/
|
|
57
59
|
oaDir?: PathBuilderLike
|
|
58
60
|
/**
|
|
@@ -128,7 +130,7 @@ export async function buildOutlierOA(
|
|
|
128
130
|
options: BuildOutlierOAOptions = {},
|
|
129
131
|
report?: (line: string) => void
|
|
130
132
|
): Promise<BuildOutlierOAResult> {
|
|
131
|
-
const oaDir = options.oaDir ||
|
|
133
|
+
const oaDir = options.oaDir || currentSourcePath("openaddresses", "extracted")
|
|
132
134
|
const PER = options.perCountry ?? 6000
|
|
133
135
|
const dataDir = options.data || defaultDataDir()
|
|
134
136
|
|