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

async-g-i-s

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-g-i-s - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

4

index.js

@@ -20,5 +20,5 @@ const fetch = global.fetch || require("node-fetch");

query = {},
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
} = options,
body = await fetch(`http://www.google.com/search?${new URLSearchParams({ ...query, tbm: "isch", q: searchTerm })}`, { headers: { "User-Agent": userAgent } }).then(res => res.text()),
body = await fetch(`http://www.google.com/search?${new URLSearchParams({ ...query, udm: "2", tbm: "isch", q: searchTerm })}`, { headers: { "User-Agent": userAgent } }).then(res => res.text()),
content = body.slice(body.lastIndexOf("ds:1"), body.lastIndexOf("sideChannel")),

@@ -25,0 +25,0 @@ results = [];

{
"name": "async-g-i-s",
"version": "1.5.2",
"version": "1.5.3",
"description": "Async Google Image Search",

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

@@ -7,2 +7,3 @@ const gis = require('.');

const results = await gis("akif9748");
console.log(results);
assert(results.length > 0);

@@ -9,0 +10,0 @@ assert(results[0].url.length > 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