@contrast/protect 1.45.0 → 1.47.0

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.
@@ -64,7 +64,7 @@ module.exports = function (core) {
64
64
  })
65
65
  );
66
66
 
67
- depHooks.resolve({ name: 'express', version: '>=4.0.0', file: 'lib/router/layer.js' }, (Layer) => {
67
+ depHooks.resolve({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/router/layer.js' }, (Layer) => {
68
68
  patcher.patch(Layer.prototype, 'handle_error', {
69
69
  name: 'Layer.prototype.handle_error',
70
70
  patchType,
@@ -86,7 +86,7 @@ module.exports = function (core) {
86
86
  });
87
87
 
88
88
  // This should be revisited after the research ticket NODE-2556
89
- depHooks.resolve({ name: 'express', version: '>=4.0.0', file: 'lib/router/index.js' }, (Router) => {
89
+ depHooks.resolve({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/router/index.js' }, (Router) => {
90
90
  patcher.patch(Router.prototype.constructor, 'param', {
91
91
  name: 'Router.prototype.constructor.param',
92
92
  patchType,
@@ -88,7 +88,7 @@ describe('protect error-handlers express4', function () {
88
88
  Layer = function () { };
89
89
  Layer.prototype.handle_error = function () { };
90
90
 
91
- core.depHooks.resolve.withArgs({ name: 'express', version: '>=4.0.0', file: 'lib/router/layer.js' }).yields(Layer);
91
+ core.depHooks.resolve.withArgs({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/router/layer.js' }).yields(Layer);
92
92
 
93
93
  errorHandlerInstr = require('./express4')(core);
94
94
  errorHandlerInstr.install();
@@ -134,7 +134,7 @@ describe('protect error-handlers express4', function () {
134
134
  beforeEach(function () {
135
135
  Layer = function () { };
136
136
 
137
- core.depHooks.resolve.withArgs({ name: 'express', version: '>=4.0.0', file: 'lib/router/layer.js' }).yields(Layer);
137
+ core.depHooks.resolve.withArgs({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/router/layer.js' }).yields(Layer);
138
138
 
139
139
  errorHandlerInstr = require('./express4')(core);
140
140
  errorHandlerInstr.install();
@@ -166,7 +166,7 @@ describe('protect error-handlers express4', function () {
166
166
  param: function () { },
167
167
  };
168
168
 
169
- core.depHooks.resolve.withArgs({ name: 'express', version: '>=4.0.0', file: 'lib/router/index.js' }).yields(Router);
169
+ core.depHooks.resolve.withArgs({ name: 'express', version: '>=4.0.0 <5.0.0', file: 'lib/router/index.js' }).yields(Router);
170
170
 
171
171
  core.patcher.patch.resetHistory();
172
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/protect",
3
- "version": "1.45.0",
3
+ "version": "1.47.0",
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)",
@@ -19,15 +19,15 @@
19
19
  "dependencies": {
20
20
  "@contrast/agent-lib": "^7.0.1",
21
21
  "@contrast/common": "1.26.0",
22
- "@contrast/config": "1.34.0",
23
- "@contrast/core": "1.39.0",
24
- "@contrast/dep-hooks": "1.7.0",
25
- "@contrast/esm-hooks": "2.13.0",
26
- "@contrast/instrumentation": "1.17.0",
27
- "@contrast/logger": "1.12.0",
28
- "@contrast/patcher": "1.11.0",
29
- "@contrast/rewriter": "1.15.0",
30
- "@contrast/scopes": "1.8.0",
22
+ "@contrast/config": "1.35.0",
23
+ "@contrast/core": "1.40.0",
24
+ "@contrast/dep-hooks": "1.8.0",
25
+ "@contrast/esm-hooks": "2.14.0",
26
+ "@contrast/instrumentation": "1.18.0",
27
+ "@contrast/logger": "1.13.0",
28
+ "@contrast/patcher": "1.12.0",
29
+ "@contrast/rewriter": "1.16.0",
30
+ "@contrast/scopes": "1.9.0",
31
31
  "ipaddr.js": "^2.0.1",
32
32
  "semver": "^7.6.0"
33
33
  },