@contrast/instrumentation
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -41,9 +41,11 @@ /* | ||
const { preHookFn } = patcherOpts; | ||
patcher.patch(patchObj, method, { | ||
name: name ? `mongodb.${name}.${method}` : `mongodb.${method}`, | ||
pre: (ctx) => { | ||
preHookFn(ctx, semVer); | ||
}, | ||
...patcherOpts | ||
}); | ||
if (patchObj[method]) { | ||
patcher.patch(patchObj, method, { | ||
name: name ? `mongodb.${name}.${method}` : `mongodb.${method}`, | ||
pre: (ctx) => { | ||
preHookFn(ctx, semVer); | ||
}, | ||
...patcherOpts | ||
}); | ||
} | ||
}); | ||
@@ -50,0 +52,0 @@ }); |
{ | ||
"name": "@contrast/instrumentation", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Shared hooks and patches between Protect and Assess components", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
7997
207