New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mapbox/graph-normalizer

Package Overview
Dependencies
Maintainers
14
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/graph-normalizer - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

test/fixtures/normalize-ways/13300211231112.json

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc