idea-toolbox
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -7,5 +7,6 @@ /** | ||
* Object initialization, with a bulk set of its attributes. | ||
* @param {any} attributes | ||
* @param {any} attributes the attributes, except the keys | ||
* @param {any} keys the keys to set | ||
*/ | ||
constructor(attributes?: any); | ||
constructor(attributes?: any, keys?: any); | ||
/** | ||
@@ -12,0 +13,0 @@ * Valide the object's attributes, performing all the checkings. |
@@ -9,5 +9,10 @@ "use strict"; | ||
* Object initialization, with a bulk set of its attributes. | ||
* @param {any} attributes | ||
* @param {any} attributes the attributes, except the keys | ||
* @param {any} keys the keys to set | ||
*/ | ||
constructor(attributes) { | ||
constructor(attributes, keys) { | ||
if (keys) { | ||
// e.g. this.keyAttr = keys.keyAttr || null; | ||
// ... | ||
} | ||
attributes = attributes || {}; | ||
@@ -14,0 +19,0 @@ // e.g. this.attr = attributes.attr || null; |
{ | ||
"name": "idea-toolbox", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -7,5 +7,10 @@ /** | ||
* Object initialization, with a bulk set of its attributes. | ||
* @param {any} attributes | ||
* @param {any} attributes the attributes, except the keys | ||
* @param {any} keys the keys to set | ||
*/ | ||
constructor(attributes?: any) { | ||
constructor(attributes?: any, keys?: any) { | ||
if(keys) { | ||
// e.g. this.keyAttr = keys.keyAttr || null; | ||
// ... | ||
} | ||
attributes = attributes || {}; | ||
@@ -15,3 +20,3 @@ // e.g. this.attr = attributes.attr || null; | ||
} | ||
/** | ||
@@ -18,0 +23,0 @@ * Valide the object's attributes, performing all the checkings. |
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
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
3923064
3736