Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
[misc_version] /version -> /misc/version, default port 33322
Browse files Browse the repository at this point in the history
  • Loading branch information
toschoo committed Jan 25, 2024
1 parent 072bf5e commit 6718443
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Edgen extends Core.APIClient {
*
* @param {string} [opts.apiKey=process.env['EDGEN_API_KEY'] ?? undefined]
* @param {string | null} [opts.organization=process.env['EDGEN_ORG_ID'] ?? null]
* @param {string} [opts.baseURL=process.env['EDGEN_BASE_URL'] ?? http://127.0.0.1:3000/v1] - Override the default base URL for the API.
* @param {string} [opts.baseURL=process.env['EDGEN_BASE_URL'] ?? http://127.0.0.1:33322/v1] - Override the default base URL for the API.
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
Expand All @@ -116,7 +116,7 @@ export class Edgen extends Core.APIClient {
apiKey,
organization,
...opts,
baseURL: baseURL || `http://127.0.0.1:3000/v1`,
baseURL: baseURL || `http://127.0.0.1:33322/v1`,
};

if (!options.dangerouslyAllowBrowser && Core.isRunningInBrowser()) {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/misc/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { APIResource } from 'edgen/resource';

export class Version extends APIResource {
create(): APIPromise<EdgenVersion> {
return this._client.get('/version') as APIPromise<EdgenVersion>;
return this._client.get('/misc/version') as APIPromise<EdgenVersion>;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.24.7'; // x-release-please-version
export const VERSION = '0.1.0'; // x-release-please-version

0 comments on commit 6718443

Please sign in to comment.