fix(core): update

This commit is contained in:
Philipp Kunz 2022-07-31 15:16:06 +02:00
parent 5944c7e96f
commit c8d173807d
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartgit',
version: '2.0.2',
version: '2.0.3',
description: 'smart wrapper for nodegit'
}

View File

@ -17,6 +17,8 @@ export class Smartgit {
if (this.smartenvInstance.isNode) {
this.envDeps.fs = await this.smartenvInstance.getSafeNodeModule('fs');
this.envDeps.http = await this.smartenvInstance.getSafeNodeModule('isomorphic-git/http/node/index.js');
} else {
throw new Error('currently only node.js is supported.')
}
};