Socket
Socket
Sign inDemoInstall

osm

Package Overview
Dependencies
3
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 1.0.0

3

index.js

@@ -44,3 +44,4 @@ var getPosition = require('geo-position');

function onPosition (err, position) {
if (err) return console.error(err);
if (err) return self.emit('error', err);
self.emit('position', position);

@@ -47,0 +48,0 @@

{
"name": "osm",
"description": "Display OpenStreetMaps.",
"version": "0.1.3",
"version": "1.0.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -38,3 +38,4 @@

Set the position to (`lat`, `long`). If you don't call this method `osm` will try to get the current position using the geolocation api.
Set the position to (`lat`, `long`). If you don't call this method `osm` will
try to get the current position using the geolocation api.

@@ -45,3 +46,4 @@ This method is chainable.

Set the map's radius in degrees. If you don't call this method, it defaults to `0.002`.
Set the map's radius in degrees. If you don't call this method, it defaults to
`0.002`.

@@ -59,2 +61,7 @@ This method is chainable.

### osm#on('error', fn)
If there's an error requesting the user's geolocation, `fn` will be called
with it.
## Installation

@@ -61,0 +68,0 @@

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