@modulbank/sendamo
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -0,0 +0,0 @@ import { iParams } from './types'; |
@@ -13,2 +13,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const regexp = /^\+(\s)?\d{1,2}\s?(\()?\d{3,5}(\))?\s?\d{1,3}[-\s]?\d{2}[-\s]?\d{2}$/; | ||
// для получение любых параметров get запроса по ключу | ||
let queryParams = window | ||
.location | ||
.search | ||
.replace('?', '') | ||
.split('&') | ||
.reduce(function (p, e) { | ||
let a = e.split('='); | ||
p[decodeURIComponent(a[0])] = decodeURIComponent(a[1]); | ||
return p; | ||
}, {}); | ||
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru', comment) { | ||
@@ -44,2 +55,3 @@ var _a, _b, _c, _d, _e, _f, _g; | ||
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, | ||
a_aid: queryParams['a_aid'], | ||
phone: phoneNumber.replace(/[ \-()_]/g, ''), | ||
@@ -46,0 +58,0 @@ firstName: name, |
@@ -17,2 +17,3 @@ declare type funnels = 'Agenti' | 'kassy_onlayn' | 'Predoplata' | 'Partners' | 'Corporate' | 'InternetEkvairing' | 'bank'; | ||
city?: string; | ||
a_aid?: string; | ||
phone?: string; | ||
@@ -19,0 +20,0 @@ actionType?: string; |
@@ -0,0 +0,0 @@ var clicks; |
export * from './dist'; |
@@ -0,0 +0,0 @@ "use strict"; |
import SendAmo from './dist'; | ||
export default SendAmo; |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "send to amocrm method", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
@@ -0,0 +0,0 @@ # SendAmo method |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
6116
135
2