Socket
Socket
Sign inDemoInstall

react-placeholder

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-placeholder - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Change Log

## [v4.0.1](https://github.com/buildo/react-placeholder/tree/v4.0.1) (2020-03-13)
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v4.0.0...v4.0.1)
#### New features:
- TextRow/TextBlock ignores lineSpacing is equal to 0 [#86](https://github.com/buildo/react-placeholder/issues/86)
- Is this package still maintained? [#84](https://github.com/buildo/react-placeholder/issues/84)
## [v4.0.0](https://github.com/buildo/react-placeholder/tree/v4.0.0) (2020-02-29)

@@ -7,0 +15,0 @@ [Full Changelog](https://github.com/buildo/react-placeholder/compare/v3.0.2...v4.0.0)

4

lib/placeholders/TextRow.js

@@ -17,3 +17,3 @@ "use strict";

var TextRow = function (_a) {
var className = _a.className, maxHeight = _a.maxHeight, color = _a.color, lineSpacing = _a.lineSpacing, style = _a.style;
var className = _a.className, maxHeight = _a.maxHeight, color = _a.color, _b = _a.lineSpacing, lineSpacing = _b === void 0 ? '0.7em' : _b, style = _a.style;
var defaultStyles = {

@@ -24,3 +24,3 @@ maxHeight: maxHeight,

backgroundColor: color,
marginTop: lineSpacing || '0.7em'
marginTop: lineSpacing
};

@@ -27,0 +27,0 @@ return (React.createElement("div", { className: utils_1.joinClassNames('text-row', className), style: __assign(__assign({}, defaultStyles), style) }));

{
"name": "react-placeholder",
"version": "4.0.0",
"version": "4.0.1",
"description": "A React component to easily replicate your page with nice placeholders while the content is loading",

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

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