Socket
Socket
Sign inDemoInstall

@contrast/agent-swc-plugin

Package Overview
Dependencies
Maintainers
9
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/agent-swc-plugin - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

package.json
{
"name": "@contrast/agent-swc-plugin",
"version": "1.3.0",
"version": "1.4.0",
"description": "SWC plugin handling rewriting for the new and improved Node agent",

@@ -5,0 +5,0 @@ "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",

@@ -31,7 +31,7 @@ # @contrast/agent-swc-plugin

```js
global.Function = global.ContrastMethods.Function || global.Function;
global.Number = global.ContrastMethods.Number || global.Number;
global.Object = global.ContrastMethods.Object || global.Object;
global.String = global.ContrastMethods.String || global.String;
var Function = global.ContrastMethods?.Function ?? Function;
var Number = global.ContrastMethods?.Number ?? Number;
var Object = global.ContrastMethods?.Object ?? Object;
var String = global.ContrastMethods?.String ?? String;
const foo = 'bar';
```

Sorry, the diff of this file is not supported yet

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