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

fuel-rest

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuel-rest - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

2

lib/fuel-rest.js

@@ -125,3 +125,3 @@ /**

// checking to make sure it's json from api
if( res.headers[ 'content-type' ].split( ';' )[ 0 ].toLowerCase() !== 'application/json' ) {
if( !res.headers[ 'content-type' ] || res.headers[ 'content-type' ].split( ';' )[ 0 ].toLowerCase() !== 'application/json' ) {
helpers.deliverResponse( 'error', new Error( 'API did not return JSON' ), callback, 'Fuel REST' );

@@ -128,0 +128,0 @@ return;

{
"name": "fuel-rest",
"version": "0.7.1",
"version": "0.7.2",
"description": "Node Library for performing REST API calls with ExactTarget Fuel.",

@@ -5,0 +5,0 @@ "main": "./lib/fuel-rest.js",

@@ -74,2 +74,3 @@ Fuel REST Client (for Node.js) [![Build Status](https://travis-ci.org/ExactTarget/Fuel-Node-REST.svg?branch=master)](https://travis-ci.org/ExactTarget/Fuel-Node-REST)

* **0.7.2** - 2014-10-16 - account for content-type header not being present on API response
* **0.7.1** - 2014-09-09 - removed unneeded "!!"

@@ -76,0 +77,0 @@ * **0.7.0** - 2014-08-29 (public release, 1st npm version)

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