lambda-essentials-ts 4.0.0 → 4.1.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
 
7
+ ## [4.1.0] - 2021-11-22
8
+
9
+ ### Changed
10
+
11
+ - `ApiResponse` default content-type header was changed from `application/links+json` to `application/hal+json`
12
+
7
13
  ## [4.0.0] - 2021-11-12
8
14
 
9
15
  ### Changed
@@ -6,7 +6,7 @@ class ApiResponse {
6
6
  constructor(statusCode, body, headers) {
7
7
  this.body = body;
8
8
  this.statusCode = statusCode;
9
- this.headers = headers !== null && headers !== void 0 ? headers : {};
9
+ this.headers = { 'Content-type': 'application/hal+json', ...headers };
10
10
  }
11
11
  withCorrelationId(correlationId) {
12
12
  this.headers[shared_1.orionCorrelationIdRoot] = correlationId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-essentials-ts",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "A selection of the finest modules supporting authorization, API routing, error handling, logging and sending HTTP requests.",
5
5
  "main": "lib/index.js",
6
6
  "private": false,