Skip to content

Commit

Permalink
update analytics product transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
David Tai committed Jul 10, 2020
1 parent ad83129 commit f0f154c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
19 changes: 2 additions & 17 deletions dist/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

}).call(commonjsGlobal);

//# sourceMappingURL=performance-now.js.map

});

var root = typeof window === 'undefined' ? commonjsGlobal : window
Expand Down Expand Up @@ -6803,7 +6803,6 @@
if (immediate && !timeout) func.apply(context, args);
};
}
//# sourceMappingURL=index.esm.js.map

var common = {
black: '#000',
Expand Down Expand Up @@ -46803,7 +46802,6 @@

NumberFormat.propTypes = propTypes$1$1$1;
NumberFormat.defaultProps = defaultProps$2;
//# sourceMappingURL=index.esm.js.map

var createSvgIcon_1 = createCommonjsModule(function (module, exports) {

Expand Down Expand Up @@ -47222,7 +47220,6 @@

return ret
};
//# sourceMappingURL=midstream.esm.js.map

const useMidstream = (config, opts) => {
const [dst, setDst] = React.useState(() => opts.dst || opts.destination || {});
Expand Down Expand Up @@ -52094,7 +52091,6 @@
throw new Error('Required');
};
};
//# sourceMappingURL=index.esm.js.map

const useStyles$7 = makeStyles$1((theme) => ({
form: {
Expand Down Expand Up @@ -57958,7 +57954,6 @@
});
};
}
//# sourceMappingURL=mobxreactlite.esm.js.map

var symbolId = 0;

Expand Down Expand Up @@ -58351,7 +58346,6 @@

if (!React.Component) throw new Error("mobx-react requires React to be available");
if (!observable) throw new Error("mobx-react requires mobx to be available");
//# sourceMappingURL=mobxreact.esm.js.map

var Person = createCommonjsModule(function (module, exports) {

Expand Down Expand Up @@ -75931,7 +75925,6 @@
__metadata$1("design:paramtypes", [Object]),
__metadata$1("design:returntype", Promise)
], Commerce.prototype, "checkout", null);
//# sourceMappingURL=index.esm.js.map

function toString$5(obj) {
return Object.prototype.toString.call(obj)
Expand All @@ -75944,8 +75937,6 @@
return toString$5(value) === '[object Number]';
};

//# sourceMappingURL=number.js.map

// src/index.coffee
var getOwnSymbols$1;
var objectAssign$3;
Expand Down Expand Up @@ -76027,7 +76018,6 @@
return to;
};
})();
//# sourceMappingURL=es-object-assign.mjs.map

// src/cookies.coffee
var Cookies$2;
Expand Down Expand Up @@ -76137,7 +76127,6 @@

// src/index.coffee
var index$4 = new Cookies$1$1();
//# sourceMappingURL=cookies.mjs.map

// src/cookie-storage.coffee
var cookieStorage$1 = (function() {
Expand Down Expand Up @@ -76270,7 +76259,6 @@
return pretendStorage$1;
}
})();
//# sourceMappingURL=akasha.mjs.map

class ShopStore {
constructor(client, analytics, raw = {}) {
Expand All @@ -76291,7 +76279,7 @@
};
Object.assign(this, raw);
this.client = client;
this.commerce = new Commerce(client, undefined, [], [], analytics);
this.commerce = new Commerce(client, undefined, [], [], analytics, raw.analyticsProductTransform);
if (raw.storeId || this.order.storeId) {
this.commerce.setStoreId((_a = raw.storeId) !== null && _a !== void 0 ? _a : this.order.storeId);
}
Expand Down Expand Up @@ -77114,7 +77102,6 @@
Promise$2.settle = settle;

Promise$2.soon = soon$1;
//# sourceMappingURL=broken.mjs.map

// src/parse-headers.coffee
var isArray;
Expand Down Expand Up @@ -77370,7 +77357,6 @@
})();

var XhrPromise$1 = XhrPromise;
//# sourceMappingURL=es-xhr-promise.mjs.map

// node_modules/es-tostring/index.mjs
function toString$6(obj) {
Expand Down Expand Up @@ -78033,7 +78019,6 @@
Hanzo.Client = Client$2;

var Hanzo$1 = Hanzo;
//# sourceMappingURL=hanzo.mjs.map

if (typeof window !== 'undefined') {
window['ShopJS'] = {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/stores/ShopStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class ShopStore {

this.client = client

this.commerce = new Commerce(client, undefined, [], [], analytics)
this.commerce = new Commerce(client, undefined, [], [], analytics, raw.analyticsProductTransform)
if (raw.storeId || this.order.storeId) {
this.commerce.setStoreId(raw.storeId ?? this.order.storeId)
}
Expand Down
2 changes: 1 addition & 1 deletion stats.html

Large diffs are not rendered by default.

0 comments on commit f0f154c

Please sign in to comment.