@contrast/protect 1.71.0 → 1.72.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.
@@ -42,10 +42,6 @@ module.exports = function(core) {
42
42
  require('./install/hapi')(core);
43
43
  require('./install/restify')(core);
44
44
 
45
- // no-instrumentation scope wrappers for false positive prevention
46
- require('./install/fastify-send')(core);
47
- require('./install/send')(core);
48
-
49
45
  // virtual patches
50
46
  require('./virtual-patches')(core);
51
47
  require('./ip-analysis')(core);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/protect",
3
- "version": "1.71.0",
3
+ "version": "1.72.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)",
@@ -21,16 +21,16 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@contrast/agent-lib": "^9.1.0",
24
- "@contrast/common": "1.38.0",
25
- "@contrast/config": "1.54.1",
26
- "@contrast/core": "1.59.1",
27
- "@contrast/dep-hooks": "1.28.1",
28
- "@contrast/esm-hooks": "2.34.1",
29
- "@contrast/instrumentation": "1.38.1",
30
- "@contrast/logger": "1.32.1",
31
- "@contrast/patcher": "1.31.1",
32
- "@contrast/rewriter": "1.36.1",
33
- "@contrast/scopes": "1.29.1",
24
+ "@contrast/common": "1.39.0",
25
+ "@contrast/config": "1.55.0",
26
+ "@contrast/core": "1.60.0",
27
+ "@contrast/dep-hooks": "1.29.0",
28
+ "@contrast/esm-hooks": "2.35.0",
29
+ "@contrast/instrumentation": "1.39.0",
30
+ "@contrast/logger": "1.33.0",
31
+ "@contrast/patcher": "1.32.0",
32
+ "@contrast/rewriter": "1.37.0",
33
+ "@contrast/scopes": "1.30.0",
34
34
  "async-hook-domain": "^4.0.1",
35
35
  "ipaddr.js": "^2.0.1",
36
36
  "on-finished": "^2.4.1",
@@ -1,52 +0,0 @@
1
- /*
2
- * Copyright: 2025 Contrast Security, Inc
3
- * Contact: support@contrastsecurity.com
4
- * License: Commercial
5
-
6
- * NOTICE: This Software and the patented inventions embodied within may only be
7
- * used as part of Contrast Security’s commercial offerings. Even though it is
8
- * made available through public repositories, use of this Software is subject to
9
- * the applicable End User Licensing Agreement found at
10
- * https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
11
- * between Contrast Security and the End User. The Software may not be reverse
12
- * engineered, modified, repackaged, sold, redistributed or otherwise used in a
13
- * way not consistent with the End User License Agreement.
14
- */
15
-
16
- 'use strict';
17
-
18
- const { patchType } = require('../constants');
19
-
20
- module.exports = function (core) {
21
- const { depHooks, patcher, scopes: { instrumentation } } = core;
22
-
23
- return core.protect.inputAnalysis.fastifySendInstrumentation = {
24
- install() {
25
- const store = { lock: true, name: 'protect:input-analysis:fastify-send' };
26
-
27
- const around = (next) => {
28
- if (!instrumentation.isLocked()) {
29
- return instrumentation.run(store, next);
30
- }
31
-
32
- return next();
33
- };
34
-
35
- depHooks.resolve({ name: '@fastify/send', version: '<3', file: 'lib/SendStream.js' }, (SendStream) => {
36
- patcher.patch(SendStream.prototype, 'sendFile', {
37
- name: '@fastify/send/lib/SendStream.js',
38
- patchType,
39
- around,
40
- });
41
- });
42
-
43
- depHooks.resolve({ name: '@fastify/send', version: '>=3 <5', file: 'lib/send.js' }, (send) => {
44
- patcher.patch(send, 'send', {
45
- name: '@fastify/send/lib/send.js',
46
- patchType,
47
- around,
48
- });
49
- });
50
- }
51
- };
52
- };
@@ -1,45 +0,0 @@
1
- /*
2
- * Copyright: 2025 Contrast Security, Inc
3
- * Contact: support@contrastsecurity.com
4
- * License: Commercial
5
-
6
- * NOTICE: This Software and the patented inventions embodied within may only be
7
- * used as part of Contrast Security’s commercial offerings. Even though it is
8
- * made available through public repositories, use of this Software is subject to
9
- * the applicable End User Licensing Agreement found at
10
- * https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
11
- * between Contrast Security and the End User. The Software may not be reverse
12
- * engineered, modified, repackaged, sold, redistributed or otherwise used in a
13
- * way not consistent with the End User License Agreement.
14
- */
15
-
16
- 'use strict';
17
-
18
- const { patchType } = require('../constants');
19
-
20
- module.exports = function (core) {
21
- const { depHooks, patcher, scopes: { instrumentation } } = core;
22
-
23
- return core.protect.inputAnalysis.sendInstrumentation = {
24
- install() {
25
- const store = { lock: true, name: 'protect:input-analysis:send' };
26
-
27
- const around = (next) => {
28
- if (!instrumentation.isLocked()) {
29
- return instrumentation.run(store, next);
30
- }
31
-
32
- return next();
33
- };
34
-
35
- depHooks.resolve(
36
- { name: 'send', version: '<2' },
37
- (send) => patcher.patch(send, {
38
- name: 'send',
39
- patchType,
40
- around,
41
- })
42
- );
43
- }
44
- };
45
- };