Merge pull request #615 from JustinBeckwith/ld1

refactor: use individual lodash package for proto loader
This commit is contained in:
Michael Lumish 2018-11-14 15:10:50 -08:00 committed by GitHub
commit 06b74bf036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 10 deletions

View File

@ -38,12 +38,12 @@
"build/src/*.js"
],
"dependencies": {
"@types/lodash": "^4.14.104",
"@types/node": "^9.4.6",
"lodash": "^4.17.5",
"lodash.camelcase": "^4.3.0",
"protobufjs": "^6.8.6"
},
"devDependencies": {
"@types/lodash.camelcase": "^4.3.4",
"@types/node": "^10.12.5",
"clang-format": "^1.2.2",
"gts": "^0.5.3",
"typescript": "~2.7.2"

View File

@ -18,7 +18,7 @@
import * as Protobuf from 'protobufjs';
import * as fs from 'fs';
import * as path from 'path';
import * as _ from 'lodash';
import camelCase = require('lodash.camelcase');
export interface Serialize<T> {
(value: T): Buffer;
@ -97,7 +97,7 @@ function createMethodDefinition(method: Protobuf.Method, serviceName: string, op
responseSerialize: createSerializer(method.resolvedResponseType as Protobuf.Type),
responseDeserialize: createDeserializer(method.resolvedResponseType as Protobuf.Type, options),
// TODO(murgatroid99): Find a better way to handle this
originalName: _.camelCase(method.name)
originalName: camelCase(method.name)
};
}

View File

@ -5,10 +5,6 @@
"outDir": "build"
},
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"node_modules"
"src/*.ts"
]
}