turf-union
Advanced tools
Comparing version 0.0.1 to 1.0.0
14
index.js
@@ -6,12 +6,12 @@ // look here for help http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/vector/v.overlay/main.c | ||
var jsts = require('jsts') | ||
var jsts = require('jsts'); | ||
module.exports = function(poly1, poly2){ | ||
var reader = new jsts.io.GeoJSONReader() | ||
var a = reader.read(JSON.stringify(poly1.geometry)) | ||
var b = reader.read(JSON.stringify(poly2.geometry)) | ||
var reader = new jsts.io.GeoJSONReader(); | ||
var a = reader.read(JSON.stringify(poly1.geometry)); | ||
var b = reader.read(JSON.stringify(poly2.geometry)); | ||
var union = a.union(b); | ||
var parser = new jsts.io.GeoJSONParser() | ||
var parser = new jsts.io.GeoJSONParser(); | ||
union = parser.write(union) | ||
union = parser.write(union); | ||
return { | ||
@@ -21,3 +21,3 @@ type: 'Feature', | ||
properties: poly1.properties | ||
} | ||
}; | ||
} |
{ | ||
"name": "turf-union", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"description": "find the union of geographic features", | ||
@@ -24,8 +24,9 @@ "main": "index.js", | ||
"devDependencies": { | ||
"glob": "~4.0.0", | ||
"tape": "~2.13.1" | ||
"benchmark": "^1.0.0", | ||
"glob": "~4.3.1", | ||
"tape": "~3.0.3" | ||
}, | ||
"dependencies": { | ||
"jsts": "~0.13.4" | ||
"jsts": "~0.15.0" | ||
} | ||
} |
@@ -5,3 +5,3 @@ turf-union | ||
Combines to polygons into one. | ||
Combines two polygons into one. | ||
@@ -8,0 +8,0 @@ ###Install |
var union = require('../'), | ||
test = require('tape'), | ||
glob = require('glob'), | ||
fs = require('fs') | ||
fs = require('fs'); | ||
@@ -16,3 +16,2 @@ var REGEN = false; | ||
t.end(); | ||
}) | ||
}); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9124
10
291
0
0
3
2
+ Addedjavascript.util@0.12.12(transitive)
+ Addedjsts@0.15.0(transitive)
- Removedjavascript.util@0.10.1(transitive)
- Removedjsts@0.13.4(transitive)
Updatedjsts@~0.15.0