Skip to content

Commit

Permalink
Merge pull request #9444 from micalevisk/feat-relax-pipes-access
Browse files Browse the repository at this point in the history
feat(common): change `private` modifer on built-in pipes to `protected`
  • Loading branch information
kamilmysliwiec authored Apr 7, 2022
2 parents ffdefbf + d884e56 commit 625d367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/pipes/default-value.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { isNil, isNumber } from '../utils/shared.utils';
export class DefaultValuePipe<T = any, R = any>
implements PipeTransform<T, T | R>
{
constructor(private readonly defaultValue: R) {}
constructor(protected readonly defaultValue: R) {}

transform(value?: T, _metadata?: ArgumentMetadata): T | R {
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/common/pipes/parse-array.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ParseArrayPipe implements PipeTransform {
protected readonly validationPipe: ValidationPipe;
protected exceptionFactory: (error: string) => any;

constructor(@Optional() private readonly options: ParseArrayOptions = {}) {
constructor(@Optional() protected readonly options: ParseArrayOptions = {}) {
this.validationPipe = new ValidationPipe({
transform: true,
validateCustomDecorators: true,
Expand Down

0 comments on commit 625d367

Please sign in to comment.