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

global-mercator

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-mercator - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

8

index.js

@@ -450,4 +450,6 @@ "use strict";

* @example
* validateLatLng([-115, 44])
* //= [-115, 44]
* validateLatLng([60, -125])
* //= [60, -125]
* validateLatLng([140, -125])
* //= Error: LatLng [lat] must be within -90 to 90 degrees
*/

@@ -469,2 +471,4 @@ function validateLatLng(init) {

* //= [-115, 44]
* validateLngLat([-225, 44])
* //= Error: LatLng [lng] must be within -180 to 180 degrees
*/

@@ -471,0 +475,0 @@ function validateLngLat(init) {

@@ -480,4 +480,6 @@ import * as Debug from 'debug'

* @example
* validateLatLng([-115, 44])
* //= [-115, 44]
* validateLatLng([60, -125])
* //= [60, -125]
* validateLatLng([140, -125])
* //= Error: LatLng [lat] must be within -90 to 90 degrees
*/

@@ -499,2 +501,4 @@ export function validateLatLng(init: number[]) {

* //= [-115, 44]
* validateLngLat([-225, 44])
* //= Error: LatLng [lng] must be within -180 to 180 degrees
*/

@@ -501,0 +505,0 @@ export function validateLngLat(init: number[]) {

{
"name": "global-mercator",
"version": "0.2.3",
"version": "0.2.4",
"description": "Global Mercator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -480,4 +480,6 @@ [![Build Status](https://travis-ci.org/DenisCarriere/global-mercator.svg?branch=master)](https://travis-ci.org/DenisCarriere/global-mercator)

```javascript
validateLatLng([-115, 44])
//= [-115, 44]
validateLatLng([60, -125])
//= [60, -125]
validateLatLng([140, -125])
//= Error: LatLng [lat] must be within -90 to 90 degrees
```

@@ -502,2 +504,4 @@

//= [-115, 44]
validateLngLat([-225, 44])
//= Error: LatLng [lng] must be within -180 to 180 degrees
```

@@ -504,0 +508,0 @@

Sorry, the diff of this file is not supported yet

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