grpc-promise
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -61,4 +61,19 @@ module.exports = { | ||
"never" | ||
], | ||
"arrow-body-style": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"arrow-parens": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"arrow-spacing": "error", | ||
"no-console": [ | ||
"error", { "allow": [ | ||
"warn", | ||
"error" | ||
]} | ||
] | ||
} | ||
}; |
@@ -6,3 +6,3 @@ const gulp = require('gulp'); | ||
gulp.task('lint', function() { | ||
return gulp.src(['./test/**/*.js', './lib/**/*.js']) | ||
return gulp.src(['test/**/*.js', 'lib/**/*.js']) | ||
.pipe(eslint()) | ||
@@ -13,7 +13,11 @@ .pipe(eslint.format('table')) | ||
gulp.task('mocha', ['lint'], function() { | ||
return gulp.src('./test/**/*.coffee') | ||
gulp.task('test', ['lint'], function () { | ||
return gulp.src(['test/**/*.js']) | ||
.pipe(mocha({require: ['should']})); | ||
}); | ||
gulp.task('test-no-lint', function () { | ||
return gulp.src(['test/**/*.js']) | ||
.pipe(mocha()); | ||
}); | ||
gulp.task('test', ['mocha'], function() {}); |
const requestTypes = require('./request-types/request-types'); | ||
const promisify = function (client) { | ||
const promisifyAll = function (client) { | ||
Object.keys(Object.getPrototypeOf(client)).forEach(function (functionName) { | ||
@@ -10,2 +10,4 @@ const originalFunction = client[functionName]; | ||
module.exports = promisify; | ||
module.exports = { | ||
promisifyAll: promisifyAll | ||
}; |
@@ -14,3 +14,3 @@ | ||
this.stream.on('error', () => {}); | ||
this.stream.on('data', (data) => { | ||
this.stream.on('data', data => { | ||
if (this.queue[data.id]) { | ||
@@ -17,0 +17,0 @@ clearTimeout(this.queue[data.id]['timeout']); |
module.exports = { | ||
makeUnaryRequest: require('./unary-request'), | ||
makeBidiStreamRequest: require('./bidi-stream-request'), | ||
makeClientStreamRequest: require('./client-stream-request') | ||
makeClientStreamRequest: require('./client-stream-request'), | ||
makeServerStreamRequest: require('./server-stream-request') | ||
}; |
{ | ||
"name": "grpc-promise", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"description": "GRPC promisify module for all Request/Response types: standard and stream", | ||
@@ -27,9 +27,12 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"coveralls": "2.13.0", | ||
"eslint": "3.19.0", | ||
"eslint-config-google": "^0.7.1", | ||
"gulp": "3.9.1", | ||
"gulp-eslint": "3.0.1", | ||
"gulp-mocha": "4.3.0", | ||
"mocha": "3.2.0" | ||
"istanbul": "0.4.5", | ||
"mocha": "3.2.0", | ||
"should": "11.2.1", | ||
"sinon": "2.1.0" | ||
} | ||
} |
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
20198
23
563
9