Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x | import updateNotifierModule from 'update-notifier';
import pkg from '../package.json' with { type: 'json' };
import { hasParam } from './lib/has-param.js';
// These need to be set before Logger and other stuffs
const updateNotifierExplicitFalse = hasParam('--no-update-notifier') || hasParam('--update-notifier', 'false');
if (!updateNotifierExplicitFalse) {
updateNotifierModule({
pkg,
tagsUrl: 'https://api.github.com/repos/CleverCloud/clever-tools/tags',
}).notify({
isGlobal: true,
getDetails() {
const docsUrl = 'https://github.com/CleverCloud/clever-tools/tree/master/docs#how-to-use-clever-tools';
return `\nPlease follow this link to update your clever-tools:\n${docsUrl}`;
},
});
}
|