Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-rev-all

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rev-all - npm Package Compare versions

Comparing version 0.9.7 to 0.9.8

3

index.js
var Through = require('through2');
var Revisioner = require('./revisioner');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
var PluginError = require('plugin-error');

@@ -6,0 +5,0 @@ var PLUGIN_NAME = 'gulp-rev-all';

{
"name": "gulp-rev-all",
"version": "0.9.7",
"version": "0.9.8",
"description": "Static asset revisioning by appending content hash to filenames: unicorn.css => unicorn.098f6bcd.css, also re-writes references in each file to new reved name.",
"main": "index.js",
"dependencies": {
"chalk": "~0.4.0",
"gulp-util": "~2.2.14",
"chalk": "^1.1.3",
"fancy-log": "^1.3.2",
"merge": "^1.2.0",
"through2": "~0.4.0"
"plugin-error": "^0.1.2",
"through2": "~0.4.0",
"vinyl": "^2.1.0"
},

@@ -12,0 +14,0 @@ "devDependencies": {

@@ -1,2 +0,4 @@

var Gutil = require('gulp-util');
var Vinyl = require('vinyl');
var fancyLog = require('fancy-log');
var chalk = require('chalk');
var Merge = require('merge');

@@ -39,3 +41,3 @@ var Path = require('path');

// Enable / Disable logger based on supplied options
this.log = (this.options.debug) ? Gutil.log : function () {};
this.log = (this.options.debug) ? fancyLog : function () {};

@@ -86,3 +88,3 @@ // Make tools available client side callbacks supplied in options

var file = new Gutil.File({
var file = new Vinyl({
cwd: this.pathCwd,

@@ -102,3 +104,3 @@ base: this.pathBase,

var file = new Gutil.File({
var file = new Vinyl({
cwd: this.pathCwd,

@@ -269,3 +271,3 @@ base: this.pathBase,

};
this.log('gulp-rev-all:', 'Found', referenceType, 'reference [', Gutil.colors.magenta(reference.path), '] -> [', Gutil.colors.green(reference.file.path), '] in [', Gutil.colors.blue(fileResolveReferencesIn.revPathOriginal), ']');
this.log('gulp-rev-all:', 'Found', referenceType, 'reference [', chalk.magenta(reference.path), '] -> [', chalk.green(reference.file.path), '] in [', chalk.blue(fileResolveReferencesIn.revPathOriginal), ']');
} else if (fileResolveReferencesIn.revReferencePaths[reference.path].file.revPathOriginal === reference.file.revPathOriginal) {

@@ -275,3 +277,3 @@ // Append the other regexes to account for inconsitent use

} else {
this.log('gulp-rev-all:', 'Possible ambiguous reference detected [', Gutil.colors.red(fileResolveReferencesIn.revReferencePaths[reference.path].path), ' (', fileResolveReferencesIn.revReferencePaths[reference.path].file.revPathOriginal, ')] <-> [', Gutil.colors.red(reference.path), '(', Gutil.colors.red(reference.file.revPathOriginal), ')]');
this.log('gulp-rev-all:', 'Possible ambiguous reference detected [', chalk.red(fileResolveReferencesIn.revReferencePaths[reference.path].path), ' (', fileResolveReferencesIn.revReferencePaths[reference.path].file.revPathOriginal, ')] <-> [', chalk.red(reference.path), '(', chalk.red(reference.file.revPathOriginal), ')]');
}

@@ -278,0 +280,0 @@ }

@@ -6,3 +6,3 @@ var RevAll = require('./index');

var gulp = require('gulp');
var Gutil = require('gulp-util');
var Vinyl = require('vinyl');
var es = require('event-stream');

@@ -1170,3 +1170,3 @@

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1176,3 +1176,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/script.js',

@@ -1197,3 +1197,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/other.js',

@@ -1203,3 +1203,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/script.js',

@@ -1228,3 +1228,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1234,3 +1234,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/other.html',

@@ -1255,3 +1255,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1261,3 +1261,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/fourth/other.html',

@@ -1283,3 +1283,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: 'c:\\first\\second\\third\\index.html',

@@ -1289,3 +1289,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: 'c:\\first\\second\\third\\fourth\\other.html',

@@ -1315,3 +1315,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1321,3 +1321,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/index.html',

@@ -1341,3 +1341,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1347,3 +1347,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/index.html',

@@ -1367,3 +1367,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1373,3 +1373,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/thirder/index.html',

@@ -1393,3 +1393,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1399,3 +1399,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/advanced/index.html',

@@ -1423,3 +1423,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/fourth/index.html',

@@ -1429,3 +1429,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/index.html',

@@ -1449,3 +1449,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/fourth/index.html',

@@ -1455,3 +1455,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/index.html',

@@ -1475,3 +1475,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/fourth/fifth/index.html',

@@ -1481,3 +1481,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/index.html',

@@ -1509,3 +1509,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1515,3 +1515,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/script.js',

@@ -1536,3 +1536,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/other.js',

@@ -1542,3 +1542,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/script.js',

@@ -1567,3 +1567,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1573,3 +1573,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/other.html',

@@ -1594,3 +1594,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1600,3 +1600,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/fourth/other.html',

@@ -1625,3 +1625,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1631,3 +1631,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/index.html',

@@ -1652,3 +1652,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1658,3 +1658,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/index.html',

@@ -1679,3 +1679,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/thirder/index.html',

@@ -1685,3 +1685,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/third/index.html',

@@ -1706,3 +1706,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/index.html',

@@ -1712,3 +1712,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/advanced/index.html',

@@ -1737,3 +1737,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/fourth/index.html',

@@ -1743,3 +1743,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/index.html',

@@ -1764,3 +1764,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/fourth/index.html',

@@ -1770,3 +1770,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/index.html',

@@ -1791,3 +1791,3 @@ base: base

var file = new Gutil.File({
var file = new Vinyl({
path: '/first/second/third/fourth/fifth/index.html',

@@ -1797,3 +1797,3 @@ base: base

var fileReference = new Gutil.File({
var fileReference = new Vinyl({
path: '/first/second/other/index.html',

@@ -1800,0 +1800,0 @@ base: base

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc