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

@modulbank/sendamo

Package Overview
Dependencies
Maintainers
3
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.15 to 0.0.16

2

dist/index.d.ts
import { iParams } from './types';
export default function SandAmo(amoUrl: string): {
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string) => iParams;
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string, desc?: string) => iParams;
sendAmo: (params: iParams) => Promise<{}>;
};

@@ -13,3 +13,3 @@ 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}$/;
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru') {
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru', desc) {
var _a, _b, _c, _d, _e, _f, _g;

@@ -48,2 +48,3 @@ if (!regexp.test(phoneNumber)) {

productCode,
desc,
};

@@ -50,0 +51,0 @@ if (params.utmSource === 'modulkassa.pro')

@@ -19,2 +19,3 @@ declare type funnels = 'Agenti' | 'kassy_onlayn' | 'Predoplata' | 'Partners' | 'Corporate' | 'InternetEkvairing' | 'bank';

actionType?: string;
desc?: string;
product1?: string;

@@ -21,0 +22,0 @@ product2?: string;

export * from './dist';

@@ -0,0 +0,0 @@ "use strict";

import SendAmo from './dist';
export default SendAmo;
{
"name": "@modulbank/sendamo",
"version": "0.0.15",
"version": "0.0.16",
"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