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

arcgis-parser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arcgis-parser - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "arcgis-parser",
"version": "1.0.1",
"version": "1.0.2",
"description": "Parser for ArcGIS REST Services to human friendly JSON.",

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

@@ -20,7 +20,8 @@ const https = require('https')

// Support both HTTP & HTTPS
var request = (URL.parse(url).protocol === 'https:') ? request = https : request = http;
var request = (URL.parse(url).protocol === 'https:') ? request = https : request = http
return new Promise((resolve, reject) => {
request.get(url, response => {
if (!response.headers['content-type'].match(/application\/json/i)) return reject('content-type must be application/json')
// if (!response.headers['content-type'].match(/application\/json/i)) return reject('content-type must be application/json')
console.log(response.headers)
var data = ''

@@ -27,0 +28,0 @@ response.on('data', chunk => {

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