rerobe-js-orm 4.5.9 → 4.6.0

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.
@@ -19,6 +19,7 @@ export default class Product extends Base {
19
19
  }[];
20
20
  }[];
21
21
  descriptionHtml: string;
22
+ vendor: string;
22
23
  tags: (string | null)[];
23
24
  files: {
24
25
  originalSource: string;
@@ -354,7 +354,7 @@ class Product extends Base_1.default {
354
354
  variant.price = this.consignmentAttributes.salePrice;
355
355
  variant.compareAtPrice = this.attributes.price || variant.compareAtPrice;
356
356
  }
357
- return Object.assign(Object.assign({ title }, (statusToInclude ? { status: statusToInclude } : {})), { productOptions: [{ name: 'Variant', values: [{ name: title }] }], descriptionHtml: this.attributes.description, tags,
357
+ return Object.assign(Object.assign({ title }, (statusToInclude ? { status: statusToInclude } : {})), { productOptions: [{ name: 'Variant', values: [{ name: title }] }], descriptionHtml: this.attributes.description, vendor: this.filterAttributes.brand, tags,
358
358
  files, variants: [variant] });
359
359
  }
360
360
  // Multi-variant: derive axes and values from variantInventory
@@ -431,7 +431,7 @@ class Product extends Base_1.default {
431
431
  }
432
432
  return variant;
433
433
  });
434
- return Object.assign(Object.assign({ title }, (statusToInclude ? { status: statusToInclude } : {})), { productOptions, descriptionHtml: this.attributes.description, tags,
434
+ return Object.assign(Object.assign({ title }, (statusToInclude ? { status: statusToInclude } : {})), { productOptions, descriptionHtml: this.attributes.description, vendor: this.filterAttributes.brand, tags,
435
435
  files,
436
436
  variants });
437
437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.5.9",
3
+ "version": "4.6.0",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",