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

flurry-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flurry-api - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/flurry.js

@@ -38,3 +38,3 @@ var request = require('request'),

var data = JSON.parse(body);
if (res.statusCode !== 200) return callback(new Error(data));
if (res.statusCode !== 200) return callback(util.formatError(data));

@@ -41,0 +41,0 @@ callback(null, data);

@@ -51,3 +51,3 @@ var request = require('request'),

var data = JSON.parse(body);
if (res.statusCode !== 200) return callback(new Error(data));
if (res.statusCode !== 200) return callback(util.formatError(data));

@@ -54,0 +54,0 @@ callback(null, data);

@@ -20,2 +20,6 @@ exports = module.exports = require('util');

return str;
};
exports.formatError = function(data){
return new Error(data.message + ' (Code: ' + data.code + ')');
};
{
"name": "flurry-api",
"version": "0.0.1",
"version": "0.0.2",
"description": "Flurry APi",

@@ -5,0 +5,0 @@ "main": "lib/flurry",

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