lightspeed-retail-sdk 3.3.0 → 3.3.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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  A modern JavaScript SDK for interacting with the Lightspeed Retail API. This SDK provides a convenient, secure, and flexible way to access Lightspeed Retail's features—including customer, item, and order management.
4
4
 
5
- **Current Version: 3.3.0** — Refactor: extract endpoints for maintainability and improve endpoint testing. Enhanced query param encoding and pagination logic for consistency.
5
+ **Current Version: 3.3.1** — Refactor: extract endpoints for maintainability and improve endpoint testing. Enhanced query param encoding and pagination logic for consistency.
6
6
 
7
- ## **🆕 Recent Updates (v3.3.0)**
7
+ ## **🆕 Recent Updates (v3.3.1)**
8
8
 
9
9
  - **Add centralized query param builder for API requests**: Add centralized query param builder for API requests. Supports input as object, string, or array, and manages relations/load_relations. Ensures no double-encoding of parameters and handles special cases for 'or' and 'timeStamp'.
10
10
  - **🎯 Enhanced Parameter Support**: All main getter methods now support both legacy and new object-based parameters with full backward compatibility
@@ -66,7 +66,7 @@ const items = await sdk.getItems({
66
66
  ## Table of Contents
67
67
 
68
68
  - [Another Unofficial Lightspeed Retail V3 API SDK](#another-unofficial-lightspeed-retail-v3-api-sdk)
69
- - [**🆕 Recent Updates (v3.3.0)**](#-recent-updates-v330)
69
+ - [**🆕 Recent Updates (v3.3.1)**](#-recent-updates-v331)
70
70
  - [🚀 Key Features](#-key-features)
71
71
  - [🔄 Migrating from 3.1.x](#-migrating-from-31x)
72
72
  - [Backward Compatibility](#backward-compatibility)
@@ -349,8 +349,6 @@ class LightspeedSDKCore {
349
349
  // Remove params for subsequent requests (pagination URLs already have them)
350
350
  delete requestOptions.params;
351
351
  }
352
- // Debug log: print the URL being requested
353
- console.log("[LightspeedSDK] getAllData requesting URL:", requestOptions.url, requestOptions.params);
354
352
  const { data } = await this.executeApiRequest(requestOptions);
355
353
  // Handle successful empty responses
356
354
  if (!data || Object.keys(data).length === 0) {
@@ -385,12 +385,7 @@ export class LightspeedSDKCore {
385
385
  // Remove params for subsequent requests (pagination URLs already have them)
386
386
  delete requestOptions.params;
387
387
  }
388
- // Debug log: print the URL being requested
389
- console.log(
390
- "[LightspeedSDK] getAllData requesting URL:",
391
- requestOptions.url,
392
- requestOptions.params
393
- );
388
+
394
389
  const { data } = await this.executeApiRequest(requestOptions);
395
390
 
396
391
  // Handle successful empty responses
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lightspeed-retail-sdk",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Another unofficial Lightspeed Retail API SDK for Node.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",