Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
14
node_modules/cli-spinners/index.js
generated
vendored
14
node_modules/cli-spinners/index.js
generated
vendored
|
|
@ -1,7 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
const spinners = Object.assign({}, require('./spinners.json'));
|
||||
const spinners = Object.assign({}, require('./spinners.json')); // eslint-disable-line import/extensions
|
||||
|
||||
const spinnersList = Object.keys(spinners);
|
||||
|
||||
Object.defineProperty(spinners, 'random', {
|
||||
get() {
|
||||
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
||||
const spinnerName = spinnersList[randomIndex];
|
||||
return spinners[spinnerName];
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = spinners;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = spinners;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue