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
3
3
akryum:vue@1.0.4
4
4
akryum:vue-apollo@0.0.9
5
5
akryum: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
8
8
akryum:vue-component-dev-server@0.0.1
9
9
akryum:vue-i18n@0.0.3
10
10
akryum:vue-i18n-ui@0.0.4
Original file line number Diff line number Diff line change @@ -48,15 +48,19 @@ function reload(options) {
48
48
// Reimplement client version check from autoupdate package
49
49
var autoupdateVersion = __meteor_runtime_config__ . autoupdateVersion || `unknown` ;
50
50
var 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
+ }
54
56
}
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.' ) ;
55
63
}
56
- ClientVersions . find ( ) . observe ( {
57
- added : checkNewVersionDocument ,
58
- changed : checkNewVersionDocument
59
- } ) ;
60
64
61
65
// Hack https://github.com/socketio/socket.io-client/issues/961
62
66
import Response from 'meteor-node-stubs/node_modules/http-browserify/lib/response' ;
Original file line number Diff line number Diff line change 1
1
Package . describe ( {
2
2
name : 'akryum:vue-component-dev-client' ,
3
- version : '0.0.6 ' ,
3
+ version : '0.0.7 ' ,
4
4
summary : 'Hot-reloading client for vue components' ,
5
5
git : 'https://github.com/Akryum/meteor-vue-component' ,
6
6
documentation : 'README.md' ,
Original file line number Diff line number Diff line change 1
1
Package . describe ( {
2
2
name : 'akryum:vue-component' ,
3
- version : '0.6.5 ' ,
3
+ version : '0.6.6 ' ,
4
4
summary : 'VueJS single-file components that hot-reloads' ,
5
5
git : 'https://github.com/Akryum/meteor-vue-component' ,
6
6
documentation : 'README.md'
@@ -36,5 +36,5 @@ Package.onUse(function(api) {
36
36
api . versionsFrom ( '1.3.3' ) ;
37
37
api . use ( 'isobuild:compiler-plugin@1.0.0' ) ;
38
38
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 ' ) ;
40
40
} ) ;
You can’t perform that action at this time.
0 commit comments