Socket
Socket
Sign inDemoInstall

instagram-apis

Package Overview
Dependencies
52
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

1

index.js

@@ -7,3 +7,2 @@ const instagramLogin = require("./src/instagramLogin.js");

async init(param) {
console.log("Inside")
this.username = param.username;

@@ -10,0 +9,0 @@ this.password = param.password;

2

package.json
{
"name": "instagram-apis",
"version": "1.0.1",
"version": "1.0.2",
"description": "Insatgram library filled with useful Instagram API's",

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

@@ -6,3 +6,3 @@ const axios = require("axios");

module.exports = class {
module.exports = class {
constructor(username, password) {

@@ -33,8 +33,7 @@ this.username = username;

return await this.filterCookie(headers["set-cookie"]);
} catch ({response: {data}}) {
console.log(res)
// if (data.message === "challenge_required") {
// let apiPath = data.challenge.api_path;
// return await this.postChoice(apiPath);
// }
} catch ({ response: { data } }) {
if (data.message === "challenge_required") {
let apiPath = data.challenge.api_path;
return await this.postChoice(apiPath);
}
}

@@ -114,2 +113,2 @@ throw new Error("Error In Login");

}
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc