Comparing version 2.3.12 to 2.3.13
{ | ||
"name": "proj4", | ||
"version": "2.3.12", | ||
"version": "2.3.13", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -24,2 +24,2 @@ "homepage": "https://github.com/proj4js/proj4js", | ||
] | ||
} | ||
} |
{ | ||
"name": "proj4", | ||
"version": "2.3.12", | ||
"version": "2.3.13", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -17,2 +17,2 @@ "repo": "proj4js/proj4js", | ||
] | ||
} | ||
} |
@@ -11,3 +11,3 @@ var mgrs = require('mgrs'); | ||
this.z = x[2] || 0.0; | ||
}else if(typeof x === 'object'){ | ||
} else if(typeof x === 'object') { | ||
this.x = x.x; | ||
@@ -21,4 +21,3 @@ this.y = x.y; | ||
this.z = parseFloat(coords[2], 10) || 0.0; | ||
} | ||
else { | ||
} else { | ||
this.x = x; | ||
@@ -37,2 +36,2 @@ this.y = y; | ||
}; | ||
module.exports = Point; | ||
module.exports = Point; |
{ | ||
"name": "proj4", | ||
"version": "2.3.12", | ||
"version": "2.3.13", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -36,5 +36,5 @@ "main": "lib/index.js", | ||
"grunt-mocha-phantomjs": "~0.4.0", | ||
"browserify": "~3.24.5", | ||
"grunt-browserify": "~1.3.0", | ||
"grunt-contrib-uglify": "~0.3.2", | ||
"browserify": "~12.0.1", | ||
"grunt-browserify": "~4.0.1", | ||
"grunt-contrib-uglify": "~0.11.1", | ||
"curl": "git://github.com/cujojs/curl.git", | ||
@@ -47,2 +47,2 @@ "istanbul": "~0.2.4", | ||
} | ||
} | ||
} |
@@ -18,3 +18,3 @@ # PROJ4JS [![Build Status](https://travis-ci.org/proj4js/proj4js.svg)](https://travis-ci.org/proj4js/proj4js) | ||
or just manually grab the file `proj4.js` from the [latest release](https://github.com/proj4js/proj4js/releases). | ||
or just manually grab the file `proj4.js` from the [latest release](https://github.com/proj4js/proj4js/releases)'s `dist/` folder. | ||
@@ -93,3 +93,3 @@ if you do not want to download anything, Proj4js is also hosted on [cdnjs](http://www.cdnjs.com/libraries/proj4js) for direct use in your browser applications. | ||
you can then do | ||
you can then do | ||
@@ -117,3 +117,3 @@ ```js | ||
proj4.defs('urn:x-ogc:def:crs:EPSG:4326', proj4.defs('EPSG:4326')); | ||
``` | ||
``` | ||
@@ -126,3 +126,3 @@ ## Developing | ||
```bash | ||
grunt | ||
node_modules/.bin/grunt | ||
``` | ||
@@ -139,9 +139,9 @@ | ||
```bash | ||
node test --coverage | ||
npm test --coverage | ||
``` | ||
to create a build with only default projections (latlon and Mercator) run | ||
to create a build with only default projections (latlon and Mercator) run | ||
```bash | ||
grunt build | ||
node_modules/.bin/grunt build | ||
``` | ||
@@ -152,8 +152,8 @@ | ||
```bash | ||
grunt build:tmerc | ||
node_modules/.bin/grunt build:tmerc | ||
#includes transverse Mercator | ||
grunt build:lcc | ||
node_modules/.bin/grunt build:lcc | ||
#includes lambert conformal conic | ||
grunt build:omerc,moll | ||
node_modules/.bin/grunt build:omerc,moll | ||
#includes oblique Mercator and Mollweide | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
0
203709
104
5375