@contrast/protect 1.73.0 → 1.74.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.
@@ -74,7 +74,7 @@ module.exports = function (core) {
74
74
  * Instruments fastify in order to add our custom error handler.
75
75
  */
76
76
  fastifyErrorHandler.install = function () {
77
- depHooks.resolve({ name: 'fastify', version: '>=3 <6' }, (fastify) => patcher.patch(fastify, {
77
+ depHooks.resolve({ name: 'fastify', version: '>=4 <6' }, (fastify) => patcher.patch(fastify, {
78
78
  name: 'fastify',
79
79
  patchType,
80
80
  post(data) {
package/lib/index.d.ts CHANGED
@@ -116,7 +116,7 @@ export interface Protect {
116
116
  errorHandlers: {
117
117
  commonHandler: (err: Error) => void;
118
118
  initDomain: () => Domain;
119
- fastify3ErrorHandler: {
119
+ fastifyErrorHandler: {
120
120
  _userHandler: null | ((...args: any[]) => any),
121
121
  defaultErrorHandler: (error: Error, request: IncomingMessage, reply: ServerResponse) => void,
122
122
  handler: (err: Error, request: IncomingMessage, reply: ServerResponse) => void,
@@ -36,7 +36,7 @@ module.exports = (core) => {
36
36
  * registers a depHook for fastify module instrumentation
37
37
  */
38
38
  function install() {
39
- depHooks.resolve({ name: 'fastify', version: '>=3 <6' }, (fastify) => patcher.patch(fastify, {
39
+ depHooks.resolve({ name: 'fastify', version: '>=4 <6' }, (fastify) => patcher.patch(fastify, {
40
40
  name: 'fastify.build',
41
41
  patchType,
42
42
  post({ result: server, funcKey }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/protect",
3
- "version": "1.73.0",
3
+ "version": "1.74.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,17 +21,17 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@contrast/agent-lib": "^9.1.0",
24
- "@contrast/common": "1.40.0",
25
- "@contrast/config": "1.56.0",
26
- "@contrast/core": "1.61.0",
27
- "@contrast/dep-hooks": "1.30.0",
28
- "@contrast/esm-hooks": "2.36.0",
29
- "@contrast/instrumentation": "1.40.0",
30
- "@contrast/logger": "1.34.0",
31
- "@contrast/patcher": "1.33.0",
32
- "@contrast/rewriter": "1.38.0",
33
- "@contrast/scopes": "1.31.0",
34
- "@contrast/stack-trace-factory": "1.1.0",
24
+ "@contrast/common": "1.41.0",
25
+ "@contrast/config": "1.57.0",
26
+ "@contrast/core": "1.62.0",
27
+ "@contrast/dep-hooks": "1.31.0",
28
+ "@contrast/esm-hooks": "2.37.0",
29
+ "@contrast/instrumentation": "1.41.0",
30
+ "@contrast/logger": "1.35.0",
31
+ "@contrast/patcher": "1.34.0",
32
+ "@contrast/rewriter": "1.39.0",
33
+ "@contrast/scopes": "1.32.0",
34
+ "@contrast/stack-trace-factory": "1.2.0",
35
35
  "async-hook-domain": "^4.0.1",
36
36
  "ipaddr.js": "^2.0.1",
37
37
  "on-finished": "^2.4.1",