Socket
Socket
Sign inDemoInstall

@contrast/rewriter

Package Overview
Dependencies
Maintainers
17
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/rewriter - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

20

lib/index.js

@@ -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: [

17

lib/source-maps.js

@@ -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 = {};

2

package.json
{
"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",

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