Skip to content

Commit 8df236c

Browse files
authored
replace the endpoints (#12)
* Update package.json * Change default API endpoint to api.patchstack.com Update the default Patchstack API endpoint from https://app.patchstack.com/monitor/pulse/manifest to http://api.patchstack.com/monitor/pulse/manifest. The change is applied in source (src/client.ts), CLI help and docs (README.md, src/cli.ts), built artifacts (dist/*) and associated tests (tests/client.test.ts). * Update built dist files and sourcemaps Regenerate distribution artifacts and refresh source maps under dist/ (cli.js, index.{js,cjs} and their .map files). No functional source changes — this is a build output update (includes removal of trailing newline in dist/cli.js and updated mapping files).
1 parent 8d149a0 commit 8df236c

13 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Precedence (highest wins):
7171
Environment variables:
7272

7373
- `PATCHSTACK_SITE_UUID` — the site UUID from your Patchstack dashboard
74-
- `PATCHSTACK_ENDPOINT` — override the API endpoint (default `https://app.patchstack.com/monitor/pulse/manifest`)
74+
- `PATCHSTACK_ENDPOINT` — override the API endpoint (default `http://api.patchstack.com/monitor/pulse/manifest`)
7575
- `PATCHSTACK_TIMEOUT_MS` — request timeout in milliseconds (default `30000`)
7676

7777
`.patchstackrc.json` example:

dist/cli.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ function compareSegments(a, b) {
427427
}
428428

429429
// src/client.ts
430-
var DEFAULT_ENDPOINT = "https://app.patchstack.com/monitor/pulse/manifest";
430+
var DEFAULT_ENDPOINT = "http://api.patchstack.com/monitor/pulse/manifest";
431431
var DEFAULT_TIMEOUT_MS = 3e4;
432432
function buildEndpointUrl(base, siteUuid) {
433433
const trimmed = base.replace(/\/$/, "");

dist/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ interface NormalizeResult {
6666
declare function buildWirePayload(manifest: Manifest): NormalizeResult;
6767
declare function compareVersions(a: string, b: string): number;
6868

69-
declare const DEFAULT_ENDPOINT = "https://app.patchstack.com/monitor/pulse/manifest";
69+
declare const DEFAULT_ENDPOINT = "http://api.patchstack.com/monitor/pulse/manifest";
7070
declare function buildEndpointUrl(base: string, siteUuid?: string | null): string;
7171
declare function postManifest(config: Config, payload: WirePayload): Promise<StoreManifestResponse>;
7272

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ interface NormalizeResult {
6666
declare function buildWirePayload(manifest: Manifest): NormalizeResult;
6767
declare function compareVersions(a: string, b: string): number;
6868

69-
declare const DEFAULT_ENDPOINT = "https://app.patchstack.com/monitor/pulse/manifest";
69+
declare const DEFAULT_ENDPOINT = "http://api.patchstack.com/monitor/pulse/manifest";
7070
declare function buildEndpointUrl(base: string, siteUuid?: string | null): string;
7171
declare function postManifest(config: Config, payload: WirePayload): Promise<StoreManifestResponse>;
7272

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patchstack/connect",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "Patchstack connector for JavaScript applications. Scans your lockfile and reports installed packages to Patchstack for vulnerability monitoring.",
55
"keywords": [
66
"patchstack",

0 commit comments

Comments
 (0)