Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geolocator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geolocator - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

2

package.json
{
"name": "geolocator",
"version": "1.2.8",
"version": "1.2.9",
"description": "A javascript library for retrieving geolocation information via HTML5 and IP look-ups...",

@@ -5,0 +5,0 @@ "directories": {

## Geolocator Javascript Library
> Version: 1.2.8
> Version: 1.2.9
> Author: Onur Yıldırım © 2015

@@ -25,2 +25,7 @@ > Source code licensed under the MIT License.

**Install via Bower**:
```shell
bower install geolocator
```
**Install via NPM**:

@@ -180,2 +185,5 @@ ```shell

**version 1.2.9**
- Improvement: Added HTTPS secure connection support for IP geo-sources. _(Note: GeoPlugin does not support HTTPS. You should use FreeGeoIP or Wikimedia IP sources instead.)_. (Fixes [Issue #11](https://github.com/onury/geolocator/issues/11). PR: @iurisilvio,)
**version 1.2.8**

@@ -185,2 +193,3 @@ - Revision: Removed the `sensor` parameter from Goole Maps loader, since it's not required anymore.

- Revision: Created [NPM package][npm-package].
- Revision: Created Bower package.

@@ -220,1 +229,2 @@ **version 1.2.6**

[npm-package]: https://www.npmjs.com/package/geolocator
[npm-package]: https://www.npmjs.com/package/geolocator

@@ -5,3 +5,3 @@ /*jslint browser:true, nomen:true, regexp:true, unparam:true */

/** @license Geolocator Javascript Lib v.1.2.8
/** @license Geolocator Javascript Lib v.1.2.9
* (c) 2014-2015 Onur Yildirim (onur@cutepilot.com)

@@ -34,5 +34,5 @@ * https://github.com/onury/geolocator

ipGeoSources = [
{ url: 'http://freegeoip.net/json/', cbParam: 'callback' }, // 0
{ url: 'http://www.geoplugin.net/json.gp', cbParam: 'jsoncallback' }, // 1
{ url: 'http://geoiplookup.wikimedia.org/', cbParam: '' } // 2
{ url: '//freegeoip.net/json/', cbParam: 'callback' }, // 0
{ url: '//www.geoplugin.net/json.gp', cbParam: 'jsoncallback' }, // 1
{ url: '//geoiplookup.wikimedia.org/', cbParam: '' } // 2
// maxmind Not implemented. Requires attribution.

@@ -369,2 +369,2 @@ // See http://dev.maxmind.com/geoip/javascript

};
}());
}());
/*
Geolocator Javascript Lib v.1.2.8
Geolocator Javascript Lib v.1.2.9
(c) 2014-2015 Onur Yildirim (onur@cutepilot.com)

@@ -14,3 +14,3 @@ https://github.com/onury/geolocator

null,geolocator.location.coords.altitude=null,geolocator.location.coords.altitudeAccuracy=null,geolocator.location.coords.heading=null,geolocator.location.coords.speed=null,geolocator.location.timestamp=(new Date).getTime(),geolocator.location.ipGeoSource=n[a],geolocator.location.ipGeoSource.data=b)}function t(a){var b=!1;geolocator.location=null;delete geolocator.__ipscb;p(function(){2===k?void 0!==window.Geo&&(r(k,window.Geo),delete window.Geo,b=!0):void 0!==a&&"string"!==typeof a&&(r(k,a),b=!0);
!0===b?q(geolocator.location.coords):g&&g(Error(a||"Could not get location."))})}var h,g,l,n=[{url:"http://freegeoip.net/json/",cbParam:"callback"},{url:"http://www.geoplugin.net/json.gp",cbParam:"jsoncallback"},{url:"http://geoiplookup.wikimedia.org/",cbParam:""}],k;return{location:null,locate:function(a,b,f,d,c){h=a;g=b;l=c;p(function(){w(f,d)})},locateByIP:function(a,b,f,d){k="number"!==typeof f||0>f||f>=n.length?1:f;h=a;g=b;l=d;geolocator.__ipscb=t;a=n[k];void 0===a.cbParam||null===a.cbParam||
""===a.cbParam?m(a.url,t,!0):m(a.url+"?"+a.cbParam+"=geolocator.__ipscb",void 0,!0)},isPositionError:function(a){return"[object PositionError]"===Object.prototype.toString.call(a)}}}();
!0===b?q(geolocator.location.coords):g&&g(Error(a||"Could not get location."))})}var h,g,l,n=[{url:"//freegeoip.net/json/",cbParam:"callback"},{url:"//www.geoplugin.net/json.gp",cbParam:"jsoncallback"},{url:"//geoiplookup.wikimedia.org/",cbParam:""}],k;return{location:null,locate:function(a,b,f,d,c){h=a;g=b;l=c;p(function(){w(f,d)})},locateByIP:function(a,b,f,d){k="number"!==typeof f||0>f||f>=n.length?1:f;h=a;g=b;l=d;geolocator.__ipscb=t;a=n[k];void 0===a.cbParam||null===a.cbParam||""===a.cbParam?
m(a.url,t,!0):m(a.url+"?"+a.cbParam+"=geolocator.__ipscb",void 0,!0)},isPositionError:function(a){return"[object PositionError]"===Object.prototype.toString.call(a)}}}();
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc