@contrast/deadzones
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -47,6 +47,7 @@ /* | ||
require('./install/@cyclonedx')(core); | ||
require('./install/console')(core); | ||
require('./install/coffeescript')(core); | ||
require('./install/babel')(core); | ||
require('./install/bcryptjs')(core); | ||
require('./install/bson')(core); | ||
require('./install/coffeescript')(core); | ||
require('./install/console')(core); | ||
require('./install/iconv-lite')(core); | ||
@@ -58,2 +59,3 @@ require('./install/jsrsasign')(core); | ||
require('./install/type-is')(core); | ||
require('./install/semver')(core); | ||
@@ -60,0 +62,0 @@ deadzones.install = function() { |
@@ -20,3 +20,33 @@ /* | ||
module.exports = function(core) { | ||
/** @type {[string, string[]][]} */ | ||
const BABEL_DEADZONES = [ | ||
[ | ||
'@babel/core', | ||
[ | ||
'transform', | ||
'transformSync', | ||
'transformAsync', | ||
'transformFile', | ||
'transformFileSync', | ||
'transformFileAsync', | ||
'transformFromAst', | ||
'transformFromAstSync', | ||
'transformFromAstAsync', | ||
'parse', | ||
'parseSync', | ||
'parseAsync', | ||
], | ||
], | ||
// we'll flesh out the other tooling packages in NODE-3439 | ||
[ | ||
'@babel/parser', | ||
['parse', 'parseExpression'] | ||
], | ||
[ | ||
'babel-core', | ||
['transform', 'transformFromAst', 'transformFile', 'transformFileSync'] | ||
], | ||
]; | ||
module.exports = function (core) { | ||
const { | ||
@@ -30,34 +60,19 @@ deadzones: { createAroundHook }, | ||
install() { | ||
// these will be dynamic when we instrument more of the API | ||
{ | ||
const moduleName = 'babel-core'; | ||
const methodName = 'transform'; | ||
const patchName = `${moduleName}.${methodName}`; | ||
const store = { lock: true, name: patchName }; | ||
depHooks.resolve({ name: moduleName }, (xport) => { | ||
patcher.patch(xport, methodName, { | ||
name: patchName, | ||
patchType, | ||
around: createAroundHook(store), | ||
}); | ||
}); | ||
} | ||
BABEL_DEADZONES.forEach(([moduleName, methodNames]) => { | ||
methodNames.forEach((methodName) => { | ||
const name = `${moduleName}.${methodName}`; | ||
const store = { lock: true, name }; | ||
// these will be dynamic when we instrument more of the API | ||
{ | ||
const moduleName = '@babel/parser'; | ||
const methodName = 'parse'; | ||
const patchName = `${moduleName}.${methodName}`; | ||
const store = { lock: true, name: patchName }; | ||
depHooks.resolve({ name: moduleName }, (xport) => { | ||
patcher.patch(xport, methodName, { | ||
name: patchName, | ||
patchType, | ||
around: createAroundHook(store), | ||
depHooks.resolve({ name: moduleName }, (xport) => { | ||
patcher.patch(xport, methodName, { | ||
name, | ||
patchType, | ||
around: createAroundHook(store), | ||
}); | ||
}); | ||
}); | ||
} | ||
}); | ||
}, | ||
uninstall() { } | ||
uninstall() {}, | ||
}; | ||
}; |
{ | ||
"name": "@contrast/deadzones", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Configures Contrast agent services and instrumentation within an application", | ||
@@ -20,4 +20,4 @@ "license": "SEE LICENSE IN LICENSE", | ||
"dependencies": { | ||
"@contrast/common": "1.23.0" | ||
"@contrast/common": "1.24.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32107
18
804
+ Added@contrast/common@1.24.0(transitive)
- Removed@contrast/common@1.23.0(transitive)
Updated@contrast/common@1.24.0