New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

public-instagram

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

public-instagram - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

7

lib/media/index.test.js

@@ -51,9 +51,10 @@ var

it('Testing type of return object', async () => {
comments = await Instagram.media.comments('BP-rXUGBPJa', 1000)
it('Testing type and length of return object', async () => {
const comments = await Instagram.media.comments('BP-rXUGBPJa', 500)
Expect(comments).to.be.an('array');
Expect(comments).to.have.lengthOf(500);
});
it('Testing schema of return object', async () => {
comments = await Instagram.media.comments('BP-rXUGBPJa', 1000)
const comments = await Instagram.media.comments('BP-rXUGBPJa', 500)
Expect(comments[0]).to.be.jsonSchema({

@@ -60,0 +61,0 @@ type: 'object',

@@ -12,3 +12,3 @@ var

it('Testing schema of return object', async () => {
var info = await Instagram.tags.info('instagram');
const info = await Instagram.tags.info('instagram');
Expect(info).to.be.jsonSchema({

@@ -32,9 +32,9 @@ type: 'object',

it('Testing type and length of return object', async () => {
posts = await Instagram.tags.recent('instagram', 1000);
const posts = await Instagram.tags.recent('instagram', 500);
Expect(posts).to.be.an('array');
Expect(posts).to.have.lengthOf(1000);
Expect(posts).to.have.lengthOf(500);
});
it('Testing schema of return object', async () => {
posts = await Instagram.tags.recent('instagram', 500);
const posts = await Instagram.tags.recent('instagram', 500);
Expect(posts[0]).to.be.jsonSchema({

@@ -58,3 +58,3 @@ type: 'object',

it('Testing type of return object', async () => {
hashtags = await Instagram.tags.search('hpow');
const hashtags = await Instagram.tags.search('hpow');
Expect(hashtags).to.be.an('array');

@@ -64,3 +64,3 @@ });

it('Testing schema of return object', async () => {
hashtags = await Instagram.tags.search('hpow');
const hashtags = await Instagram.tags.search('hpow');
Expect(hashtags[0]).to.be.jsonSchema({

@@ -67,0 +67,0 @@ type: 'object',

{
"name": "public-instagram",
"version": "0.2.0",
"version": "0.2.1",
"description": "Tool to fetch Instagram's public content.",

@@ -32,3 +32,3 @@ "main": "index.js",

"bluebird": "^3.5.0",
"puppeteer": "^0.9.0"
"puppeteer": "^0.11.0"
},

@@ -35,0 +35,0 @@ "devDependencies": {

@@ -19,3 +19,3 @@ # public-instagram

```
```bash
npm i public-instagram

@@ -26,3 +26,3 @@ ```

```
```bash
npm i https://github.com/ivolimasilva/public-instagram.git

@@ -33,4 +33,4 @@ ```

```
var instagram = require('public-instagram');
```js
import instagram from 'public-instagram';

@@ -41,6 +41,6 @@ // Async function in order to use await

// Get information about hashtag
var info = await instagram.tags.info('instagram');
const info = await instagram.tags.info('instagram');
console.log(info);
// Get recent posts that contain an hashtag
// Get the 1000 most recent posts that contain an hashtag
const posts = await instagram.tags.recent('instagram', 1000);

@@ -57,2 +57,6 @@ console.log(posts.length);

// Get the 1000 most recent comments of that post
const comments = await instagram.media.comments('BP-rXUGBPJa', 1000);
console.log(comments);
// Get information about a public user

@@ -81,2 +85,2 @@ const user = await instagram.users.info('instagram');

GPL-3.0
GPL-3.0
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