Socket
Socket
Sign inDemoInstall

cypress-plugin-tab

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-plugin-tab - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

package.json
{
"name": "cypress-plugin-tab",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

@@ -22,3 +22,3 @@ "main": "src",

"@typescript-eslint/parser": "^2.3.0",
"cypress": "^3.4.1",
"cypress": "3.4.1",
"eslint": "^6.4.0",

@@ -25,0 +25,0 @@ "eslint-plugin-cypress": "^2.2.1",

@@ -78,18 +78,10 @@ const tabSequence = require('ally.js/query/tabsequence')

if (reverse) {
if (i === 0 || i === -1) {
i = seq.length
}
} else {
if (i === seq.length) {
i = 0
}
const nextIndex = i <= 0 ? seq.length - 1 : i - 1
return seq[nextIndex]
}
// }
if (reverse) {
return seq[i - 1]
}
const nextIndex = i === seq.length - 1 ? 0 : i + 1
return seq[i + 1]
return seq[nextIndex]
}

@@ -96,0 +88,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