Skip to content

Commit dacf9e9

Browse files
author
Matt Lewis
committed
fix: remove usage of the deprecated helper._
1 parent a0d8dba commit dacf9e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/preprocessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
var istanbul = require('istanbul')
1010
var minimatch = require('minimatch')
1111
var path = require('path')
12+
var _ = require('lodash')
1213
var SourceMapConsumer = require('source-map').SourceMapConsumer
1314
var SourceMapGenerator = require('source-map').SourceMapGenerator
1415
var globalSourceCache = require('./source-cache')
@@ -22,7 +23,6 @@ var coverageObjRegex = /\{.*"path".*"fnMap".*"statementMap".*"branchMap".*\}/g
2223

2324
// Preprocessor creator function
2425
function createCoveragePreprocessor (logger, helper, basePath, reporters, coverageReporter) {
25-
var _ = helper._
2626
var log = logger.create('preprocessor.coverage')
2727

2828
// Options

lib/reporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
var path = require('path')
1414
var istanbul = require('istanbul')
1515
var minimatch = require('minimatch')
16+
var _ = require('lodash')
1617

1718
var globalSourceCache = require('./source-cache')
1819
var coverageMap = require('./coverage-map')
@@ -28,7 +29,6 @@ function isAbsolute (file) {
2829

2930
// TODO(vojta): inject only what required (config.basePath, config.coverageReporter)
3031
var CoverageReporter = function (rootConfig, helper, logger, emitter) {
31-
var _ = helper._
3232
var log = logger.create('coverage')
3333

3434
// Instance variables

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
],
2020
"author": "SATO taichi <ryushi@gmail.com>",
2121
"dependencies": {
22-
"istanbul": "^0.4.0",
2322
"dateformat": "^1.0.6",
23+
"istanbul": "^0.4.0",
24+
"lodash": "^3.8.0",
2425
"minimatch": "^3.0.0",
2526
"source-map": "^0.5.1"
2627
},
@@ -47,7 +48,6 @@
4748
"karma-mocha": "1.x || ^0.2.0",
4849
"karma-requirejs": "1.x || ^0.2.2",
4950
"load-grunt-tasks": "^3.2.0",
50-
"lodash": "^4.5.0",
5151
"mocha": "^2.2.5",
5252
"mocks": "0.0.15",
5353
"requirejs": "^2.1.20",

0 commit comments

Comments
 (0)