Comparing version 1.1.1 to 1.2.0
16
index.js
var falafel = require('falafel'); | ||
var through = require('through'); | ||
var through = require('through2'); | ||
var sourceMap = require('source-map'); | ||
@@ -20,3 +20,3 @@ var convertSourceMap = require('convert-source-map'); | ||
function write (buf) { chunks.push(buf) } | ||
function write (buf, enc, next) { chunks.push(buf); next() } | ||
@@ -30,8 +30,8 @@ function end () { | ||
if (file.match(/\.json$/)) { | ||
this.queue('module.exports=' + body); | ||
this.queue(null); | ||
this.push('module.exports=' + body); | ||
this.push(null); | ||
return; | ||
} | ||
try { var src = falafel(body, { loc: true }, walk) + '' } | ||
try { var src = falafel(body, { locations: true }, walk) + '' } | ||
catch (err) { return onerror(err, file,body) } | ||
@@ -76,3 +76,3 @@ var sfile = JSON.stringify(JSON.stringify(file)); | ||
this.queue( | ||
this.push( | ||
outputFn + '("COVERAGE " + ' + sfile + ' + " " + ' | ||
@@ -95,4 +95,4 @@ + JSON.stringify(JSON.stringify(expected)) | ||
this.queue(src); | ||
this.queue(null); | ||
this.push(src); | ||
this.push(null); | ||
} | ||
@@ -99,0 +99,0 @@ |
{ | ||
"name": "coverify", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "code coverage browserify transform", | ||
@@ -10,13 +10,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"convert-source-map": "~1.0.0", | ||
"falafel": "~0.3.1", | ||
"minimist": "~0.0.5", | ||
"convert-source-map": "^1.1.0", | ||
"falafel": "^1.0.1", | ||
"minimist": "^1.1.1", | ||
"source-map": "~0.4.2", | ||
"split": "~0.2.10", | ||
"stream-combiner": "~0.0.2", | ||
"through": "~2.3.4" | ||
"through2": "~0.6.5" | ||
}, | ||
"devDependencies": { | ||
"browserify": "~3.4.1", | ||
"tape": "~2.3.2" | ||
"browserify": "^10.0.0", | ||
"tape": "^4.0.0" | ||
}, | ||
@@ -48,4 +46,8 @@ "repository": { | ||
"ie/8..latest", | ||
"firefox/3.5", "firefox/latest", "firefox/nightly", | ||
"chrome/10", "chrome/latest", "chrome/canary", | ||
"firefox/3.5", | ||
"firefox/latest", | ||
"firefox/nightly", | ||
"chrome/10", | ||
"chrome/latest", | ||
"chrome/canary", | ||
"opera/12..latest", | ||
@@ -52,0 +54,0 @@ "opera/next", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
25275
+ Addedthrough2@~0.6.5
+ Addedacorn@1.2.2(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedfalafel@1.2.0(transitive)
+ Addedforeach@2.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedthrough2@0.6.5(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedsplit@~0.2.10
- Removedstream-combiner@~0.0.2
- Removedthrough@~2.3.4
- Removedconvert-source-map@1.0.0(transitive)
- Removedduplexer@0.1.2(transitive)
- Removedfalafel@0.3.1(transitive)
- Removedminimist@0.0.10(transitive)
- Removedsplit@0.2.10(transitive)
- Removedstream-combiner@0.0.4(transitive)
- Removedthrough@2.3.8(transitive)
Updatedconvert-source-map@^1.1.0
Updatedfalafel@^1.0.1
Updatedminimist@^1.1.1