@diffsome/sdk 3.2.5 → 3.2.6

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/index.d.mts CHANGED
@@ -11350,6 +11350,7 @@ declare class HttpClient {
11350
11350
  getBaseUrl(): string;
11351
11351
  /**
11352
11352
  * Get the download URL for a digital file
11353
+ * Includes auth_token query parameter for authentication
11353
11354
  */
11354
11355
  getDownloadUrl(token: string): string;
11355
11356
  /**
package/dist/index.d.ts CHANGED
@@ -11350,6 +11350,7 @@ declare class HttpClient {
11350
11350
  getBaseUrl(): string;
11351
11351
  /**
11352
11352
  * Get the download URL for a digital file
11353
+ * Includes auth_token query parameter for authentication
11353
11354
  */
11354
11355
  getDownloadUrl(token: string): string;
11355
11356
  /**
package/dist/index.js CHANGED
@@ -161,9 +161,14 @@ var HttpClient = class {
161
161
  }
162
162
  /**
163
163
  * Get the download URL for a digital file
164
+ * Includes auth_token query parameter for authentication
164
165
  */
165
166
  getDownloadUrl(token) {
166
- return `${this.baseUrl}/download/${this.tenantId}/${token}`;
167
+ const url = `${this.baseUrl}/download/${this.tenantId}/${token}`;
168
+ if (this.token) {
169
+ return `${url}?auth_token=${encodeURIComponent(this.token)}`;
170
+ }
171
+ return url;
167
172
  }
168
173
  /**
169
174
  * Set cart session ID (for guest cart persistence)
package/dist/index.mjs CHANGED
@@ -131,9 +131,14 @@ var HttpClient = class {
131
131
  }
132
132
  /**
133
133
  * Get the download URL for a digital file
134
+ * Includes auth_token query parameter for authentication
134
135
  */
135
136
  getDownloadUrl(token) {
136
- return `${this.baseUrl}/download/${this.tenantId}/${token}`;
137
+ const url = `${this.baseUrl}/download/${this.tenantId}/${token}`;
138
+ if (this.token) {
139
+ return `${url}?auth_token=${encodeURIComponent(this.token)}`;
140
+ }
141
+ return url;
137
142
  }
138
143
  /**
139
144
  * Set cart session ID (for guest cart persistence)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffsome/sdk",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "Diffsome SDK for JavaScript/TypeScript - Different + Awesome",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",