attlaz-client 1.37.10 → 1.38.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.
@@ -11,7 +11,7 @@ export class DataValueCollection extends JsonSerializable {
11
11
  return new DataValueCollection();
12
12
  }
13
13
  if (!Utils.isIterable(rawValues)) {
14
- throw new Error('Raw values is not iterable: ' + JSON.stringify(rawValues));
14
+ throw new Error('Unable to parse data value collection: values are not iterable: ' + JSON.stringify(rawValues));
15
15
  }
16
16
  const result = new DataValueCollection();
17
17
  for (const rawValue of rawValues) {
@@ -18,6 +18,10 @@ export class Endpoint {
18
18
  if (data === null || data === undefined) {
19
19
  return null;
20
20
  }
21
+ if (typeof data === 'object' && '_formatted' in data) {
22
+ // TODO: unset _formatted
23
+ return data;
24
+ }
21
25
  if (Array.isArray(data)) {
22
26
  const result = [];
23
27
  for (const value of data) {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.37.9";
1
+ export declare const VERSION = "1.37.10";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.37.9";
1
+ export const VERSION = "1.37.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.37.10",
3
+ "version": "1.38.0",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",