Socket
Socket
Sign inDemoInstall

react-placeholder

Package Overview
Dependencies
Maintainers
0
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 1.0.0 to 1.0.1

17

CHANGELOG.md

@@ -5,4 +5,11 @@ # Change Log

## [v1.0.1](https://github.com/buildo/react-placeholder/tree/v1.0.1) (2017-04-03)
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v1.0.0...v1.0.1)
#### New features:
- replace `lodash.omit` with ES6 destructuring [#21](https://github.com/buildo/react-placeholder/issues/21)
## [v1.0.0](https://github.com/buildo/react-placeholder/tree/v1.0.0) (2017-03-23)
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v0.0.2...v1.0.0)
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v0.0.3...v1.0.0)

@@ -12,3 +19,2 @@ #### Fixes (bugs & defects):

- lodash and classnames should be deps, not devDeps [#13](https://github.com/buildo/react-placeholder/issues/13)
- package is currently broken [#6](https://github.com/buildo/react-placeholder/issues/6)

@@ -19,6 +25,9 @@ #### Breaking:

#### New features:
## [v0.0.3](https://github.com/buildo/react-placeholder/tree/v0.0.3) (2016-12-29)
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v0.0.2...v0.0.3)
- Test [#5](https://github.com/buildo/react-placeholder/issues/5)
#### Fixes (bugs & defects):
- package is currently broken [#6](https://github.com/buildo/react-placeholder/issues/6)
## [v0.0.2](https://github.com/buildo/react-placeholder/tree/v0.0.2) (2016-11-08)

@@ -25,0 +34,0 @@

@@ -16,6 +16,2 @@ 'use strict';

var _lodash = require('lodash.omit');
var _lodash2 = _interopRequireDefault(_lodash);
var _placeholders = require('./placeholders');

@@ -29,2 +25,4 @@

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -55,5 +53,10 @@

}, _this.getFiller = function () {
// eslint-disable-next-line no-unused-vars
var _this$props = _this.props,
type = _this$props.type,
customPlaceholder = _this$props.customPlaceholder;
customPlaceholder = _this$props.customPlaceholder,
children = _this$props.children,
ready = _this$props.ready,
firstLaunchOnly = _this$props.firstLaunchOnly,
rest = _objectWithoutProperties(_this$props, ['type', 'customPlaceholder', 'children', 'ready', 'firstLaunchOnly']);

@@ -65,5 +68,4 @@ if (customPlaceholder) {

var Placeholder = placeholders[type];
var props = (0, _lodash2.default)(_this.props, ['children', 'ready', 'firstLaunchOnly', 'type']);
return _react2.default.createElement(Placeholder, props);
return _react2.default.createElement(Placeholder, rest);
}, _temp), _possibleConstructorReturn(_this, _ret);

@@ -70,0 +72,0 @@ }

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

@@ -40,5 +40,3 @@ "main": "lib",

"typings": "lib/index.d.ts",
"dependencies": {
"lodash.omit": "^4.5.0"
},
"dependencies": {},
"devDependencies": {

@@ -59,3 +57,3 @@ "babel": "^6.23.0",

"react-dom": "^15",
"smooth-release": "^7.0.1",
"smooth-release": "^8.0.0",
"webpack": "^1",

@@ -62,0 +60,0 @@ "webpack-dev-server": "^1"

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