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

table-sort-js

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table-sort-js - npm Package Compare versions

Comparing version 1.18.2 to 1.18.3

2

package.json
{
"name": "table-sort-js",
"version": "1.18.2",
"version": "1.18.3",
"description": "A JavaScript client-side HTML table sorting library with no dependencies required.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -386,3 +386,4 @@ /*

function clearArrows(arrowUp = "▲", arrowDown = "▼") {
function clearArrows(arrowUp, arrowDown, initialArrow = "↕") {
th.innerHTML = th.innerHTML.replace(initialArrow, "");
th.innerHTML = th.innerHTML.replace(arrowUp, "");

@@ -519,9 +520,8 @@ th.innerHTML = th.innerHTML.replace(arrowDown, "");

const desc = th.classList.contains("order-by-desc");
const arrow = { up: " ▲", down: " ▼" };
const initialArrow = " ↕";
const arrow = { up: " ↑", down: " ↓" };
const fillValue = "!X!Y!Z!";
if (desc && table.hasClass.tableArrows) {
th.insertAdjacentText("beforeend", arrow.down);
} else if (table.hasClass.tableArrows) {
th.insertAdjacentText("beforeend", arrow.up);
if (table.hasClass.tableArrows) {
th.insertAdjacentText("beforeend", initialArrow);
}

@@ -528,0 +528,0 @@

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