Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/karma/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/karma/lib/launchers/capture_timeout.js

    r59329aa re29cc2e  
    1818      }
    1919
    20       log.warn(`${this.name} have not captured in ${captureTimeout} ms, killing.`)
     20      log.warn(`${this.name} has not captured in ${captureTimeout} ms, killing.`)
    2121      this.error = 'timeout'
    2222      this.kill()
  • trip-planner-front/node_modules/karma/lib/middleware/karma.js

    r59329aa re29cc2e  
    4646  const query = getQuery(url)
    4747  if (query['x-ua-compatible']) {
    48     return `\n<meta http-equiv="X-UA-Compatible" content="${query['x-ua-compatible']}"/>`
     48    return `<meta http-equiv="X-UA-Compatible" content="${query['x-ua-compatible']}"/>`
    4949  }
    5050  return ''
     
    108108        return serveStaticFile('/client.html', requestedRangeHeader, response, (data) =>
    109109          data
    110             .replace('\n%X_UA_COMPATIBLE%', getXUACompatibleMetaElement(request.url))
     110            .replace('%X_UA_COMPATIBLE%', getXUACompatibleMetaElement(request.url))
    111111            .replace('%X_UA_COMPATIBLE_URL%', getXUACompatibleUrl(request.url)))
    112112      }
     
    227227            .replace('%SCRIPT_URL_ARRAY%', () => 'window.__karma__.scriptUrls = ' + JSON.stringify(scriptUrls) + ';\n')
    228228            .replace('%MAPPINGS%', () => 'window.__karma__.files = {\n' + mappings.join(',\n') + '\n};\n')
    229             .replace('\n%X_UA_COMPATIBLE%', getXUACompatibleMetaElement(request.url))
     229            .replace('%X_UA_COMPATIBLE%', getXUACompatibleMetaElement(request.url))
    230230        })
    231231      })
  • trip-planner-front/node_modules/karma/lib/reporter.js

    r59329aa re29cc2e  
    4949    }
    5050
    51     let msg = input.replace(URL_REGEXP, function (_, prefix, path, __, ___, line, ____, column) {
     51    let msg = input.replace(URL_REGEXP, function (stackTracePath, prefix, path, __, ___, line, ____, column) {
    5252      const normalizedPath = prefix === 'base/' ? `${basePath}/${path}` : path
    5353      const file = lastServedFiles.find((file) => file.path === normalizedPath)
     
    6565          const original = getSourceMapConsumer(file.sourceMap).originalPositionFor({ line, column: zeroBasedColumn, bias })
    6666
     67          // If there is no original position/source for the current stack trace path, then
     68          // we return early with the formatted generated position. This handles the case of
     69          // generated code which does not map to anything, see Case 1 of the source-map spec.
     70          // https://sourcemaps.info/spec.html.
     71          if (original.source === null) {
     72            return PathUtils.formatPathMapping(path, line, column)
     73          }
     74
    6775          // Source maps often only have a local file name, resolve to turn into a full path if
    6876          // the path is not absolute yet.
     
    7078          return `${PathUtils.formatPathMapping(resolve(path, original.source), original.line, oneBasedOriginalColumn)} <- ${PathUtils.formatPathMapping(path, line, column)}`
    7179        } catch (e) {
    72           log.warn(`SourceMap position not found for trace: ${input}`)
     80          log.warn(`An unexpected error occurred while resolving the original position for: ${stackTracePath}`)
     81          log.warn(e)
    7382        }
    7483      }
Note: See TracChangeset for help on using the changeset viewer.