com.jimuwd.xian.registry-proxy 1.0.41 → 1.0.42
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/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ async function fetchFromRegistry(registry, targetUrl, limiter) {
|
|
|
144
144
|
console.log(`Fetching from: ${targetUrl}`);
|
|
145
145
|
const headers = registry.token ? { Authorization: `Bearer ${registry.token}` } : undefined;
|
|
146
146
|
const response = await fetch(targetUrl, { headers });
|
|
147
|
-
console.log(`Response from ${targetUrl}: ${response.status} ${response.statusText}`);
|
|
147
|
+
console.log(`Response from ${targetUrl}: ${response.status} ${response.statusText} content-type=${response.headers.get("content-type")} content-length=${response.headers.get("content-length")}`);
|
|
148
148
|
return response.ok ? response : null;
|
|
149
149
|
}
|
|
150
150
|
catch (e) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -196,7 +196,7 @@ async function fetchFromRegistry(
|
|
|
196
196
|
console.log(`Fetching from: ${targetUrl}`);
|
|
197
197
|
const headers = registry.token ? {Authorization: `Bearer ${registry.token}`} : undefined;
|
|
198
198
|
const response = await fetch(targetUrl, {headers});
|
|
199
|
-
console.log(`Response from ${targetUrl}: ${response.status} ${response.statusText}`);
|
|
199
|
+
console.log(`Response from ${targetUrl}: ${response.status} ${response.statusText} content-type=${response.headers.get("content-type")} content-length=${response.headers.get("content-length")}`);
|
|
200
200
|
return response.ok ? response : null;
|
|
201
201
|
} catch (e) {
|
|
202
202
|
if (e instanceof Error) {
|