diff --git a/package-lock.json b/package-lock.json index 306124b..6e20331 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gandalf-network/eyeofsauron", - "version": "1.0.5", + "version": "1.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gandalf-network/eyeofsauron", - "version": "1.0.5", + "version": "1.0.6", "license": "MIT", "dependencies": { "@babel/cli": "^7.23.9", diff --git a/package.json b/package.json index ed95efb..df0ce00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gandalf-network/eyeofsauron", - "version": "1.0.5", + "version": "1.0.6", "description": "", "main": "dist/index.js", "bin": { diff --git a/src/helpers/install-dependencies.ts b/src/helpers/install-dependencies.ts index f2c081e..cf74943 100644 --- a/src/helpers/install-dependencies.ts +++ b/src/helpers/install-dependencies.ts @@ -57,7 +57,7 @@ export async function installDependencies(packageManager: PackageManager, genera const { stdout, stderr } = await exec(installCmd); if (stderr !== "") { - return {success: false, message: stderr} + return {success: true, message: stderr} } return {success: true, message: stdout} } diff --git a/src/lib/plugins/custom-plugin/visitor.ts b/src/lib/plugins/custom-plugin/visitor.ts index 33f6355..76825c1 100644 --- a/src/lib/plugins/custom-plugin/visitor.ts +++ b/src/lib/plugins/custom-plugin/visitor.ts @@ -74,7 +74,7 @@ export class GraphQLRequestVisitor extends ClientSideBaseVisitor< if (this.config.rawRequest) { if (this.config.documentMode !== DocumentMode.string) { - this._additionalImports.push(`import { GraphQLError, print } from 'graphql'`); + this._additionalImports.push(`import { print } from 'graphql'`); } else { this._additionalImports.push(`import { GraphQLError } from 'graphql'`); } @@ -195,7 +195,7 @@ ${extraVariables.join('\n')} const ec = new EC('secp256k1'); export default class Eye { private client: GraphQLClient = new GQLClient('${WATSON_URL}'); - private withWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action(); + private withWrapper: SdkFunctionWrapper = (action) => action(); privateKey: string; constructor(input: EyeInput) {