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 1
1
{
2
2
"name" : " react-load-script" ,
3
- "version" : " 0.0.4 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"description" : " react-load-script enables you to easily create components which depend on third party JS scripts" ,
5
5
"main" : " lib/index.js" ,
6
6
"author" : " Blueberry" ,
Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ import { PropTypes as RPT } from 'prop-types';
4
4
export default class Script extends React . Component {
5
5
6
6
static propTypes = {
7
+ attributes : RPT . object , // eslint-disable-line react/forbid-prop-types
7
8
onCreate : RPT . func ,
8
9
onError : RPT . func . isRequired ,
9
10
onLoad : RPT . func . isRequired ,
10
11
url : RPT . string . isRequired ,
11
- attributes : RPT . object ,
12
12
} ;
13
13
14
14
static defaultProps = {
15
+ attributes : { } ,
15
16
onCreate : ( ) => { } ,
16
17
onError : ( ) => { } ,
17
18
onLoad : ( ) => { } ,
18
- attributes : { } ,
19
19
}
20
20
21
21
// A dictionary mapping script URLs to a dictionary mapping
You can’t perform that action at this time.
0 commit comments