Socket
Socket
Sign inDemoInstall

stars-rating

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

20

dist/stars-rating.js

@@ -52,13 +52,13 @@ "use strict";

var ReactStars =
var StarsRating =
/*#__PURE__*/
function (_Component) {
_inherits(ReactStars, _Component);
_inherits(StarsRating, _Component);
function ReactStars(props) {
function StarsRating(props) {
var _this;
_classCallCheck(this, ReactStars);
_classCallCheck(this, StarsRating);
_this = _possibleConstructorReturn(this, _getPrototypeOf(ReactStars).call(this, props)); // set defaults
_this = _possibleConstructorReturn(this, _getPrototypeOf(StarsRating).call(this, props)); // set defaults

@@ -89,3 +89,3 @@ props = _extends({}, props);

_createClass(ReactStars, [{
_createClass(StarsRating, [{
key: "componentDidMount",

@@ -292,6 +292,6 @@ value: function componentDidMount() {

return ReactStars;
return StarsRating;
}(_react.Component);
ReactStars.propTypes = {
StarsRating.propTypes = {
className: _propTypes.default.string,

@@ -307,3 +307,3 @@ edit: _propTypes.default.bool,

};
ReactStars.defaultProps = {
StarsRating.defaultProps = {
edit: true,

@@ -319,3 +319,3 @@ half: true,

};
var _default = ReactStars;
var _default = StarsRating;
exports.default = _default;
{
"name": "stars-rating",
"version": "1.0.0",
"version": "1.1.0",
"description": "star rating component",

@@ -5,0 +5,0 @@ "main": "dist/stars-rating.js",

@@ -14,3 +14,3 @@ # stars-rating :star:

```javascript
import ReactStars from 'stars-rating'
import StarsRating from 'stars-rating'
import React from 'react'

@@ -23,3 +23,3 @@ import { render } from 'react-dom'

render(<ReactStars
render(<StarsRating
count={5}

@@ -54,3 +54,3 @@ onChange={ratingChanged}

# Clone the repo
git clone git@github.com:n49/stars-rating.git
git clone git@github.com:daluobohao/stars-rating.git
# Go into project folder

@@ -57,0 +57,0 @@ cd stars-rating

@@ -31,3 +31,3 @@ import React, { Component } from 'react'

class ReactStars extends Component {
class StarsRating extends Component {

@@ -232,3 +232,3 @@ constructor(props) {

ReactStars.propTypes = {
StarsRating.propTypes = {
className: PropTypes.string,

@@ -245,3 +245,3 @@ edit: PropTypes.bool,

ReactStars.defaultProps = {
StarsRating.defaultProps = {
edit: true,

@@ -259,2 +259,2 @@ half: true,

export default ReactStars
export default StarsRating

Sorry, the diff of this file is too big to display

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