diff --git a/api/lib/connection-pool.ts b/api/lib/connection-pool.ts index 18156e574..bcdd110d1 100644 --- a/api/lib/connection-pool.ts +++ b/api/lib/connection-pool.ts @@ -1,4 +1,5 @@ import Err from '@openaddresses/batch-error'; +import { randomPoint } from '@turf/random'; import ImportControl, { ImportModeEnum } from './control/import.js'; import Sinks from './sinks.js'; import Config from './config.js'; @@ -157,6 +158,7 @@ export default class ConnectionPool extends Map { console.error(`not ok - ${connConfig.id} - ${connConfig.name} @ end`); this.retry(connClient); diff --git a/api/package-lock.json b/api/package-lock.json index a17e27e7f..7746cecf9 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -40,6 +40,7 @@ "@turf/bbox-polygon": "^7.2.0", "@turf/meta": "^7.0.0", "@turf/point-on-feature": "^7.1.0", + "@turf/random": "^7.2.0", "ajv": "^8.11.2", "ajv-formats": "^3.0.0", "archiver": "^7.0.0", @@ -5121,6 +5122,20 @@ "url": "https://opencollective.com/turf" } }, + "node_modules/@turf/random": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@turf/random/-/random-7.2.0.tgz", + "integrity": "sha512-fNXs5mOeXsrirliw84S8UCNkpm4RMNbefPNsuCTfZEXhcr1MuHMzq4JWKb4FweMdN1Yx2l/xcytkO0s71cJ50w==", + "license": "MIT", + "dependencies": { + "@turf/helpers": "^7.2.0", + "@types/geojson": "^7946.0.10", + "tslib": "^2.8.1" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, "node_modules/@turf/rhumb-bearing": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@turf/rhumb-bearing/-/rhumb-bearing-7.2.0.tgz", diff --git a/api/package.json b/api/package.json index f3e8a47b6..ddd5f2cf7 100644 --- a/api/package.json +++ b/api/package.json @@ -56,6 +56,7 @@ "@turf/bbox-polygon": "^7.2.0", "@turf/meta": "^7.0.0", "@turf/point-on-feature": "^7.1.0", + "@turf/random": "^7.2.0", "ajv": "^8.11.2", "ajv-formats": "^3.0.0", "archiver": "^7.0.0",