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.1.6 to 7.2.0

esm2015/lib/ivy.js

71

bundles/ngneat-until-destroy.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators')) :
typeof define === 'function' && define.amd ? define('@ngneat/until-destroy', ['exports', 'rxjs', 'rxjs/operators'], factory) :
(global = global || self, factory((global.ngneat = global.ngneat || {}, global.ngneat['until-destroy'] = {}), global.rxjs, global.rxjs.operators));
}(this, (function (exports, rxjs, operators) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('@angular/core'), require('rxjs/operators')) :
typeof define === 'function' && define.amd ? define('@ngneat/until-destroy', ['exports', 'rxjs', '@angular/core', 'rxjs/operators'], factory) :
(global = global || self, factory((global.ngneat = global.ngneat || {}, global.ngneat['until-destroy'] = {}), global.rxjs, global.ng.core, global.rxjs.operators));
}(this, (function (exports, rxjs, core, operators) { 'use strict';
// This is done for type-safety and to make compiler happy
// because definition property names are exported as `string`,
// thus it throws `ɵNG_COMP_DEF can't be used to index type 'ɵComponentType<T>'.`
var NG_DIR_DEF = core.ɵNG_DIR_DEF;
var NG_COMP_DEF = core.ɵNG_COMP_DEF;
var NG_PIPE_DEF = core.ɵNG_PIPE_DEF;
// As directive and component definitions are considered private API,
// so those properties are prefixed with Angular's marker for "private".
function getDef(type) {
return (type[NG_PIPE_DEF] ||
type[NG_COMP_DEF] ||
type[NG_DIR_DEF]);
}
function getDefName(type) {
if (type.hasOwnProperty(NG_PIPE_DEF)) {
return NG_PIPE_DEF;
}
else if (type.hasOwnProperty(NG_COMP_DEF)) {
return NG_COMP_DEF;
}
else {
return NG_DIR_DEF;
}
}
// Determines whether the provided `target` is some function
// decorated with `@Injectable()`.
function isInjectableType(target) {
return !!target[core.ɵNG_PROV_DEF];
}
function isFunction(target) {

@@ -19,4 +49,2 @@ return typeof target === 'function';

var DECORATOR_APPLIED = Symbol('__decoratorApplied');
var NG_COMPONENT_DEF = 'ɵcmp';
var NG_DIRECTIVE_DEF = 'ɵdir';
/**

@@ -65,25 +93,2 @@ * If we use the `untilDestroyed` operator multiple times inside the single

}
/**
* As directive and component definitions are considered private API,
* so those properties are prefixed with Angular's marker for "private"
*/
function getDef(type) {
return (type[NG_COMPONENT_DEF] ||
type[NG_DIRECTIVE_DEF]);
}
function getDefName(type) {
if (type.hasOwnProperty(NG_COMPONENT_DEF)) {
return NG_COMPONENT_DEF;
}
else {
return NG_DIRECTIVE_DEF;
}
}
/**
* Determines whether the provided `target` is some function
* decorated with `@Injectable()`
*/
function isInjectableType(target) {
return !!target.ɵprov;
}

@@ -133,3 +138,3 @@ function unsubscribe(property) {

*/
function decorateDirectiveJIT(type, options) {
function decorateDeclarableJIT(type, options) {
var defName = getDefName(type);

@@ -148,6 +153,6 @@ var getter = Object.getOwnPropertyDescriptor(type, defName).get;

}
function decorateDirective(type, options) {
function decorateDeclarable(type, options) {
var isJIT = type.hasOwnProperty('__annotations__');
if (isJIT) {
decorateDirectiveJIT(type, options);
decorateDeclarableJIT(type, options);
}

@@ -167,3 +172,3 @@ else {

else {
decorateDirective(target, options);
decorateDeclarable(target, options);
}

@@ -170,0 +175,0 @@ };

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngneat/until-destroy",["exports","rxjs","rxjs/operators"],n):n(((t=t||self).ngneat=t.ngneat||{},t.ngneat["until-destroy"]={}),t.rxjs,t.rxjs.operators)}(this,(function(t,n,r){"use strict";function e(t){return"function"==typeof t}var o=Symbol("__destroy"),i=Symbol("__decoratorApplied");function s(t){return"string"==typeof t?Symbol("__destroy__"+t):o}function u(t){return!t[i]}function c(t){t[i]=!0}function f(t,r){t[r]||(t[r]=new n.Subject)}function a(t,n){t[n]&&(t[n].next(),t[n].complete(),t[n]=null)}function p(t){return t["ɵcmp"]||t["ɵdir"]}function y(t){return!!t.ɵprov}function d(t){t&&e(t.unsubscribe)&&t.unsubscribe()}function l(t,n){var r=n.arrayName,e=n.checkProperties,o=n.blackList;return function(){if(t&&t.call(this),a(this,s()),r)return function(t){Array.isArray(t)&&t.forEach(d)}(this[r]);if(e)for(var n in this)o&&o.includes(n)||d(this[n])}}function h(t,n){if(t.hasOwnProperty("__annotations__"))!function(t,n){var r=function(t){return t.hasOwnProperty("ɵcmp")?"ɵcmp":"ɵdir"}(t),e=Object.getOwnPropertyDescriptor(t,r).get;Object.defineProperty(t,r,{get:function(){var t=e();return u(t)&&(t.onDestroy=l(t.onDestroy,n),c(t)),t}})}(t,n);else{var r=p(t);r.onDestroy=l(r.onDestroy,n),c(r)}}t.UntilDestroy=function(t){return void 0===t&&(t={}),function(n){y(n)?function(t,n){t.prototype.ngOnDestroy=l(t.prototype.ngOnDestroy,n),c(t)}(n,t):h(n,t)}},t.untilDestroyed=function(t,n){return function(o){var i=s(n);return"string"==typeof n?function(t,n,r){var o=t[n];if(!1===e(o))throw new Error(t.constructor.name+" is using untilDestroyed but doesn't implement "+n);f(t,r),t[n]=function(){e(o)&&o.apply(this,arguments),a(this,r),t[n]=o}}(t,n,i):(!function(t){var n=t.constructor;if(u(y(n)?n:p(n)))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(t),f(t,i)),o.pipe(r.takeUntil(t[i]))}},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("rxjs"),require("@angular/core"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngneat/until-destroy",["exports","rxjs","@angular/core","rxjs/operators"],n):n(((t=t||self).ngneat=t.ngneat||{},t.ngneat["until-destroy"]={}),t.rxjs,t.ng.core,t.rxjs.operators)}(this,(function(t,n,r,e){"use strict";var o=r.ɵNG_DIR_DEF,i=r.ɵNG_COMP_DEF,u=r.ɵNG_PIPE_DEF;function s(t){return t[u]||t[i]||t[o]}function c(t){return!!t[r.ɵNG_PROV_DEF]}function f(t){return"function"==typeof t}var a=Symbol("__destroy"),y=Symbol("__decoratorApplied");function p(t){return"string"==typeof t?Symbol("__destroy__"+t):a}function d(t){return!t[y]}function l(t){t[y]=!0}function _(t,r){t[r]||(t[r]=new n.Subject)}function h(t,n){t[n]&&(t[n].next(),t[n].complete(),t[n]=null)}function D(t){t&&f(t.unsubscribe)&&t.unsubscribe()}function b(t,n){var r=n.arrayName,e=n.checkProperties,o=n.blackList;return function(){if(t&&t.call(this),h(this,p()),r)return function(t){Array.isArray(t)&&t.forEach(D)}(this[r]);if(e)for(var n in this)o&&o.includes(n)||D(this[n])}}function g(t,n){var r=function(t){return t.hasOwnProperty(u)?u:t.hasOwnProperty(i)?i:o}(t),e=Object.getOwnPropertyDescriptor(t,r).get;Object.defineProperty(t,r,{get:function(){var t=e();return d(t)&&(t.onDestroy=b(t.onDestroy,n),l(t)),t}})}t.UntilDestroy=function(t){return void 0===t&&(t={}),function(n){c(n)?function(t,n){t.prototype.ngOnDestroy=b(t.prototype.ngOnDestroy,n),l(t)}(n,t):function(t,n){if(t.hasOwnProperty("__annotations__"))g(t,n);else{var r=s(t);r.onDestroy=b(r.onDestroy,n),l(r)}}(n,t)}},t.untilDestroyed=function(t,n){return function(r){var o=p(n);return"string"==typeof n?function(t,n,r){var e=t[n];if(!1===f(e))throw new Error(t.constructor.name+" is using untilDestroyed but doesn't implement "+n);_(t,r),t[n]=function(){f(e)&&e.apply(this,arguments),h(this,r),t[n]=e}}(t,n,o):(!function(t){var n=t.constructor;if(d(c(n)?n:s(n)))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(t),_(t,o)),r.pipe(e.takeUntil(t[o]))}},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngneat-until-destroy.umd.min.js.map
import { Subject } from 'rxjs';
import { getDef, isInjectableType } from './ivy';
export function isFunction(target) {

@@ -14,4 +15,2 @@ return typeof target === 'function';

const DECORATOR_APPLIED = Symbol('__decoratorApplied');
const NG_COMPONENT_DEF = 'ɵcmp';
const NG_DIRECTIVE_DEF = 'ɵdir';
/**

@@ -60,25 +59,2 @@ * If we use the `untilDestroyed` operator multiple times inside the single

}
/**
* As directive and component definitions are considered private API,
* so those properties are prefixed with Angular's marker for "private"
*/
export function getDef(type) {
return (type[NG_COMPONENT_DEF] ||
type[NG_DIRECTIVE_DEF]);
}
export function getDefName(type) {
if (type.hasOwnProperty(NG_COMPONENT_DEF)) {
return NG_COMPONENT_DEF;
}
else {
return NG_DIRECTIVE_DEF;
}
}
/**
* Determines whether the provided `target` is some function
* decorated with `@Injectable()`
*/
export function isInjectableType(target) {
return !!target.ɵprov;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC91bnRpbC1kZXN0cm95LyIsInNvdXJjZXMiOlsibGliL2ludGVybmFscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRS9CLE1BQU0sVUFBVSxVQUFVLENBQUMsTUFBZTtJQUN4QyxPQUFPLE9BQU8sTUFBTSxLQUFLLFVBQVUsQ0FBQztBQUN0QyxDQUFDO0FBRUQ7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLEdBQWtCLE1BQU0sQ0FBQyxXQUFXLENBQUMsQ0FBQztBQUVuRDs7R0FFRztBQUNILE1BQU0saUJBQWlCLEdBQWtCLE1BQU0sQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO0FBRXRF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GlsRGVzdHJveSBkZWNvcmF0b3InXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlU3ViamVjdE9uVGhlSW5zdGFuY2UoaW5zdGFuY2U6IGFueSwgc3ltYm9sOiBzeW1ib2wpOiB2b2lkIHtcbiAgaWYgKCFpbnN0YW5jZVtzeW1ib2xdKSB7XG4gICAgaW5zdGFuY2Vbc3ltYm9sXSA9IG5ldyBTdWJqZWN0PHZvaWQ+KCk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNvbXBsZXRlU3ViamVjdE9uVGhlSW5zdGFuY2UoaW5zdGFuY2U6IGFueSwgc3ltYm9sOiBzeW1ib2wpOiB2b2lkIHtcbiAgaWYgKGluc3RhbmNlW3N5bWJvbF0pIHtcbiAgICBpbnN0YW5jZVtzeW1ib2xdLm5leHQoKTtcbiAgICBpbnN0YW5jZVtzeW1ib2xdLmNvbXBsZXRlKCk7XG4gICAgLy8gV2UgYWxzbyBoYXZlIHRvIHJlLWFzc2lnbiB0aGlzIHByb3BlcnR5IHRodXMgaW4gdGhlIGZ1dHVyZVxuICAgIC8vIHdlIHdpbGwgYmUgYWJsZSB0byBjcmVhdGUgbmV3IHN1YmplY3Qgb24gdGhlIHNhbWUgaW5zdGFuY2UuXG4gICAgaW5zdGFuY2Vbc3ltYm9sXSA9IG51bGw7XG4gIH1cbn1cbiJdfQ==

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

import { getDef, getSymbol, isFunction, completeSubjectOnTheInstance, isInjectableType, markAsDecorated, missingDecorator, getDefName } from './internals';
import { getSymbol, isFunction, markAsDecorated, missingDecorator, completeSubjectOnTheInstance } from './internals';
import { getDef, getDefName, isInjectableType } from './ivy';
function unsubscribe(property) {

@@ -44,3 +45,3 @@ property && isFunction(property.unsubscribe) && property.unsubscribe();

*/
function decorateDirectiveJIT(type, options) {
function decorateDeclarableJIT(type, options) {
const defName = getDefName(type);

@@ -59,6 +60,6 @@ const getter = Object.getOwnPropertyDescriptor(type, defName).get;

}
function decorateDirective(type, options) {
function decorateDeclarable(type, options) {
const isJIT = type.hasOwnProperty('__annotations__');
if (isJIT) {
decorateDirectiveJIT(type, options);
decorateDeclarableJIT(type, options);
}

@@ -77,6 +78,6 @@ else {

else {
decorateDirective(target, options);
decorateDeclarable(target, options);
}
};
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW50aWwtZGVzdHJveS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvdW50aWwtZGVzdHJveS8iLCJzb3VyY2VzIjpbImxpYi91bnRpbC1kZXN0cm95LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1BLE9BQU8sRUFDTCxNQUFNLEVBQ04sU0FBUyxFQUNULFVBQVUsRUFFViw0QkFBNEIsRUFDNUIsZ0JBQWdCLEVBQ2hCLGVBQWUsRUFDZixnQkFBZ0IsRUFDaEIsVUFBVSxFQUNYLE1BQU0sYUFBYSxDQUFDO0FBRXJCLFNBQVMsV0FBVyxDQUFDLFFBQWE7SUFDaEMsUUFBUSxJQUFJLFVBQVUsQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLElBQUksUUFBUSxDQUFDLFdBQVcsRUFBRSxDQUFDO0FBQ3pFLENBQUM7QUFFRCxTQUFTLGdDQUFnQyxDQUFDLFFBQWU7SUFDdkQsS0FBSyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsSUFBSSxRQUFRLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQzNELENBQUM7QUFFRCxTQUFTLG1CQUFtQixDQUMxQixXQUE0QyxFQUM1QyxFQUFFLFNBQVMsRUFBRSxlQUFlLEVBQUUsU0FBUyxFQUF1QjtJQUU5RCxPQUFPO1FBQ0wsaURBQWlEO1FBQ2pELFdBQVcsSUFBSSxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRXRDLDJEQUE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V4cG9ydCBmdW5jdGlvbiBVbnRpbERlc3Ryb3kob3B0aW9uczogVW50aWxEZXN0cm95T3B0aW9ucyA9IHt9KTogQ2xhc3NEZWNvcmF0b3Ige1xuICByZXR1cm4gKHRhcmdldDogYW55KSA9PiB7XG4gICAgaWYgKGlzSW5qZWN0YWJsZVR5cGUodGFyZ2V0KSkge1xuICAgICAgZGVjb3JhdGVQcm92aWRlcih0YXJnZXQsIG9wdGlvbnMpO1xuICAgIH0gZWxzZSB7XG4gICAgICBkZWNvcmF0ZURlY2xhcmFibGUodGFyZ2V0LCBvcHRpb25zKTtcbiAgICB9XG4gIH07XG59XG4iXX0=
import { Subject } from 'rxjs';
import { getDef, isInjectableType } from './ivy';
export function isFunction(target) {

@@ -14,4 +15,2 @@ return typeof target === 'function';

var DECORATOR_APPLIED = Symbol('__decoratorApplied');
var NG_COMPONENT_DEF = 'ɵcmp';
var NG_DIRECTIVE_DEF = 'ɵdir';
/**

@@ -60,25 +59,2 @@ * If we use the `untilDestroyed` operator multiple times inside the single

}
/**
* As directive and component definitions are considered private API,
* so those properties are prefixed with Angular's marker for "private"
*/
export function getDef(type) {
return (type[NG_COMPONENT_DEF] ||
type[NG_DIRECTIVE_DEF]);
}
export function getDefName(type) {
if (type.hasOwnProperty(NG_COMPONENT_DEF)) {
return NG_COMPONENT_DEF;
}
else {
return NG_DIRECTIVE_DEF;
}
}
/**
* Determines whether the provided `target` is some function
* decorated with `@Injectable()`
*/
export function isInjectableType(target) {
return !!target.ɵprov;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nbmVhdC91bnRpbC1kZXN0cm95LyIsInNvdXJjZXMiOlsibGliL2ludGVybmFscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRS9CLE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IocHJvdmlkZXJPckRlZikpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAndW50aWxEZXN0cm95ZWQgb3BlcmF0b3IgY2Fubm90IGJlIHVzZWQgaW5zaWRlIGRpcmVjdGl2ZXMgb3IgJyArXG4gICAgICAgICdjb21wb25lbnRzIG9yIHByb3ZpZGVycyB0aGF0IGFyZSBub3QgZGVjb3JhdGVkIHdpdGggVW50aWxEZXN0cm95IGRlY29yYXRvcidcbiAgICApO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVTdWJqZWN0T25UaGVJbnN0YW5jZShpbnN0YW5jZTogYW55LCBzeW1ib2w6IHN5bWJvbCk6IHZvaWQge1xuICBpZiAoIWluc3RhbmNlW3N5bWJvbF0pIHtcbiAgICBpbnN0YW5jZVtzeW1ib2xdID0gbmV3IFN1YmplY3Q8dm9pZD4oKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gY29tcGxldGVTdWJqZWN0T25UaGVJbnN0YW5jZShpbnN0YW5jZTogYW55LCBzeW1ib2w6IHN5bWJvbCk6IHZvaWQge1xuICBpZiAoaW5zdGFuY2Vbc3ltYm9sXSkge1xuICAgIGluc3RhbmNlW3N5bWJvbF0ubmV4dCgpO1xuICAgIGluc3RhbmNlW3N5bWJvbF0uY29tcGxldGUoKTtcbiAgICAvLyBXZSBhbHNvIGhhdmUgdG8gcmUtYXNzaWduIHRoaXMgcHJvcGVydHkgdGh1cyBpbiB0aGUgZnV0dXJlXG4gICAgLy8gd2Ugd2lsbCBiZSBhYmxlIHRvIGNyZWF0ZSBuZXcgc3ViamVjdCBvbiB0aGUgc2FtZSBpbnN0YW5jZS5cbiAgICBpbnN0YW5jZVtzeW1ib2xdID0gbnVsbDtcbiAgfVxufVxuIl19

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

import { getDef, getSymbol, isFunction, completeSubjectOnTheInstance, isInjectableType, markAsDecorated, missingDecorator, getDefName } from './internals';
import { getSymbol, isFunction, markAsDecorated, missingDecorator, completeSubjectOnTheInstance } from './internals';
import { getDef, getDefName, isInjectableType } from './ivy';
function unsubscribe(property) {

@@ -45,3 +46,3 @@ property && isFunction(property.unsubscribe) && property.unsubscribe();

*/
function decorateDirectiveJIT(type, options) {
function decorateDeclarableJIT(type, options) {
var defName = getDefName(type);

@@ -60,6 +61,6 @@ var getter = Object.getOwnPropertyDescriptor(type, defName).get;

}
function decorateDirective(type, options) {
function decorateDeclarable(type, options) {
var isJIT = type.hasOwnProperty('__annotations__');
if (isJIT) {
decorateDirectiveJIT(type, options);
decorateDeclarableJIT(type, options);
}

@@ -79,6 +80,6 @@ else {

else {
decorateDirective(target, options);
decorateDeclarable(target, options);
}
};
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW50aWwtZGVzdHJveS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ25lYXQvdW50aWwtZGVzdHJveS8iLCJzb3VyY2VzIjpbImxpYi91bnRpbC1kZXN0cm95LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1BLE9BQU8sRUFDTCxNQUFNLEVBQ04sU0FBUyxFQUNULFVBQVUsRUFFViw0QkFBNEIsRUFDNUIsZ0JBQWdCLEVBQ2hCLGVBQWUsRUFDZixnQkFBZ0IsRUFDaEIsVUFBVSxFQUNYLE1BQU0sYUFBYSxDQUFDO0FBRXJCLFNBQVMsV0FBVyxDQUFDLFFBQWE7SUFDaEMsUUFBUSxJQUFJLFVBQVUsQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLElBQUksUUFBUSxDQUFDLFdBQVcsRUFBRSxDQUFDO0FBQ3pFLENBQUM7QUFFRCxTQUFTLGdDQUFnQyxDQUFDLFFBQWU7SUFDdkQsS0FBSyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsSUFBSSxRQUFRLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQzNELENBQUM7QUFFRCx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xuICB9IGVsc2Uge1xuICAgIGNvbnN0IGRlZiA9IGdldERlZih0eXBlKTtcbiAgICAoZGVmIGFzIHsgb25EZXN0cm95OiAoKSA9PiB2b2lkIH0pLm9uRGVzdHJveSA9IGRlY29yYXRlTmdPbkRlc3Ryb3koZGVmLm9uRGVzdHJveSwgb3B0aW9ucyk7XG4gICAgbWFya0FzRGVjb3JhdGVkKGRlZik7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIFVudGlsRGVzdHJveShvcHRpb25zOiBVbnRpbERlc3Ryb3lPcHRpb25zID0ge30pOiBDbGFzc0RlY29yYXRvciB7XG4gIHJldHVybiAodGFyZ2V0OiBhbnkpID0+IHtcbiAgICBpZiAoaXNJbmplY3RhYmxlVHlwZSh0YXJnZXQpKSB7XG4gICAgICBkZWNvcmF0ZVByb3ZpZGVyKHRhcmdldCwgb3B0aW9ucyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGRlY29yYXRlRGVjbGFyYWJsZSh0YXJnZXQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfTtcbn1cbiJdfQ==
import { Subject } from 'rxjs';
import { ɵNG_DIR_DEF, ɵNG_COMP_DEF, ɵNG_PIPE_DEF, ɵNG_PROV_DEF } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
// This is done for type-safety and to make compiler happy
// because definition property names are exported as `string`,
// thus it throws `ɵNG_COMP_DEF can't be used to index type 'ɵComponentType<T>'.`
const NG_DIR_DEF = ɵNG_DIR_DEF;
const NG_COMP_DEF = ɵNG_COMP_DEF;
const NG_PIPE_DEF = ɵNG_PIPE_DEF;
// As directive and component definitions are considered private API,
// so those properties are prefixed with Angular's marker for "private".
function getDef(type) {
return (type[NG_PIPE_DEF] ||
type[NG_COMP_DEF] ||
type[NG_DIR_DEF]);
}
function getDefName(type) {
if (type.hasOwnProperty(NG_PIPE_DEF)) {
return NG_PIPE_DEF;
}
else if (type.hasOwnProperty(NG_COMP_DEF)) {
return NG_COMP_DEF;
}
else {
return NG_DIR_DEF;
}
}
// Determines whether the provided `target` is some function
// decorated with `@Injectable()`.
function isInjectableType(target) {
return !!target[ɵNG_PROV_DEF];
}
function isFunction(target) {

@@ -16,4 +47,2 @@ return typeof target === 'function';

const DECORATOR_APPLIED = Symbol('__decoratorApplied');
const NG_COMPONENT_DEF = 'ɵcmp';
const NG_DIRECTIVE_DEF = 'ɵdir';
/**

@@ -62,25 +91,2 @@ * If we use the `untilDestroyed` operator multiple times inside the single

}
/**
* As directive and component definitions are considered private API,
* so those properties are prefixed with Angular's marker for "private"
*/
function getDef(type) {
return (type[NG_COMPONENT_DEF] ||
type[NG_DIRECTIVE_DEF]);
}
function getDefName(type) {
if (type.hasOwnProperty(NG_COMPONENT_DEF)) {
return NG_COMPONENT_DEF;
}
else {
return NG_DIRECTIVE_DEF;
}
}
/**
* Determines whether the provided `target` is some function
* decorated with `@Injectable()`
*/
function isInjectableType(target) {
return !!target.ɵprov;
}

@@ -129,3 +135,3 @@ function unsubscribe(property) {

*/
function decorateDirectiveJIT(type, options) {
function decorateDeclarableJIT(type, options) {
const defName = getDefName(type);

@@ -144,6 +150,6 @@ const getter = Object.getOwnPropertyDescriptor(type, defName).get;

}
function decorateDirective(type, options) {
function decorateDeclarable(type, options) {
const isJIT = type.hasOwnProperty('__annotations__');
if (isJIT) {
decorateDirectiveJIT(type, options);
decorateDeclarableJIT(type, options);
}

@@ -162,3 +168,3 @@ else {

else {
decorateDirective(target, options);
decorateDeclarable(target, options);
}

@@ -165,0 +171,0 @@ };

import { Subject } from 'rxjs';
import { ɵNG_DIR_DEF, ɵNG_COMP_DEF, ɵNG_PIPE_DEF, ɵNG_PROV_DEF } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
// This is done for type-safety and to make compiler happy
// because definition property names are exported as `string`,
// thus it throws `ɵNG_COMP_DEF can't be used to index type 'ɵComponentType<T>'.`
var NG_DIR_DEF = ɵNG_DIR_DEF;
var NG_COMP_DEF = ɵNG_COMP_DEF;
var NG_PIPE_DEF = ɵNG_PIPE_DEF;
// As directive and component definitions are considered private API,
// so those properties are prefixed with Angular's marker for "private".
function getDef(type) {
return (type[NG_PIPE_DEF] ||
type[NG_COMP_DEF] ||
type[NG_DIR_DEF]);
}
function getDefName(type) {
if (type.hasOwnProperty(NG_PIPE_DEF)) {
return NG_PIPE_DEF;
}
else if (type.hasOwnProperty(NG_COMP_DEF)) {
return NG_COMP_DEF;
}
else {
return NG_DIR_DEF;
}
}
// Determines whether the provided `target` is some function
// decorated with `@Injectable()`.
function isInjectableType(target) {
return !!target[ɵNG_PROV_DEF];
}
function isFunction(target) {

@@ -16,4 +47,2 @@ return typeof target === 'function';

var DECORATOR_APPLIED = Symbol('__decoratorApplied');
var NG_COMPONENT_DEF = 'ɵcmp';
var NG_DIRECTIVE_DEF = 'ɵdir';
/**

@@ -62,25 +91,2 @@ * If we use the `untilDestroyed` operator multiple times inside the single

}
/**
* As directive and component definitions are considered private API,
* so those properties are prefixed with Angular's marker for "private"
*/
function getDef(type) {
return (type[NG_COMPONENT_DEF] ||
type[NG_DIRECTIVE_DEF]);
}
function getDefName(type) {
if (type.hasOwnProperty(NG_COMPONENT_DEF)) {
return NG_COMPONENT_DEF;
}
else {
return NG_DIRECTIVE_DEF;
}
}
/**
* Determines whether the provided `target` is some function
* decorated with `@Injectable()`
*/
function isInjectableType(target) {
return !!target.ɵprov;
}

@@ -130,3 +136,3 @@ function unsubscribe(property) {

*/
function decorateDirectiveJIT(type, options) {
function decorateDeclarableJIT(type, options) {
var defName = getDefName(type);

@@ -145,6 +151,6 @@ var getter = Object.getOwnPropertyDescriptor(type, defName).get;

}
function decorateDirective(type, options) {
function decorateDeclarable(type, options) {
var isJIT = type.hasOwnProperty('__annotations__');
if (isJIT) {
decorateDirectiveJIT(type, options);
decorateDeclarableJIT(type, options);
}

@@ -164,3 +170,3 @@ else {

else {
decorateDirective(target, options);
decorateDeclarable(target, options);
}

@@ -167,0 +173,0 @@ };

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

import { InjectableType, ɵComponentType as ComponentType, ɵDirectiveType as DirectiveType, ɵComponentDef as ComponentDef, ɵDirectiveDef as DirectiveDef } from '@angular/core';
import { InjectableType, ɵPipeDef as PipeDef, ɵComponentDef as ComponentDef, ɵDirectiveDef as DirectiveDef } from '@angular/core';
export declare function isFunction(target: unknown): boolean;

@@ -11,4 +11,4 @@ /**

export declare function getSymbol<T>(destroyMethodName?: keyof T): symbol;
export declare function missingDecorator(providerOrDef: InjectableType<unknown> | DirectiveDef<unknown> | ComponentDef<unknown>): boolean;
export declare function markAsDecorated(providerOrDef: InjectableType<unknown> | DirectiveDef<unknown> | ComponentDef<unknown>): void;
export declare function missingDecorator<T>(providerOrDef: InjectableType<T> | PipeDef<T> | ComponentDef<T> | DirectiveDef<T>): boolean;
export declare function markAsDecorated<T>(providerOrDef: InjectableType<T> | PipeDef<T> | ComponentDef<T> | DirectiveDef<T>): void;
export interface UntilDestroyOptions {

@@ -22,12 +22,1 @@ blackList?: string[];

export declare function completeSubjectOnTheInstance(instance: any, symbol: symbol): void;
/**
* As directive and component definitions are considered private API,
* so those properties are prefixed with Angular's marker for "private"
*/
export declare function getDef<T>(type: DirectiveType<T> | ComponentType<T>): DirectiveDef<T> | ComponentDef<T>;
export declare function getDefName<T>(type: DirectiveType<T> | ComponentType<T>): "ɵcmp" | "ɵdir";
/**
* Determines whether the provided `target` is some function
* decorated with `@Injectable()`
*/
export declare function isInjectableType(target: any): target is InjectableType<unknown>;

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

{"__symbolic":"module","version":4,"metadata":{"UntilDestroy":{"__symbolic":"function","parameters":["options"],"defaults":[{}],"value":{"__symbolic":"error","message":"Lambda not supported","line":111,"character":9,"module":"./lib/until-destroy"}},"untilDestroyed":{"__symbolic":"function","parameters":["instance","destroyMethodName"],"value":{"__symbolic":"error","message":"Lambda not supported","line":38,"character":9,"module":"./lib/until-destroyed"}}},"origins":{"UntilDestroy":"./lib/until-destroy","untilDestroyed":"./lib/until-destroyed"},"importAs":"@ngneat/until-destroy"}
{"__symbolic":"module","version":4,"metadata":{"UntilDestroy":{"__symbolic":"function","parameters":["options"],"defaults":[{}],"value":{"__symbolic":"error","message":"Lambda not supported","line":110,"character":9,"module":"./lib/until-destroy"}},"untilDestroyed":{"__symbolic":"function","parameters":["instance","destroyMethodName"],"value":{"__symbolic":"error","message":"Lambda not supported","line":38,"character":9,"module":"./lib/until-destroyed"}}},"origins":{"UntilDestroy":"./lib/until-destroy","untilDestroyed":"./lib/until-destroyed"},"importAs":"@ngneat/until-destroy"}

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

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

@@ -8,0 +8,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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