Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/deadzones

Package Overview
Dependencies
Maintainers
9
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/deadzones - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

lib/install/bcryptjs.js

6

lib/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc