@podium/client 5.2.5-beta.3 → 5.2.5-beta.4
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 +7 -0
- package/lib/resolver.js +2 -1
- package/package.json +1 -1
- package/types/resolver.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.2.5-beta.4](https://github.com/podium-lib/client/compare/v5.2.5-beta.3...v5.2.5-beta.4) (2025-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* setting name of the client as the clientName for @podium/http-client ([65c3cb3](https://github.com/podium-lib/client/commit/65c3cb3f91867c74a5315de52ff67bb6dc2fbc19))
|
|
7
|
+
|
|
1
8
|
## [5.2.5-beta.3](https://github.com/podium-lib/client/compare/v5.2.5-beta.2...v5.2.5-beta.3) (2025-01-13)
|
|
2
9
|
|
|
3
10
|
|
package/lib/resolver.js
CHANGED
|
@@ -9,6 +9,7 @@ import Cache from './resolver.cache.js';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {object} PodletClientResolverOptions
|
|
12
|
+
* @property {string} name - the name of the resource
|
|
12
13
|
* @property {string} clientName
|
|
13
14
|
* @property {import('abslog').AbstractLoggerOptions} [logger]
|
|
14
15
|
* @property {boolean} [earlyHints]
|
|
@@ -35,7 +36,7 @@ export default class PodletClientResolver {
|
|
|
35
36
|
|
|
36
37
|
const log = abslog(options.logger);
|
|
37
38
|
const httpClient = new HttpClient({
|
|
38
|
-
clientName: options.
|
|
39
|
+
clientName: options.name,
|
|
39
40
|
logger: options.logger,
|
|
40
41
|
});
|
|
41
42
|
this.#cache = new Cache(registry, options);
|
package/package.json
CHANGED
package/types/resolver.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {object} PodletClientResolverOptions
|
|
3
|
+
* @property {string} name - the name of the resource
|
|
3
4
|
* @property {string} clientName
|
|
4
5
|
* @property {import('abslog').AbstractLoggerOptions} [logger]
|
|
5
6
|
* @property {boolean} [earlyHints]
|
|
@@ -30,6 +31,10 @@ export default class PodletClientResolver {
|
|
|
30
31
|
#private;
|
|
31
32
|
}
|
|
32
33
|
export type PodletClientResolverOptions = {
|
|
34
|
+
/**
|
|
35
|
+
* - the name of the resource
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
33
38
|
clientName: string;
|
|
34
39
|
logger?: import("abslog").AbstractLoggerOptions;
|
|
35
40
|
earlyHints?: boolean;
|