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

fotology-x

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fotology-x - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

6

compiled/main.js

@@ -23,3 +23,3 @@ (function() {

*/
var color, language, limit, possibleColors, ref, safety, searchPrefix, searchUrl, size;
var color, language, limit, possibleColors, ref, rights, safety, searchPrefix, searchUrl, size;
if (options == null) {

@@ -33,2 +33,3 @@ options = {};

options.limit = options.limit || 5;
options.rights = options.rights || "";
switch (options.safe) {

@@ -68,4 +69,5 @@ case true:

limit = options.limit;
rights = options.rights;
searchPrefix = "https://ajax.googleapis.com/ajax/services/search/images?v=1.0";
searchUrl = searchPrefix + "&q=" + searchTerm + "&imgsz=" + size + "&safe=" + safety + "&hl=" + language + "&imgcolor=" + color + "&rsz=" + limit;
searchUrl = searchPrefix + "&q=" + searchTerm + "&as_rights=" + rights + "&imgsz=" + size + "&safe=" + safety + "&hl=" + language + "&imgcolor=" + color + "&rsz=" + limit;
return request(searchUrl, function(error, response, body) {

@@ -72,0 +74,0 @@ var images, parsed, urls;

{
"name": "fotology-x",
"version": "1.2.2",
"version": "1.2.3",
"description": "Simplifies Image Searching",

@@ -5,0 +5,0 @@ "main": "compiled/main.js",

@@ -95,5 +95,14 @@ Fotology

Using a colour not in here will cause Google's servers to ignore you.
### `limit`
Return between 1 and 8 results
Return between 1 and 8 result
Using a colour not in here will cause Google's servers to ignore you.
### `rights`
Limit search results to given license
* cc_publicdomain
* cc_attribute
* cc_sharealike
* cc_noncommercial
* cc_nonderived
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