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.16 to 0.0.17

2

dist/index.d.ts
import { iParams } from './types';
export default function SandAmo(amoUrl: string): {
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string, desc?: string) => iParams;
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string, comment?: 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', desc) {
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru', comment) {
var _a, _b, _c, _d, _e, _f, _g;

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

productCode,
desc,
comment,
};

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

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

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

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

{
"name": "@modulbank/sendamo",
"version": "0.0.16",
"version": "0.0.17",
"description": "send to amocrm method",

@@ -5,0 +5,0 @@ "homepage": "",

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