@contrast/rewriter
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,16 @@ | ||
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
* License: Commercial | ||
* NOTICE: This Software and the patented inventions embodied within may only be | ||
* used as part of Contrast Security’s commercial offerings. Even though it is | ||
* made available through public repositories, use of this Software is subject to | ||
* the applicable End User Licensing Agreement found at | ||
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed | ||
* between Contrast Security and the End User. The Software may not be reverse | ||
* engineered, modified, repackaged, sold, redistributed or otherwise used in a | ||
* way not consistent with the End User License Agreement. | ||
*/ | ||
'use strict'; | ||
@@ -112,2 +127,7 @@ | ||
}; | ||
if (state.orig.indexOf('eval') === -1) { | ||
return { code: state.orig }; | ||
} | ||
const ast = parser.parse(state.orig, { | ||
@@ -114,0 +134,0 @@ plugins: [ |
@@ -0,1 +1,16 @@ | ||
/* | ||
* Copyright: 2022 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
* License: Commercial | ||
* NOTICE: This Software and the patented inventions embodied within may only be | ||
* used as part of Contrast Security’s commercial offerings. Even though it is | ||
* made available through public repositories, use of this Software is subject to | ||
* the applicable End User Licensing Agreement found at | ||
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed | ||
* between Contrast Security and the End User. The Software may not be reverse | ||
* engineered, modified, repackaged, sold, redistributed or otherwise used in a | ||
* way not consistent with the End User License Agreement. | ||
*/ | ||
'use strict'; | ||
@@ -6,6 +21,4 @@ | ||
const { SourceMapConsumer } = require('@contrast/synchronous-source-maps'); | ||
const path = require('path'); | ||
module.exports = function(deps) { | ||
const { isAgentPath } = deps; | ||
const sourceMaps = deps.rewriter.sourceMaps = {}; | ||
@@ -12,0 +25,0 @@ const consumerCache = sourceMaps.consumerCache = {}; |
{ | ||
"name": "@contrast/rewriter", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A transpilation tool mainly used for instrumentation", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
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
8994
198