@podium/client 5.0.5 → 5.0.7
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 +14 -0
- package/lib/resolver.content.js +10 -10
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.0.7](https://github.com/podium-lib/client/compare/v5.0.6...v5.0.7) (2024-02-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @podium/utils to v5.0.2 ([dd7af21](https://github.com/podium-lib/client/commit/dd7af21c3372e89b25096c1e4833463089dfa290))
|
|
7
|
+
|
|
8
|
+
## [5.0.6](https://github.com/podium-lib/client/compare/v5.0.5...v5.0.6) (2024-01-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* log the full URI, not only the base ([f42640e](https://github.com/podium-lib/client/commit/f42640e3ddd04e77a87688be0f145eab4f9f335a))
|
|
14
|
+
|
|
1
15
|
## [5.0.5](https://github.com/podium-lib/client/compare/v5.0.4...v5.0.5) (2023-12-13)
|
|
2
16
|
|
|
3
17
|
|
package/lib/resolver.content.js
CHANGED
|
@@ -134,7 +134,7 @@ export default class PodletClientContentResolver {
|
|
|
134
134
|
});
|
|
135
135
|
|
|
136
136
|
this.#log.debug(
|
|
137
|
-
`start reading content from remote resource - manifest version is ${outgoing.manifest.version} - resource: ${outgoing.name} - url: ${
|
|
137
|
+
`start reading content from remote resource - manifest version is ${outgoing.manifest.version} - resource: ${outgoing.name} - url: ${uri}`,
|
|
138
138
|
);
|
|
139
139
|
|
|
140
140
|
try {
|
|
@@ -154,10 +154,10 @@ export default class PodletClientContentResolver {
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
this.#log.debug(
|
|
157
|
-
`remote resource responded with non 200 http status code for content - code: ${statusCode} - resource: ${outgoing.name} - url: ${
|
|
157
|
+
`remote resource responded with non 200 http status code for content - code: ${statusCode} - resource: ${outgoing.name} - url: ${uri}`,
|
|
158
158
|
);
|
|
159
159
|
|
|
160
|
-
const errorMessage = `Could not read content. Resource responded with ${statusCode} on ${
|
|
160
|
+
const errorMessage = `Could not read content. Resource responded with ${statusCode} on ${uri}`;
|
|
161
161
|
|
|
162
162
|
const errorOptions = {
|
|
163
163
|
statusCode,
|
|
@@ -178,7 +178,7 @@ export default class PodletClientContentResolver {
|
|
|
178
178
|
});
|
|
179
179
|
|
|
180
180
|
this.#log.warn(
|
|
181
|
-
`remote resource responded with non 200 http status code for content - code: ${statusCode} - resource: ${outgoing.name} - url: ${
|
|
181
|
+
`remote resource responded with non 200 http status code for content - code: ${statusCode} - resource: ${outgoing.name} - url: ${uri}`,
|
|
182
182
|
);
|
|
183
183
|
outgoing.success = true;
|
|
184
184
|
outgoing.pushFallback();
|
|
@@ -200,7 +200,7 @@ export default class PodletClientContentResolver {
|
|
|
200
200
|
: undefined;
|
|
201
201
|
|
|
202
202
|
this.#log.debug(
|
|
203
|
-
`got head response from remote resource for content - header version is ${hdrs['podlet-version']} - resource: ${outgoing.name} - url: ${
|
|
203
|
+
`got head response from remote resource for content - header version is ${hdrs['podlet-version']} - resource: ${outgoing.name} - url: ${uri}`,
|
|
204
204
|
);
|
|
205
205
|
|
|
206
206
|
if (
|
|
@@ -214,7 +214,7 @@ export default class PodletClientContentResolver {
|
|
|
214
214
|
});
|
|
215
215
|
|
|
216
216
|
this.#log.info(
|
|
217
|
-
`podlet version number in header differs from cached version number - aborting request to remote resource for content - resource: ${outgoing.name} - url: ${
|
|
217
|
+
`podlet version number in header differs from cached version number - aborting request to remote resource for content - resource: ${outgoing.name} - url: ${uri}`,
|
|
218
218
|
);
|
|
219
219
|
|
|
220
220
|
outgoing.status = 'stale';
|
|
@@ -258,10 +258,10 @@ export default class PodletClientContentResolver {
|
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
this.#log.warn(
|
|
261
|
-
`could not create network connection to remote resource when trying to request content - resource: ${outgoing.name} - url: ${
|
|
261
|
+
`could not create network connection to remote resource when trying to request content - resource: ${outgoing.name} - url: ${uri}`,
|
|
262
262
|
);
|
|
263
263
|
throw badGateway(
|
|
264
|
-
`Error reading content at ${
|
|
264
|
+
`Error reading content at ${uri}`,
|
|
265
265
|
error,
|
|
266
266
|
);
|
|
267
267
|
}
|
|
@@ -273,7 +273,7 @@ export default class PodletClientContentResolver {
|
|
|
273
273
|
});
|
|
274
274
|
|
|
275
275
|
this.#log.warn(
|
|
276
|
-
`could not create network connection to remote resource when trying to request content - resource: ${outgoing.name} - url: ${
|
|
276
|
+
`could not create network connection to remote resource when trying to request content - resource: ${outgoing.name} - url: ${uri}`,
|
|
277
277
|
);
|
|
278
278
|
|
|
279
279
|
outgoing.success = true;
|
|
@@ -297,7 +297,7 @@ export default class PodletClientContentResolver {
|
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
this.#log.debug(
|
|
300
|
-
`successfully read content from remote resource - resource: ${outgoing.name} - url: ${
|
|
300
|
+
`successfully read content from remote resource - resource: ${outgoing.name} - url: ${uri}`,
|
|
301
301
|
);
|
|
302
302
|
|
|
303
303
|
return outgoing;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podium/client",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@hapi/boom": "^10.0.0",
|
|
39
39
|
"@metrics/client": "2.5.2",
|
|
40
40
|
"@podium/schemas": "5.0.0",
|
|
41
|
-
"@podium/utils": "5.0.
|
|
41
|
+
"@podium/utils": "5.0.2",
|
|
42
42
|
"abslog": "2.4.0",
|
|
43
43
|
"http-cache-semantics": "^4.0.3",
|
|
44
44
|
"lodash.clonedeep": "^4.5.0",
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
"@podium/test-utils": "2.5.2",
|
|
50
50
|
"@semantic-release/changelog": "6.0.3",
|
|
51
51
|
"@semantic-release/git": "10.0.1",
|
|
52
|
-
"@babel/eslint-parser": "7.23.
|
|
53
|
-
"@semantic-release/github": "9.2.
|
|
54
|
-
"@semantic-release/npm": "11.0.
|
|
52
|
+
"@babel/eslint-parser": "7.23.10",
|
|
53
|
+
"@semantic-release/github": "9.2.6",
|
|
54
|
+
"@semantic-release/npm": "11.0.2",
|
|
55
55
|
"@semantic-release/release-notes-generator": "12.1.0",
|
|
56
56
|
"@sinonjs/fake-timers": "11.2.2",
|
|
57
57
|
"benchmark": "2.1.4",
|
|
58
|
-
"eslint": "8.
|
|
58
|
+
"eslint": "8.56.0",
|
|
59
59
|
"eslint-config-airbnb-base": "15.0.0",
|
|
60
|
-
"eslint-config-prettier": "9.
|
|
61
|
-
"eslint-plugin-import": "2.29.
|
|
62
|
-
"eslint-plugin-prettier": "5.
|
|
60
|
+
"eslint-config-prettier": "9.1.0",
|
|
61
|
+
"eslint-plugin-import": "2.29.1",
|
|
62
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
63
63
|
"express": "4.18.2",
|
|
64
64
|
"get-stream": "8.0.1",
|
|
65
65
|
"http-proxy": "1.18.1",
|
|
66
66
|
"is-stream": "3.0.0",
|
|
67
|
-
"prettier": "3.
|
|
68
|
-
"semantic-release": "
|
|
69
|
-
"tap": "18.
|
|
67
|
+
"prettier": "3.2.4",
|
|
68
|
+
"semantic-release": "23.0.0",
|
|
69
|
+
"tap": "18.7.0"
|
|
70
70
|
}
|
|
71
71
|
}
|