Skip to content

Commit 777ebf6

Browse files
committed
bump to 3.0.6
1 parent e2e8743 commit 777ebf6

5 files changed

Lines changed: 261 additions & 322 deletions

File tree

bin/fun-install.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ const notifier = require('../lib/update-notifier');
1313
const { 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

2624
const 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({

lib/docker-opts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

6767
async function resolveRuntimeToDockerImage(runtime, isBuild) {
6868
if (runtimeImageMap[runtime]) {

0 commit comments

Comments
 (0)