UNPKG

@euk-labs/nest-beltz

Version:

2 lines (1 loc) 436 B
import{a as i,b as r,c as n}from"../../chunk-NMCIOGD2.js";import{removeDeepData as o}from"@euk-labs/beltz";import{Injectable as m}from"@nestjs/common";import{map as c}from"rxjs";let e=class{constructor(...a){this.sensitiveData=a}intercept(a,s){return s.handle().pipe(c(t=>{if(t.data){const l=o(t.data,this.sensitiveData);return r(i({},t),{data:l})}return o(t,this.sensitiveData)}))}};e=n([m()],e);export{e as SensitiveDataInterceptor};