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

react-lorem-image

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lorem-image - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

CHANGELOG.md

@@ -13,2 +13,7 @@ # Changelog

## 1.2.0
* __New Feature__
* Bear added: [type: 'bear'] - http://placebear.com/
* Vince Vaughn added: [type: 'vaughn'] - http://placevaughnandfranco.it/
## 1.1.0

@@ -15,0 +20,0 @@ * __New Feature__

42

dist/utils.js

@@ -12,3 +12,3 @@ 'use strict';

return 'http://nicenicejpg.com/' + width + '/' + height;
return 'http://www.nicenicejpg.com/' + width + '/' + height;
},

@@ -43,4 +43,16 @@ murray: function murray(_ref2) {

var type = crazy ? 'c/' : !color ? 'g/' : '';
return 'http://www.placecage.com/' + type + '' + width + '/' + height;
},
vaughn: function vaughn(_ref6) {
var width = _ref6.width;
var height = _ref6.height;
return 'http://www.placecage.com/' + type + '' + width + '/' + height;
return 'http://placevaughnandfranco.it/img/' + width + '/' + height;
},
bear: function bear(_ref7) {
var width = _ref7.width;
var height = _ref7.height;
var color = _ref7.color;
return 'http://placebear.com/' + (color ? '' : 'g/') + '' + width + '/' + height;
}

@@ -59,16 +71,16 @@ };

function generateURL() {
var _ref6 = arguments[0] === undefined ? {} : arguments[0];
var _ref8 = arguments[0] === undefined ? {} : arguments[0];
var _ref6$color = _ref6.color;
var color = _ref6$color === undefined ? true : _ref6$color;
var _ref6$width = _ref6.width;
var width = _ref6$width === undefined ? 200 : _ref6$width;
var _ref6$height = _ref6.height;
var height = _ref6$height === undefined ? width : _ref6$height;
var _ref6$mustache = _ref6.mustache;
var mustache = _ref6$mustache === undefined ? false : _ref6$mustache;
var _ref6$crazy = _ref6.crazy;
var crazy = _ref6$crazy === undefined ? false : _ref6$crazy;
var _ref6$type = _ref6.type;
var type = _ref6$type === undefined ? getRandom(TYPES) : _ref6$type;
var _ref8$color = _ref8.color;
var color = _ref8$color === undefined ? true : _ref8$color;
var _ref8$width = _ref8.width;
var width = _ref8$width === undefined ? 200 : _ref8$width;
var _ref8$height = _ref8.height;
var height = _ref8$height === undefined ? width : _ref8$height;
var _ref8$mustache = _ref8.mustache;
var mustache = _ref8$mustache === undefined ? false : _ref8$mustache;
var _ref8$crazy = _ref8.crazy;
var crazy = _ref8$crazy === undefined ? false : _ref8$crazy;
var _ref8$type = _ref8.type;
var type = _ref8$type === undefined ? getRandom(TYPES) : _ref8$type;

@@ -75,0 +87,0 @@ var url = SERVICES[type]({ color: color, width: width, height: height, crazy: crazy });

const SERVICES = {
vanilla({ width, height }) {
return `http://nicenicejpg.com/${ width }/${ height }`;
return `http://www.nicenicejpg.com/${ width }/${ height }`;
},

@@ -15,8 +15,10 @@ murray({ width, height, color }) {

cage({ width, height, color, crazy }) {
const type = crazy
? 'c/'
: !color
? 'g/' : '';
const type = crazy ? 'c/' : !color ? 'g/' : '';
return `http://www.placecage.com/${ type }${ width }/${ height }`;
},
vaughn({ width, height }) {
return `http://placevaughnandfranco.it/img/${ width }/${ height }`;
},
bear({ width, height, color }) {
return `http://placebear.com/${ color ? '' : 'g/' }${ width }/${ height }`;
}

@@ -23,0 +25,0 @@ };

{
"name": "react-lorem-image",
"version": "1.1.0",
"version": "1.2.0",
"description": "Placeholder images for your react prototypes",

@@ -5,0 +5,0 @@ "main": "dist",

# Lorem Image [![Build Status](https://travis-ci.org/chriskjaer/react-lorem-image.svg)](https://travis-ci.org/chriskjaer/react-lorem-image) [![npm version](https://badge.fury.io/js/react-lorem-image.svg)](http://badge.fury.io/js/react-lorem-image)
<img src="http://mustachify.me/?src=http://www.fillmurray.com/300/300"
align='right' width="200" height="200" hspace="20" alt="Fill Murray"/>
<img src="http://mustachify.me/?src=http%3A%2F%2Fplacevaughnandfranco.it%2Fimg%2Fsample.jpg"
align='right' width="240" height="160" hspace="20" alt="Fill Murray"/>

@@ -14,4 +14,6 @@ Placeholder images for your React prototypes.

- http://www.stevensegallery.com/
- http://placevaughnandfranco.it/
- http://placebear.com/
...and, to top it all of, you have to option to: http://mustachify.me/ !
...all with the option to: http://mustachify.me/ !

@@ -54,2 +56,4 @@

- segal - Steven Segal
- bear - Bears!
- vaughn - Vince Vaughn and Co-stars Pose for Idiotic Stock Photos

@@ -56,0 +60,0 @@ # Contributions

Sorry, the diff of this file is not supported yet

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