🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

gulp-hash

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-hash - npm Package Compare versions

Comparing version

to
4.0.1

9

CHANGELOG.md
# Changelog
## 4.0.1
* Update contributor and changelog info for npm
## 4.0.0
* Original path ("left side") in the manifest file now uses the file's original path instead of target path + filename. #17
* This allows you to change the path with e.g. gulp-rename both before calling `hash()` and after
* **May break some setups**, hence major version bump
* Thanks to https://github.com/jorrit!
## 3.0.2

@@ -4,0 +13,0 @@ * The `version` option now handles non-strings correctly (thanks @outpunk, https://github.com/Dragory/gulp-hash/pull/9)

6

index.js

@@ -40,3 +40,3 @@ var crypto = require('crypto'),

file.origFilename = path.basename(file.relative);
file.origPath = file.relative;
file.path = path.join(path.dirname(file.path), template(options.template, {

@@ -85,4 +85,4 @@ hash: file.hash,

function(file, enc, cb) {
if (typeof file.origFilename !== 'undefined') {
var manifestSrc = formatManifestPath(path.join(path.dirname(file.relative), file.origFilename));
if (typeof file.origPath !== 'undefined') {
var manifestSrc = formatManifestPath(file.origPath);
var manifestDest = formatManifestPath(file.relative);

@@ -89,0 +89,0 @@ manifest[manifestSrc] = manifestDest;

{
"name": "gulp-hash",
"version": "3.1.0",
"version": "4.0.1",
"description": "Cachebust your assets by adding a hash to the filename",

@@ -16,2 +16,19 @@ "license": "MIT",

},
"contributors": [
{
"name": "https://github.com/coen-hyde"
},
{
"name": "https://github.com/jorrit"
},
{
"name": "https://github.com/ai"
},
{
"name": "https://github.com/othree"
},
{
"name": "https://github.com/outpunk"
}
],
"homepage": "https://github.com/Dragory/gulp-hash",

@@ -18,0 +35,0 @@ "repository": {