File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,9 @@ function build (schema, options) {
98
98
dependencies . push ( new Ajv ( ) )
99
99
dependenciesName . push ( 'ajv' )
100
100
}
101
- if ( dependencies . length > 0 ) {
102
- dependenciesName . push ( code )
103
- return ( Function . apply ( null , dependenciesName ) . apply ( null , dependencies ) )
104
- }
105
- return ( new Function ( code ) ) ( )
101
+
102
+ dependenciesName . push ( code )
103
+ return ( Function . apply ( null , dependenciesName ) . apply ( null , dependencies ) )
106
104
}
107
105
108
106
function hasAdditionalPropertiesTrue ( schema ) {
Original file line number Diff line number Diff line change 4
4
"description" : " Stringify your JSON at max speed" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
+ "benchmark" : " node bench.js" ,
7
8
"test" : " standard && tap test/*.test.js"
8
9
},
9
10
"precommit" : " test" ,
You can’t perform that action at this time.
0 commit comments