@trustrails/sdk 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,19 +5,19 @@ Official TypeScript/JavaScript client library for the TrustRails API.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install trustrails
8
+ npm install @trustrails/sdk
9
9
  ```
10
10
 
11
11
  ## Quick Start
12
12
 
13
13
  ```typescript
14
- import { TrustRailsClient } from 'trustrails';
14
+ import { TrustRailsClient } from '@trustrails/sdk';
15
15
 
16
16
  // Initialize the client
17
- const client = new TrustRailsClient(
18
- 'https://api.trustrails.com',
19
- 'your-api-key'
20
- );
17
+ const client = new TrustRailsClient({
18
+ baseUrl: 'https://www.trustrails.app',
19
+ apiKey: 'your-api-key'
20
+ });
21
21
 
22
22
  // Search for products
23
23
  const results = await client.search({
@@ -138,7 +138,7 @@ interface SearchResponse {
138
138
  The SDK throws `TrustRailsError` for API-related errors:
139
139
 
140
140
  ```typescript
141
- import { TrustRailsClient, TrustRailsError } from 'trustrails';
141
+ import { TrustRailsClient, TrustRailsError } from '@trustrails/sdk';
142
142
 
143
143
  try {
144
144
  const product = await client.getProduct('invalid-id');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustrails/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official TypeScript SDK for TrustRails API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",