@contrast/protect 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -0
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -19,6 +19,8 @@ const agentLib = require('@contrast/agent-lib');
19
19
  const { callChildComponentMethodsSync } = require('@contrast/common');
20
20
 
21
21
  module.exports = function(core) {
22
+ if (!core.config.protect.enable) return;
23
+
22
24
  const protect = core.protect = {
23
25
  agentLib: module.exports.instantiateAgentLib(agentLib),
24
26
  };
@@ -35,6 +37,7 @@ module.exports = function(core) {
35
37
  require('./semantic-analysis')(core);
36
38
 
37
39
  protect.install = function() {
40
+ core.rewriter.install('protect');
38
41
  callChildComponentMethodsSync(protect, 'install');
39
42
  };
40
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/protect",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Contrast service providing framework-agnostic Protect support",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@contrast/agent-lib": "^5.3.4",
21
- "@contrast/common": "1.4.0",
22
- "@contrast/core": "1.11.0",
23
- "@contrast/esm-hooks": "1.7.0",
21
+ "@contrast/common": "1.4.1",
22
+ "@contrast/core": "1.11.1",
23
+ "@contrast/esm-hooks": "1.7.1",
24
24
  "@contrast/scopes": "1.3.0",
25
25
  "ipaddr.js": "^2.0.1",
26
26
  "semver": "^7.3.7"
@@ -28,4 +28,4 @@
28
28
  "optionalDependencies": {
29
29
  "async-hook-domain": "^3.0.2"
30
30
  }
31
- }
31
+ }