@mapbox/graph-normalizer
Advanced tools
Comparing version 2.5.0 to 2.6.0
{ | ||
"name": "@mapbox/graph-normalizer", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Takes nodes and ways and turn them into a normalized graph of intersections and ways.", | ||
@@ -30,2 +30,3 @@ "bin": "./bin/normalize-ways", | ||
"graceful-fs": "^4.1.9", | ||
"json-bigint": "^1.0.0", | ||
"lodash.clonedeep": "^4.5.0", | ||
@@ -32,0 +33,0 @@ "minimist": "^1.2.0", |
@@ -30,2 +30,21 @@ 'use strict'; | ||
test('normalize-ways cli with bigInt ids', function (t) { | ||
execSync('mkdir -p ' + path.join(__dirname, '../test_output')); | ||
var cmd = 'node ' + path.join(__dirname, '../bin/normalize-ways') + | ||
' --outputPath ' + path.join(__dirname, '../test_output/') + | ||
' --waysFile ' + path.join(__dirname, 'fixtures/osm-ways-7-113-50.geojson') + | ||
' --zoomLevel 14'; | ||
exec(cmd, function (err, stdout, stderr) { | ||
t.notOk(err, 'did not throw an error'); | ||
t.notOk(stderr, 'did not write to stderr'); | ||
t.equals(fs.readdirSync(path.join(__dirname, '../test_output')).length, 1, 'Good number of files created.'); | ||
var a = fs.readFileSync(path.join(__dirname, '../test_output/13300211231112.json'), {encoding: 'utf8'}); | ||
var b = fs.readFileSync(path.join(__dirname, 'fixtures/normalize-ways/13300211231112.json'), {encoding: 'utf8'}); | ||
t.equals(a, b, 'The output file matches expected'); | ||
execSync('rm -rf ' + path.join(__dirname, '../test_output')); | ||
t.end(); | ||
}); | ||
}); | ||
test('normalize-ways cli with tricky boundary way', function (t) { | ||
@@ -32,0 +51,0 @@ execSync('mkdir -p ' + path.join(__dirname, '../test_output')); |
Sorry, the diff of this file is not supported yet
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
991
2
2396409
10
117
+ Addedjson-bigint@^1.0.0
+ Addedbignumber.js@9.1.2(transitive)
+ Addedjson-bigint@1.0.0(transitive)