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

json-diff-kit

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-diff-kit - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9-alpha.3

coverage/lcov-report/cmp.ts.html

10

coverage/coverage-final.json

@@ -1,5 +0,7 @@

{"D:\\Workspace\\json-diff-kit\\src\\utils\\format-value.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\format-value.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},"1":{"start":{"line":1,"column":22},"end":{"line":1,"column":null}},"2":{"start":{"line":3,"column":20},"end":{"line":13,"column":null}},"3":{"start":{"line":4,"column":2},"end":{"line":5,"column":null}},"4":{"start":{"line":5,"column":4},"end":{"line":5,"column":null}},"5":{"start":{"line":7,"column":2},"end":{"line":8,"column":null}},"6":{"start":{"line":8,"column":4},"end":{"line":8,"column":null}},"7":{"start":{"line":10,"column":2},"end":{"line":11,"column":null}},"8":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"9":{"start":{"line":13,"column":2},"end":{"line":13,"column":null}},"10":{"start":{"line":16,"column":15},"end":{"line":16,"column":null}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}},"1":{"name":"(anonymous_9)","decl":{"start":{"line":3,"column":20},"end":{"line":3,"column":21}},"loc":{"start":{"line":3,"column":54},"end":{"line":13,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":33},"end":{"line":3,"column":54}},"type":"default-arg","locations":[{"start":{"line":3,"column":41},"end":{"line":3,"column":54}}]},"1":{"loc":{"start":{"line":4,"column":2},"end":{"line":5,"column":null}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":5,"column":null}}]},"2":{"loc":{"start":{"line":4,"column":6},"end":{"line":4,"column":45}},"type":"binary-expr","locations":[{"start":{"line":4,"column":6},"end":{"line":4,"column":29}},{"start":{"line":4,"column":29},"end":{"line":4,"column":45}}]},"3":{"loc":{"start":{"line":7,"column":2},"end":{"line":8,"column":null}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":8,"column":null}}]},"4":{"loc":{"start":{"line":7,"column":6},"end":{"line":7,"column":57}},"type":"binary-expr","locations":[{"start":{"line":7,"column":6},"end":{"line":7,"column":30}},{"start":{"line":7,"column":30},"end":{"line":7,"column":57}}]},"5":{"loc":{"start":{"line":10,"column":2},"end":{"line":11,"column":null}},"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":11,"column":null}}]}},"s":{"0":11,"1":1,"2":1,"3":9,"4":2,"5":7,"6":2,"7":5,"8":3,"9":2,"10":1},"f":{"0":9,"1":9},"b":{"0":[9],"1":[2],"2":[9,8],"3":[2],"4":[7,6],"5":[3]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\get-type.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\get-type.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"1":{"start":{"line":1,"column":16},"end":{"line":8,"column":null}},"2":{"start":{"line":2,"column":2},"end":{"line":3,"column":null}},"3":{"start":{"line":3,"column":4},"end":{"line":3,"column":null}},"4":{"start":{"line":5,"column":2},"end":{"line":6,"column":null}},"5":{"start":{"line":6,"column":4},"end":{"line":6,"column":null}},"6":{"start":{"line":8,"column":2},"end":{"line":8,"column":null}},"7":{"start":{"line":11,"column":15},"end":{"line":11,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}},"loc":{"start":{"line":1,"column":32},"end":{"line":8,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":3,"column":null}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":3,"column":null}}]},"1":{"loc":{"start":{"line":5,"column":2},"end":{"line":6,"column":null}},"type":"if","locations":[{"start":{"line":5,"column":2},"end":{"line":6,"column":null}}]}},"s":{"0":8,"1":1,"2":6,"3":1,"4":5,"5":1,"6":4,"7":1},"f":{"0":6,"1":6},"b":{"0":[1],"1":[1]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\sort-inner-arrays.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\sort-inner-arrays.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":9,"column":23},"end":{"line":26,"column":null}},"2":{"start":{"line":10,"column":2},"end":{"line":11,"column":null}},"3":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"4":{"start":{"line":13,"column":2},"end":{"line":14,"column":null}},"5":{"start":{"line":14,"column":4},"end":{"line":14,"column":null}},"6":{"start":{"line":16,"column":2},"end":{"line":17,"column":null}},"7":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"8":{"start":{"line":19,"column":2},"end":{"line":20,"column":null}},"9":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"10":{"start":{"line":22,"column":2},"end":{"line":23,"column":null}},"11":{"start":{"line":23,"column":4},"end":{"line":23,"column":null}},"12":{"start":{"line":25,"column":2},"end":{"line":26,"column":null}},"13":{"start":{"line":26,"column":4},"end":{"line":26,"column":null}},"14":{"start":{"line":30,"column":12},"end":{"line":48,"column":null}},"15":{"start":{"line":31,"column":23},"end":{"line":31,"column":null}},"16":{"start":{"line":32,"column":23},"end":{"line":32,"column":null}},"17":{"start":{"line":34,"column":2},"end":{"line":35,"column":null}},"18":{"start":{"line":35,"column":4},"end":{"line":35,"column":null}},"19":{"start":{"line":38,"column":2},"end":{"line":39,"column":null}},"20":{"start":{"line":39,"column":4},"end":{"line":39,"column":null}},"21":{"start":{"line":42,"column":2},"end":{"line":48,"column":null}},"22":{"start":{"line":44,"column":6},"end":{"line":44,"column":null}},"23":{"start":{"line":46,"column":6},"end":{"line":46,"column":null}},"24":{"start":{"line":48,"column":6},"end":{"line":48,"column":null}},"25":{"start":{"line":52,"column":24},"end":{"line":67,"column":null}},"26":{"start":{"line":53,"column":2},"end":{"line":54,"column":null}},"27":{"start":{"line":54,"column":4},"end":{"line":54,"column":null}},"28":{"start":{"line":57,"column":2},"end":{"line":60,"column":null}},"29":{"start":{"line":58,"column":19},"end":{"line":58,"column":null}},"30":{"start":{"line":59,"column":4},"end":{"line":59,"column":null}},"31":{"start":{"line":59,"column":26},"end":{"line":59,"column":null}},"32":{"start":{"line":60,"column":4},"end":{"line":60,"column":null}},"33":{"start":{"line":60,"column":30},"end":{"line":60,"column":null}},"34":{"start":{"line":63,"column":17},"end":{"line":63,"column":null}},"35":{"start":{"line":64,"column":2},"end":{"line":65,"column":null}},"36":{"start":{"line":65,"column":4},"end":{"line":65,"column":null}},"37":{"start":{"line":67,"column":2},"end":{"line":67,"column":null}},"38":{"start":{"line":70,"column":15},"end":{"line":70,"column":null}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_9)","decl":{"start":{"line":9,"column":23},"end":{"line":9,"column":24}},"loc":{"start":{"line":9,"column":39},"end":{"line":26,"column":null}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":30,"column":12},"end":{"line":30,"column":13}},"loc":{"start":{"line":30,"column":32},"end":{"line":48,"column":null}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":52,"column":24},"end":{"line":52,"column":25}},"loc":{"start":{"line":52,"column":41},"end":{"line":67,"column":null}}},"4":{"name":"(anonymous_12)","decl":{"start":{"line":59,"column":16},"end":{"line":59,"column":17}},"loc":{"start":{"line":59,"column":26},"end":{"line":59,"column":null}}},"5":{"name":"(anonymous_13)","decl":{"start":{"line":60,"column":22},"end":{"line":60,"column":30}},"loc":{"start":{"line":60,"column":30},"end":{"line":60,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":10,"column":2},"end":{"line":11,"column":null}},"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":11,"column":null}}]},"1":{"loc":{"start":{"line":13,"column":2},"end":{"line":14,"column":null}},"type":"if","locations":[{"start":{"line":13,"column":2},"end":{"line":14,"column":null}}]},"2":{"loc":{"start":{"line":16,"column":2},"end":{"line":17,"column":null}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":17,"column":null}}]},"3":{"loc":{"start":{"line":19,"column":2},"end":{"line":20,"column":null}},"type":"if","locations":[{"start":{"line":19,"column":2},"end":{"line":20,"column":null}}]},"4":{"loc":{"start":{"line":22,"column":2},"end":{"line":23,"column":null}},"type":"if","locations":[{"start":{"line":22,"column":2},"end":{"line":23,"column":null}}]},"5":{"loc":{"start":{"line":25,"column":2},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":26,"column":null}}]},"6":{"loc":{"start":{"line":34,"column":2},"end":{"line":35,"column":null}},"type":"if","locations":[{"start":{"line":34,"column":2},"end":{"line":35,"column":null}}]},"7":{"loc":{"start":{"line":38,"column":2},"end":{"line":39,"column":null}},"type":"if","locations":[{"start":{"line":38,"column":2},"end":{"line":39,"column":null}}]},"8":{"loc":{"start":{"line":38,"column":6},"end":{"line":38,"column":116}},"type":"binary-expr","locations":[{"start":{"line":38,"column":6},"end":{"line":38,"column":20}},{"start":{"line":38,"column":20},"end":{"line":38,"column":34}},{"start":{"line":38,"column":34},"end":{"line":38,"column":54}},{"start":{"line":38,"column":54},"end":{"line":38,"column":74}},{"start":{"line":38,"column":74},"end":{"line":38,"column":96}},{"start":{"line":38,"column":96},"end":{"line":38,"column":116}}]},"9":{"loc":{"start":{"line":42,"column":2},"end":{"line":48,"column":null}},"type":"switch","locations":[{"start":{"line":42,"column":17},"end":{"line":44,"column":null}},{"start":{"line":44,"column":17},"end":{"line":46,"column":null}},{"start":{"line":46,"column":29},"end":{"line":48,"column":null}}]},"10":{"loc":{"start":{"line":53,"column":2},"end":{"line":54,"column":null}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":54,"column":null}}]},"11":{"loc":{"start":{"line":53,"column":6},"end":{"line":53,"column":45}},"type":"binary-expr","locations":[{"start":{"line":53,"column":6},"end":{"line":53,"column":17}},{"start":{"line":53,"column":17},"end":{"line":53,"column":45}}]},"12":{"loc":{"start":{"line":57,"column":2},"end":{"line":60,"column":null}},"type":"if","locations":[{"start":{"line":57,"column":2},"end":{"line":60,"column":null}}]}},"s":{"0":11,"1":1,"2":4352,"3":8,"4":4344,"5":3213,"6":1131,"7":1087,"8":44,"9":18,"10":26,"11":14,"12":12,"13":12,"14":1,"15":2176,"16":2176,"17":2176,"18":38,"19":2138,"20":4,"21":2134,"22":1598,"23":535,"24":1,"25":1,"26":436,"27":422,"28":14,"29":10,"30":10,"31":2176,"32":10,"33":424,"34":4,"35":4,"36":3,"37":4,"38":1},"f":{"0":9,"1":4352,"2":2176,"3":436,"4":2176,"5":424},"b":{"0":[8],"1":[3213],"2":[1087],"3":[18],"4":[14],"5":[12],"6":[38],"7":[4],"8":[2138,2,2136,1,2135,1],"9":[1598,535,1],"10":[422],"11":[436,431],"12":[10]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\stringify.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\stringify.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":2,"column":18},"end":{"line":18,"column":null}},"2":{"start":{"line":8,"column":2},"end":{"line":9,"column":null}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":null}},"4":{"start":{"line":11,"column":12},"end":{"line":17,"column":null}},"5":{"start":{"line":14,"column":25},"end":{"line":14,"column":67}},"6":{"start":{"line":16,"column":18},"end":{"line":16,"column":null}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":null}},"8":{"start":{"line":21,"column":15},"end":{"line":21,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":2,"column":18},"end":{"line":2,"column":null}},"loc":{"start":{"line":7,"column":13},"end":{"line":18,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":14,"column":20},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":25},"end":{"line":14,"column":67}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":16,"column":11},"end":{"line":16,"column":12}},"loc":{"start":{"line":16,"column":18},"end":{"line":16,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":null}},"type":"default-arg","locations":[{"start":{"line":6,"column":10},"end":{"line":6,"column":null}}]},"1":{"loc":{"start":{"line":8,"column":2},"end":{"line":9,"column":null}},"type":"if","locations":[{"start":{"line":8,"column":2},"end":{"line":9,"column":null}}]},"2":{"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":39}},"type":"binary-expr","locations":[{"start":{"line":8,"column":6},"end":{"line":8,"column":14}},{"start":{"line":8,"column":14},"end":{"line":8,"column":39}}]},"3":{"loc":{"start":{"line":11,"column":12},"end":{"line":17,"column":null}},"type":"cond-expr","locations":[{"start":{"line":12,"column":6},"end":{"line":12,"column":null}},{"start":{"line":13,"column":6},"end":{"line":17,"column":null}}]},"4":{"loc":{"start":{"line":13,"column":6},"end":{"line":17,"column":null}},"type":"cond-expr","locations":[{"start":{"line":14,"column":8},"end":{"line":14,"column":null}},{"start":{"line":15,"column":8},"end":{"line":17,"column":null}}]}},"s":{"0":29,"1":2,"2":58,"3":36,"4":22,"5":17,"6":16,"7":22,"8":2},"f":{"0":25,"1":58,"2":17,"3":16},"b":{"0":[13],"1":[36],"2":[58,57],"3":[5,17],"4":[8,9]}}
{"D:\\Workspace\\json-diff-kit\\src\\utils\\cmp.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\cmp.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":23},"end":{"line":22,"column":null}},"2":{"start":{"line":4,"column":2},"end":{"line":6,"column":null}},"3":{"start":{"line":5,"column":4},"end":{"line":5,"column":null}},"4":{"start":{"line":7,"column":2},"end":{"line":9,"column":null}},"5":{"start":{"line":8,"column":4},"end":{"line":8,"column":null}},"6":{"start":{"line":10,"column":2},"end":{"line":12,"column":null}},"7":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"8":{"start":{"line":13,"column":2},"end":{"line":15,"column":null}},"9":{"start":{"line":14,"column":4},"end":{"line":14,"column":null}},"10":{"start":{"line":16,"column":2},"end":{"line":18,"column":null}},"11":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"12":{"start":{"line":19,"column":2},"end":{"line":21,"column":null}},"13":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"14":{"start":{"line":31,"column":12},"end":{"line":54,"column":null}},"15":{"start":{"line":32,"column":23},"end":{"line":32,"column":null}},"16":{"start":{"line":33,"column":23},"end":{"line":33,"column":null}},"17":{"start":{"line":35,"column":2},"end":{"line":37,"column":null}},"18":{"start":{"line":36,"column":4},"end":{"line":36,"column":null}},"19":{"start":{"line":39,"column":2},"end":{"line":41,"column":null}},"20":{"start":{"line":40,"column":4},"end":{"line":40,"column":null}},"21":{"start":{"line":43,"column":2},"end":{"line":52,"column":null}},"22":{"start":{"line":45,"column":6},"end":{"line":45,"column":null}},"23":{"start":{"line":47,"column":6},"end":{"line":49,"column":null}},"24":{"start":{"line":48,"column":8},"end":{"line":48,"column":null}},"25":{"start":{"line":50,"column":6},"end":{"line":50,"column":null}},"26":{"start":{"line":52,"column":6},"end":{"line":52,"column":null}},"27":{"start":{"line":56,"column":15},"end":{"line":56,"column":null}}},"fnMap":{"0":{"name":"(anonymous_4)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_5)","decl":{"start":{"line":3,"column":23},"end":{"line":3,"column":24}},"loc":{"start":{"line":3,"column":39},"end":{"line":22,"column":null}}},"2":{"name":"(anonymous_6)","decl":{"start":{"line":31,"column":12},"end":{"line":31,"column":13}},"loc":{"start":{"line":31,"column":57},"end":{"line":54,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":6,"column":null}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":6,"column":null}}]},"1":{"loc":{"start":{"line":7,"column":2},"end":{"line":9,"column":null}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":9,"column":null}}]},"2":{"loc":{"start":{"line":10,"column":2},"end":{"line":12,"column":null}},"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":12,"column":null}}]},"3":{"loc":{"start":{"line":13,"column":2},"end":{"line":15,"column":null}},"type":"if","locations":[{"start":{"line":13,"column":2},"end":{"line":15,"column":null}}]},"4":{"loc":{"start":{"line":16,"column":2},"end":{"line":18,"column":null}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":18,"column":null}}]},"5":{"loc":{"start":{"line":19,"column":2},"end":{"line":21,"column":null}},"type":"if","locations":[{"start":{"line":19,"column":2},"end":{"line":21,"column":null}}]},"6":{"loc":{"start":{"line":35,"column":2},"end":{"line":37,"column":null}},"type":"if","locations":[{"start":{"line":35,"column":2},"end":{"line":37,"column":null}}]},"7":{"loc":{"start":{"line":39,"column":2},"end":{"line":41,"column":null}},"type":"if","locations":[{"start":{"line":39,"column":2},"end":{"line":41,"column":null}}]},"8":{"loc":{"start":{"line":39,"column":6},"end":{"line":39,"column":116}},"type":"binary-expr","locations":[{"start":{"line":39,"column":6},"end":{"line":39,"column":20}},{"start":{"line":39,"column":20},"end":{"line":39,"column":34}},{"start":{"line":39,"column":34},"end":{"line":39,"column":54}},{"start":{"line":39,"column":54},"end":{"line":39,"column":74}},{"start":{"line":39,"column":74},"end":{"line":39,"column":96}},{"start":{"line":39,"column":96},"end":{"line":39,"column":116}}]},"9":{"loc":{"start":{"line":43,"column":2},"end":{"line":52,"column":null}},"type":"switch","locations":[{"start":{"line":43,"column":17},"end":{"line":45,"column":null}},{"start":{"line":45,"column":17},"end":{"line":50,"column":null}},{"start":{"line":50,"column":30},"end":{"line":52,"column":null}}]},"10":{"loc":{"start":{"line":47,"column":6},"end":{"line":49,"column":null}},"type":"if","locations":[{"start":{"line":47,"column":6},"end":{"line":49,"column":null}}]},"11":{"loc":{"start":{"line":47,"column":10},"end":{"line":47,"column":31}},"type":"cond-expr","locations":[{"start":{"line":47,"column":10},"end":{"line":47,"column":19}},{"start":{"line":47,"column":10},"end":{"line":47,"column":31}}]}},"s":{"0":2188,"1":1,"2":4370,"3":8,"4":4362,"5":3217,"6":1145,"7":1101,"8":44,"9":18,"10":26,"11":14,"12":12,"13":12,"14":1,"15":2185,"16":2185,"17":2185,"18":38,"19":2147,"20":4,"21":2143,"22":1600,"23":542,"24":0,"25":542,"26":1,"27":1},"f":{"0":2185,"1":4370,"2":2185},"b":{"0":[8],"1":[3217],"2":[1101],"3":[18],"4":[14],"5":[12],"6":[38],"7":[4],"8":[2147,2,2145,1,2144,1],"9":[1600,542,1],"10":[0],"11":[542,0]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\create-immutable.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\create-immutable.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"1":{"start":{"line":1,"column":23},"end":{"line":1,"column":null}},"2":{"start":{"line":3,"column":24},"end":{"line":5,"column":null}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":null}},"4":{"start":{"line":7,"column":15},"end":{"line":7,"column":null}}},"fnMap":{"0":{"name":"(anonymous_4)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}},"1":{"name":"(anonymous_5)","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":25}},"loc":{"start":{"line":3,"column":51},"end":{"line":5,"column":null}}}},"branchMap":{},"s":{"0":7,"1":1,"2":1,"3":4,"4":1},"f":{"0":4,"1":4},"b":{}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\format-value.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\format-value.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},"1":{"start":{"line":1,"column":22},"end":{"line":1,"column":null}},"2":{"start":{"line":3,"column":20},"end":{"line":14,"column":null}},"3":{"start":{"line":4,"column":2},"end":{"line":6,"column":null}},"4":{"start":{"line":5,"column":4},"end":{"line":5,"column":null}},"5":{"start":{"line":7,"column":2},"end":{"line":9,"column":null}},"6":{"start":{"line":8,"column":4},"end":{"line":8,"column":null}},"7":{"start":{"line":10,"column":2},"end":{"line":12,"column":null}},"8":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"9":{"start":{"line":13,"column":2},"end":{"line":13,"column":null}},"10":{"start":{"line":16,"column":15},"end":{"line":16,"column":null}}},"fnMap":{"0":{"name":"(anonymous_5)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}},"1":{"name":"(anonymous_6)","decl":{"start":{"line":3,"column":20},"end":{"line":3,"column":21}},"loc":{"start":{"line":3,"column":54},"end":{"line":14,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":33},"end":{"line":3,"column":54}},"type":"default-arg","locations":[{"start":{"line":3,"column":41},"end":{"line":3,"column":54}}]},"1":{"loc":{"start":{"line":4,"column":2},"end":{"line":6,"column":null}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":6,"column":null}}]},"2":{"loc":{"start":{"line":4,"column":6},"end":{"line":4,"column":45}},"type":"binary-expr","locations":[{"start":{"line":4,"column":6},"end":{"line":4,"column":29}},{"start":{"line":4,"column":29},"end":{"line":4,"column":45}}]},"3":{"loc":{"start":{"line":7,"column":2},"end":{"line":9,"column":null}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":9,"column":null}}]},"4":{"loc":{"start":{"line":7,"column":6},"end":{"line":7,"column":57}},"type":"binary-expr","locations":[{"start":{"line":7,"column":6},"end":{"line":7,"column":30}},{"start":{"line":7,"column":30},"end":{"line":7,"column":57}}]},"5":{"loc":{"start":{"line":10,"column":2},"end":{"line":12,"column":null}},"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":12,"column":null}}]}},"s":{"0":12,"1":1,"2":1,"3":9,"4":2,"5":7,"6":2,"7":5,"8":3,"9":2,"10":1},"f":{"0":9,"1":9},"b":{"0":[9],"1":[2],"2":[9,8],"3":[2],"4":[7,6],"5":[3]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\get-type.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\get-type.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"1":{"start":{"line":1,"column":16},"end":{"line":9,"column":null}},"2":{"start":{"line":2,"column":2},"end":{"line":4,"column":null}},"3":{"start":{"line":3,"column":4},"end":{"line":3,"column":null}},"4":{"start":{"line":5,"column":2},"end":{"line":7,"column":null}},"5":{"start":{"line":6,"column":4},"end":{"line":6,"column":null}},"6":{"start":{"line":8,"column":2},"end":{"line":8,"column":null}},"7":{"start":{"line":11,"column":15},"end":{"line":11,"column":null}}},"fnMap":{"0":{"name":"(anonymous_4)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}},"1":{"name":"(anonymous_5)","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}},"loc":{"start":{"line":1,"column":32},"end":{"line":9,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":4,"column":null}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":4,"column":null}}]},"1":{"loc":{"start":{"line":5,"column":2},"end":{"line":7,"column":null}},"type":"if","locations":[{"start":{"line":5,"column":2},"end":{"line":7,"column":null}}]}},"s":{"0":9,"1":1,"2":6,"3":1,"4":5,"5":1,"6":4,"7":1},"f":{"0":6,"1":6},"b":{"0":[1],"1":[1]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\sort-inner-arrays.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\sort-inner-arrays.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":2,"column":16},"end":{"line":2,"column":null}},"2":{"start":{"line":4,"column":24},"end":{"line":20,"column":null}},"3":{"start":{"line":5,"column":2},"end":{"line":7,"column":null}},"4":{"start":{"line":6,"column":4},"end":{"line":6,"column":null}},"5":{"start":{"line":9,"column":2},"end":{"line":13,"column":null}},"6":{"start":{"line":10,"column":19},"end":{"line":10,"column":null}},"7":{"start":{"line":11,"column":4},"end":{"line":11,"column":null}},"8":{"start":{"line":11,"column":20},"end":{"line":11,"column":44}},"9":{"start":{"line":12,"column":4},"end":{"line":12,"column":null}},"10":{"start":{"line":12,"column":30},"end":{"line":12,"column":60}},"11":{"start":{"line":15,"column":17},"end":{"line":15,"column":null}},"12":{"start":{"line":16,"column":2},"end":{"line":18,"column":null}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"14":{"start":{"line":19,"column":2},"end":{"line":19,"column":null}},"15":{"start":{"line":22,"column":15},"end":{"line":22,"column":null}}},"fnMap":{"0":{"name":"(anonymous_7)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":4,"column":24},"end":{"line":4,"column":25}},"loc":{"start":{"line":4,"column":66},"end":{"line":20,"column":null}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":11,"column":16},"end":{"line":11,"column":17}},"loc":{"start":{"line":11,"column":20},"end":{"line":11,"column":44}}},"3":{"name":"(anonymous_10)","decl":{"start":{"line":12,"column":22},"end":{"line":12,"column":30}},"loc":{"start":{"line":12,"column":30},"end":{"line":12,"column":60}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":2},"end":{"line":7,"column":null}},"type":"if","locations":[{"start":{"line":5,"column":2},"end":{"line":7,"column":null}}]},"1":{"loc":{"start":{"line":5,"column":6},"end":{"line":5,"column":45}},"type":"binary-expr","locations":[{"start":{"line":5,"column":6},"end":{"line":5,"column":17}},{"start":{"line":5,"column":17},"end":{"line":5,"column":45}}]},"2":{"loc":{"start":{"line":9,"column":2},"end":{"line":13,"column":null}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":13,"column":null}}]}},"s":{"0":12,"1":1,"2":1,"3":436,"4":422,"5":14,"6":10,"7":10,"8":2185,"9":10,"10":424,"11":4,"12":4,"13":3,"14":4,"15":1},"f":{"0":9,"1":436,"2":2185,"3":424},"b":{"0":[422],"1":[436,431],"2":[10]}}
,"D:\\Workspace\\json-diff-kit\\src\\utils\\stringify.ts": {"path":"D:\\Workspace\\json-diff-kit\\src\\utils\\stringify.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":2,"column":18},"end":{"line":19,"column":null}},"2":{"start":{"line":8,"column":2},"end":{"line":10,"column":null}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":null}},"4":{"start":{"line":11,"column":12},"end":{"line":17,"column":null}},"5":{"start":{"line":14,"column":25},"end":{"line":14,"column":65}},"6":{"start":{"line":16,"column":18},"end":{"line":16,"column":76}},"7":{"start":{"line":18,"column":2},"end":{"line":18,"column":null}},"8":{"start":{"line":21,"column":15},"end":{"line":21,"column":null}}},"fnMap":{"0":{"name":"(anonymous_4)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_5)","decl":{"start":{"line":2,"column":18},"end":{"line":2,"column":null}},"loc":{"start":{"line":7,"column":13},"end":{"line":19,"column":null}}},"2":{"name":"(anonymous_6)","decl":{"start":{"line":14,"column":20},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":25},"end":{"line":14,"column":65}}},"3":{"name":"(anonymous_7)","decl":{"start":{"line":16,"column":11},"end":{"line":16,"column":12}},"loc":{"start":{"line":16,"column":18},"end":{"line":16,"column":76}}}},"branchMap":{"0":{"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":null}},"type":"default-arg","locations":[{"start":{"line":6,"column":10},"end":{"line":6,"column":null}}]},"1":{"loc":{"start":{"line":8,"column":2},"end":{"line":10,"column":null}},"type":"if","locations":[{"start":{"line":8,"column":2},"end":{"line":10,"column":null}}]},"2":{"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":39}},"type":"binary-expr","locations":[{"start":{"line":8,"column":6},"end":{"line":8,"column":14}},{"start":{"line":8,"column":14},"end":{"line":8,"column":39}}]},"3":{"loc":{"start":{"line":11,"column":12},"end":{"line":17,"column":null}},"type":"cond-expr","locations":[{"start":{"line":12,"column":6},"end":{"line":12,"column":null}},{"start":{"line":13,"column":6},"end":{"line":17,"column":null}}]},"4":{"loc":{"start":{"line":13,"column":6},"end":{"line":17,"column":null}},"type":"cond-expr","locations":[{"start":{"line":14,"column":8},"end":{"line":14,"column":null}},{"start":{"line":15,"column":8},"end":{"line":17,"column":null}}]}},"s":{"0":31,"1":2,"2":58,"3":36,"4":22,"5":17,"6":16,"7":22,"8":2},"f":{"0":25,"1":58,"2":17,"3":16},"b":{"0":[13],"1":[36],"2":[58,57],"3":[5,17],"4":[8,9]}}
}
{
"name": "json-diff-kit",
"version": "1.0.8",
"version": "1.0.9-alpha.3",
"description": "A better JSON differ & viewer.",
"module": "dist/index.js",
"main": "dist/index.js",
"typings": "typings",

@@ -38,3 +38,3 @@ "scripts": {

"@types/react-dom": "^17.0.11",
"esbuild": "^0.15.2",
"esbuild": "^0.15.6",
"esbuild-jest": "^0.5.0",

@@ -56,4 +56,6 @@ "esbuild-plugin-less": "^1.1.9",

"dependencies": {
"fast-myers-diff": "^3.0.1"
"@types/lodash": "^4.14.191",
"fast-myers-diff": "^3.0.1",
"lodash": "^4.17.21"
}
}

23

typings/differ.d.ts

@@ -76,2 +76,23 @@ export interface DifferOptions {

arrayDiffMethod?: 'normal' | 'lcs' | 'unorder-normal' | 'unorder-lcs';
/**
* Whether to ignore the case when comparing strings, default `false`.
*/
ignoreCase?: boolean;
/**
* Whether to use recursive equal to compare objects, default `false`.
*
* This will only applied to objects, not arrays.
*
* Two objects are considered equal if they have the same properties and values, for example:
*
* ```js
* const x = { 'a': 1, 'b': 2 };
* const y = { 'b': 2, 'a': 1 };
* ```
*
* The `x` and `y` here will be considered equal.
*
* This comparation process is slow in huge objects.
*/
recursiveEqual?: boolean;
}

@@ -89,3 +110,3 @@ export interface DiffResult {

private arrayDiffFunc;
constructor({ detectCircular, maxDepth, showModifications, arrayDiffMethod, }?: DifferOptions);
constructor({ detectCircular, maxDepth, showModifications, arrayDiffMethod, recursiveEqual, }?: DifferOptions);
private detectCircular;

@@ -92,0 +113,0 @@ private sortResultLines;

@@ -1,9 +0,3 @@

/**
* The compare function to correct the order for "array" or "object":
* - The order for 2 values with different types are: boolean, number, string, null, array, object.
* - The order for 2 values with the same type is according to the type:
* - For boolean, number, string: use the `<` sign.
* - For array and object: preserve the original order (or do we have a better idea?)
*/
declare const sortInnerArrays: (source: any) => any;
import type { DifferOptions } from '../differ';
declare const sortInnerArrays: (source: any, options?: DifferOptions) => any;
export default sortInnerArrays;

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 too big to display

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