diff options
Diffstat (limited to 'node_modules/simple-git/promise.js')
-rw-r--r-- | node_modules/simple-git/promise.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/simple-git/promise.js b/node_modules/simple-git/promise.js new file mode 100644 index 0000000..bae68f9 --- /dev/null +++ b/node_modules/simple-git/promise.js @@ -0,0 +1,16 @@ +// TODO: deprecation warning +console.warn(`============================================= +simple-git has supported promises / async await since version 2.6.0. + Importing from 'simple-git/promise' has been deprecated and will be + removed by July 2022. + +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 }, +); |