File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-load-script" ,
3- "version" : " 0.0.4 " ,
3+ "version" : " 0.0.5 " ,
44 "description" : " react-load-script enables you to easily create components which depend on third party JS scripts" ,
55 "main" : " lib/index.js" ,
66 "author" : " Blueberry" ,
Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ import { PropTypes as RPT } from 'prop-types';
44export default class Script extends React . Component {
55
66 static propTypes = {
7+ attributes : RPT . object , // eslint-disable-line react/forbid-prop-types
78 onCreate : RPT . func ,
89 onError : RPT . func . isRequired ,
910 onLoad : RPT . func . isRequired ,
1011 url : RPT . string . isRequired ,
11- attributes : RPT . object ,
1212 } ;
1313
1414 static defaultProps = {
15+ attributes : { } ,
1516 onCreate : ( ) => { } ,
1617 onError : ( ) => { } ,
1718 onLoad : ( ) => { } ,
18- attributes : { } ,
1919 }
2020
2121 // A dictionary mapping script URLs to a dictionary mapping
You can’t perform that action at this time.
0 commit comments