@ravnexchange/sdk 0.1.2 → 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.
package/dist/client.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { ChainDTO, ExecuteParams, ExecutionDTO, GetQuoteParams, QuoteDTO, S
2
2
  export interface RavnClientConfig {
3
3
  /** Self-serve or enterprise key. Omit for the anonymous tier (works immediately, lower rate limit). */
4
4
  apiKey?: string;
5
- /** Default: https://ravn.exchange/api/v1 */
5
+ /** Default: https://app.ravn.exchange/api/v1 */
6
6
  baseUrl?: string;
7
7
  /** Swap in your own fetch (e.g. for React Native, or a test double). Defaults to global fetch. */
8
8
  fetch?: typeof fetch;
package/dist/client.js CHANGED
@@ -2,7 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RavnClient = void 0;
4
4
  const types_1 = require("./types");
5
- const DEFAULT_BASE_URL = "https://ravn.exchange/api/v1";
5
+ // ravn.exchange is the marketing site (separate deployment, no /api/* routes at all) — the
6
+ // actual app, including this API, is served from the app subdomain. A caller that omits
7
+ // baseUrl entirely was 404ing on every single call until this fix.
8
+ const DEFAULT_BASE_URL = "https://app.ravn.exchange/api/v1";
6
9
  class RavnClient {
7
10
  constructor(config = {}) {
8
11
  this.apiKey = config.apiKey;
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@ravnexchange/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Typed client for the RAVN integrator API (/api/v1) — quote, execute, submit-signature, status.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "files": ["dist"],
8
8
  "license": "MIT",
9
+ "repository": { "type": "git", "url": "git+https://github.com/ravndex/ravn-sdk.git", "directory": "core" },
10
+ "homepage": "https://github.com/ravndex/ravn-sdk#readme",
9
11
  "publishConfig": { "access": "public" },
10
12
  "scripts": {
11
13
  "build": "tsc -p tsconfig.build.json"