@@ -31,7 +31,7 @@ function preProcess(parsedFiles, filenames, packageInfos, target) {
3131 parsedFile . forEach ( function ( block ) {
3232 if ( block . global [ source ] ) {
3333 var name = block . global [ source ] . name ;
34- var version = block . version || '0.0.0' ;
34+ var version = block . version || packageInfos . defaultVersion ;
3535
3636 if ( ! result [ target ] [ name ] )
3737 result [ target ] [ name ] = { } ;
@@ -71,7 +71,7 @@ function postProcess(parsedFiles, filenames, preProcess, packageInfos, source, t
7171
7272 block . local [ target ] . forEach ( function ( definition ) {
7373 var name = definition . name ;
74- var version = block . version || '0.0.0' ;
74+ var version = block . version || packageInfos . defaultVersion ;
7575
7676 if ( ! preProcess [ source ] || ! preProcess [ source ] [ name ] ) {
7777 throw new WorkerError ( 'Referenced groupname does not exist / it is not defined with @apiDefine.' ,
@@ -93,7 +93,7 @@ function postProcess(parsedFiles, filenames, preProcess, packageInfos, source, t
9393 } else {
9494 // find nearest matching version
9595 var foundIndex = - 1 ;
96- var lastVersion = '0.0.0' ;
96+ var lastVersion = packageInfos . defaultVersion ;
9797
9898 var versionKeys = Object . keys ( preProcess [ source ] [ name ] ) ;
9999 versionKeys . forEach ( function ( currentVersion , versionIndex ) {
0 commit comments