1.5.0 • Published 25 days ago

@contrast/agent-swc-plugin v1.5.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
25 days ago

@contrast/agent-swc-plugin

Config

[
  "@contrast/agent-swc-plugin",
  {
    "assess": true, // default: false
    "inject": true // default: false
  }
]

assess

When true, enables all transforms. When false, only eval call expressions are rewritten, as these are the only transforms required by Protect.

inject

When true, prepends the script or module with ContrastMethods injections, i.e.

const foo = 'bar';

becomes:

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';
1.5.0

25 days ago

1.4.0

1 month ago

1.3.0

3 months ago

1.2.0

9 months ago

1.1.0

1 year ago

1.0.0

1 year ago

0.3.0

1 year ago

0.4.0

1 year ago

0.1.3

1 year ago

1.0.0-beta.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago