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.1.0-beta.1 to 3.1.0-beta.2

2

dist/Client.d.ts

@@ -15,3 +15,3 @@ import "reflect-metadata";

* */
export default class Client extends EventEmitter {
export declare class Client extends EventEmitter {
readonly token: Token;

@@ -18,0 +18,0 @@ readonly environment: Environment;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
const tslib_1 = require("tslib");

@@ -40,4 +41,3 @@ require("reflect-metadata");

}
exports.default = Client;
module.exports = Client;
exports.Client = Client;
//# sourceMappingURL=Client.js.map

@@ -1,2 +0,1 @@

import Client from './Client';
export default Client;
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Client_1 = tslib_1.__importDefault(require("./Client"));
exports.default = Client_1.default;
const Client_1 = require("./Client");
/**
* Функция обратной совместимости
* */
function BackwardCompatibility(options) {
console.warn('\x1b[33m%s\x1b[0m', 'ВНИМАНИЕ');
console.warn('Используйте');
console.warn('\x1b[32m%s\x1b[0m', 'const { Client } = require("amocrm-js")');
console.warn('Вместо');
console.warn('\x1b[31m%s\x1b[0m', 'const Client = require("amocrm-js")');
console.warn('\x1b[33m%s\x1b[0m', 'В будущих версиях библиотеки старый способ будет удалён');
return new Client_1.Client(options);
}
BackwardCompatibility.Client = Client_1.Client;
module.exports = BackwardCompatibility;
//# sourceMappingURL=index.js.map
const ngrok = require('ngrok');
const Client = require('amocrm-js');
const { Client } = require('amocrm-js');

@@ -4,0 +4,0 @@ const run = async () => {

@@ -1,2 +0,2 @@

const client = require('../client');
const { Client } = require('../client');

@@ -3,0 +3,0 @@ const run = async () => {

@@ -1,2 +0,2 @@

const client = require('../client');
const { Client } = require('../client');

@@ -3,0 +3,0 @@ const run = async () => {

@@ -1,2 +0,2 @@

const client = require('../client');
const { Client } = require('../client');

@@ -3,0 +3,0 @@ const run = async () => {

@@ -1,2 +0,2 @@

const Client = require('amocrm-js');
const { Client } = require('amocrm-js');
const token = require('./token.js');

@@ -3,0 +3,0 @@

{
"name": "amocrm-js",
"version": "3.1.0-beta.1",
"version": "3.1.0-beta.2",
"description": "JS Library for AmoCRM",
"main": "./dist/Client.js",
"types": "./dist/Client.d.ts",
"main": "./dist/index.js",
"directories": {

@@ -11,3 +10,3 @@ "test": "test"

"engines": {
"node": ">= 13.0.0"
"node": ">=12"
},

@@ -14,0 +13,0 @@ "scripts": {

@@ -9,2 +9,14 @@ # AmoCRM

> :warning: **Для возможности ES6 импорта **
Было:
```js
const Client = require('amocrm-js');
```
Стало
```js
const { Client } = require('amocrm-js');
```
Документация: https://usefulweb.github.io/AmoCRM

@@ -50,5 +62,12 @@

```js
const Client = require('amocrm-js');
const { Client } = require('amocrm-js');
```
ES6:
```js
import { Client } from 'amocrm-js'
```
## Содержание

@@ -305,3 +324,3 @@

```js
const Client = require('amocrm-js');
const { Client } = require('amocrm-js');

@@ -308,0 +327,0 @@ const client = new Client({

@@ -18,3 +18,3 @@ import "reflect-metadata";

* */
export default class Client extends EventEmitter {
export class Client extends EventEmitter {
public readonly token: Token;

@@ -60,3 +60,1 @@ public readonly environment: Environment;

}
module.exports = Client;

@@ -1,2 +0,19 @@

import Client from './Client';
export default Client;
import { Client } from './Client';
import { IClientOptions } from "./interfaces/common";
/**
* Функция обратной совместимости
* */
function BackwardCompatibility(options: IClientOptions) {
console.warn('\x1b[33m%s\x1b[0m', 'ВНИМАНИЕ');
console.warn('Используйте');
console.warn('\x1b[32m%s\x1b[0m', 'const { Client } = require("amocrm-js")');
console.warn('Вместо')
console.warn('\x1b[31m%s\x1b[0m', 'const Client = require("amocrm-js")');
console.warn('\x1b[33m%s\x1b[0m', 'В будущих версиях библиотеки старый способ будет удалён');
return new Client(options);
}
BackwardCompatibility.Client = Client;
module.exports = BackwardCompatibility;
import * as fs from "fs";
import * as path from "path";
import Client from "../../../src/Client";
import { Client } from "../../../src/Client";
import config from "../../config";

@@ -6,0 +6,0 @@ jest.setTimeout(60 * 1000);

import * as fs from "fs";
import * as path from "path";
import Client from "../../src/Client";
import { Client } from "../../src/Client";
import config from "../config";

@@ -6,0 +6,0 @@ import ResourcePagination from "../../src/api/ResourcePagination";

import ngrok from 'ngrok';
import "./bootstrap";
import config from "./config";
import Client from "../src/Client";
import { Client } from "../src/Client";
import Connection from "../src/common/Connection";

@@ -6,0 +6,0 @@

import './bootstrap';
import Client from "../src/Client";
import { Client } from "../src/Client";
import config from "./config";

@@ -4,0 +4,0 @@ import { delay } from "../src/util";

import "./bootstrap";
import config from "./config";
import Client from "../src/Client";
import ES6Client from '../dist/Client';
import { Client } from "../src/Client";
import { Client as ES6Client } from '../dist/Client';

@@ -6,0 +6,0 @@ describe('Client', () => {

import Connection from "../src/common/Connection";
import Client from "../src/Client";
import { Client } from "../src/Client";
import config from "./config";

@@ -4,0 +4,0 @@

@@ -1,2 +0,2 @@

import Client from "../dist/Client";
import { Client } from "../dist/Client";
import config, { CODE } from "./config";

@@ -3,0 +3,0 @@ import * as fs from "fs";

import "./bootstrap";
import config from "./config";
import Client from "../src/Client";
import { Client } from "../src/Client";

@@ -5,0 +5,0 @@ describe('Environment', () => {

import * as fs from "fs";
import * as path from "path";
import './bootstrap';
import Client from "../src/Client";
import { Client } from "../src/Client";
import config, { CODE } from "./config";

@@ -6,0 +6,0 @@ import { ITokenData } from "../src/interfaces/common";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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