@trufflesuite/chromafi
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -150,3 +150,3 @@ import test from 'ava' | ||
const result = chromafi(asm, opts) | ||
t.is(result, '\u001b[37m\u001b[90m 1\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 2\u001b[37m \u001b[36m.text\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 3\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 4\u001b[37m \u001b[36m.global\u001b[37m connect \u001b[39m\n\u001b[37m\u001b[90m 5\u001b[37m \u001b[36m connect:\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 6\u001b[37m \u001b[31mmov \u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#2\u001b[37m \u001b[37m\u001b[2m; s->sin_family = AF_INET\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 7\u001b[37m \u001b[31mstrh \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m 8\u001b[37m \u001b[31mldr \u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_port\u001b[37m \u001b[37m\u001b[2m; s->sin_port = server_port\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 9\u001b[37m \u001b[31mldr \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m10\u001b[37m \u001b[31mstrh \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#2\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m11\u001b[37m \u001b[31mldr \u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_addr\u001b[37m \u001b[37m\u001b[2m; s->sin_addr = server_addr\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m12\u001b[37m \u001b[31mldr \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m13\u001b[37m \u001b[31mstr \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#4\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m14\u001b[37m \u001b[31mmov \u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#0\u001b[37m \u001b[37m\u001b[2m; bzero(&s->sin_zero)\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m15\u001b[37m \u001b[31mstr \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#8\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m16\u001b[37m \u001b[31mstr \u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#12\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m17\u001b[37m \u001b[31mmov \u001b[37m \u001b[34mr1\u001b[37m, \u001b[34msp\u001b[37m \u001b[37m\u001b[2m; const struct sockaddr *addr = sp\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m18\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m19\u001b[37m \u001b[31mldr \u001b[37m \u001b[34mr7\u001b[37m, \u001b[36m=connect_call\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m20\u001b[37m \u001b[31mldr \u001b[37m \u001b[34mr7\u001b[37m, [\u001b[34mr7\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m21\u001b[37m \u001b[31mswi \u001b[37m \u001b[32m#0\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m22\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m23\u001b[37m \u001b[31madd \u001b[37m \u001b[34msp\u001b[37m, \u001b[34msp\u001b[37m, \u001b[32m#16\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m24\u001b[37m \u001b[31mpop \u001b[37m {\u001b[34mr0\u001b[37m} \u001b[37m\u001b[2m; pop sockfd\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m25\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m26\u001b[37m \u001b[31mpop \u001b[37m {\u001b[34mr7\u001b[37m} \u001b[39m\n\u001b[37m\u001b[90m27\u001b[37m \u001b[31mpop \u001b[37m {\u001b[34mfp\u001b[37m, \u001b[34mip\u001b[37m, \u001b[34mlr\u001b[37m} \u001b[39m\n\u001b[37m\u001b[90m28\u001b[37m \u001b[31mmov \u001b[37m \u001b[34msp\u001b[37m, \u001b[34mip\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m29\u001b[37m \u001b[31mbx \u001b[37m \u001b[34mlr\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m30\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m31\u001b[37m \u001b[36m.data\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m32\u001b[37m \u001b[36m socket_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m281\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m33\u001b[37m \u001b[36m connect_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m283\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m34\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m35\u001b[37m \u001b[37m\u001b[2m/* all addresses are network byte-order (big-endian) */\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m36\u001b[37m \u001b[36m server_addr:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m0x0100007f\u001b[37m \u001b[37m\u001b[2m; localhost\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m37\u001b[37m \u001b[36m server_port:\u001b[37m \u001b[36m.hword\u001b[37m \u001b[32m0x0b1a\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m38\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m') | ||
t.is(result, '\u001b[37m\u001b[90m 1\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 2\u001b[37m \u001b[36m.text\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 3\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 4\u001b[37m \u001b[36m.global\u001b[37m connect \u001b[39m\n\u001b[37m\u001b[90m 5\u001b[37m \u001b[36m connect:\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 6\u001b[37m \u001b[31mmov\u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#2\u001b[37m \u001b[37m\u001b[2m; s->sin_family = AF_INET\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 7\u001b[37m \u001b[31mstrh\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m 8\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_port\u001b[37m \u001b[37m\u001b[2m; s->sin_port = server_port\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 9\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m10\u001b[37m \u001b[31mstrh\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#2\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m11\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, \u001b[36m=server_addr\u001b[37m \u001b[37m\u001b[2m; s->sin_addr = server_addr\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m12\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34mr3\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m13\u001b[37m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#4\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m14\u001b[37m \u001b[31mmov\u001b[37m \u001b[34mr3\u001b[37m, \u001b[32m#0\u001b[37m \u001b[37m\u001b[2m; bzero(&s->sin_zero)\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m15\u001b[37m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#8\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m16\u001b[37m \u001b[31mstr\u001b[37m \u001b[34mr3\u001b[37m, [\u001b[34msp\u001b[37m, \u001b[32m#12\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m17\u001b[37m \u001b[31mmov\u001b[37m \u001b[34mr1\u001b[37m, \u001b[34msp\u001b[37m \u001b[37m\u001b[2m; const struct sockaddr *addr = sp\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m18\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m19\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr7\u001b[37m, \u001b[36m=connect_call\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m20\u001b[37m \u001b[31mldr\u001b[37m \u001b[34mr7\u001b[37m, [\u001b[34mr7\u001b[37m] \u001b[39m\n\u001b[37m\u001b[90m21\u001b[37m \u001b[31mswi\u001b[37m \u001b[32m#0\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m22\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m23\u001b[37m \u001b[31madd\u001b[37m \u001b[34msp\u001b[37m, \u001b[34msp\u001b[37m, \u001b[32m#16\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m24\u001b[37m \u001b[31mpop\u001b[37m {\u001b[34mr0\u001b[37m} \u001b[37m\u001b[2m; pop sockfd\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m25\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m26\u001b[37m \u001b[31mpop\u001b[37m {\u001b[34mr7\u001b[37m} \u001b[39m\n\u001b[37m\u001b[90m27\u001b[37m \u001b[31mpop\u001b[37m {\u001b[34mfp\u001b[37m, \u001b[34mip\u001b[37m, \u001b[34mlr\u001b[37m} \u001b[39m\n\u001b[37m\u001b[90m28\u001b[37m \u001b[31mmov\u001b[37m \u001b[34msp\u001b[37m, \u001b[34mip\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m29\u001b[37m \u001b[31mbx\u001b[37m \u001b[34mlr\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m30\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m31\u001b[37m \u001b[36m.data\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m32\u001b[37m \u001b[36m socket_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m281\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m33\u001b[37m \u001b[36m connect_call:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m283\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m34\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m35\u001b[37m \u001b[37m\u001b[2m/* all addresses are network byte-order (big-endian) */\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m36\u001b[37m \u001b[36m server_addr:\u001b[37m \u001b[36m.long\u001b[37m \u001b[32m0x0100007f\u001b[37m \u001b[37m\u001b[2m; localhost\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m37\u001b[37m \u001b[36m server_port:\u001b[37m \u001b[36m.hword\u001b[37m \u001b[32m0x0b1a\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m38\u001b[37m \u001b[39m\n\u001b[37m\u001b[39m') | ||
}) | ||
@@ -507,4 +507,4 @@ | ||
const result = chromafi(diff, {lang: 'diff'}) | ||
t.is(result, '\u001b[37m\u001b[90m 1\u001b[37m diff --git a/about.html b/about.html \u001b[39m\n\u001b[37m\u001b[90m 2\u001b[37m index d09ab79..0c20c33 100644 \u001b[39m\n\u001b[37m\u001b[90m 3\u001b[37m \u001b[37m\u001b[2m--- a/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 4\u001b[37m \u001b[37m\u001b[2m+++ b/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 5\u001b[37m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 6\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m 7\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 8\u001b[37m <div id="headerContainer"> \u001b[39m\n\u001b[37m\u001b[90m 9\u001b[37m \u001b[31m- <h1>About</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m10\u001b[37m \u001b[32m+ <h1>About This Project</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m11\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m12\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m13\u001b[37m <div id="contentContainer"> \u001b[39m\n\u001b[37m\u001b[90m14\u001b[37m diff --git a/imprint.html b/imprint.html \u001b[39m\n\u001b[37m\u001b[90m15\u001b[37m index 1932d95..d34d56a 100644 \u001b[39m\n\u001b[37m\u001b[90m16\u001b[37m \u001b[37m\u001b[2m--- a/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m17\u001b[37m \u001b[37m\u001b[2m+++ b/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m18\u001b[37m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m19\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m20\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m21\u001b[37m <div id="headerContainer"> \u001b[39m\n\u001b[37m\u001b[90m22\u001b[37m \u001b[31m- <h1>Imprint</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m23\u001b[37m \u001b[32m+ <h1>Imprint / Disclaimer</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m24\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m25\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m26\u001b[37m <div id="contentContainer"> \u001b[39m\n\u001b[37m\u001b[39m') | ||
t.is(result, '\u001b[37m\u001b[90m 1\u001b[37m \u001b[37m\u001b[2mdiff --git a/about.html b/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 2\u001b[37m \u001b[37m\u001b[2mindex d09ab79..0c20c33 100644\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 3\u001b[37m \u001b[37m\u001b[2m--- a/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 4\u001b[37m \u001b[37m\u001b[2m+++ b/about.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 5\u001b[37m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 6\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m 7\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m 8\u001b[37m <div id="headerContainer"> \u001b[39m\n\u001b[37m\u001b[90m 9\u001b[37m \u001b[31m- <h1>About</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m10\u001b[37m \u001b[32m+ <h1>About This Project</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m11\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m12\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m13\u001b[37m <div id="contentContainer"> \u001b[39m\n\u001b[37m\u001b[90m14\u001b[37m \u001b[37m\u001b[2mdiff --git a/imprint.html b/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m15\u001b[37m \u001b[37m\u001b[2mindex 1932d95..d34d56a 100644\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m16\u001b[37m \u001b[37m\u001b[2m--- a/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m17\u001b[37m \u001b[37m\u001b[2m+++ b/imprint.html\u001b[22m\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m18\u001b[37m \u001b[36m@@ -19,7 +19,7 @@\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m19\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m20\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m21\u001b[37m <div id="headerContainer"> \u001b[39m\n\u001b[37m\u001b[90m22\u001b[37m \u001b[31m- <h1>Imprint</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m23\u001b[37m \u001b[32m+ <h1>Imprint / Disclaimer</h1>\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m24\u001b[37m </div> \u001b[39m\n\u001b[37m\u001b[90m25\u001b[37m \u001b[39m\n\u001b[37m\u001b[90m26\u001b[37m <div id="contentContainer"> \u001b[39m\n\u001b[37m\u001b[39m') | ||
}) | ||
{ | ||
"name": "@trufflesuite/chromafi", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "🦅 cli syntax highlighting: any function - any object - 176 languages", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"he": "^1.1.1", | ||
"highlight.js": "^9.12.0", | ||
"highlight.js": "^10.4.1", | ||
"lodash.merge": "^4.6.2", | ||
@@ -31,0 +31,0 @@ "min-indent": "^1.0.0", |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1859550
+ Addedhighlight.js@10.7.3(transitive)
- Removedhighlight.js@9.18.5(transitive)
Updatedhighlight.js@^10.4.1