turf-point
Advanced tools
Comparing version 0.1.6 to 1.0.0
@@ -10,3 +10,3 @@ module.exports = function(x, y, properties){ | ||
properties: properties || {} | ||
} | ||
}; | ||
} |
{ | ||
"name": "turf-point", | ||
"version": "0.1.6", | ||
"version": "1.0.0", | ||
"description": "turf point module", | ||
@@ -25,5 +25,7 @@ "main": "index.js", | ||
"homepage": "https://github.com/morganherlocker/turf-point", | ||
"devDependencies": [ | ||
"tape" | ||
], | ||
"devDependencies": { | ||
"0": "tape", | ||
"benchmark": "^1.0.0", | ||
"tape": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
@@ -30,0 +32,0 @@ "minimist": "^0.2.0" |
10
test.js
var test = require('tape'); | ||
var point = require('./') | ||
var point = require('./'); | ||
test('point', function(t){ | ||
var pt = point(5, 10, {name: 'test point'}) | ||
var pt = point(5, 10, {name: 'test point'}); | ||
t.ok(pt); | ||
t.equal(pt.geometry.coordinates[0], 5) | ||
t.equal(pt.geometry.coordinates[1], 10) | ||
t.equal(pt.properties.name, 'test point') | ||
t.equal(pt.geometry.coordinates[0], 5); | ||
t.equal(pt.geometry.coordinates[1], 10); | ||
t.equal(pt.properties.name, 'test point'); | ||
@@ -12,0 +12,0 @@ t.throws(function() { |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5342
9
70
0
3
1