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

playwright-table

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-table - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

13

collect-table.js

@@ -21,2 +21,15 @@ "use strict";

let headers = Array.from(((_a = table.tHead) === null || _a === void 0 ? void 0 : _a.rows[0].cells) || [], cell => cell.innerText);
if (headers.length === 0) {
loop_tbody: for (let tBody of table.tBodies) {
for (let row of tBody.rows) {
for (let cell of row.cells) {
if (cell.tagName == 'TH') {
headers.push(cell.innerText);
}
}
if (headers.length > 0)
break loop_tbody;
}
}
}
if (headers.length === 0)

@@ -23,0 +36,0 @@ continue;

10

package.json
{
"name": "playwright-table",
"version": "1.0.2",
"version": "1.1.0",
"description": "Collect tabular data from HTML Table Elements as object array or 2D string array",

@@ -38,11 +38,11 @@ "keywords": [

"peerDependencies": {
"playwright": "^1.28.1"
"playwright": "^1"
},
"devDependencies": {
"@types/node": "^18.11.9",
"playwright": "^1.28.1",
"@types/node": "^18.17.14",
"playwright": "^1.37.1",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"typescript": "^4.9.3"
"typescript": "^4.9.5"
}
}
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