New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openstreetmap-geojson

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openstreetmap-geojson - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "openstreetmap-geojson",
"version": "1.0.2",
"version": "1.0.3",
"description": "Get GeoJSON from OpenStreetMaps",

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

@@ -15,4 +15,4 @@ const fetch = require('node-fetch')

const text = await res.text()
if (!res || res.status !== 200 || text === 'None\n') throw new Error('Unable to fetch the GeoJSON')
if (!res || res.status !== 200) throw new Error('Unable to fetch the GeoJSON')
if (text === 'None\n') return {}
const json = JSON.parse(text)

@@ -19,0 +19,0 @@ return json

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