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

immutable-devtools

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable-devtools - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

dist/index.js

@@ -1,1 +0,1 @@

!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.immutableDevTools=t():n.immutableDevTools=t()}(this,function(){return function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return n[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var e={};return t.m=n,t.c=e,t.p="",t(0)}([function(n,t,e){"use strict";var r=e(1);"undefined"!=typeof Immutable&&(Immutable.installDevTools=install.bind(null,Immutable));var o=!1;n.exports=function(n){if("undefined"==typeof window)throw new Error("Can only install immutable-devtools in a browser environment.");o!==!0&&(window.devtoolsFormatters=window.devtoolsFormatters||[],window.devtoolsFormatters.push(r(n)),o=!0)}},function(n,t){"use strict";function e(n){if(Array.isArray(n)){for(var t=0,e=Array(n.length);t<n.length;t++)e[t]=n[t];return e}return Array.from(n)}var r={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px"},o={style:"color:#881391"};n.exports=function(n){function t(n,t){return void 0===n?"undefined":["object",{object:n,config:t}]}function u(n){return n.size>0}function a(n){return["span",o,n+": "]}function i(n){var o=n.map(function(n,e){return["li",a(e),t(n)]}).toList().toJS();return["ol",r].concat(e(o))}function d(n){var o=n.map(function(n){return["li",t(n)]}).toJS();return["ol",r].concat(e(o))}function c(t){return t instanceof n.Record?v:Object.keys(x).filter(function(e){return n[e]["is"+e](t)}).map(function(n){return x[n]}).concat(f)[0]}var s={},f={header:function(n,e){return e===s?null:t(n,s)},hasBody:function(n,t){return!1},body:function(n,t){return null}},l={header:function(){return["span","Map"]},hasBody:u,body:i},p={header:function(){return["span","OrderedMap"]},hasBody:u,body:i},y={header:function(){return["span","List"]},hasBody:u,body:i},m={header:function(){return["span","Stack"]},hasBody:u,body:d},h={header:function(){return["span","Set"]},hasBody:u,body:d},b={header:function(){return["span","OrderedSet"]},hasBody:u,body:d},v={header:function(n){var t=n._name||n.constructor.name||"Record";return["span",t]},hasBody:u,body:function(n){var o=n.keySeq().map(function(e){return["li",a(e),t(n.get(e))]}).toJS();return["ol",r].concat(e(o))}},x={OrderedMap:p,OrderedSet:b,List:y,Map:l,Set:h,Stack:m};return{header:function(n,t){return c(n).header(n,t)},hasBody:function(n,t){return c(n).hasBody(n,t)},body:function(n,t){return c(n).body(n,t)}}}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.immutableDevTools=t():e.immutableDevTools=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){if("undefined"==typeof window)throw new Error("Can only install immutable-devtools in a browser environment.");if(i!==!0){window.devtoolsFormatters=window.devtoolsFormatters||[];var t=(0,u["default"])(e),r=t.RecordFormatter,n=t.OrderedMapFormatter,o=t.OrderedSetFormatter,a=t.ListFormatter,s=t.MapFormatter,l=t.SetFormatter,d=t.StackFormatter;window.devtoolsFormatters.push(r,n,o,a,s,l,d),i=!0}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=r(1),u=n(a);"undefined"!=typeof Immutable&&(Immutable.installDevTools=o.bind(null,Immutable));var i=!1},function(e,t){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function n(e){var t=function(e,t){return"undefined"==typeof e?["span",d,"undefined"]:"null"===e?["span",d,"null"]:["object",{object:e,config:t}]},n=function(e){var t=arguments.length<=1||void 0===arguments[1]?"Iterable":arguments[1];return["span",["span",a,t],["span","["+e.size+"]"]]},c=function(e,t){return e.size>0&&!(t&&t.noPreview)},f=function(e,t){var n=e.map(t).toList().toJS();return["ol",o].concat(r(n))},p={header:function(n,o){if(!(n instanceof e.Record))return null;var i=n.clear(),s=!e.is(i,n);if(o&&o.noPreview)return["span",s?a:d,n._name||n.constructor.name||"Record"];var c=void 0;if(s){var f=n.keySeq().reduce(function(r,o){return e.is(i.get(o),n.get(o))?r:(r.length&&r.push(", "),r.push(["span",{},["span",u,o+": "],t(n.get(o),{noPreview:!0})]),r)},[]);c=["span",l,"{"].concat(r(f),["}"])}else c=["span",l,"{}"];return["span",{},["span",a,n._name||n.constructor.name||"Record"]," ",c]},hasBody:c,body:function(n){var a=n.clear(),u=n.keySeq().map(function(r){var o=e.is(a.get(r),n.get(r))?i:s;return["li",{},["span",o,r+": "],t(n.get(r))]}).toJS();return["ol",o].concat(r(u))}},m={header:function(t){return e.List.isList(t)?n(t,"List"):null},hasBody:c,body:function(e){return f(e,function(e,r){return["li",["span",u,r+": "],t(e)]})}},y={header:function(t){return e.Stack.isStack(t)?n(t,"Stack"):null},hasBody:c,body:function(e){return f(e,function(e,r){return["li",["span",u,r+": "],t(e)]})}},v={header:function(t){return e.Map.isMap(t)?n(t,"Map"):null},hasBody:c,body:function(e){return f(e,function(e,r){return["li",{},"{",t(r)," => ",t(e),"}"]})}},b={header:function(t){return e.OrderedMap.isOrderedMap(t)?n(t,"OrderedMap"):null},hasBody:c,body:function(e){return f(e,function(e,r){return["li",{},"{",t(r)," => ",t(e),"}"]})}},h={header:function(t){return e.Set.isSet(t)?n(t,"Set"):null},hasBody:c,body:function(e){return f(e,function(e){return["li",t(e)]})}},S={header:function(t){return e.OrderedSet.isOrderedSet(t)?n(t,"OrderedSet"):null},hasBody:c,body:function(e){return f(e,function(e){return["li",t(e)]})}};return{RecordFormatter:p,OrderedMapFormatter:b,OrderedSetFormatter:S,ListFormatter:m,MapFormatter:v,SetFormatter:h,StackFormatter:y}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var o={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},a={style:"color: rgb(232,98,0)"},u={style:"color: #881391"},i={style:"color: #777"},s={style:"color: #881391; font-weight: bolder"},l={style:"color: #777; font-style: italic"},d={style:"color: #777"}}])});
{
"name": "immutable-devtools",
"version": "0.0.5",
"version": "0.0.6",
"description": "Chrome Dev Tools formatter for the Immutable JS library",

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

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