@constructor-io/constructorio-node 4.15.0 → 4.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-node",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "description": "Constructor.io Node.js client",
5
5
  "main": "src/constructorio.js",
6
6
  "types": "src/types/constructorio.d.ts",
@@ -2435,13 +2435,14 @@ class Catalog {
2435
2435
  */
2436
2436
  async patchCatalogUsingTarArchive(parameters = {}, networkParameters = {}) {
2437
2437
  try {
2438
- const { notification_email, notificationEmail = notification_email } = parameters;
2438
+ const { force, notification_email, notificationEmail = notification_email } = parameters;
2439
2439
  const { fetch } = this.options;
2440
2440
  const apiKey = this.options && this.options.apiKey;
2441
2441
  const controller = new AbortController();
2442
2442
  const { signal } = controller;
2443
2443
  const { queryParams, formData } = await createQueryParamsAndFormData(parameters);
2444
- const formDataWithTarArchive = await addTarArchiveToFormData(parameters, formData, 'patchdelta', apiKey);
2444
+ const operation = force ? 'forcepatchdelta' : 'patchdelta';
2445
+ const formDataWithTarArchive = await addTarArchiveToFormData(parameters, formData, operation, apiKey);
2445
2446
 
2446
2447
  if (notificationEmail) {
2447
2448
  queryParams.notification_email = notificationEmail;