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 3.0.0 to 3.0.1

tests/token.json

4

dist/common/Connection.js

@@ -69,2 +69,6 @@ "use strict";

case 4:
if (tokenExists) {
this.connected = true;
return [2 /*return*/, this.connected];
}
if (!hasCode && !tokenExists) {

@@ -71,0 +75,0 @@ throw new Error('NO_TOKEN_AND_CODE');

2

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

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

@@ -59,7 +59,2 @@ # AmoCRM

```js
/*
const Client =
*/
const client = new Client({

@@ -162,3 +157,3 @@ // логин пользователя в портале, где адрес портала domain.amocrm.ru

```js
const result = await client.request.make( 'GET', '/api/v4/account' );
const result = await client.request.make('GET', '/api/v4/account');
// возвращает тело ответа

@@ -356,3 +351,3 @@ console.log(result.data);

client.connection.on('change', () => {
console.error('Произошла ошибка соединения');
console.error('Токен обновлён');
})

@@ -407,2 +402,3 @@ ```

- client.connect -> client.connection.connect
- client.request(method, path, params, options) -> client.request.make(method, path, params, options)
- client.connection.getAuthUrl() -> client.auth.getUrl()

@@ -409,0 +405,0 @@ - client.connection.setState(state) -> client.environment.set('auth.state', state)

@@ -66,2 +66,6 @@ import EventEmitter from "./EventEmitter";

}
if (tokenExists) {
this.connected = true;
return this.connected;
}
if (!hasCode && !tokenExists) {

@@ -68,0 +72,0 @@ throw new Error('NO_TOKEN_AND_CODE');

Sorry, the diff of this file is not supported yet

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