gcf-common-lib 0.23.31 → 0.23.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gcf-common-lib",
3
3
  "description": "",
4
- "version": "0.23.31",
4
+ "version": "0.23.33",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "branches": [
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PubSub } from '@google-cloud/pubsub';
2
2
  import isEmpty from 'lodash/isEmpty';
3
3
  import noop from 'lodash/noop';
4
- import { delay, sendToQueueAsync, timeoutAfter, withAmqpCh } from './utils';
4
+ import { sendToQueueAsync, timeoutAfter, withAmqpCh } from './utils';
5
5
  import { Storage } from '@google-cloud/storage';
6
6
  import { SecretManagerServiceClient } from '@google-cloud/secret-manager';
7
7
  import { TContext, TEvent, TGSEvent, TMetadata, TPSEvent, TResponse } from './types';
@@ -28,7 +28,7 @@ export class MongoHelper {
28
28
  return coll;
29
29
  }
30
30
 
31
- static async withMongoClient<T = any>(fn: (db: MongoClient) => Promise<T>, url: string, mongoClientOptions?: MongoClientOptions) {
31
+ static async withMongoClient<T = any>(fn: (mongoClient: MongoClient) => Promise<T>, url: string, mongoClientOptions?: MongoClientOptions) {
32
32
  function withDisposer() {
33
33
  return Bluebird.method(async () => {
34
34
  return new MongoClient(url, mongoClientOptions).connect();