cardboard
Advanced tools
Comparing version 0.14.1 to 0.14.2
@@ -37,3 +37,3 @@ var queue = require('queue-async'); | ||
return { | ||
size: JSON.stringify(feature).length, | ||
size: Buffer.byteLength(JSON.stringify(feature)), | ||
bounds: bounds, | ||
@@ -40,0 +40,0 @@ west: bounds[0], |
{ | ||
"name": "cardboard", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "A library for storing and searching geographic features", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"dotenv": "^0.4.0", | ||
"dyno": "^0.13.1", | ||
"dyno": "^0.14.2", | ||
"geobuf": "0.2.4", | ||
@@ -37,0 +37,0 @@ "geojson-extent": "^0.1.0", |
@@ -896,3 +896,3 @@ var test = require('tap').test, | ||
var feature = geojsonFixtures.feature.one; | ||
var expectedSize = JSON.stringify(feature).length; | ||
var expectedSize = Buffer.byteLength(JSON.stringify(feature)); | ||
var expectedBounds = geojsonExtent(feature); | ||
@@ -992,3 +992,3 @@ | ||
var feature = geojsonFixtures.feature.one; | ||
var expectedSize = JSON.stringify(feature).length; | ||
var expectedSize = Buffer.byteLength(JSON.stringify(feature)); | ||
@@ -1042,3 +1042,3 @@ metadata.deleteFeature(feature, function(err) { | ||
var expectedSize = features.reduce(function(memo, feature) { | ||
memo = memo + JSON.stringify(feature).length; | ||
memo = memo + Buffer.byteLength(JSON.stringify(feature)); | ||
return memo; | ||
@@ -1118,3 +1118,3 @@ }, 0); | ||
var expectedSize = features.reduce(function(memo, feature) { | ||
memo = memo + JSON.stringify(feature).length; | ||
memo = memo + Buffer.byteLength(JSON.stringify(feature)); | ||
return memo; | ||
@@ -1121,0 +1121,0 @@ }, 0); |
Sorry, the diff of this file is not supported yet
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
346851
+ Addeddyno@0.14.2(transitive)
- Removeddyno@0.13.1(transitive)
Updateddyno@^0.14.2