@wrongstack/techstack 1.0.3 → 1.0.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/dist/index.js +1 -0
- package/dist/registry/http-fetch.d.ts +7 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2448,6 +2448,7 @@ function requestOnce(options) {
|
|
|
2448
2448
|
const method = options.method ?? "GET";
|
|
2449
2449
|
const requestOptions = {
|
|
2450
2450
|
hostname: options.hostname,
|
|
2451
|
+
...options.port !== void 0 ? { port: options.port } : {},
|
|
2451
2452
|
path: options.path,
|
|
2452
2453
|
method,
|
|
2453
2454
|
headers: options.headers,
|
|
@@ -7,6 +7,13 @@ export interface HttpResponse {
|
|
|
7
7
|
}
|
|
8
8
|
export interface HttpRequestOptions {
|
|
9
9
|
readonly hostname: string;
|
|
10
|
+
/**
|
|
11
|
+
* Non-default port. Omit for the registries this client normally talks to
|
|
12
|
+
* (443 / 80). Required to reach anything local: the `isHttp` branch below
|
|
13
|
+
* switches to plain HTTP for localhost, but a local server is never on port
|
|
14
|
+
* 80, so without this the localhost path could not be used at all.
|
|
15
|
+
*/
|
|
16
|
+
readonly port?: number | undefined;
|
|
10
17
|
readonly path: string;
|
|
11
18
|
readonly method?: 'GET' | 'POST' | undefined;
|
|
12
19
|
readonly headers?: Readonly<Record<string, string>> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/techstack",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack TechStack — cross-language dependency intelligence for the active target project: discover, inventory, enrich, analyze, and report.",
|
|
6
6
|
"repository": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"!dist/**/*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wrongstack/core": "1.0.
|
|
30
|
-
"@wrongstack/persistence": "1.0.
|
|
31
|
-
"@wrongstack/tools": "1.0.
|
|
29
|
+
"@wrongstack/core": "1.0.4",
|
|
30
|
+
"@wrongstack/persistence": "1.0.4",
|
|
31
|
+
"@wrongstack/tools": "1.0.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^26.2.0",
|