Skip to content

Commit

Permalink
Merge pull request #96 from basics/feature/quickfix
Browse files Browse the repository at this point in the history
Feature/quickfix
  • Loading branch information
StephanGerbeth authored Nov 26, 2024
2 parents d81095a + 262032c commit de6eb9f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/observables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Project Changelog

# [@rxjs-collection/observables-v1.0.7-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.6...@rxjs-collection/observables-v1.0.7-beta.1) (2024-11-26)

# [@rxjs-collection/observables-v1.0.7](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.6...@rxjs-collection/observables-v1.0.7) (2024-11-26)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/observables/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rxjs-collection/observables",
"version": "1.0.7-beta.1",
"version": "1.0.7",
"description": "rxjs observables",
"license": "MIT",
"contributors": [
Expand Down
9 changes: 9 additions & 0 deletions packages/operators/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Project Changelog

# [@rxjs-collection/operators-v1.0.11](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.10...@rxjs-collection/operators-v1.0.11) (2024-11-26)


### Bug Fixes

* **operators:** cleanup & optimization ([200b476](https://github.com/basics/rxjs-collection/commit/200b476d02deb96764bb43e4e7573855e2af5c92))
* **operators:** fix cache log ([c551158](https://github.com/basics/rxjs-collection/commit/c5511580b60c5ce1b595dd7541edcc32aa97a445))
* **operators:** solved duplication ([eae508b](https://github.com/basics/rxjs-collection/commit/eae508b7fe2a43879d1ba46df9d17d9e632f8778))

# [@rxjs-collection/operators-v1.0.11-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.10...@rxjs-collection/operators-v1.0.11-beta.1) (2024-11-26)


Expand Down
2 changes: 1 addition & 1 deletion packages/operators/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rxjs-collection/operators",
"version": "1.0.11-beta.1",
"version": "1.0.11",
"description": "rxjs operators",
"license": "MIT",
"contributors": [
Expand Down
6 changes: 3 additions & 3 deletions packages/operators/src/log.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { bgGreen } from 'ansi-colors';
import debug from 'debug';
import { connectable, finalize, Observable, Subject, tap } from 'rxjs';
import { connectable, finalize, Subject, tap } from 'rxjs';

import { pipeWhen } from './when';

Expand All @@ -9,9 +9,9 @@ export const enableLog = tag => {
};

export const log = tag => {
var logger = debug(tag);
const logger = debug(tag);
logger.log = global.console.log.bind(console);
var error = debug(`${tag}:error`);
const error = debug(`${tag}:error`);

return source =>
source.pipe(
Expand Down
2 changes: 1 addition & 1 deletion packages/operators/src/retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const retryWhenRequestError = ({
return source => {
return source.pipe(
pipeWhen(
resp => (retryableStatuses && retryableStatuses.includes(resp.status)) || !resp.ok,
resp => retryableStatuses?.includes(resp.status) || !resp.ok,
concatMap(() => throwError(() => new Error('invalid request')))
),
retry({ count, delay: () => determineDelayWhenOnline(timeout, ++counter) })
Expand Down

0 comments on commit de6eb9f

Please sign in to comment.