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

zomato.js

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

zomato.js - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

coverage/coverage.raw.json

11

lib/zomato.js

@@ -21,10 +21,7 @@ 'use strict';

var hostname = 'developers.zomato.com';
var apiVersion = '/api/v2.1';
/**
* Wrap the Zomato API
*/
var Zomato = function () {
var Zomato = function () {
/**

@@ -39,2 +36,4 @@ * constructor - Constructs the api object

this.apiKey = apiKey;
this.hostname = 'developers.zomato.com';
this.apiVersion = '/api/v2.1';
}

@@ -54,3 +53,3 @@

value: function get(endpoint, querystring) {
var path = apiVersion + '/' + endpoint;
var path = this.apiVersion + '/' + endpoint;
if (querystring !== undefined) {

@@ -62,3 +61,3 @@ path += '?' + querystring;

};
return _https2.default.get(hostname, path, headers);
return _https2.default.get(this.hostname, path, headers);
}

@@ -65,0 +64,0 @@

{
"name": "zomato.js",
"version": "1.0.3",
"version": "1.0.4",
"description": "zomato.js is a simple promise based JS wrapper for the Zomato API",

@@ -29,2 +29,3 @@ "author": {

"test": "mocha --compilers js:babel-register --timeout 10000",
"coverage": "istanbul cover node_modules/.bin/_mocha -- --compilers js:babel-register --timeout 10000",
"lint": "eslint ./src ./test --quiet",

@@ -38,4 +39,4 @@ "clean": "rm -rf ./lib",

"babel-cli": "^6.11.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.13.2",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-register": "^6.11.6",

@@ -45,2 +46,3 @@ "chai": "^3.5.0",

"eslint": "^3.3.0",
"istanbul": "^1.0.0-alpha.2",
"mocha": "^3.0.2"

@@ -47,0 +49,0 @@ },

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