api2key-base-sdk 0.1.3 → 0.1.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.
@@ -1,4 +1,4 @@
1
- import { PlatformApiError, PlatformTransportError } from './errors';
1
+ import { PlatformApiError, PlatformTransportError } from './errors.js';
2
2
  function buildQueryString(query) {
3
3
  if (!query)
4
4
  return '';
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { AdminClient } from './admin/client';
2
- import { AiClient } from './ai/client';
3
- import { AuthClient } from './auth/client';
4
- import { PlatformHttpClient } from './core/client';
5
- import { CreditsClient } from './credits/client';
6
- import { OrdersClient } from './orders/client';
7
- import { PaymentClient } from './payment/client';
8
- import { ProjectsClient } from './projects/client';
9
- import { UserApiKeysClient } from './user/api-keys-client';
10
- import { UserSettingsClient } from './user/settings-client';
11
- export * from './core/errors';
1
+ import { AdminClient } from './admin/client.js';
2
+ import { AiClient } from './ai/client.js';
3
+ import { AuthClient } from './auth/client.js';
4
+ import { PlatformHttpClient } from './core/client.js';
5
+ import { CreditsClient } from './credits/client.js';
6
+ import { OrdersClient } from './orders/client.js';
7
+ import { PaymentClient } from './payment/client.js';
8
+ import { ProjectsClient } from './projects/client.js';
9
+ import { UserApiKeysClient } from './user/api-keys-client.js';
10
+ import { UserSettingsClient } from './user/settings-client.js';
11
+ export * from './core/errors.js';
12
12
  export class BasePlatformClient {
13
13
  constructor(options) {
14
14
  this.http = new PlatformHttpClient(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api2key-base-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "TypeScript SDK for consuming the Api2Key API stable APIs",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "scripts": {
38
- "build": "tsc -p tsconfig.build.json",
38
+ "build": "tsc -p tsconfig.build.json && node ./scripts/fix-esm-imports.mjs",
39
39
  "clean": "rm -rf dist",
40
40
  "pack:check": "npm pack --dry-run",
41
41
  "release:check": "npm run clean && npm run type-check && npm run build && npm run pack:check",