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.9 to 1.0.10

dist/base/EntityTarget.js

8

dist/base/factories/EntityFactory.js

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

var _EntityTarget = require("../EntityTarget");
var _EntityTarget2 = _interopRequireDefault(_EntityTarget);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -42,6 +46,7 @@

entityHandlerClass = _constructor.entityHandlerClass,
entityTargetClass = _constructor.entityTargetClass,
entity = new entityClass(this._resource, attributes),
handler = new entityHandlerClass(entity);
return new Proxy({}, handler);
return new Proxy(new entityTargetClass(entityClass.name), handler);
}

@@ -98,2 +103,3 @@ }, {

EntityFactory.entityHandlerClass = _EntityProxyHandler2.default;
EntityFactory.entityTargetClass = _EntityTarget2.default;
exports.default = EntityFactory;

2

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

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

import ResourceFactory from "./ResourceFactory";
import EntityHandler from "../EntityProxyHandler";
import EntityTarget from "../EntityTarget";
class EntityFactory extends ResourceFactory {
static entityHandlerClass = EntityHandler;
static entityTargetClass = EntityTarget;
create( attributes={}) {
const { entityClass, entityHandlerClass } = this.constructor,
const { entityClass, entityHandlerClass, entityTargetClass } = this.constructor,
entity = new entityClass( this._resource, attributes ),
handler = new entityHandlerClass( entity );
return new Proxy({}, handler );
return new Proxy( new entityTargetClass( entityClass.name ), handler );
}

@@ -13,0 +15,0 @@

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