Socket
Socket
Sign inDemoInstall

react-placeholder

Package Overview
Dependencies
8
Maintainers
9
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

12

CHANGELOG.md

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

## [v1.0.10](https://github.com/buildo/react-placeholder/tree/v1.0.10) (2017-12-15)
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v1.0.9...v1.0.10)
#### Fixes (bugs & defects):
- Array.apply not support ie8 in TextBlock even if I'm add the polyfill [#62](https://github.com/buildo/react-placeholder/issues/62)
#### New features:
- TextBlock: make `widths` overridable [#59](https://github.com/buildo/react-placeholder/issues/59)
## [v1.0.9](https://github.com/buildo/react-placeholder/tree/v1.0.9) (2017-11-28)

@@ -11,3 +22,2 @@ [Full Changelog](https://github.com/buildo/react-placeholder/compare/v1.0.8...v1.0.9)

- install question [#58](https://github.com/buildo/react-placeholder/issues/58)
- Bug with delay when the component is already mounted [#54](https://github.com/buildo/react-placeholder/issues/54)

@@ -14,0 +24,0 @@

10

lib/placeholders/TextBlock.js

@@ -34,4 +34,2 @@ 'use strict';

var widths = [97, 100, 94, 90, 98, 95, 98, 40];
var TextBlock = (_temp2 = _class = function (_React$Component) {

@@ -54,3 +52,4 @@ _inherits(TextBlock, _React$Component);

rows = _this$props.rows,
color = _this$props.color;
color = _this$props.color,
widths = _this$props.widths;

@@ -68,3 +67,3 @@

var range = Array.apply(null, { length: rows }); // eslint-disable-line prefer-spread
var range = Array.apply(null, Array(rows)); // eslint-disable-line prefer-spread
return range.map(function (x, i) {

@@ -105,5 +104,8 @@ return _react2.default.createElement(_TextRow2.default, {

lineSpacing: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
widths: _propTypes2.default.arrayOf(_propTypes2.default.number),
style: _propTypes2.default.object,
className: _propTypes2.default.string
}, _class.defaultProps = {
widths: [97, 100, 94, 90, 98, 95, 98, 40]
}, _temp2);
exports.default = TextBlock;
{
"name": "react-placeholder",
"version": "1.0.9",
"version": "1.0.10",
"description": "A React component to easily replicate your page with nice placeholders while the content is loading",

@@ -9,9 +9,8 @@ "main": "lib",

"build": "rm -rf lib && mkdir lib && node-sass src --importer -o lib && babel src -d lib && rsync -a --include '*/' --include '*.d.ts' --exclude '*' src/ lib/",
"lint": "scriptoni lint src examples/examples.js",
"lint-fix": "scriptoni lint src examples/examples.js --fix",
"preversion": "npm run lint && npm run test && npm run build-examples",
"lint": "scriptoni lint src",
"lint-fix": "scriptoni lint src --fix",
"preversion": "npm run lint && npm run test",
"prepublish": "npm run build",
"build-examples": "npm run clean && webpack --config examples/webpack.config.build.babel.js --progress",
"start": "webpack-dev-server --config examples/webpack.config.babel.js --progress --hot --inline",
"clean": "rm -f examples/bundle.js examples/bundle.js.map",
"update-examples": "styleguidist build && git add docs && git commit -m 'update gh-pages' && git push",
"start": "styleguidist server",
"release-version": "smooth-release"

@@ -46,25 +45,28 @@ },

"devDependencies": {
"babel": "^6.23.0",
"babel-cli": "^6.24.0",
"babel-jest": "^19.0.0",
"babel-loader": "^6.4.1",
"babel-cli": "^6.26.0",
"babel-jest": "^21.2.0",
"babel-loader": "^7.1.2",
"babel-preset-buildo": "^0.1.1",
"css-loader": "^0.28.3",
"css-loader": "^0.28.5",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.2",
"eslint-loader": "^1.7.0",
"eslint-loader": "^1.9.0",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^1.1.5",
"html-webpack-plugin": "^2.28.0",
"jest": "^21.2.1",
"jest-cli": "^21.2.1",
"node-sass": "4.5.2",
"progress-bar-webpack-plugin": "^1.10.0",
"raf": "^3.4.0",
"raw-loader": "^0.5.1",
"react": "^16",
"react-dom": "^16",
"react-styleguidist": "^6.0.33",
"react-test-renderer": "^16.0.0",
"sass-loader": "^4.1.1",
"scriptoni": "^0.4.4",
"sass-loader": "^6.0.6",
"scriptoni": "^0.7.6",
"smooth-release": "^8.0.0",
"style-loader": "^0.17.0",
"webpack": "^1",
"webpack-dev-server": "^1"
"url-loader": "^0.5.9",
"webpack": "3.5.5"
},

@@ -71,0 +73,0 @@ "peerDependencies": {

@@ -20,8 +20,4 @@ # React Placeholder

[**Live Demo**](http://buildo.github.io/react-placeholder/#!/ReactPlaceholder)
[**Live Demo**](https://rawgit.com/buildo/react-placeholder/master/examples/build/index.html)
you can find more examples [here](https://github.com/buildo/react-placeholder/tree/master/examples)
### Install

@@ -28,0 +24,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc