File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " is-pure-function" ,
3
- "version" : " 1.0.3 " ,
3
+ "version" : " 1.0.4 " ,
4
4
"description" : " Return true, if function is pure." ,
5
5
"main" : " src/is-pure-function.js" ,
6
6
"scripts" : {
18
18
],
19
19
"dependencies" : {},
20
20
"devDependencies" : {
21
- "webpack" : " >=1.0.0 " ,
21
+ "webpack" : " ^1.13.2 " ,
22
22
"mocha" : " ^3.0.2" ,
23
- "opener" : " * "
23
+ "opener" : " ^1.4.2 "
24
24
},
25
25
"author" : " uid-11222" ,
26
26
"bugs" : {
Original file line number Diff line number Diff line change 8
8
< script src ="es3.js "> </ script >
9
9
10
10
< script >
11
+ /**
12
+ * Throw error, if value is not true.
13
+ * @param {* } value
14
+ * @param {string } msg
15
+ * @throws {Error }
16
+ */
11
17
function assert ( value , msg ) {
12
18
if ( value !== true ) throw Error ( 'Assert ' + ( msg || '' ) ) ;
13
19
}
Original file line number Diff line number Diff line change 8
8
< script src ="es6.js "> </ script >
9
9
10
10
< script >
11
+ /**
12
+ * Throw error, if value is not true.
13
+ * @param {* } value
14
+ * @param {string } msg
15
+ * @throws {Error }
16
+ */
11
17
function assert ( value , msg ) {
12
18
if ( value !== true ) throw Error ( 'Assert ' + ( msg || '' ) ) ;
13
19
}
You can’t perform that action at this time.
0 commit comments