From c8d173807d9d67d27f1f74a0910ad82cd6b7f71c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 31 Jul 2022 15:16:06 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartgit.classes.smartgit.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2882881..9b791b4 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartgit', - version: '2.0.2', + version: '2.0.3', description: 'smart wrapper for nodegit' } diff --git a/ts/smartgit.classes.smartgit.ts b/ts/smartgit.classes.smartgit.ts index d4473aa..0217a9a 100644 --- a/ts/smartgit.classes.smartgit.ts +++ b/ts/smartgit.classes.smartgit.ts @@ -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.') } };