Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
chore(package): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 committed Feb 14, 2020
1 parent 7062e25 commit 1940c84
Show file tree
Hide file tree
Showing 4 changed files with 2,677 additions and 1,975 deletions.
4 changes: 2 additions & 2 deletions lib/rules/audit-argument-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ module.exports = {
// method
if (
isMeteorCall(node, 'methods') &&
(node.arguments.length > 0 &&
node.arguments[0].type === 'ObjectExpression')
node.arguments.length > 0 &&
node.arguments[0].type === 'ObjectExpression'
) {
node.arguments[0].properties.forEach(property => {
auditArgumentChecks(property.value);
Expand Down
16 changes: 8 additions & 8 deletions lib/rules/prefer-session-equals.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
const isSessionGetCallExpression = node =>
node.type === 'CallExpression' &&
node.callee.type === 'MemberExpression' &&
(node.callee.object.type === 'Identifier' &&
node.callee.object.name === 'Session' &&
((!node.callee.computed &&
node.callee.property.type === 'Identifier' &&
node.callee.property.name === 'get') ||
(node.callee.computed &&
node.callee.property.type === 'Literal' &&
node.callee.property.value === 'get')));
node.callee.object.type === 'Identifier' &&
node.callee.object.name === 'Session' &&
((!node.callee.computed &&
node.callee.property.type === 'Identifier' &&
node.callee.property.name === 'get') ||
(node.callee.computed &&
node.callee.property.type === 'Literal' &&
node.callee.property.value === 'get'));

// -----------------------------------------------------------------------------
// Rule Definition
Expand Down
Loading

0 comments on commit 1940c84

Please sign in to comment.