Comparing version 1.0.15 to 1.0.16
@@ -96,2 +96,3 @@ 'use strict'; | ||
this._isConnected = false; | ||
this._request.clear(); | ||
this.triggerEvent('beforeReconnect', true); | ||
@@ -98,0 +99,0 @@ return this.connect(); |
{ | ||
"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(); |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
187258
120
3715
10