grpc_tools_node_protoc_ts
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -15,3 +15,2 @@ "use strict"; | ||
const TplEngine_1 = require("./lib/TplEngine"); | ||
const MsgRender_1 = require("./lib/template/MsgRender"); | ||
Utility_1.Utility.withAllStdIn((inputBuff) => { | ||
@@ -36,7 +35,2 @@ try { | ||
const msgModel = ProtoMsgTsdFormatter_1.ProtoMsgTsdFormatter.format(fileNameToDescriptor[fileName], exportMap); | ||
// FIXME | ||
const fs = require("fs"); | ||
const { inspect } = require("util"); | ||
fs.writeFileSync("/tmp/console.txt", inspect(msgModel, { showHidden: true, depth: null })); | ||
fs.writeFileSync("/tmp/msg.d.ts", new MsgRender_1.MsgRender(msgModel).render()); | ||
msgTsdFile.setContent(TplEngine_1.TplEngine.render("msg_tsd", msgModel)); | ||
@@ -43,0 +37,0 @@ codeGenResponse.addFile(msgTsdFile); |
{ | ||
"name": "grpc_tools_node_protoc_ts", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "Generate d.ts definitions for generated js files from grpc_tools_node_protoc", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -465,2 +465,5 @@ grpc_tools_node_protoc_ts | ||
## Changes | ||
### 5.1.3 | ||
Fix wrong publishing, 5.1.2 contains some temp compiled codes. See: [Issue#89](https://github.com/agreatfool/grpc_tools_node_protoc_ts/issues/89). | ||
### 5.1.2 | ||
@@ -467,0 +470,0 @@ Fix `Extension` and `JsPbMessageId` issue, see: [Issue#84](https://github.com/agreatfool/grpc_tools_node_protoc_ts/issues/84), and [PR#87](https://github.com/agreatfool/grpc_tools_node_protoc_ts/pull/87). |
@@ -15,3 +15,2 @@ /** | ||
import {TplEngine} from "./lib/TplEngine"; | ||
import {MsgRender} from "./lib/template/MsgRender"; | ||
@@ -42,9 +41,2 @@ Utility.withAllStdIn((inputBuff: Buffer) => { | ||
const msgModel = ProtoMsgTsdFormatter.format(fileNameToDescriptor[fileName], exportMap); | ||
// FIXME | ||
const fs = require("fs"); | ||
const { inspect } = require("util"); | ||
fs.writeFileSync("/tmp/console.txt", inspect(msgModel, { showHidden: true, depth: null })); | ||
fs.writeFileSync("/tmp/msg.d.ts", new MsgRender(msgModel).render()); | ||
msgTsdFile.setContent(TplEngine.render("msg_tsd", msgModel)); | ||
@@ -51,0 +43,0 @@ codeGenResponse.addFile(msgTsdFile); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
710
2
358228
72
1764