diff --git a/.travis.yml b/.travis.yml index 45895a6..d34ef43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ node_js: - "10" - "11" - "12" + - "13" before_install: - npm install -g npm before_script: diff --git a/examples/address_similarity.js b/examples/address_similarity.js index 4bfb57e..8e23c8f 100644 --- a/examples/address_similarity.js +++ b/examples/address_similarity.js @@ -13,13 +13,13 @@ var args = parser.parseArgs(); var api = new Api(args.key, args.url); var endpoint = "addressSimilarity"; -api.parameters.address1 = {"city": "Cambridge"} -api.parameters.address2 = {"city": "cambridge", "state": "ma"} +api.parameters.address1 = {"houseNumber": "1600", "road": "Pennsylvania Ave NW", "city": "Washington", "state": "DC", "postCode": "20500"} +api.parameters.address2 = "160 Pennsilvana Avenue, Washington, D.C., 20500" api.rosette(endpoint, function(err, res){ - if(err){ - console.log(err); - } else { - console.log(JSON.stringify(res, null, 2)); - } + if(err){ + console.log(err); + } else { + console.log(JSON.stringify(res, null, 2)); + } }); diff --git a/examples/categories.js b/examples/categories.js index 58b9897..80fd2b9 100644 --- a/examples/categories.js +++ b/examples/categories.js @@ -13,13 +13,13 @@ var args = parser.parseArgs(); var api = new Api(args.key, args.url); var endpoint = "categories"; -var categories_url_data = "https://onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/"; +var categories_url_data = "https://onlocationvacations.com/2018/02/06/downton-abbey-exhibition-extended-april-2-nyc/"; api.parameters.contentUri = categories_url_data; api.rosette(endpoint, function(err, res){ - if(err){ - console.log(err); - } else { - console.log(JSON.stringify(res, null, 2)); - } + if(err){ + console.log(err); + } else { + console.log(JSON.stringify(res, null, 2)); + } }); diff --git a/lib/rosetteRequest.js b/lib/rosetteRequest.js index ce815a5..3af0b45 100644 --- a/lib/rosetteRequest.js +++ b/lib/rosetteRequest.js @@ -28,7 +28,7 @@ var querystring = require('querystring'); * * @type string */ -var BINDING_VERSION = "1.14.3"; +var BINDING_VERSION = "1.14.4"; var USER_AGENT = "rosetteapinode/" + BINDING_VERSION + "/" + process.version; /** diff --git a/package.json b/package.json index c8ecaf1..3e0ffa8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rosette-api", - "version": "1.14.3", + "version": "1.14.4", "description": "Rosette API Node.js client SDK", "main": "index", "directories": {