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

yelp-api-v3

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yelp-api-v3 - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

22

index.js

@@ -17,2 +17,6 @@ "use strict";

const promise = new Promise((resolve, reject) => {
console.log("first 3 characters of appId:");
console.log(str.substring(0, 2));
console.log("first 3 characters of appSecret:");
console.log(str.substring(0, 2));
request.post({

@@ -26,6 +30,8 @@ url: 'https://api.yelp.com/oauth2/token',

}, (err, response, data) => {
console.log("ERROR:");
console.log("ERROR 1:");
console.log(err);
console.log("DATA:");
console.log("DATA 1:");
console.log(data);
console.log("RESPONSE 1:");
console.log(response);
if (!err && response.statusCode == 200) {

@@ -62,6 +68,8 @@ this.accessToken = JSON.parse(data).access_token;

}, (err, response, data) => {
console.log("ERROR:");
console.log("ERROR 2:");
console.log(err);
console.log("DATA:");
console.log("DATA 2:");
console.log(data);
console.log("RESPONSE 2:");
console.log(response);
if (!err && response.statusCode == 200) {

@@ -81,6 +89,8 @@ resolve(data);

}, (err, response, data) => {
console.log("ERROR:");
console.log("ERROR 3:");
console.log(err);
console.log("DATA:");
console.log("DATA 3:");
console.log(data);
console.log("RESPONSE 3:");
console.log(response);
if (!err && response.statusCode == 200) {

@@ -87,0 +97,0 @@ resolve(data);

{
"name": "yelp-api-v3",
"version": "1.2.0",
"version": "1.3.0",
"description": "Library to query Yelp's v3 API",

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

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