Comparing version 0.3.2 to 0.3.3
10
index.js
@@ -71,4 +71,4 @@ /* jshint node:true, esnext:true */ | ||
function addFileData(src) { | ||
var identifier = path.basename(src); | ||
data[identifier] = createHashString(src); | ||
var identifier = path.basename(src); | ||
data[identifier] = createHashString(src); | ||
} | ||
@@ -125,3 +125,3 @@ | ||
/* Creating a stream through which each file will pass ******************************/ | ||
/* Creating a stream through which each file will pass */ | ||
var stream = through.obj(function(file, enc, callback) { | ||
@@ -158,3 +158,3 @@ | ||
/* Callback *************************************************************************/ | ||
/* Callback */ | ||
.on('end', function () { | ||
@@ -177,2 +177,4 @@ | ||
} | ||
// for mocha tests | ||
vhash.replaceHash = replaceHash; | ||
@@ -179,0 +181,0 @@ vhash.addFileData = addFileData; |
{ | ||
"name": "gulp-vhash", | ||
"version": "0.3.2", | ||
"description": "Asset versioning for browser caching optimization", | ||
"version": "0.3.3", | ||
"description": "Asset versioning (for caching optimization)", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -39,3 +39,3 @@ # gulp-vhash [](https://travis-ci.org/up/gulp-vhash) | ||
``` | ||
$ npm install --save-dev gulp-vhash | ||
$ npm install gulp-vhash | ||
``` | ||
@@ -42,0 +42,0 @@ |
206
8491