Skip to content

Commit

Permalink
fix(deps): update dependency p-defer to v3 (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmehiphop committed Jun 12, 2019
1 parent 5a01be8 commit 50f9d4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"grpc": "1.21.1",
"is-stream-ended": "^0.1.4",
"lodash.snakecase": "^4.1.1",
"p-defer": "^2.0.1",
"p-defer": "^3.0.0",
"protobufjs": "^6.8.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/message-queues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import {CallOptions} from 'google-gax';
import {Metadata, ServiceError, status} from 'grpc';
import defer, {DeferredPromise} from 'p-defer';
import defer = require('p-defer');

import {Message, Subscriber} from './subscriber';

Expand Down Expand Up @@ -72,7 +72,7 @@ export class BatchError extends Error implements ServiceError {
*/
export abstract class MessageQueue {
numPendingRequests: number;
protected _onFlush?: DeferredPromise<void>;
protected _onFlush?: defer.DeferredPromise<void>;
protected _options!: BatchOptions;
protected _requests: QueuedMessages;
protected _subscriber: Subscriber;
Expand Down
2 changes: 1 addition & 1 deletion system-test/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import * as assert from 'assert';
import defer from 'p-defer';
import defer = require('p-defer');
import * as uuid from 'uuid';

import {
Expand Down

0 comments on commit 50f9d4e

Please sign in to comment.