@nestjs/platform-express 10.3.0 → 10.3.2

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2023 Kamil Mysliwiec <https://kamilmysliwiec.com>
3
+ Copyright (c) 2017-2024 Kamil Mysliwiec <https://kamilmysliwiec.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -28,7 +28,9 @@ export declare class ExpressAdapter extends AbstractHttpAdapter<http.Server | ht
28
28
  setErrorHandler(handler: Function, prefix?: string): any;
29
29
  setNotFoundHandler(handler: Function, prefix?: string): any;
30
30
  isHeadersSent(response: any): boolean;
31
+ getHeader?(response: any, name: string): any;
31
32
  setHeader(response: any, name: string, value: string): any;
33
+ appendHeader?(response: any, name: string, value: string): any;
32
34
  listen(port: string | number, callback?: () => void): Server;
33
35
  listen(port: string | number, hostname: string, callback?: () => void): Server;
34
36
  close(): Promise<unknown>;
@@ -82,9 +82,15 @@ class ExpressAdapter extends http_adapter_1.AbstractHttpAdapter {
82
82
  isHeadersSent(response) {
83
83
  return response.headersSent;
84
84
  }
85
+ getHeader(response, name) {
86
+ return response.get(name);
87
+ }
85
88
  setHeader(response, name, value) {
86
89
  return response.set(name, value);
87
90
  }
91
+ appendHeader(response, name, value) {
92
+ return response.append(name, value);
93
+ }
88
94
  listen(port, ...args) {
89
95
  return this.httpServer.listen(port, ...args);
90
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-express",
3
- "version": "10.3.0",
3
+ "version": "10.3.2",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -25,8 +25,8 @@
25
25
  "tslib": "2.6.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@nestjs/common": "10.3.0",
29
- "@nestjs/core": "10.3.0"
28
+ "@nestjs/common": "10.3.2",
29
+ "@nestjs/core": "10.3.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@nestjs/common": "^10.0.0",