@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.
- package/CHANGELOG.md +9 -0
- package/dist/bundle.cjs.js +7 -7
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +467 -467
- package/dist/bundle.esm.js +7 -7
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +7 -7
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -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.
|
|
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.
|
|
80
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
81
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
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 !== "
|
|
14014
|
-
return logMessage("The type of vendor must be a
|
|
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 === "
|
|
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 })
|