@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.umd.js
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
var name = "@artisan-commerce/analytics-web";
|
|
43
43
|
var description = "Artisn commerce analytics web library";
|
|
44
|
-
var version = "0.2.0-canary.
|
|
44
|
+
var version = "0.2.0-canary.69";
|
|
45
45
|
var main = "./dist/bundle.cjs.js";
|
|
46
46
|
var module = "./dist/bundle.esm.js";
|
|
47
47
|
var types = "./dist/bundle.d.ts";
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"snake-case": "^3.0.4"
|
|
83
83
|
};
|
|
84
84
|
var devDependencies = {
|
|
85
|
-
"@artisan-commerce/products": "0.9.0-canary.
|
|
86
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
87
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
85
|
+
"@artisan-commerce/products": "0.9.0-canary.43",
|
|
86
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.66",
|
|
87
|
+
"@artisan-commerce/types": "0.14.0-canary.34"
|
|
88
88
|
};
|
|
89
89
|
var peerDependencies = {
|
|
90
90
|
"@artisan-commerce/products": "*",
|
|
@@ -14016,11 +14016,11 @@ ${key}: ${value}`;
|
|
|
14016
14016
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
14017
14017
|
const updateActiveVendor = (vendor) => {
|
|
14018
14018
|
const vendorType = typeof vendor;
|
|
14019
|
-
if (vendorType !== "
|
|
14020
|
-
return logMessage("The type of vendor must be a
|
|
14019
|
+
if (vendorType !== "string" && vendor !== -1 && vendorType !== "object" && vendorType !== "undefined") {
|
|
14020
|
+
return logMessage("The type of vendor must be a string, -1 or Vendor type", "severe");
|
|
14021
14021
|
}
|
|
14022
14022
|
const oldState = getState$1();
|
|
14023
|
-
if (typeof vendor === "
|
|
14023
|
+
if (typeof vendor === "string" || typeof vendor === "undefined" || vendor === -1) {
|
|
14024
14024
|
setState(__spreadProps(__spreadValues({}, oldState), {
|
|
14025
14025
|
activeVendor: vendor,
|
|
14026
14026
|
meta: __spreadProps(__spreadValues({}, oldState.meta), { vendorName: void 0, vendorId: vendor })
|