documentify
Advanced tools
Comparing version 3.2.2 to 3.2.3
12
index.js
@@ -29,3 +29,3 @@ var parallel = require('async-collection').parallel | ||
if (entry) { | ||
assert.equal(typeof entry, 'string', 'documentify: entry should be type string') | ||
assert.strictEqual(typeof entry, 'string', 'documentify: entry should be type string') | ||
} | ||
@@ -39,3 +39,3 @@ | ||
if (html && !isStream(html)) { | ||
assert.equal(typeof html, 'string', 'documentify: html should be type string or stream') | ||
assert.strictEqual(typeof html, 'string', 'documentify: html should be type string or stream') | ||
} | ||
@@ -79,3 +79,3 @@ | ||
var basedir = opts.basedir || this.basedir | ||
this.transforms.push([ placeholder, opts, internalOpts ]) | ||
this.transforms.push([placeholder, opts, internalOpts]) | ||
this._ready = false | ||
@@ -95,3 +95,3 @@ resolve(transform, { basedir: basedir }, function (err, resolved) { | ||
} else { | ||
this.transforms.push([ transform, opts, internalOpts ]) | ||
this.transforms.push([transform, opts, internalOpts]) | ||
} | ||
@@ -188,3 +188,3 @@ | ||
if (err) return done(err) | ||
done(null, [ require(resolved), opts, internalOpts ]) | ||
done(null, [require(resolved), opts, internalOpts]) | ||
}) | ||
@@ -200,3 +200,3 @@ } | ||
} | ||
resolve(self.entry, { extensions: [ '.html' ] }, function (err, entry) { | ||
resolve(self.entry, { extensions: ['.html'] }, function (err, entry) { | ||
if (err) { | ||
@@ -203,0 +203,0 @@ source = fromString(defaultHtml) |
@@ -5,3 +5,3 @@ { | ||
"repository": "stackhtml/documentify", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"bin": "./bin.js", | ||
@@ -21,4 +21,4 @@ "scripts": { | ||
"labeled-stream-splicer": "^2.0.0", | ||
"pump": "^1.0.2", | ||
"readable-stream": "^2.3.3", | ||
"pump": "^3.0.0", | ||
"readable-stream": "^3.0.0", | ||
"resolve": "^1.4.0", | ||
@@ -29,8 +29,8 @@ "subarg": "^1.0.0" | ||
"assert-html": "^1.1.5", | ||
"concat-stream": "^1.6.0", | ||
"concat-stream": "^2.0.0", | ||
"dedent": "^0.7.0", | ||
"dependency-check": "^2.9.1", | ||
"hyperstream": "^1.2.2", | ||
"standard": "^10.0.2", | ||
"tape": "^4.8.0" | ||
"standard": "^14.3.3", | ||
"tape": "^5.0.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "keywords": [ |
@@ -15,3 +15,3 @@ var test = require('tape') | ||
12, | ||
{foo: 'bar'}, | ||
{ foo: 'bar' }, | ||
true | ||
@@ -18,0 +18,0 @@ ] |
Sorry, the diff of this file is not supported yet
19651
+ Addedpump@3.0.2(transitive)
+ Addedreadable-stream@3.6.2(transitive)
- Removedpump@1.0.3(transitive)
Updatedpump@^3.0.0
Updatedreadable-stream@^3.0.0