lightspeed-retail-sdk 3.3.0 → 3.3.2

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.2** — 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.2)**
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.2)**](#-recent-updates-v332)
70
70
  - [🚀 Key Features](#-key-features)
71
71
  - [🔄 Migrating from 3.1.x](#-migrating-from-31x)
72
72
  - [Backward Compatibility](#backward-compatibility)
@@ -277,7 +277,6 @@ class LightspeedSDKCore {
277
277
  }
278
278
  delete options.params; // Don't let axios try to re-encode
279
279
  }
280
- console.log("[LightspeedSDK] Final request URL:", options.url);
281
280
  try {
282
281
  const res = await (0, _axios.default)(options);
283
282
  this.lastResponse = res;
@@ -349,8 +348,6 @@ class LightspeedSDKCore {
349
348
  // Remove params for subsequent requests (pagination URLs already have them)
350
349
  delete requestOptions.params;
351
350
  }
352
- // Debug log: print the URL being requested
353
- console.log("[LightspeedSDK] getAllData requesting URL:", requestOptions.url, requestOptions.params);
354
351
  const { data } = await this.executeApiRequest(requestOptions);
355
352
  // Handle successful empty responses
356
353
  if (!data || Object.keys(data).length === 0) {
@@ -303,8 +303,6 @@ export class LightspeedSDKCore {
303
303
  delete options.params; // Don't let axios try to re-encode
304
304
  }
305
305
 
306
- console.log("[LightspeedSDK] Final request URL:", options.url);
307
-
308
306
  try {
309
307
  const res = await axios(options);
310
308
  this.lastResponse = res;
@@ -385,12 +383,7 @@ export class LightspeedSDKCore {
385
383
  // Remove params for subsequent requests (pagination URLs already have them)
386
384
  delete requestOptions.params;
387
385
  }
388
- // Debug log: print the URL being requested
389
- console.log(
390
- "[LightspeedSDK] getAllData requesting URL:",
391
- requestOptions.url,
392
- requestOptions.params
393
- );
386
+
394
387
  const { data } = await this.executeApiRequest(requestOptions);
395
388
 
396
389
  // 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.2",
4
4
  "description": "Another unofficial Lightspeed Retail API SDK for Node.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",