File tree Expand file tree Collapse file tree 3 files changed +24
-22
lines changed
Expand file tree Collapse file tree 3 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 1- akryum:vue-component@0.12.1
1+ akryum:vue-component@0.12.2
22akryum:vue-component-dev-client@0.3.0
33akryum:vue-component-dev-server@0.0.11
44allow-deny@1.0.9
Original file line number Diff line number Diff line change 11Package . describe ( {
22 name : 'akryum:vue-component' ,
3- version : '0.12.1 ' ,
3+ version : '0.12.2 ' ,
44 summary : 'VueJS single-file components that hot-reloads' ,
55 git : 'https://github.com/Akryum/meteor-vue-component' ,
66 documentation : 'README.md'
Original file line number Diff line number Diff line change @@ -41,26 +41,28 @@ if(Meteor.isDevelopment) {
4141 const index = argv . findIndex (
4242 arg => arg . indexOf ( '-p' ) === 0 || arg . indexOf ( '--port' ) === 0
4343 )
44- const arg = argv [ index ]
45- const equalIndex = arg . indexOf ( '=' )
46- let value
47- if ( equalIndex !== - 1 ) {
48- value = arg . substr ( equalIndex + 1 )
49- } else {
50- value = argv [ index + 1 ]
51- }
52- const results = value . split ( ':' )
53- let interface
54- let port
55- if ( results . length === 2 ) {
56- interface = results [ 0 ]
57- port = results [ 1 ]
58- } else {
59- port = results [ 0 ]
60- }
61- return {
62- interface,
63- port : parseInt ( port ) ,
44+ if ( index !== - 1 ) {
45+ const arg = argv [ index ]
46+ const equalIndex = arg . indexOf ( '=' )
47+ let value
48+ if ( equalIndex !== - 1 ) {
49+ value = arg . substr ( equalIndex + 1 )
50+ } else {
51+ value = argv [ index + 1 ]
52+ }
53+ const results = value . split ( ':' )
54+ let interface
55+ let port
56+ if ( results . length === 2 ) {
57+ interface = results [ 0 ]
58+ port = results [ 1 ]
59+ } else {
60+ port = results [ 0 ]
61+ }
62+ return {
63+ interface,
64+ port : parseInt ( port ) ,
65+ }
6466 }
6567 } else {
6668 const reg = / (?: - - p o r t | - p ) (?: = | \s ) (?: ( [ 0 - 9 . ] + ) : ) ? ( \d + ) / gi
You can’t perform that action at this time.
0 commit comments