Socket
Socket
Sign inDemoInstall

google-locations

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

1

lib/google-locations.js

@@ -34,3 +34,2 @@ var https = require('https'),

radius: 10,
name: 'A',
language: 'en',

@@ -37,0 +36,0 @@ rankby: 'prominence',

18

package.json
{
"name": "google-locations",
"description": "Google Places API for Node.js, with convenience methods to search by address or phone number",
"version": "0.1.2",
"version": "0.2.0",
"license": "MIT",
"homepage": "http://github.com/eastbayjake/google-locations",
"author": "Jake McGuire <mcguireghs@gmail.com>",
"contributors": [],
"keywords": ["Google Places", "Places API", "Google Geocoding", "Geocoding API", "search by address", "search by phone"],
"license": "MIT",
"scripts":{"test":"vows test/* --spec"},
"scripts": {
"test": "node ./test/index.test.js"
},
"repository": {

@@ -15,5 +16,10 @@ "type": "git",

},
"dependencies": ["underscore"],
"devDependencies": ["vows", "node-fakeweb"],
"dependencies": {
"underscore": "^1.8.3"
},
"devDependencies": {
"vows": "^0.8.1",
"node-fakeweb": "^0.0.20"
},
"main": "./lib/google-locations.js"
}

@@ -43,4 +43,4 @@ [![build status](https://secure.travis-ci.org/eastbayjake/google-locations.png)](http://travis-ci.org/eastbayjake/google-locations)

locations.details({placeid: response.results[0].place_id}, function(err, response) {
console.log("search details: ", response.result.website);
// search details: http://www.vermonster.com/
console.log("search details: ", response.result.name);
// search details: Google
});

@@ -47,0 +47,0 @@ });

@@ -16,3 +16,3 @@ var GoogleLocations = require('../lib/google-locations'),

fakeweb.registerUri({
uri: 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=37.4229181%2C-122.0854212&radius=10&name=A&language=en&rankby=prominence&key=fake_key',
uri: 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=37.4229181%2C-122.0854212&radius=10&language=en&rankby=prominence&key=fake_key',
body: '{"results" : [{"name": "Google", "place_id":"ABC123"}], "status" : "OK"}'

@@ -22,3 +22,3 @@ });

fakeweb.registerUri({
uri: 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=37.4229181%2C-122.0854212&rankby=prominence&radius=250&name=A&language=en&key=fake_key',
uri: 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=37.4229181%2C-122.0854212&rankby=prominence&radius=250&language=en&key=fake_key',
body: '{"results" : [{"name": "Google", "place_id":"ABC123"}, {"name": "Gooey Cookie Factory", "place_id":"DEF456"}], "status" : "OK"}'

@@ -25,0 +25,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc