Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/meta

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/meta - npm Package Compare versions

Comparing version 3.7.5 to 3.10.0

LICENSE

12

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

@@ -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 @@ });

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