Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

idea-toolbox

Package Overview
Dependencies
Maintainers
1
Versions
381
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-toolbox - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

5

dist/resource.d.ts

@@ -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

dist/resource.js

@@ -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

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