@reproapp/node-sdk 0.0.25 → 0.0.27

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/dist/index.d.ts CHANGED
@@ -351,6 +351,15 @@ export type RedisPatchConfig = ReproMiddlewareConfig & {
351
351
  } | undefined;
352
352
  };
353
353
  export declare function patchRedis(cfg: RedisPatchConfig): void;
354
+ export type MongoDbPatchConfig = ReproMiddlewareConfig & {
355
+ resolveContext?: () => {
356
+ sid?: string;
357
+ aid?: string;
358
+ } | undefined;
359
+ };
360
+ declare function patchMongoCollectionPrototype(proto: any, cfg: MongoDbPatchConfig): void;
361
+ declare function patchMongoDbFromModuleExports(mongoModule: any, cfg: MongoDbPatchConfig): void;
362
+ export declare function patchMongoDb(cfg: MongoDbPatchConfig): void;
354
363
  export type SendgridPatchConfig = ReproMiddlewareConfig & {
355
364
  resolveContext?: () => {
356
365
  sid?: string;
@@ -383,6 +392,8 @@ export declare const __reproTestHooks: {
383
392
  patchAmqplibConnectionForTest: typeof patchAmqplibConnection;
384
393
  patchAmqplibChannelForTest: typeof patchAmqplibChannel;
385
394
  wrapAmqplibConsumeHandlerForTest: typeof wrapAmqplibConsumeHandler;
395
+ patchMongoDbModuleForTest: typeof patchMongoDbFromModuleExports;
396
+ patchMongoCollectionPrototypeForTest: typeof patchMongoCollectionPrototype;
386
397
  chunkTraceEventsForTransportForTest: typeof chunkTraceEventsForTransport;
387
398
  estimateTraceBatchSerializedBytesForTest: typeof estimateTraceBatchSerializedBytes;
388
399
  sanitizeTraceValueForPrivacyForTest: typeof sanitizeTraceValueForPrivacy;