Skip to content
Snippets Groups Projects
Select Git revision
  • 16258fe18a23fa8cae3e07b9d8d6080c4e31af2f
  • master default
  • feat/info-xml-backends
  • fix/shareapi-l10n
  • fix/missing-RemoteException-class
  • backport/46504/stable28
  • backport/46504/stable29
  • automated/noid/stable29-update-psalm-baseline
  • automated/noid/stable28-update-psalm-baseline
  • feat/46438/provide-feedback-edit-locally
  • fix-getimagesize
  • stable27
  • stable28
  • stable29
  • query-builder-connection
  • feature/request-803
  • autosharding
  • fix/noid/test-samba-with-self-hosted
  • fix/bring-back-forbidden-names
  • fix/htaccess
  • fix/use-filename-validator
  • v28.0.8rc1
  • v29.0.4rc1
  • v27.1.11
  • v28.0.7
  • v29.0.3
  • v28.0.7rc4
  • v29.0.3rc4
  • v29.0.3rc3
  • v28.0.7rc3
  • v27.1.11rc3
  • v27.1.11rc2
  • v28.0.7rc2
  • v29.0.3rc2
  • v27.1.11rc1
  • v28.0.7rc1
  • v29.0.3rc1
  • v29.0.2
  • v27.1.10
  • v29.0.2rc2
  • v29.0.2rc1
41 results

webpack.common.js

Blame
  • config-serializer.ts 766 B
    import traverse from 'traverse';
    import type { RenovateConfig } from '../config/types';
    
    export default function configSerializer(
      config: RenovateConfig
    ): RenovateConfig {
      const templateFields = ['prBody'];
      const contentFields = [
        'content',
        'contents',
        'packageLockParsed',
        'yarnLockParsed',
      ];
      const arrayFields = ['packageFiles', 'upgrades'];
    
      return traverse(config).map(function scrub(val: string) {
        if (this.key && val) {
          if (templateFields.includes(this.key)) {
            this.update('[Template]');
          }
          if (contentFields.includes(this.key)) {
            this.update('[content]');
          }
          // istanbul ignore if
          if (arrayFields.includes(this.key)) {
            this.update('[Array]');
          }
        }
      });
    }