Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@modulbank/sendamo

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modulbank/sendamo - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

0

dist/index.d.ts

@@ -0,0 +0,0 @@ import { iParams } from './types';

12

dist/index.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc