File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ akryum:npm-check@0.0.3
33akryum:vue@1.0.4
44akryum:vue-apollo@0.0.9
55akryum:vue-coffee@0.0.2
6- akryum:vue-component@0.6.5
7- akryum:vue-component-dev-client@0.0.6
6+ akryum:vue-component@0.6.6
7+ akryum:vue-component-dev-client@0.0.7
88akryum:vue-component-dev-server@0.0.1
99akryum:vue-i18n@0.0.3
1010akryum:vue-i18n-ui@0.0.4
Original file line number Diff line number Diff line change @@ -48,15 +48,19 @@ function reload(options) {
4848// Reimplement client version check from autoupdate package
4949var autoupdateVersion = __meteor_runtime_config__ . autoupdateVersion || `unknown` ;
5050var ClientVersions = Autoupdate . _ClientVersions ;
51- function checkNewVersionDocument ( doc ) {
52- if ( doc . _id === 'version' && doc . version !== autoupdateVersion ) {
53- reload ( ) ;
51+ if ( ClientVersions ) {
52+ function checkNewVersionDocument ( doc ) {
53+ if ( doc . _id === 'version' && doc . version !== autoupdateVersion ) {
54+ reload ( ) ;
55+ }
5456 }
57+ ClientVersions . find ( ) . observe ( {
58+ added : checkNewVersionDocument ,
59+ changed : checkNewVersionDocument
60+ } ) ;
61+ } else {
62+ console . log ( '[HMR] ClientVersions collection is not available, the app may gull reload.' ) ;
5563}
56- ClientVersions . find ( ) . observe ( {
57- added : checkNewVersionDocument ,
58- changed : checkNewVersionDocument
59- } ) ;
6064
6165// Hack https://github.com/socketio/socket.io-client/issues/961
6266import Response from 'meteor-node-stubs/node_modules/http-browserify/lib/response' ;
Original file line number Diff line number Diff line change 11Package . describe ( {
22 name : 'akryum:vue-component-dev-client' ,
3- version : '0.0.6 ' ,
3+ version : '0.0.7 ' ,
44 summary : 'Hot-reloading client for vue components' ,
55 git : 'https://github.com/Akryum/meteor-vue-component' ,
66 documentation : 'README.md' ,
Original file line number Diff line number Diff line change 11Package . describe ( {
22 name : 'akryum:vue-component' ,
3- version : '0.6.5 ' ,
3+ version : '0.6.6 ' ,
44 summary : 'VueJS single-file components that hot-reloads' ,
55 git : 'https://github.com/Akryum/meteor-vue-component' ,
66 documentation : 'README.md'
@@ -36,5 +36,5 @@ Package.onUse(function(api) {
3636 api . versionsFrom ( '1.3.3' ) ;
3737 api . use ( 'isobuild:compiler-plugin@1.0.0' ) ;
3838 api . use ( 'akryum:vue-component-dev-server@0.0.1' ) ;
39- api . use ( 'akryum:vue-component-dev-client@0.0.6 ' ) ;
39+ api . use ( 'akryum:vue-component-dev-client@0.0.7 ' ) ;
4040} ) ;
You can’t perform that action at this time.
0 commit comments