@artisan-commerce/analytics-capacitor 0.1.0-canary.15 → 0.1.0-canary.17
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/dist/bundle.cjs.js +4 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.esm.js +4 -3
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +4 -3
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/bundle.cjs.js
CHANGED
|
@@ -46,7 +46,7 @@ const getState$1 = () => {
|
|
|
46
46
|
|
|
47
47
|
var name = "@artisan-commerce/analytics-capacitor";
|
|
48
48
|
var description = "Artisn commerce analytics capacitor library";
|
|
49
|
-
var version = "0.1.0-canary.
|
|
49
|
+
var version = "0.1.0-canary.16";
|
|
50
50
|
var main = "./dist/bundle.cjs.js";
|
|
51
51
|
var module$1 = "./dist/bundle.esm.js";
|
|
52
52
|
var types = "./dist/bundle.d.ts";
|
|
@@ -80,7 +80,7 @@ var dependencies = {
|
|
|
80
80
|
};
|
|
81
81
|
var devDependencies = {
|
|
82
82
|
"@artisan-commerce/products": "0.9.0-canary.54",
|
|
83
|
-
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.
|
|
83
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.80",
|
|
84
84
|
"@artisan-commerce/state": "0.3.0-canary.9",
|
|
85
85
|
"@artisan-commerce/types": "0.14.0-canary.38",
|
|
86
86
|
"@capacitor-community/firebase-analytics": "^1.0.1",
|
|
@@ -625,7 +625,7 @@ const initAnalytics = (config) => {
|
|
|
625
625
|
if (!checkUniqueProviderTrackerIds(providers)) {
|
|
626
626
|
return logMessage("Providers trackerId must be unique, check that no provider trackerId are repeated", "severe");
|
|
627
627
|
}
|
|
628
|
-
const _a = config, { meta } = _a, rest = __objRest$3V(_a, ["meta"]);
|
|
628
|
+
const _a = config, { meta, onInit } = _a, rest = __objRest$3V(_a, ["meta", "onInit"]);
|
|
629
629
|
const { platform = "web" } = meta;
|
|
630
630
|
const enhancedProviders = shareArtisnAnalytics ? [GlobalProvider.instance, ...providers] : providers;
|
|
631
631
|
const enhancedConfig = __spreadProps$2t(__spreadValues$3Y({}, rest), {
|
|
@@ -659,6 +659,7 @@ const initAnalytics = (config) => {
|
|
|
659
659
|
GlobalProvider.instance.updateConfig(globalProviderConfig);
|
|
660
660
|
GlobalProvider.instance.setVendors(allVendors);
|
|
661
661
|
setState({ initialized: true });
|
|
662
|
+
onInit == null ? void 0 : onInit();
|
|
662
663
|
};
|
|
663
664
|
|
|
664
665
|
var __defProp$3X = Object.defineProperty;
|