@artisan-commerce/analytics-web 0.2.0-canary.69 → 0.2.0-canary.70

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.
@@ -35,7 +35,7 @@ const getState$2 = () => {
35
35
 
36
36
  var name = "@artisan-commerce/analytics-web";
37
37
  var description = "Artisn commerce analytics web library";
38
- var version = "0.2.0-canary.68";
38
+ var version = "0.2.0-canary.69";
39
39
  var main = "./dist/bundle.cjs.js";
40
40
  var module = "./dist/bundle.esm.js";
41
41
  var types = "./dist/bundle.d.ts";
@@ -76,9 +76,9 @@ var dependencies = {
76
76
  "snake-case": "^3.0.4"
77
77
  };
78
78
  var devDependencies = {
79
- "@artisan-commerce/products": "0.9.0-canary.42",
80
- "@artisan-commerce/shopping-cart": "0.12.0-canary.65",
81
- "@artisan-commerce/types": "0.14.0-canary.33"
79
+ "@artisan-commerce/products": "0.9.0-canary.43",
80
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.66",
81
+ "@artisan-commerce/types": "0.14.0-canary.34"
82
82
  };
83
83
  var peerDependencies = {
84
84
  "@artisan-commerce/products": "*",
@@ -14010,11 +14010,11 @@ var __spreadValues = (a, b) => {
14010
14010
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14011
14011
  const updateActiveVendor = (vendor) => {
14012
14012
  const vendorType = typeof vendor;
14013
- if (vendorType !== "number" && vendorType !== "object" && vendorType !== "undefined") {
14014
- return logMessage("The type of vendor must be a number or Vendor type", "severe");
14013
+ if (vendorType !== "string" && vendor !== -1 && vendorType !== "object" && vendorType !== "undefined") {
14014
+ return logMessage("The type of vendor must be a string, -1 or Vendor type", "severe");
14015
14015
  }
14016
14016
  const oldState = getState$1();
14017
- if (typeof vendor === "number" || typeof vendor === "undefined") {
14017
+ if (typeof vendor === "string" || typeof vendor === "undefined" || vendor === -1) {
14018
14018
  setState(__spreadProps(__spreadValues({}, oldState), {
14019
14019
  activeVendor: vendor,
14020
14020
  meta: __spreadProps(__spreadValues({}, oldState.meta), { vendorName: void 0, vendorId: vendor })