New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

immutable-js-debuglog

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable-js-debuglog - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

17

index.js

@@ -8,2 +8,17 @@

};
}();
function unJSDeep(variable) {
const isObject = variable && typeof variable === 'object';
const isArray = isObject && Array.isArray(variable);
if (isObject) {
variable = !isArray && typeof variable.toJS === 'function' ? variable.toJS() : variable;
variable = Object.entries(variable).reduce((acc, [subVarKey, subVarVal]) => { acc[subVarKey] = unJSDeep(subVarVal); return acc; }, isArray ? [] : {});
}
return variable;
}
console.deepDebugLog = function () {
console.log(...Object.values(arguments || {}).map(unJSDeep));
};
}();
{
"name": "immutable-js-debuglog",
"version": "1.0.1",
"version": "1.0.2",
"description": "easy logging immutable-js objects as plain JavaScript Arrays and Objects",

@@ -11,6 +11,17 @@ "main": "index.js",

"scripts": {
"publish": "np --no-tests",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"immutable",
"js",
"console",
"debug",
"log"
],
"author": "idan saban",
"license": "ISC"
"license": "ISC",
"dependencies": {
"np": "^6.3.2"
}
}
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