@contrast/protect 1.46.0 → 1.48.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.
|
|
3
|
+
"version": "1.48.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.
|
|
23
|
-
"@contrast/core": "1.
|
|
24
|
-
"@contrast/dep-hooks": "1.
|
|
25
|
-
"@contrast/esm-hooks": "2.
|
|
26
|
-
"@contrast/instrumentation": "1.
|
|
27
|
-
"@contrast/logger": "1.
|
|
28
|
-
"@contrast/patcher": "1.
|
|
29
|
-
"@contrast/rewriter": "1.
|
|
30
|
-
"@contrast/scopes": "1.
|
|
22
|
+
"@contrast/config": "1.36.0",
|
|
23
|
+
"@contrast/core": "1.41.0",
|
|
24
|
+
"@contrast/dep-hooks": "1.9.0",
|
|
25
|
+
"@contrast/esm-hooks": "2.15.0",
|
|
26
|
+
"@contrast/instrumentation": "1.19.0",
|
|
27
|
+
"@contrast/logger": "1.14.0",
|
|
28
|
+
"@contrast/patcher": "1.13.0",
|
|
29
|
+
"@contrast/rewriter": "1.17.0",
|
|
30
|
+
"@contrast/scopes": "1.10.0",
|
|
31
31
|
"ipaddr.js": "^2.0.1",
|
|
32
32
|
"semver": "^7.6.0"
|
|
33
33
|
},
|