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

encore-auditor

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encore-auditor - npm Package Compare versions

Comparing version 0.3.1 to 1.0.0

211

lib/audits.js

@@ -16,3 +16,3 @@ 'use strict';

function className (name) {
return `class\\s*=\\s*['"]([^'"]*\\s)?metadata(\\s[^'"]*)?['"]`;
return `class\\s*=\\s*['"]([^'"]*\\s)?${name}(\\s[^'"]*)?['"]`;
}

@@ -329,174 +329,183 @@

messages: [
'The exercise "cssSelector" option has been deprecated.',
'The "cssSelector" exercise option is deprecated.',
'Set the "instance" option with an ElementFinder value instead.'
]
}, {
pattern: /encore\.[^\.]+\.main/,
// https://regex101.com/r/qY5rZ5/2
pattern: /\.main\b/,
messages: [
'"main" properties of page objects are deprecated.',
'Use "initialize()" instead.'
'The "main" property is deprecated.',
'Use the "initialize()" function instead.'
]
}, {
// https://regex101.com/r/wZ6dT0/1
pattern: /encore\.rxOptionFormTable/,
// https://regex101.com/r/cG5aI1/2
pattern: /rxForm\.checkbox\b/,
messages: [
'The "rxOptionFormTable" page object is deprecated.',
'Use "rxOptionTable" instead.'
'The "rxForm.checkbox" property is deprecated.',
'Use the "rxCheckbox" page object instead.'
]
}, {
// https://regex101.com/r/pQ4wH8/3
pattern: /\.form\.fill/,
// https://regex101.com/r/uX9kY2/3
pattern: /rxForm\.currencyToPennies\b/,
messages: [
'The "rxForm.form.fill" function has been deprecated.',
'Use "rxForm.fill()" instead.'
'The "rxForm.currencyToPennies()" function is deprecated.',
'Use the "rxMisc.currencyToPennies()" function instead.'
]
}, {
// https://regex101.com/r/cG5aI1/1
pattern: /rxForm\.checkbox/,
// https://regex101.com/r/jO7xL9/2
pattern: /rxForm\.dropdown\b/,
messages: [
'The "rxForm.checkbox" property has been deprecated.',
'Use "rxCheckbox" instead.'
'The "rxForm.dropdown" property is deprecated.',
'Use the "rxSelect" page object instead.'
]
}, {
// https://regex101.com/r/jO7xL9/1
pattern: /rxForm\.dropdown/,
// https://regex101.com/r/bG3hD7/2
pattern: /rxForm\.radioButton/,
messages: [
'The "rxForm.dropdown" property has been deprecated.',
'Use "rxSelect" instead.'
'The "rxForm.radioButton" property is deprecated.',
'Use the "rxRadio" page object instead.'
]
}, {
// https://regex101.com/r/bG3hD7/1
pattern: /rxForm\.radioButton/,
// https://regex101.com/r/lX2fF4/3
pattern: /rxForm\.slowClick\b/,
messages: [
'The "rxForm.radioButton" property has been deprecated.',
'Use "rxRadio" instead.'
'The "rxForm.slowClick()" function is deprecated.',
'Use the "rxMisc.slowClick()" function instead.'
]
}, {
// https://regex101.com/r/lX2fF4/1
pattern: /rxForm\.slowClick/,
// https://regex101.com/r/pQ4wH8/5
pattern: /\.form\.fill/,
messages: [
'The "rxForm.slowClick" function has been deprecated.',
'Use "rxMisc.slowClick()" instead.'
'The "rxForm.form.fill()" function is deprecated.',
'Use the "rxForm.fill()" function instead.'
]
}, {
// https://regex101.com/r/uX9kY2/1
pattern: /rxForm\.currencyToPennies/,
// https://regex101.com/r/wZ6dT0/2
pattern: /encore\.rxOptionFormTable\b/,
messages: [
'The "rxForm.currencyToPennies" function has been deprecated.',
'Use "rxMisc.currencyToPennies()" instead.'
'The "rxOptionFormTable" page object is deprecated.',
'Use the "rxOptionTable" page object instead.'
]
}, {
// This handles breadcrumb.visit() and tab.visit()
// https://regex101.com/r/hJ3gD7/1
pattern: /\.visit\(/,
// https://regex101.com/r/hJ3gD7/3
pattern: /\.visit\b/,
messages: [
'The "rxBreadcrumbs.breadcrumb.visit" and "rxTabs.tab.visit" functions have been deprecated.',
'Use "rxBreadcrumbs.breadcrumb.click()" and "rxTabs.tab.click()" instead.'
'The "visit()" function is deprecated.',
'Use the "click()" function instead.'
]
}, {
// https://regex101.com/r/jA2lZ4/2
pattern: /rxFloatingHeader\.scrollToElement/,
// https://regex101.com/r/mE3rQ7/2
pattern: /rxFloatingHeader\.compareXLocations\b/,
messages: [
'The "rxFloatingHeader.scrollToElement" function has been deprecated.',
'Use "rxMisc.scrollToElement()" instead.'
'The "rxFloatingHeader.compareXLocations()" function is deprecated.',
'Use the "rxMisc.compareXLocations()" function instead.'
]
}, {
// https://regex101.com/r/lD9zU6/1
pattern: /rxFloatingHeader\.compareYLocations/,
// https://regex101.com/r/lD9zU6/2
pattern: /rxFloatingHeader\.compareYLocations\b/,
messages: [
'The "rxFloatingHeader.compareYLocations" function has been deprecated.',
'Use "rxMisc.compareYLocations()" instead.'
'The "rxFloatingHeader.compareYLocations()" function is deprecated.',
'Use the "rxMisc.compareYLocations()" function instead.'
]
}, {
// https://regex101.com/r/mE3rQ7/1
pattern: /rxFloatingHeader\.compareXLocations/,
// https://regex101.com/r/jA2lZ4/3
pattern: /rxFloatingHeader\.scrollToElement\b/,
messages: [
'The "rxFloatingHeader.compareXLocations" function has been deprecated.',
'Use "rxMisc.compareXLocations()" instead.'
'The "rxFloatingHeader.scrollToElement()" function is deprecated.',
'Use the "rxMisc.scrollToElement()" function instead.'
]
}, {
// https://regex101.com/r/wZ2nB8/1
pattern: /rxFloatingHeader\.transformLocation/,
// https://regex101.com/r/wZ2nB8/2
pattern: /rxFloatingHeader\.transformLocation\b/,
messages: [
'The "rxFloatingHeader.transformLocation" function has been deprecated.',
'Use "rxMisc.transformLocation()" instead.'
'The "rxFloatingHeader.transformLocation()" function is deprecated.',
'Use the "rxMisc.transformLocation()" function instead.'
]
}, {
// https://regex101.com/r/nM8oY5/1
pattern: /rxOptionTable\.(row|selectedRow)\.unselect/,
// https://regex101.com/r/hI6eP2/2
pattern: /rxOptionTable\.unselectByColumnText\b/,
messages: [
'The rxOptionTable row "unselect" function has been deprecated.',
'Use the row "deselect()" function instead.'
'The "unselectByColumnText()" function is deprecated.',
'Use the "deselectByColumnText()" function instead.'
]
}, {
// https://regex101.com/r/hI6eP2/1
pattern: /rxOptionTable\.unselectByColumnText/,
// https://regex101.com/r/iI0qI1/2
pattern: /rxOptionTable\.unselectMany\b/,
messages: [
'The "unselectByColumnText" function has been deprecated.',
'Use "deselectByColumnText()" instead.'
'The "unselectMany()" function is deprecated.',
'Use the "deselectMany()" function instead.'
]
}, {
// https://regex101.com/r/iI0qI1/1
pattern: /rxOptionTable\.unselectMany/,
// https://regex101.com/r/nY3yF2/2
pattern: /rxOptionTable\.unselectAll\b/,
messages: [
'The "unselectMany" function has been deprecated.',
'Use "deselectMany()" instead.'
'The "unselectAll()" function is deprecated.',
'Use the "deselectAll()" function instead.'
]
}, {
// https://regex101.com/r/nY3yF2/1
pattern: /rxOptionTable\.unselectAll/,
// handles rxOptionTable.row.unselect
// handles rxCheckbox.unselect
// https://regex101.com/r/fX5kC7/2
pattern: /\.unselect\b/,
messages: [
'The "unselectAll" function has been deprecated.',
'Use "deselectAll()" instead.'
'The "unselect()" function is deprecated.',
'Use the "deselect()" function instead.'
]
}, {
// https://regex101.com/r/fX5kC7/1
pattern: /rxCheckbox\.unselect/,
// https://regex101.com/r/jY4xC5/2
pattern: /\.isCollapsed\b/,
messages: [
'The "unselect" function has been deprecated.',
'Use "deselect()" instead.'
]
}, {
// https://regex101.com/r/jY4xC5/1
pattern: /\.isCollapsed\(/,
messages: [
'The "isCollapsed" function has been deprecated.',
'The "isCollapsed()" function is deprecated.',
'Check the inverse of "isExpanded()" instead.'
]
}, {
// https://regex101.com/r/yA4eZ5/1
pattern: /\.isDisabled\(/,
// https://regex101.com/r/yA4eZ5/2
pattern: /\.isDisabled\b/,
messages: [
'The "isDisabled" function has been deprecated.',
'The "isDisabled()" function is deprecated.',
'Check the inverse of "isEnabled()" instead.'
]
}, {
// https://regex101.com/r/lF1uA4/1
pattern: /\.isClosed\(/,
// https://regex101.com/r/lF1uA4/2
pattern: /\.isClosed\b/,
messages: [
'The "isClosed" function has been deprecated.',
'The "isClosed()" function is deprecated.',
'Check the inverse of "isOpen()" instead.'
]
}, {
// https://regex101.com/r/lW0cD1/1
pattern: /\.isSymbolVisible\(/,
// https://regex101.com/r/lW0cD1/2
pattern: /\.isSymbolVisible\b/,
messages: [
'The "isSymbolVisible" function has been deprecated.',
'Use "isSymbolDisplayed()" instead.'
'The "isSymbolVisible()" function is deprecated.',
'Use the "isSymbolDisplayed()" function instead.'
]
}, {
// https://regex101.com/r/jN6iT8/1
pattern: /\.isSearchable\(/,
// https://regex101.com/r/jN6iT8/2
pattern: /\.isSearchable\b/,
messages: [
'The "isSearchable" function has been deprecated.',
'Use "isEnabled()" instead.'
'The "isSearchable()" function is deprecated.',
'Use the "isEnabled()" function instead.'
]
//}, {
// // https://regex101.com/r/rA2oI7/1
// pattern: /\.exists\(/,
// type: 'error',
// messages: [
// 'The "exists" function has been deprecated.',
// 'Use "isPresent()" instead.'
// ]
}, {
// https://regex101.com/r/rA2oI7/5
pattern: /\.exists\b(?!\()/,
messages: [
'The "exists" property has been deprecated.',
'Use the "isPresent()" function instead.'
]
}, {
// https://regex101.com/r/lY4yW1/2
pattern: /\.getPerformanceMetrics\b/,
messages: [
'The "getPerformanceMetrics()" function is deprecated.',
'There is no replacement.'
]
}, {
// https://regex101.com/r/eP3zN6/3
pattern: /\.text\b(?!\()/,
messages: [
'The "text" property has been deprecated.',
'Use the "getText()" function instead.'
]
},

@@ -503,0 +512,0 @@ ],

{
"name": "encore-auditor",
"version": "0.3.1",
"version": "1.0.0",
"description": "Source code analyzer for EncoreUI applications.",

@@ -5,0 +5,0 @@ "main": "./lib/encore-auditor.js",

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