@dereekb/rxjs 9.5.1 → 9.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.5.4](https://github.com/dereekb/dbx-components/compare/v9.5.3-dev...v9.5.4) (2022-08-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [9.5.3](https://github.com/dereekb/dbx-components/compare/v9.5.2-dev...v9.5.3) (2022-08-29)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [9.5.2](https://github.com/dereekb/dbx-components/compare/v9.5.1-dev...v9.5.2) (2022-08-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [9.5.1](https://github.com/dereekb/dbx-components/compare/v9.5.0-dev...v9.5.1) (2022-08-26)
|
|
6
18
|
|
|
7
19
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/rxjs",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"rxjs": "^7.5.0",
|
|
10
|
-
"@dereekb/util": "9.5.
|
|
10
|
+
"@dereekb/util": "9.5.4",
|
|
11
11
|
"lodash.isequal": "^4.5.0",
|
|
12
12
|
"make-error": "^1.3.0",
|
|
13
13
|
"ts-essentials": "^9.1.2",
|
|
@@ -15,3 +15,11 @@ export declare function startWithBeginLoading<L extends PageLoadingState<T>, T =
|
|
|
15
15
|
* Returns the value once the LoadingState has finished loading.
|
|
16
16
|
*/
|
|
17
17
|
export declare function valueFromLoadingState<L extends LoadingState<T>, T = unknown>(): OperatorFunction<L, Maybe<T>>;
|
|
18
|
+
/**
|
|
19
|
+
* Executes a function when the input state has a successful value.
|
|
20
|
+
*
|
|
21
|
+
* @param fn
|
|
22
|
+
*/
|
|
23
|
+
export declare function tapOnLoadingStateSuccess<L extends LoadingState<T>, T = unknown>(fn: (state: L) => void): MonoTypeOperatorFunction<L>;
|
|
24
|
+
export declare function tapOnLoadingStateSuccess<L extends LoadingState<T>, T = unknown>(fn: (state: L) => void): MonoTypeOperatorFunction<L>;
|
|
25
|
+
export declare function tapOnLoadingStateSuccess<L extends PageLoadingState<T>, T = unknown>(fn: (state: L) => void): MonoTypeOperatorFunction<L>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.valueFromLoadingState = exports.startWithBeginLoading = void 0;
|
|
3
|
+
exports.tapOnLoadingStateSuccess = exports.valueFromLoadingState = exports.startWithBeginLoading = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const loading_state_1 = require("./loading.state");
|
|
6
6
|
function startWithBeginLoading(state) {
|
|
@@ -16,4 +16,12 @@ function valueFromLoadingState() {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
exports.valueFromLoadingState = valueFromLoadingState;
|
|
19
|
+
function tapOnLoadingStateSuccess(fn) {
|
|
20
|
+
return (0, rxjs_1.tap)((state) => {
|
|
21
|
+
if ((0, loading_state_1.isSuccessLoadingState)(state)) {
|
|
22
|
+
fn(state);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.tapOnLoadingStateSuccess = tapOnLoadingStateSuccess;
|
|
19
27
|
//# sourceMappingURL=loading.state.rxjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.state.rxjs.js","sourceRoot":"","sources":["../../../../../../packages/rxjs/src/lib/loading/loading.state.rxjs.ts"],"names":[],"mappings":";;;AACA,+
|
|
1
|
+
{"version":3,"file":"loading.state.rxjs.js","sourceRoot":"","sources":["../../../../../../packages/rxjs/src/lib/loading/loading.state.rxjs.ts"],"names":[],"mappings":";;;AACA,+BAA2G;AAC3G,mDAAsI;AAYtI,SAAgB,qBAAqB,CAAyC,KAAkB;IAC9F,OAAO,IAAA,gBAAS,EAAI,IAAA,4BAAY,EAAC,KAAK,CAAiB,CAAC,CAAC;AAC3D,CAAC;AAFD,sDAEC;AAED;;GAEG;AACH,SAAgB,qBAAqB;IACnC,OAAO,CAAC,GAAkB,EAAE,EAAE;QAC5B,OAAO,GAAG,CAAC,IAAI,CACb,IAAA,aAAM,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,8CAA8B,EAAC,CAAC,CAAC,CAAC,EAChD,IAAA,UAAG,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CACpB,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAPD,sDAOC;AAUD,SAAgB,wBAAwB,CAAyC,EAAsB;IACrG,OAAO,IAAA,UAAG,EAAC,CAAC,KAAQ,EAAE,EAAE;QACtB,IAAI,IAAA,qCAAqB,EAAC,KAAK,CAAC,EAAE;YAChC,EAAE,CAAC,KAAK,CAAC,CAAC;SACX;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAND,4DAMC"}
|