@modulbank/sendamo
Advanced tools
Comparing version 0.0.20 to 0.0.22
@@ -0,0 +0,0 @@ import { iParams } from './types'; |
@@ -10,2 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// для получение любых параметров кук по ключу | ||
function getCookie(name) { | ||
const matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)")); | ||
return matches ? decodeURIComponent(matches[1]) : undefined; | ||
} | ||
export default function SandAmo(amoUrl) { | ||
@@ -63,2 +68,3 @@ const url = amoUrl; | ||
firstName: name, | ||
ym_id: getCookie("_ym_uid"), | ||
actionType, | ||
@@ -65,0 +71,0 @@ productCode, |
@@ -27,3 +27,4 @@ declare type funnels = 'Agenti' | 'kassy_onlayn' | 'Predoplata' | 'Partners' | 'Corporate' | 'InternetEkvairing' | 'bank'; | ||
click_id?: clicks; | ||
ym_id?: string; | ||
} | ||
export {}; |
@@ -0,0 +0,0 @@ var clicks; |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.20", | ||
"version": "0.0.22", | ||
"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
6626
147