Unit_AI/node_modules/simple-git/promise.js

18 lines
570 B
JavaScript
Raw Normal View History

2024-06-01 21:24:36 +01:00
console.error(`=============================================
simple-git has supported promises / async await since version 2.6.0.
Importing from 'simple-git/promise' has been deprecated and will
report this error until the next major release of version 4.
To upgrade, change all 'simple-git/promise' imports to just 'simple-git'
=============================================`);
const simpleGit = require('.');
module.exports = Object.assign(
function () {
return simpleGit.gitP.apply(null, arguments);
},
simpleGit,
{ default: simpleGit.gitP }
);