@podium/client 5.0.22 → 5.0.24

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,3 +1,17 @@
1
+ ## [5.0.24](https://github.com/podium-lib/client/compare/v5.0.23...v5.0.24) (2024-05-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @podium/utils to v5.0.7 ([ee4ee5b](https://github.com/podium-lib/client/commit/ee4ee5b160ff2aab130e17a3e86abdfec08d1864))
7
+
8
+ ## [5.0.23](https://github.com/podium-lib/client/compare/v5.0.22...v5.0.23) (2024-05-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * make response toJSON return type serializable ([026a723](https://github.com/podium-lib/client/commit/026a723b545c6b3b0c622851b7d164be2674e8a2))
14
+
1
15
  ## [5.0.22](https://github.com/podium-lib/client/compare/v5.0.21...v5.0.22) (2024-05-15)
2
16
 
3
17
 
package/lib/response.js CHANGED
@@ -59,8 +59,8 @@ export default class PodiumClientResponse {
59
59
  redirect: this.redirect,
60
60
  content: this.content,
61
61
  headers: this.headers,
62
- css: this.css,
63
- js: this.js,
62
+ css: this.css.map((a) => a.toJSON()),
63
+ js: this.js.map((a) => a.toJSON()),
64
64
  };
65
65
  }
66
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podium/client",
3
- "version": "5.0.22",
3
+ "version": "5.0.24",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  "@hapi/boom": "10.0.1",
39
39
  "@metrics/client": "2.5.2",
40
40
  "@podium/schemas": "5.0.2",
41
- "@podium/utils": "5.0.6",
41
+ "@podium/utils": "5.0.7",
42
42
  "abslog": "2.4.4",
43
43
  "http-cache-semantics": "^4.0.3",
44
44
  "lodash.clonedeep": "^4.5.0",
@@ -60,7 +60,7 @@ export default class PodletClientHttpOutgoing extends PassThrough {
60
60
  get timeout(): number;
61
61
  set success(value: boolean);
62
62
  get success(): boolean;
63
- get context(): {};
63
+ get context(): Record<string, unknown>;
64
64
  set headers(value: {});
65
65
  get headers(): {};
66
66
  set maxAge(value: number);
@@ -21,8 +21,8 @@ export default class PodiumClientResponse {
21
21
  redirect: import("./http-outgoing.js").PodiumRedirect;
22
22
  content: string;
23
23
  headers: any;
24
- css: import("@podium/utils").AssetCss[];
25
- js: import("@podium/utils").AssetJs[];
24
+ css: import("@podium/utils/types/asset-css.js").CssAsset[];
25
+ js: import("@podium/utils/types/asset-js.js").JavaScriptAsset[];
26
26
  };
27
27
  toString(): string;
28
28
  [Symbol.toPrimitive](): string;