Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "wkx", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A WKT/WKB/EWKT/EWKB/TWKB/GeoJSON parser and serializer", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/cschwarz/wkx", |
@@ -89,4 +89,3 @@ module.exports = Geometry; | ||
options.hasSrid = (wkbType & 0x20000000) === 0x20000000; | ||
options.isEwkb = (wkbType & 0x10000000) || (wkbType & 0x20000000) || | ||
(wkbType & 0x40000000) || (wkbType & 0x80000000); | ||
options.isEwkb = (wkbType & 0x20000000) || (wkbType & 0x40000000) || (wkbType & 0x80000000); | ||
@@ -93,0 +92,0 @@ if (options.hasSrid) |
@@ -13,2 +13,7 @@ module.exports = GeometryCollection; | ||
this.geometries = geometries || []; | ||
if (this.geometries.length > 0) { | ||
this.hasZ = this.geometries[0].hasZ; | ||
this.hasM = this.geometries[0].hasM; | ||
} | ||
} | ||
@@ -15,0 +20,0 @@ |
@@ -15,2 +15,7 @@ module.exports = MultiLineString; | ||
this.lineStrings = lineStrings || []; | ||
if (this.lineStrings.length > 0) { | ||
this.hasZ = this.lineStrings[0].hasZ; | ||
this.hasM = this.lineStrings[0].hasM; | ||
} | ||
} | ||
@@ -17,0 +22,0 @@ |
@@ -14,2 +14,7 @@ module.exports = MultiPoint; | ||
this.points = points || []; | ||
if (this.points.length > 0) { | ||
this.hasZ = this.points[0].hasZ; | ||
this.hasM = this.points[0].hasM; | ||
} | ||
} | ||
@@ -16,0 +21,0 @@ |
@@ -15,2 +15,7 @@ module.exports = MultiPolygon; | ||
this.polygons = polygons || []; | ||
if (this.polygons.length > 0) { | ||
this.hasZ = this.polygons[0].hasZ; | ||
this.hasM = this.polygons[0].hasM; | ||
} | ||
} | ||
@@ -17,0 +22,0 @@ |
{ | ||
"name": "wkx", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A WKT/WKB/EWKT/EWKB/TWKB/GeoJSON parser and serializer", | ||
@@ -14,12 +14,12 @@ "main": "lib/wkx.js", | ||
"devDependencies": { | ||
"async": "^2.0.0-rc.6", | ||
"browserify": "^13.0.1", | ||
"coveralls": "^2.11.9", | ||
"async": "^2.0.1", | ||
"browserify": "^13.1.0", | ||
"coveralls": "^2.11.12", | ||
"deep-eql": "^0.1.3", | ||
"istanbul": "^0.4.4", | ||
"jshint": "^2.9.2", | ||
"json-stringify-pretty-compact": "^1.0.1", | ||
"mocha": "^2.5.3", | ||
"pg": "^6.0.1", | ||
"uglify-js": "^2.6.4" | ||
"istanbul": "^0.4.5", | ||
"jshint": "^2.9.3", | ||
"json-stringify-pretty-compact": "^1.0.2", | ||
"mocha": "^3.0.2", | ||
"pg": "^6.1.0", | ||
"uglify-js": "^2.7.3" | ||
}, | ||
@@ -26,0 +26,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
450858
7878
7