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

amocrm-js

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amocrm-js - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

.DS_Store

1

dist/base/AmoConnection.js

@@ -96,2 +96,3 @@ 'use strict';

this._isConnected = false;
this._request.clear();
this.triggerEvent('beforeReconnect', true);

@@ -98,0 +99,0 @@ return this.connect();

2

package.json
{
"name": "amocrm-js",
"version": "1.0.15",
"version": "1.0.16",
"description": "JS Library for AmoCRM",

@@ -5,0 +5,0 @@ "main": "dist/AmoCRM.js",

@@ -155,3 +155,3 @@ import AmoCRM from '../src/AmoCRM';

xit( 'long requests check', async done => {
fit( 'long requests check', async done => {
const { domain, auth: { hash, login } } = config,

@@ -167,5 +167,7 @@ crm = new AmoCRM({

),
delayValue = 15 * 60 * 1000;
delayValue = 16 * 60 * 1000;
crm.on( 'connection:beforeReconnect', () => console.log( 'reconnected' ));
await crm.connect();
console.log( 'connected' );

@@ -177,6 +179,9 @@ for ( let i = 0; i < 5; i++ ) {

await lead.save();
console.log( 'saved' );
await delay( delayValue );
await lead.remove();
console.log( 'removed' );
await delay( delayValue );
await crm.request.get( '/api/v2/leads' );
console.log( 'info found' );
await delay( delayValue );

@@ -183,0 +188,0 @@ }

@@ -74,2 +74,3 @@ 'use strict';

this._isConnected = false;
this._request.clear();
this.triggerEvent( 'beforeReconnect', true );

@@ -76,0 +77,0 @@ return this.connect();

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