File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @ngnjs/plugin" ,
3- "version" : " 1.0.0-alpha.4 " ,
3+ "version" : " 1.0.0-alpha.5 " ,
44 "description" : " A plugin module for NGN." ,
55 "main" : " src/index.js" ,
66 "module" : " index.js" ,
Original file line number Diff line number Diff line change @@ -80,13 +80,7 @@ export default class Reference {
8080 options = Object . getOwnPropertySymbols ( globalThis ) . filter ( s => globalThis [ s ] instanceof Map && globalThis [ s ] . has ( 'REFERENCE_ID' ) && globalThis [ s ] . get ( 'REFERENCE_ID' ) === s )
8181 }
8282
83- options . sort ( ( a , b ) => {
84- a = globalThis [ a ] . get ( 'VERSION' )
85- b = globalThis [ b ] . get ( 'VERSION' )
86- return Semver . gte ( a , b ) ? - 1 : 1
87- } )
88-
89- return options
83+ return options . sort ( ( a , b ) => Semver . gte ( globalThis [ a ] . get ( 'VERSION' ) , globalThis [ b ] . get ( 'VERSION' ) ) ? - 1 : 1 )
9084 }
9185
9286 export ( name ) {
You can’t perform that action at this time.
0 commit comments