@modulbank/sendamo
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -14,3 +14,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru') { | ||
var _a, _b; | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
if (!regexp.test(phoneNumber)) { | ||
@@ -42,4 +42,4 @@ console.error('Error phone number type'); | ||
utmTerm: current.trm, | ||
google_id: window.digitalData.user.googleClientId, | ||
city: window.digitalData.context.location.city, | ||
google_id: (_d = (_c = window.digitalData) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.googleClientId, | ||
city: (_g = (_f = (_e = window.digitalData) === null || _e === void 0 ? void 0 : _e.context) === null || _f === void 0 ? void 0 : _f.location) === null || _g === void 0 ? void 0 : _g.city, | ||
phone: phoneNumber.replace(/[ \-()_]/g, ''), | ||
@@ -46,0 +46,0 @@ firstName: name, |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "send to amocrm method", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6159