File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,14 +13,12 @@ const notifier = require('../lib/update-notifier');
1313const { getSupportedRuntimesAsString } = require ( '../lib/common/model/runtime' ) ;
1414
1515
16- const autoExitOnWindows = ( ) => {
17- if ( process . platform === 'win32' ) {
18- // fix windows not auto exit bug after docker operation
19- unrefTimeout ( ( ) => {
20- // in order visitor request has been sent out
21- process . exit ( 0 ) ; // eslint-disable-line
22- } ) ;
23- }
16+ const autoExit = ( ) => {
17+ // fix not auto exit bug after docker operation
18+ unrefTimeout ( ( ) => {
19+ // in order visitor request has been sent out
20+ process . exit ( 0 ) ; // eslint-disable-line
21+ } ) ;
2422} ;
2523
2624const convertOptions = ( program ) => {
@@ -58,7 +56,7 @@ program
5856 opts . env = convertEnvs ( options . env ) ;
5957
6058 install ( packageNames , opts ) . then ( ( ) => {
61- autoExitOnWindows ( ) ;
59+ autoExit ( ) ;
6260 } ) . catch ( handler ) ;
6361 } ) ;
6462
@@ -83,7 +81,7 @@ program
8381 el : 'error' ,
8482 dp : '/fun/install/init'
8583 } ) . send ( ) ;
86-
84+
8785 handler ( error ) ;
8886 } ) ;
8987 } ) ;
@@ -105,7 +103,7 @@ program
105103 dp : '/fun/install/env'
106104 } ) . send ( ) ;
107105
108- autoExitOnWindows ( ) ;
106+ autoExit ( ) ;
109107
110108 } ) . catch ( ( error ) => {
111109
@@ -217,7 +215,7 @@ if (!program.args.length) {
217215 dp : '/fun/installAll'
218216 } ) . send ( ) ;
219217
220- autoExitOnWindows ( ) ;
218+ autoExit ( ) ;
221219
222220 } ) . catch ( error => {
223221 visitor . event ( {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ async function resolveDockerRegistry() {
6262 return DOCKER_REGISTRY_CACHE ;
6363}
6464
65- const IMAGE_VERSION = '1.6.5 ' ;
65+ const IMAGE_VERSION = '1.6.6 ' ;
6666
6767async function resolveRuntimeToDockerImage ( runtime , isBuild ) {
6868 if ( runtimeImageMap [ runtime ] ) {
You can’t perform that action at this time.
0 commit comments