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

eslint-plugin-rxjs-angular

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-rxjs-angular - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

7

CHANGELOG.md

@@ -0,1 +1,8 @@

<a name="1.0.5"></a>
## [1.0.5](https://github.com/cartant/eslint-plugin-rxjs-angular/compare/v1.0.4...v1.0.5) (2021-03-20)
## Fixes
* Enable TypeScript `strict` option and fix related problems. ([109d2f1](https://github.com/cartant/eslint-plugin-rxjs-angular/commit/109d2f1))
<a name="1.0.4"></a>

@@ -2,0 +9,0 @@ ## [1.0.4](https://github.com/cartant/eslint-plugin-rxjs-angular/compare/v1.0.3...v1.0.4) (2021-01-11)

1

dist/index.js

@@ -0,1 +1,2 @@

"use strict";
module.exports.rules = require("requireindex")(`${__dirname}/rules`);

9

dist/rules/prefer-composition.js

@@ -41,2 +41,3 @@ "use strict";

function checkEntry(record) {
var _a;
const { classDeclaration, classProperties, ngOnDestroyDefinition, subscribeCallExpressions, subscriptions, unsubscribeCallExpressions, } = record;

@@ -65,3 +66,3 @@ if (subscribeCallExpressions.length === 0) {

messageId: "notImplemented",
node: classDeclaration.id,
node: (_a = classDeclaration.id) !== null && _a !== void 0 ? _a : classDeclaration,
});

@@ -71,2 +72,3 @@ return;

subscriptions.forEach((subscription) => {
var _a;
const classProperty = classProperties.find((classProperty) => classProperty.key.name === subscription);

@@ -77,3 +79,3 @@ if (!classProperty) {

messageId: "notDeclared",
node: classDeclaration.id,
node: (_a = classDeclaration.id) !== null && _a !== void 0 ? _a : classDeclaration,
});

@@ -138,2 +140,5 @@ return;

const parent = eslint_etc_1.getParent(callExpression);
if (!parent) {
return false;
}
if (eslint_etc_1.isCallExpression(parent)) {

@@ -140,0 +145,0 @@ const addCallExpression = addCallExpressions.find((callExpression) => callExpression === parent);

@@ -66,2 +66,3 @@ "use strict";

function checkNgOnDestroy(entry) {
var _a;
const { classDeclaration, completeCallExpressions, nextCallExpressions, ngOnDestroyDefinition, subscribeCallExpressionsToNames, } = entry;

@@ -74,3 +75,3 @@ if (subscribeCallExpressionsToNames.size === 0) {

messageId: "noDestroy",
node: classDeclaration.id,
node: (_a = classDeclaration.id) !== null && _a !== void 0 ? _a : classDeclaration,
});

@@ -83,2 +84,3 @@ return;

names.forEach((name) => {
var _a;
const check = {

@@ -93,3 +95,3 @@ descriptors: [],

messageId: "notDeclared",
node: classDeclaration.id,
node: (_a = classDeclaration.id) !== null && _a !== void 0 ? _a : classDeclaration,
});

@@ -96,0 +98,0 @@ }

@@ -30,3 +30,3 @@ {

"ts-node": "^9.0.0",
"typescript": "~4.1.2"
"typescript": "~4.2.2"
},

@@ -84,3 +84,3 @@ "engines": {

},
"version": "1.0.4"
"version": "1.0.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