@quantcdn/quant-client 2.0.6 → 2.0.7

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.
@@ -159,6 +159,9 @@ class QuantClient {
159
159
  if (typeof payload.skipPurge !== 'undefined') {
160
160
  headers['Quant-Skip-Purge'] = 'true';
161
161
  }
162
+ if (typeof payload.headers !== 'undefined') {
163
+ headers['Quant-File-Headers'] = payload.headers;
164
+ }
162
165
  const formData = {
163
166
  file: {
164
167
  value: payload.data,
@@ -22,6 +22,7 @@ export interface FilePayload {
22
22
  data: Buffer;
23
23
  url: string;
24
24
  skipPurge?: boolean;
25
+ headers?: string;
25
26
  }
26
27
  export interface PublishPayload {
27
28
  location: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantcdn/quant-client",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Client library for API connectivity",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",