@trustrails/sdk 0.4.4 → 0.4.5

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/README.md CHANGED
@@ -27,7 +27,7 @@ const results = await trustrails.search({
27
27
 
28
28
  console.log(`Found ${results.total} products`);
29
29
  results.products.forEach(product => {
30
- console.log(`${product.title} - $${product.price}`);
30
+ console.log(`${product.title} - £${product.price}`);
31
31
  });
32
32
 
33
33
  // Get a specific product
@@ -53,7 +53,7 @@ new TrustRails({ apiKey: string, baseUrl?: string })
53
53
 
54
54
  **Parameters:**
55
55
  - `apiKey` - Your TrustRails API key
56
- - `baseUrl` (optional) - Custom base URL (defaults to `https://www.trustrails.app`)
56
+ - `baseUrl` (optional) - Custom base URL (defaults to `https://trustrails.app`)
57
57
 
58
58
  #### Methods
59
59
 
@@ -68,7 +68,7 @@ Search for products. Returns summary data (title, price, availability, category)
68
68
  - `options.minPrice?: number` - Minimum price filter in GBP
69
69
  - `options.maxPrice?: number` - Maximum price filter in GBP
70
70
  - `options.lite?: boolean` - Return trimmed product objects with only essential fields (reduces payload by ~80%)
71
- - `options.limit?: number` - Maximum number of results (default: 20, max: 100)
71
+ - `options.limit?: number` - Maximum number of results (default: 50, max: 100)
72
72
 
73
73
  **Returns:** Promise resolving to `SearchResponse` containing `products` array and `total` count.
74
74
 
package/dist/index.d.mts CHANGED
@@ -41,7 +41,7 @@ interface SearchOptions {
41
41
  category?: string;
42
42
  /** Return trimmed product objects with only essential fields. Reduces payload size by ~80%. */
43
43
  lite?: boolean;
44
- /** Maximum number of products to return (default 20, max 100) */
44
+ /** Maximum number of products to return (default 50, max 100) */
45
45
  limit?: number;
46
46
  }
47
47
  /**
package/dist/index.d.ts CHANGED
@@ -41,7 +41,7 @@ interface SearchOptions {
41
41
  category?: string;
42
42
  /** Return trimmed product objects with only essential fields. Reduces payload size by ~80%. */
43
43
  lite?: boolean;
44
- /** Maximum number of products to return (default 20, max 100) */
44
+ /** Maximum number of products to return (default 50, max 100) */
45
45
  limit?: number;
46
46
  }
47
47
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustrails/sdk",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Official TypeScript SDK for TrustRails API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",