@turf/meta
Advanced tools
Comparing version 3.7.5 to 3.10.0
{ | ||
"name": "@turf/meta", | ||
"version": "3.7.5", | ||
"version": "3.10.0", | ||
"description": "meta and functional programming helpers for turf modules", | ||
@@ -14,7 +14,9 @@ "main": "index.js", | ||
], | ||
"author": "Tom MacWright", | ||
"license": "ISC", | ||
"author": "Turf Authors", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"tape": "^3.4.0", | ||
"@turf/random": "^3.7.5" | ||
"@turf/random": "^3.10.0", | ||
"eslint": "^3.14.1", | ||
"eslint-config-mourner": "^2.0.1", | ||
"tape": "^3.4.0" | ||
}, | ||
@@ -21,0 +23,0 @@ "repository": { |
75
test.js
@@ -1,4 +0,3 @@ | ||
var test = require('tape'), | ||
fs = require('fs'), | ||
meta = require('./'); | ||
var test = require('tape'); | ||
var meta = require('./'); | ||
@@ -32,3 +31,3 @@ var pointGeometry = { | ||
type: 'Feature', | ||
properties: { a: 1}, | ||
properties: {a: 1}, | ||
geometry: pointGeometry | ||
@@ -50,3 +49,3 @@ }; | ||
geometry: geometry, | ||
properties: { a: 1 } | ||
properties: {a: 1} | ||
}; | ||
@@ -63,6 +62,6 @@ | ||
collection(pointFeature).forEach(function(input) { | ||
test('propEach', function(t) { | ||
meta.propEach(input, function(prop, i) { | ||
t.deepEqual(prop, { a: 1 }); | ||
collection(pointFeature).forEach(function (input) { | ||
test('propEach', function (t) { | ||
meta.propEach(input, function (prop, i) { | ||
t.deepEqual(prop, {a: 1}); | ||
t.equal(i, 0); | ||
@@ -74,5 +73,5 @@ t.end(); | ||
featureAndCollection(pointGeometry).forEach(function(input) { | ||
test('coordEach#Point', function(t) { | ||
meta.coordEach(input, function(coord) { | ||
featureAndCollection(pointGeometry).forEach(function (input) { | ||
test('coordEach#Point', function (t) { | ||
meta.coordEach(input, function (coord) { | ||
t.deepEqual(coord, [0, 0]); | ||
@@ -84,6 +83,6 @@ t.end(); | ||
featureAndCollection(lineStringGeometry).forEach(function(input) { | ||
test('coordEach#LineString', function(t) { | ||
featureAndCollection(lineStringGeometry).forEach(function (input) { | ||
test('coordEach#LineString', function (t) { | ||
var output = []; | ||
meta.coordEach(input, function(coord) { | ||
meta.coordEach(input, function (coord) { | ||
output.push(coord); | ||
@@ -96,6 +95,6 @@ }); | ||
featureAndCollection(polygonGeometry).forEach(function(input) { | ||
test('coordEach#Polygon', function(t) { | ||
featureAndCollection(polygonGeometry).forEach(function (input) { | ||
test('coordEach#Polygon', function (t) { | ||
var output = []; | ||
meta.coordEach(input, function(coord) { | ||
meta.coordEach(input, function (coord) { | ||
output.push(coord); | ||
@@ -108,6 +107,6 @@ }); | ||
featureAndCollection(polygonGeometry).forEach(function(input) { | ||
test('coordEach#Polygon excludeWrapCoord', function(t) { | ||
featureAndCollection(polygonGeometry).forEach(function (input) { | ||
test('coordEach#Polygon excludeWrapCoord', function (t) { | ||
var output = []; | ||
meta.coordEach(input, function(coord) { | ||
meta.coordEach(input, function (coord) { | ||
output.push(coord); | ||
@@ -122,6 +121,6 @@ }, true); | ||
featureAndCollection(multiPolygonGeometry).forEach(function(input) { | ||
test('coordEach#MultiPolygon', function(t) { | ||
featureAndCollection(multiPolygonGeometry).forEach(function (input) { | ||
test('coordEach#MultiPolygon', function (t) { | ||
var output = []; | ||
meta.coordEach(input, function(coord) { | ||
meta.coordEach(input, function (coord) { | ||
output.push(coord); | ||
@@ -134,6 +133,6 @@ }); | ||
featureAndCollection(geometryCollection).forEach(function(input) { | ||
test('coordEach#GeometryCollection', function(t) { | ||
featureAndCollection(geometryCollection).forEach(function (input) { | ||
test('coordEach#GeometryCollection', function (t) { | ||
var output = []; | ||
meta.coordEach(input, function(coord) { | ||
meta.coordEach(input, function (coord) { | ||
output.push(coord); | ||
@@ -146,4 +145,4 @@ }); | ||
test('unknown', function(t) { | ||
t.throws(function() { | ||
test('unknown', function (t) { | ||
t.throws(function () { | ||
meta.coordEach({}); | ||
@@ -154,6 +153,6 @@ }); | ||
featureAndCollection(geometryCollection).forEach(function(input) { | ||
test('geomEach#GeometryCollection', function(t) { | ||
featureAndCollection(geometryCollection).forEach(function (input) { | ||
test('geomEach#GeometryCollection', function (t) { | ||
var output = []; | ||
meta.geomEach(input, function(geom) { | ||
meta.geomEach(input, function (geom) { | ||
output.push(geom); | ||
@@ -166,5 +165,5 @@ }); | ||
test('geomEach#bare-GeometryCollection', function(t) { | ||
test('geomEach#bare-GeometryCollection', function (t) { | ||
var output = []; | ||
meta.geomEach(geometryCollection, function(geom) { | ||
meta.geomEach(geometryCollection, function (geom) { | ||
output.push(geom); | ||
@@ -176,5 +175,5 @@ }); | ||
test('geomEach#bare-pointGeometry', function(t) { | ||
test('geomEach#bare-pointGeometry', function (t) { | ||
var output = []; | ||
meta.geomEach(pointGeometry, function(geom) { | ||
meta.geomEach(pointGeometry, function (geom) { | ||
output.push(geom); | ||
@@ -186,5 +185,5 @@ }); | ||
test('geomEach#bare-pointFeature', function(t) { | ||
test('geomEach#bare-pointFeature', function (t) { | ||
var output = []; | ||
meta.geomEach(pointFeature, function(geom) { | ||
meta.geomEach(pointFeature, function (geom) { | ||
output.push(geom); | ||
@@ -191,0 +190,0 @@ }); |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
27148
8
0
4
500