Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-promise

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-promise - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

lib/request-types/server-stream-request.js

15

.eslintrc.js

@@ -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"
]}
]
}
};

14

gulpfile.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc