grpc-code-gen
Advanced tools
Comparing version 5.0.5 to 5.0.6
@@ -10,3 +10,3 @@ "use strict"; | ||
`import * as grpc from '${grpcNpmName}';`, | ||
`import { Status } from '${grpcNpmName}/build/src/constants';`, | ||
grpcNpmName === 'grpc' ? `const { Status } = require('${grpcNpmName}/src/constants');` : `import { Status } from '${grpcNpmName}/build/src/constants';`, | ||
`import * as fs from 'fs';`, | ||
@@ -13,0 +13,0 @@ `import { forOwn } from 'lodash';`, |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.keys(metadata).forEach((keyName) => { | ||
metadataIns.add(keyName, metadata[keyName] as string); | ||
metadataIns.add(keyName, '' + metadata[keyName]); | ||
}); | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "grpc-code-gen", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git", |
@@ -14,3 +14,3 @@ import { fileTip, getImportPath, tslintDisable } from "./utils"; | ||
`import * as grpc from '${grpcNpmName}';`, | ||
`import { Status } from '${grpcNpmName}/build/src/constants';`, | ||
grpcNpmName === 'grpc' ? `const { Status } = require('${grpcNpmName}/src/constants');` : `import { Status } from '${grpcNpmName}/build/src/constants';`, | ||
`import * as fs from 'fs';`, | ||
@@ -17,0 +17,0 @@ `import { forOwn } from 'lodash';`, |
@@ -29,3 +29,3 @@ import { fileTip, getImportPath, tslintDisable } from "./utils"; | ||
Object.keys(metadata).forEach((keyName) => { | ||
metadataIns.add(keyName, metadata[keyName] as string); | ||
metadataIns.add(keyName, '' + metadata[keyName]); | ||
}); | ||
@@ -32,0 +32,0 @@ } |
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
83274