From 6236a143777821c2351b0cf3c9379159471b7e0c Mon Sep 17 00:00:00 2001 From: K35 Date: Mon, 10 Jan 2022 14:15:06 +0000 Subject: [PATCH] Renaming csharp_namespace --- examples/example.jrpc | 2 +- lib/jrpc.js | 2 +- package.json | 2 +- src/targets/csharp.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example.jrpc b/examples/example.jrpc index 723243c..cecfccf 100644 --- a/examples/example.jrpc +++ b/examples/example.jrpc @@ -1,6 +1,6 @@ import "./import"; -define CSharp_Namespace Example; +define csharp_namespace Example; enum TestEnum { VAL1, diff --git a/lib/jrpc.js b/lib/jrpc.js index 9099b16..3d284c8 100755 --- a/lib/jrpc.js +++ b/lib/jrpc.js @@ -10443,7 +10443,7 @@ function toCSharpType(type) { var CSharpTarget = class extends CompileTarget { name = "c#"; get namespace() { - return this.options.CSharp_Namespace || "JRPC"; + return this.options.csharp_namespace || "JRPC"; } start() { this.writeFile(this.namespace + ".csproj", this.getTemplate("CSharp/CSharp.csproj")); diff --git a/package.json b/package.json index be3b473..02ffde6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/jrpcgen", - "version": "1.0.18", + "version": "1.0.19", "main": "lib/index.js", "license": "MIT", "packageManager": "yarn@3.1.1", diff --git a/src/targets/csharp.ts b/src/targets/csharp.ts index 28f8505..1a44a30 100644 --- a/src/targets/csharp.ts +++ b/src/targets/csharp.ts @@ -21,11 +21,11 @@ function toCSharpType(type: string): string { return (conversion as any)[type] || type; } -export class CSharpTarget extends CompileTarget<{ CSharp_Namespace: string }> { +export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> { name: string = "c#"; get namespace() { - return this.options.CSharp_Namespace || "JRPC"; + return this.options.csharp_namespace || "JRPC"; } start(): void {