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

@ngneat/until-destroy

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngneat/until-destroy - npm Package Compare versions

Comparing version 7.3.0 to 7.3.1

3

migration/run.js

@@ -15,3 +15,3 @@ #!/usr/bin/env node

var hasUntilDestroy = /import\s*{\s*[^}]*untilDestroyed[^}]*}\s*from\s*(["'])ngx-take-until-destroy\1(?=[^]*untilDestroyed\(\w*\)[^]*)/;
var base = "app";
var _a = require('minimist')(process.argv.slice(2)), _b = _a.base, base = _b === void 0 ? 'src/app' : _b, removeOnDestroy = _a.removeOnDestroy;
var project = new ts_morph_1.Project({

@@ -24,3 +24,2 @@ useInMemoryFileSystem: true,

glob(base + "/**/*.ts", {}, function (_, files) {
var removeOnDestroy = process.argv.includes('--removeOnDestroy');
files.forEach(function (path) {

@@ -27,0 +26,0 @@ fs.readFile(path, 'utf8', function (_, text) {

@@ -5,3 +5,3 @@ {

"description": "RxJS operator that unsubscribes when Angular component is destroyed",
"version": "7.3.0",
"version": "7.3.1",
"repository": {

@@ -29,2 +29,3 @@ "type": "git",

"glob": "^7.1.6",
"minimist": "1.2.5",
"ts-morph": "^7.1.2"

@@ -31,0 +32,0 @@ },

@@ -147,5 +147,7 @@ # 🦁 Unsubscribe For Pros

```shell script
npx @ngneat/until-destroy
npx @ngneat/until-destroy --base my/path
```
`base` defaults to `./src/app`.
You can use `--removeOnDestroy` flag for empty `OnDestroy` methods removing.

@@ -152,0 +154,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