@contrast/instrumentation
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -31,2 +31,4 @@ /* | ||
const patchObj = get(module, name); | ||
if (!patchObj) return; | ||
patcher.patch(patchObj, method, { | ||
@@ -33,0 +35,0 @@ name: `${moduleName}.${name}.${method}`, |
@@ -21,6 +21,8 @@ /* | ||
if (!name) return obj; | ||
let nest = obj; | ||
split(name, '.').forEach((prop) => { | ||
nest = nest[prop]; | ||
}); | ||
for (const prop of split(name, '.')) { | ||
nest = nest?.[prop]; | ||
if (nest === undefined) break; | ||
} | ||
return nest; | ||
@@ -27,0 +29,0 @@ } |
{ | ||
"name": "@contrast/instrumentation", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Shared hooks and patches between Protect and Assess components", | ||
@@ -18,3 +18,6 @@ "license": "SEE LICENSE IN LICENSE", | ||
"test": "../scripts/test.sh" | ||
}, | ||
"dependencies": { | ||
"@contrast/common": "1.15.1" | ||
} | ||
} |
8848
210
1
+ Added@contrast/common@1.15.1
+ Added@contrast/common@1.15.1(transitive)