hunk.code_window:   logger.info('Gathering event dimensions from @angular/cli...');
     const eventCustomDimensionValues = new Set(Object.values(EventCustomDimension));
     logger.info('Gathering options for user-analytics...');
     const schemaUserAnalyticsValidator = (obj: Object) => {
       for (const [key, value] of Object.entries(obj)) {
         if (value && typeof value === 'object') {
           const userAnalytics = value['x-user-analytics'];
           if (userAnalytics && !eventCustomDimensionValues.has(userAnalytics)) {
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     for (const value of Object.values(obj)) {
  
hunk.file_path: scripts/validate-user-analytics.ts
hunk.type: replace
file: import * as fs from 'fs';
  import * as semver from 'semver';
  
  export function readNgVersion(): string {
    const packageJson: any = JSON.parse(
      fs.readFileSync('./node_modules/@angular/core/package.json', 'utf8'),
    );
    return packageJson['version'];
  }
  
  export function ngVersionMatches(range: string): boolean {
    return semver.satisfies(readNgVersion(), range);
  }
  