diff --git a/mise.toml b/mise.toml index 6ea5a7e..f738030 100644 --- a/mise.toml +++ b/mise.toml @@ -1,2 +1,2 @@ [tools] -node = "24" +node = "24.19.0" diff --git a/package-lock.json b/package-lock.json index 05e3352..e7c16d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "license": "MIT", "dependencies": { "check-types": "~1.3.2", + "undici": "^6.0.0", "waitress": ">=0.0.2" }, "devDependencies": { @@ -18,7 +19,7 @@ "should": "^8.2.2" }, "engines": { - "node": ">=8.17.0" + "node": ">=18" } }, "node_modules/@isaacs/cliui": { @@ -909,6 +910,14 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/undici": { + "version": "6.28.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.28.0.tgz", + "integrity": "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==", + "engines": { + "node": ">=18.17" + } + }, "node_modules/waitress": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/waitress/-/waitress-0.1.5.tgz", diff --git a/package.json b/package.json index 30067d4..4067ee2 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ }, "dependencies": { "check-types": "~1.3.2", + "undici": "^6.0.0", "waitress": ">=0.0.2" }, "overrides": { diff --git a/test/integration/placeTextTest.js b/test/integration/placeTextTest.js index 8f48a29..2a3d016 100644 --- a/test/integration/placeTextTest.js +++ b/test/integration/placeTextTest.js @@ -60,11 +60,11 @@ describe('placeSearchText', function() { var acceptable = result.status === 'OK' || result.status === 'ZERO_RESULTS'; assert.ok(acceptable, 'expected OK or ZERO_RESULTS, got ' + result.status); }); - it('should return a result within the continental US when results exist', function() { + it('should return a result on Earth when results exist', function() { if (result.status !== 'OK' || !result.results || !result.results.length) return; var loc = result.results[0].geometry.location; - assertWithinBounds(loc.lat, 25.0, 50.0, 'US result', 'lat'); - assertWithinBounds(loc.lng, -125.0, -66.0, 'US result', 'lng'); + assertWithinBounds(loc.lat, -90, 90, 'result', 'lat'); + assertWithinBounds(loc.lng, -180, 180, 'result', 'lng'); }) });