deep-core
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -49,41 +49,26 @@ /** | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var _loop = function (i) { | ||
if (!methods.hasOwnProperty(i)) { | ||
return 'continue'; | ||
} | ||
try { | ||
var _loop = function () { | ||
var prop = _step.value; | ||
var prop = methods[i]; | ||
if (!handler.hasOwnProperty(prop) && explMethods.indexOf(prop) === -1) { | ||
return 'continue'; | ||
} | ||
if (!handler.hasOwnProperty(prop) && explMethods.indexOf(prop) === -1) { | ||
return 'continue'; | ||
} | ||
if (typeof handler[prop] === 'function') { | ||
Object.defineProperty(_this._target, prop, { | ||
value: function value() { | ||
return handler[prop].apply(handler, arguments); | ||
} | ||
}); | ||
} | ||
}; | ||
if (typeof handler[prop] === 'function') { | ||
Object.defineProperty(_this._target, prop, { | ||
value: function value() { | ||
return handler[prop].apply(handler, arguments); | ||
} | ||
}); | ||
} | ||
}; | ||
for (var _iterator = methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var _ret = _loop(); | ||
for (var i in methods) { | ||
var _ret = _loop(i); | ||
if (_ret === 'continue') continue; | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator['return']) { | ||
_iterator['return'](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
if (_ret === 'continue') continue; | ||
} | ||
@@ -90,0 +75,0 @@ |
@@ -39,33 +39,18 @@ 'use strict'; | ||
value: function add() { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
for (var _len2 = arguments.length, instances = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
instances[_key2] = arguments[_key2]; | ||
} | ||
try { | ||
for (var _len2 = arguments.length, instances = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
instances[_key2] = arguments[_key2]; | ||
for (var i in instances) { | ||
if (!instances.hasOwnProperty(i)) { | ||
continue; | ||
} | ||
for (var _iterator = instances[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var instance = _step.value; | ||
var instance = instances[i]; | ||
if (!(instance instanceof this._proto)) { | ||
throw new Error('The object ' + instance.constructor.name + ' is not an instance of ' + this._proto.name); | ||
} | ||
if (!(instance instanceof this._proto)) { | ||
throw new Error('The object ' + instance.constructor.name + ' is not an instance of ' + this._proto.name); | ||
} | ||
this._vector.push(instance); | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator['return']) { | ||
_iterator['return'](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
this._vector.push(instance); | ||
} | ||
@@ -72,0 +57,0 @@ |
{ | ||
"name": "deep-core", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "DEEP Core Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
651777
2293