geocodio-library-node 1.5.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # geocod.io Node library [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
1
+ # geocod.io Node library [![NPM version][npm-image]][npm-url]
2
2
  > Library for performing forward and reverse address geocoding for addresses or coordinates in the US and Canada.
3
3
 
4
4
  <!-- toc -->
@@ -313,5 +313,3 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
313
313
 
314
314
  [npm-image]: https://badge.fury.io/js/geocodio-library-node.svg
315
315
  [npm-url]: https://npmjs.org/package/geocodio-library-node
316
- [travis-image]: https://travis-ci.org/Geocodio/geocodio-library-node.svg?branch=master
317
- [travis-url]: https://travis-ci.org/Geocodio/geocodio-library-node
@@ -116,7 +116,7 @@ describe("geocoder", () => {
116
116
  .then(response => {
117
117
  expect(
118
118
  response.results[0].response.results[0].formatted_address
119
- ).toEqual("101 E Washington St, Nashville, NC 27856");
119
+ ).toEqual("101 W Washington St, Nashville, NC 27856");
120
120
  expect(
121
121
  response.results[1].response.results[0].formatted_address
122
122
  ).toEqual("3034 S 1st St, Garland, TX 75041");
@@ -134,7 +134,7 @@ describe("geocoder", () => {
134
134
  .then(response => {
135
135
  expect(
136
136
  response.results[0].response.results[0].formatted_address
137
- ).toEqual("101 E Washington St, Nashville, NC 27856");
137
+ ).toEqual("101 W Washington St, Nashville, NC 27856");
138
138
  expect(
139
139
  response.results[1].response.results[0].formatted_address
140
140
  ).toEqual("3034 S 1st St, Garland, TX 75041");
@@ -20,7 +20,7 @@ describe("error handling", () => {
20
20
  return geocoder.geocode(" ").catch(err => {
21
21
  expect(err).toBeInstanceOf(Error);
22
22
  expect(err.message).toEqual(
23
- "Could not geocode address. Postal code or city required."
23
+ "Could not geocode address. No matches found."
24
24
  );
25
25
  });
26
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geocodio-library-node",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "geocod.io geocoding API library",
5
5
  "homepage": "https://github.com/Geocodio/geocodio-library-node",
6
6
  "author": {
@@ -69,11 +69,14 @@
69
69
  },
70
70
  "repository": "Geocodio/geocodio-library-node",
71
71
  "jest": {
72
+ "moduleNameMapper": {
73
+ "axios": "<rootDir>/node_modules/axios/dist/node/axios.cjs"
74
+ },
72
75
  "testEnvironment": "node"
73
76
  },
74
77
  "license": "MIT",
75
78
  "dependencies": {
76
- "axios": "^0.27.2",
79
+ "axios": "^1.6.7",
77
80
  "form-data": "^4.0.0"
78
81
  }
79
82
  }