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) {
9898 dependencies . push ( new Ajv ( ) )
9999 dependenciesName . push ( 'ajv' )
100100 }
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 ) )
106104}
107105
108106function hasAdditionalPropertiesTrue ( schema ) {
Original file line number Diff line number Diff line change 44 "description" : " Stringify your JSON at max speed" ,
55 "main" : " index.js" ,
66 "scripts" : {
7+ "benchmark" : " node bench.js" ,
78 "test" : " standard && tap test/*.test.js"
89 },
910 "precommit" : " test" ,
You can’t perform that action at this time.
0 commit comments