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

geojsonhint

Package Overview
Dependencies
Maintainers
5
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 0.3.3 to 0.3.4

test/data/good/good-feature-with-string-id.geojson

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 0.3.4
* Tolerates `id` properties as numbers as well as strings, to match
the actual specification.
## 0.3.3

@@ -2,0 +7,0 @@

10

index.js

@@ -247,4 +247,10 @@ var jsonlint = require('jsonlint-lines');

bbox(_);
if (_.id !== undefined) {
requiredProperty(_, 'id', 'string');
// https://github.com/geojson/draft-geojson/blob/master/middle.mkd#feature-object
if (_.id !== undefined &&
typeof _.id !== 'string' &&
typeof _.id !== 'number') {
errors.push({
message: 'Feature "id" property must have a string or number value',
line: _.__line__
});
}

@@ -251,0 +257,0 @@ if (_.type !== 'Feature') {

2

package.json
{
"name": "geojsonhint",
"version": "0.3.3",
"version": "0.3.4",
"description": "validate and sanity-check geojson files",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

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