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

geojsonhint

Package Overview
Dependencies
Maintainers
21
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geojsonhint - npm Package Compare versions

Comparing version 2.0.0-beta2 to 2.0.0

8

CHANGELOG.md

@@ -0,1 +1,7 @@

## 2.0.0
**This is the first stable release of geojsonhint that supports the [IETF GeoJSON standard](https://tools.ietf.org/html/rfc7946)**
* Fixes winding order reversal from beta releases.
## 2.0.0-beta2

@@ -9,3 +15,3 @@

useful for people who want to include geojson as a script tag. That file
will still be available on npmcdn, which is documented in the readme. This
will still be available on unpkg, which is documented in the readme. This
change ensures that contributors don't accidentally mess with the geojsonhint.js

@@ -12,0 +18,0 @@ built file when they should be editing the source files in `lib`: now the

12

geojsonhint.js

@@ -206,2 +206,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.geojsonhint = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

});
return true;
}

@@ -221,5 +222,8 @@ } else if (type === 'Line' && coords.length < 2) {

} else {
coords.forEach(function(c) {
positionArray(c, type, depth - 1, c.__line__ || line);
var results = coords.map(function(c) {
return positionArray(c, type, depth - 1, c.__line__ || line);
});
return results.some(function(r) {
return r;
});
}

@@ -478,6 +482,6 @@ }

if (coords && coords.length > 0) {
if (!isRingClockwise(coords[0]))
if (isRingClockwise(coords[0]))
return false;
var interiorCoords = coords.slice(1, coords.length);
if (interiorCoords.some(isRingClockwise))
if (!interiorCoords.every(isRingClockwise))
return false;

@@ -484,0 +488,0 @@ }

@@ -205,2 +205,3 @@ var rightHandRule = require('./rhr');

});
return true;
}

@@ -220,5 +221,8 @@ } else if (type === 'Line' && coords.length < 2) {

} else {
coords.forEach(function(c) {
positionArray(c, type, depth - 1, c.__line__ || line);
var results = coords.map(function(c) {
return positionArray(c, type, depth - 1, c.__line__ || line);
});
return results.some(function(r) {
return r;
});
}

@@ -225,0 +229,0 @@ }

@@ -21,6 +21,6 @@ function rad(x) {

if (coords && coords.length > 0) {
if (!isRingClockwise(coords[0]))
if (isRingClockwise(coords[0]))
return false;
var interiorCoords = coords.slice(1, coords.length);
if (interiorCoords.some(isRingClockwise))
if (!interiorCoords.every(isRingClockwise))
return false;

@@ -27,0 +27,0 @@ }

{
"name": "geojsonhint",
"description": "validate and sanity-check geojson files",
"version": "2.0.0-beta2",
"version": "2.0.0",
"author": "Tom MacWright",

@@ -6,0 +6,0 @@ "bin": {

@@ -105,3 +105,3 @@ [![Build Status](https://secure.travis-ci.org/mapbox/geojsonhint.svg?branch=master)](http://travis-ci.org/mapbox/geojsonhint) [![Coverage Status](https://coveralls.io/repos/mapbox/geojsonhint/badge.svg)](https://coveralls.io/r/mapbox/geojsonhint)

https://npmcdn.com/geojsonhint@latest/geojsonhint.js
https://unpkg.com/geojsonhint@latest/geojsonhint.js

@@ -108,0 +108,0 @@ ## As a command-line utility

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