Socket
Socket
Sign inDemoInstall

ngx-extended-async-pipe

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-extended-async-pipe - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

package.json
{
"name": "ngx-extended-async-pipe",
"version": "2.0.0",
"version": "2.1.0",
"description": "Extended version of Angular's async pipe with customizable default, initial and error behavior",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/dscheerens/ngx-extended-async-pipe",

@@ -35,2 +35,9 @@ import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';

* @param source Asynchronous data source from which the values are to be obtained.
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet.
*/
transform<T>(source: AsyncSource<T>, initialValue: T): T;
/**
* Unwraps the specified asynchronous data source and returns the last emitted value or the specified initial value.
*
* @param source Asynchronous data source from which the values are to be obtained.
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. When this is set to `nothing`

@@ -53,4 +60,33 @@ * an error will be thrown instead of returning an initial value.

* @param source Asynchronous data source from which the values are to be obtained.
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet.
* @param errorValue Value to return when the data source emits an error event.
*/
transform<T>(source: AsyncSource<T>, initialValue: T, errorValue: T): T;
/**
* Unwraps the specified asynchronous data source and returns the last emitted value, the specified initial value or the specified error
* value.
*
* @param source Asynchronous data source from which the values are to be obtained.
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet.
* @param errorValue Value to return when the data source emits an error event. When this is set to `nothing` the error will be thrown
* instead of returning an error value.
*/
transform<T, E>(source: AsyncSource<T>, initialValue: T, errorValue: E): T | Something<E>;
/**
* Unwraps the specified asynchronous data source and returns the last emitted value, the specified initial value or the specified error
* value.
*
* @param source Asynchronous data source from which the values are to be obtained.
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. When this is set to `nothing`
* an error will be thrown instead of returning an initial value.
* @param errorValue Value to return when the data source emits an error event.
*/
transform<T, U>(source: AsyncSource<T>, initialValue: U, errorValue: T): T | Something<U>;
/**
* Unwraps the specified asynchronous data source and returns the last emitted value, the specified initial value or the specified error
* value.
*
* @param source Asynchronous data source from which the values are to be obtained.
* @param initialValue Value that will be returned if the data source has not yet emitted any value yet. When this is set to `nothing`
* an error will be thrown instead of returning an initial value.
* @param errorValue Value to return when the data source emits an error event. When this is set to `nothing` the error will be thrown

@@ -57,0 +93,0 @@ * instead of returning an error value.

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