Compare commits
2 Commits
f401d58f07
...
e15ce1f0a0
Author | SHA1 | Date | |
---|---|---|---|
|
e15ce1f0a0 | ||
|
f93755604a |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/jrpcgen",
|
||||
"version": "1.2.14",
|
||||
"version": "1.2.16",
|
||||
"main": "lib/index.js",
|
||||
"license": "MIT",
|
||||
"packageManager": "yarn@3.1.1",
|
||||
|
@ -33,7 +33,7 @@ export class TypescriptTarget extends CompileTarget {
|
||||
}
|
||||
|
||||
private generateImport(imports: string, path: string) {
|
||||
return `import ${imports} from "${path + (this.flavour === "esm" ? ".ts" : "")
|
||||
return `import ${imports} from "${path + (this.flavour === "esm" ? ".js" : "")
|
||||
}";\n`;
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ export class TypescriptTarget extends CompileTarget {
|
||||
this.writeFormattedFile(
|
||||
"service_client.ts",
|
||||
this.generateImport(
|
||||
"{ RequestObject, ResponseObject, ErrorCodes, Logging }",
|
||||
"{ type RequestObject, type ResponseObject, ErrorCodes, Logging }",
|
||||
"./service_base"
|
||||
) +
|
||||
this.generateImport(" { VerificationError }", "./ts_base") +
|
||||
@ -304,7 +304,7 @@ export class TypescriptTarget extends CompileTarget {
|
||||
this.writeFormattedFile(
|
||||
"service_server.ts",
|
||||
this.generateImport(
|
||||
"{ RequestObject, ResponseObject, ErrorCodes, Logging }",
|
||||
"{ type RequestObject, type ResponseObject, ErrorCodes, Logging }",
|
||||
"./service_base"
|
||||
) +
|
||||
this.generateImport(" { VerificationError }", "./ts_base") +
|
||||
|
@ -1,5 +1,3 @@
|
||||
import { isGeneratorFunction } from "util/types";
|
||||
|
||||
function form_verficiation_error_message(type?: string, field?: string) {
|
||||
let msg = "Parameter verification failed! ";
|
||||
if (type && field) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@template-ignore
|
||||
import { VerificationError } from "./ts_base";
|
||||
//@template-ignore
|
||||
import { RequestObject, ResponseObject, ErrorCodes, Logging } from "./ts_service_base";
|
||||
import { type RequestObject, type ResponseObject, ErrorCodes, Logging } from "./ts_service_base";
|
||||
|
||||
|
||||
export class Service<T> {
|
||||
|
Loading…
Reference in New Issue
Block a user