@reproapp/node-sdk 0.0.26 → 0.0.28
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 +11 -0
- package/dist/index.js +585 -1
- package/dist/ingest/client.js +18 -3
- package/package.json +2 -2
- package/src/index.ts +651 -0
- package/src/ingest/client.ts +25 -3
- package/test/ingest-critical-retention.test.js +147 -0
- package/test/ingest-critical-retry-retention.test.js +57 -0
- package/test/ingest-high-priority-retention.test.js +75 -0
- package/test/mongodb-integration.test.js +389 -0
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;
|