@contrast/agent-swc-plugin
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
764082
1