@locker/eslint-rule-maker
Advanced tools
Comparing version 0.11.9 to 0.11.11
@@ -174,3 +174,11 @@ /** | ||
const patternsWithAsterisks = configClone.rule.search.filter((pattern) => pattern[0] === '*'); | ||
const matches = ast.matchAll(getScopeIdentifiersByContext(context), patternsWithAsterisks); | ||
const identifiers = getScopeIdentifiersByContext(context); | ||
let { object } = node; | ||
while (object.type === 'MemberExpression') { | ||
object = object.object; | ||
} | ||
if (object.type === 'ThisExpression') { | ||
identifiers.push(object); | ||
} | ||
const matches = ast.matchAll(identifiers, patternsWithAsterisks); | ||
// eslint-disable-next-line no-restricted-syntax | ||
@@ -213,2 +221,2 @@ for (const matchData of matches) { | ||
exports.matchers = matchers; | ||
/** version: 0.11.9 */ | ||
/** version: 0.11.11 */ |
@@ -170,3 +170,11 @@ /** | ||
const patternsWithAsterisks = configClone.rule.search.filter((pattern) => pattern[0] === '*'); | ||
const matches = ast.matchAll(getScopeIdentifiersByContext(context), patternsWithAsterisks); | ||
const identifiers = getScopeIdentifiersByContext(context); | ||
let { object } = node; | ||
while (object.type === 'MemberExpression') { | ||
object = object.object; | ||
} | ||
if (object.type === 'ThisExpression') { | ||
identifiers.push(object); | ||
} | ||
const matches = ast.matchAll(identifiers, patternsWithAsterisks); | ||
// eslint-disable-next-line no-restricted-syntax | ||
@@ -207,2 +215,2 @@ for (const matchData of matches) { | ||
export { ast, createRule, matchers }; | ||
/** version: 0.11.9 */ | ||
/** version: 0.11.11 */ |
{ | ||
"name": "@locker/eslint-rule-maker", | ||
"version": "0.11.9", | ||
"version": "0.11.11", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "description": "Locker Next eslint rule maker utility", | ||
"dependencies": { | ||
"@locker/ast-lib-maker": "0.11.9", | ||
"@locker/shared": "0.11.9" | ||
"@locker/ast-lib-maker": "0.11.11", | ||
"@locker/shared": "0.11.11" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "7fd681f08f87206dfb944c258dac4eb12a98a6eb" | ||
"gitHead": "edea12f8387424f6b8f26cb9972db921e19c06ee" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18778
428
+ Added@locker/ast-lib-maker@0.11.11(transitive)
+ Added@locker/shared@0.11.11(transitive)
- Removed@locker/ast-lib-maker@0.11.9(transitive)
- Removed@locker/shared@0.11.9(transitive)
Updated@locker/shared@0.11.11