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

proj4

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proj4 - npm Package Compare versions

Comparing version 2.3.16 to 2.3.17

2

bower.json
{
"name": "proj4",
"version": "2.3.16-alpha",
"version": "2.3.17",
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/proj4js/proj4js",

{
"name": "proj4",
"version": "2.3.16-alpha",
"version": "2.3.17",
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",

@@ -5,0 +5,0 @@ "repo": "proj4js/proj4js",

var adjust_lon = require('./adjust_lon');
module.exports = function(zone, lon) {
if (!zone) {
if (zone === undefined) {
zone = Math.floor((adjust_lon(lon) + Math.PI) * 30 / Math.PI);

@@ -9,8 +9,7 @@

return 0;
}
else if (zone >= 60) {
} else if (zone >= 60) {
return 59;
}
}
else {
return zone;
} else {
if (zone > 0 && zone <= 60) {

@@ -17,0 +16,0 @@ return zone - 1;

@@ -8,4 +8,4 @@ var adjust_zone = require('../common/adjust_zone');

var zone = adjust_zone(this.zone, this.long0);
if (!zone) {
return;
if (zone === undefined) {
throw new Error('unknown utm zone');
}

@@ -12,0 +12,0 @@

@@ -1,1 +0,1 @@

module.exports = '2.3.16';
module.exports = '2.3.17';
{
"name": "proj4",
"version": "2.3.16",
"version": "2.3.17",
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",

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

@@ -328,2 +328,7 @@ var testPoints = [

},
{
code: '+proj=utm +lon_0=-3 +ellps=GRS80 +lat_1=0.5 +lat_2=2 +n=0.5',
ll: [2, 1],
xy: [1057002.4052152266, 110955.14117382761]
},
// these test cases are related to the original issue on GitHub

@@ -330,0 +335,0 @@ {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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