Comparing version 0.2.0 to 0.2.1
@@ -10,4 +10,5 @@ 'use strict'; | ||
module.exports = dest; | ||
module.exports = function dest(dir, options) { | ||
function dest(dir, options) { | ||
var stream = through.obj(function (file, enc, cb) { | ||
@@ -22,3 +23,3 @@ var opts = normalizeOpts(file, options); | ||
normalize(dir, file, opts, function (err, fp) { | ||
dest.normalize(dir, file, opts, function (err, fp) { | ||
if (err) return cb(err); | ||
@@ -157,3 +158,3 @@ writeFile(fp, file, opts, cb); | ||
function normalize(dest, file, opts, cb) { | ||
dest.normalize = function normalize(dest, file, opts, cb) { | ||
opts = opts || {}; | ||
@@ -193,2 +194,2 @@ var cwd = path.resolve(opts.cwd); | ||
cb(null, filepath); | ||
} | ||
}; |
{ | ||
"name": "dest", | ||
"description": "Plugin for Template, for writing a file to the file system.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/jonschlinkert/dest", | ||
@@ -50,2 +50,2 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
] | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7922
157
1