@arrowsphere/api-client 3.30.0 → 3.31.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
@@ -3,7 +3,33 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
- ## [3.28.0] - 2023-05-22
6
+ ## [3.31.0] - 2023-05-26
7
+
8
+ ### Changed
9
+
10
+ - Add method removeHeader
11
+
12
+ ## [3.30.0] - 2023-05-26
13
+
14
+ ### Changed
15
+
16
+ - Add a new Rest client & rename AbstractRestfulClient
17
+ - Allow to mergeHeaders
18
+ - Allow to propagate easily an error handler from PublicApiClient to its instances
19
+ - Add marketplacesAgg type
20
+ - Fix ScoresAggType
21
+ - Fix array type
22
+ - Fix CheckAggType
23
+
24
+ ## [3.29.0] - 2023-05-11
25
+
26
+ ### Changed
27
+
28
+ - Add GQL client with token security and strong typing
29
+ - Add GQL client with token security and strong typing
30
+ - Add option token security for the abstract restful client
31
+
32
+ ## [3.28.0] - 2023-05-09
7
33
 
8
34
  ### Changed
9
35
 
@@ -50,6 +50,7 @@ export declare abstract class AbstractHttpClient {
50
50
  * @param headers
51
51
  */
52
52
  mergeHeaders(headers: Record<string, string>): this;
53
+ removeHeader(headerKey: string): this;
53
54
  /**
54
55
  * Allow to register error/exception handler.
55
56
  * Handlers can be developed in another projects as long as they respect the interface HttpExceptionHandler.
@@ -73,6 +73,10 @@ class AbstractHttpClient {
73
73
  this.setHeaders(mergedHeaders);
74
74
  return this;
75
75
  }
76
+ removeHeader(headerKey) {
77
+ delete this.headers[headerKey];
78
+ return this;
79
+ }
76
80
  /**
77
81
  * Allow to register error/exception handler.
78
82
  * Handlers can be developed in another projects as long as they respect the interface HttpExceptionHandler.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.30.0",
7
+ "version": "3.31.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",