diff --git a/package-lock.json b/package-lock.json index 8890363..0369c46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "edgen", - "version": "4.24.7", + "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "edgen", - "version": "4.24.7", + "version": "0.1.0", "license": "Apache-2.0", "dependencies": { "@types/node": "^18.11.18", diff --git a/src/index.ts b/src/index.ts index 95ed95f..f562d54 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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. @@ -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()) { diff --git a/src/resources/misc/version.ts b/src/resources/misc/version.ts index 1785e24..13c7280 100644 --- a/src/resources/misc/version.ts +++ b/src/resources/misc/version.ts @@ -5,7 +5,7 @@ import { APIResource } from 'edgen/resource'; export class Version extends APIResource { create(): APIPromise { - return this._client.get('/version') as APIPromise; + return this._client.get('/misc/version') as APIPromise; } } diff --git a/src/version.ts b/src/version.ts index d37aaf7..1baa228 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.24.7'; // x-release-please-version +export const VERSION = '0.1.0'; // x-release-please-version