@flowcore/sdk 1.11.4 → 1.11.6

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
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.11.6](https://github.com/flowcore-io/flowcore-sdk/compare/v1.11.5...v1.11.6) (2025-02-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * limit invalid response to 1000 chars and add test ([93a8dfe](https://github.com/flowcore-io/flowcore-sdk/commit/93a8dfe75e68617e85c30d75c171a9713b8f5730))
9
+
10
+ ## [1.11.5](https://github.com/flowcore-io/flowcore-sdk/compare/v1.11.4...v1.11.5) (2025-02-13)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add websocket import ([073aa8c](https://github.com/flowcore-io/flowcore-sdk/commit/073aa8ce2c7f1bd548bc762816f480f00f6ee126))
16
+ * output errors in invalid response exception ([c5c9c58](https://github.com/flowcore-io/flowcore-sdk/commit/c5c9c58841a2f91b995cf938293ab024fbc1118a))
17
+ * remove import ([4b76831](https://github.com/flowcore-io/flowcore-sdk/commit/4b7683191ecd7cab84e814ec1285e90f5b9ac320))
18
+
3
19
  ## [1.11.4](https://github.com/flowcore-io/flowcore-sdk/compare/v1.11.3...v1.11.4) (2025-02-12)
4
20
 
5
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAI5E"}
1
+ {"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAK5E"}
@@ -3,7 +3,8 @@
3
3
  */
4
4
  export class InvalidResponseException extends Error {
5
5
  constructor(message, errors) {
6
- super(message);
6
+ const errorString = JSON.stringify(errors);
7
+ super(`${message}: ${errorString.slice(0, 1000)}`);
7
8
  Object.defineProperty(this, "errors", {
8
9
  enumerable: true,
9
10
  configurable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.11.4",
3
+ "version": "1.11.6",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -1 +1 @@
1
- {"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAI5E"}
1
+ {"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAK5E"}
@@ -6,7 +6,8 @@ exports.InvalidResponseException = void 0;
6
6
  */
7
7
  class InvalidResponseException extends Error {
8
8
  constructor(message, errors) {
9
- super(message);
9
+ const errorString = JSON.stringify(errors);
10
+ super(`${message}: ${errorString.slice(0, 1000)}`);
10
11
  Object.defineProperty(this, "errors", {
11
12
  enumerable: true,
12
13
  configurable: true,