tasks/versioners/abstractVersioner.js
function AbstractVersioner(options, taskData) {
  this.options = options;
  this.taskData = taskData;

  /**
   * Map of versioned files
   * @type {Array.<{version, originalPath: string, versionedPath: string}>}
   */
  this.versionsMap = [];

  /**
   * Get one of the tagger functions: hash or date
   * @type {function}
   */
  this.versionTagger = taggers[this.options.tag];

  // is task a post versioning task?
  this.isPostVersioningTask = grunt.config(this.getAssetsVersioningTaskConfigKey() + '.isPostVersioningTaskFor');
}
function AbstractVersioner(options, taskData) {
  this.options = options;
  this.taskData = taskData;

  /**
   * Map of versioned files
   * @type {Array.<{version, originalPath: string, versionedPath: string}>}
   */
  this.versionsMap = [];

  /**
   * Get one of the tagger functions: hash or date
   * @type {function}
   */
  this.versionTagger = taggers[this.options.tag];

  // is task a post versioning task?
  this.isPostVersioningTask = grunt.config(this.getAssetsVersioningTaskConfigKey() + '.isPostVersioningTaskFor');
}
function AbstractVersioner ( options , taskData ) { this . options = options ; this . taskData = taskData ; /**
   * Map of versioned files
   * @type {Array.<{version, originalPath: string, versionedPath: string}>}
   */ this . versionsMap = [ ] ; /**
   * Get one of the tagger functions: hash or date
   * @type {function}
   */ this . versionTagger = taggers [ this . options . tag ] ; // is task a post versioning task? this . isPostVersioningTask = grunt . config ( this . getAssetsVersioningTaskConfigKey ( ) + '.isPostVersioningTaskFor' ) ; }
A surrogate task - task with destination files tagged with a revision marker
@typedef {(string|{files: Array})} surrogateTask
 
Abstract Versioner
@constructor
@alias module:versioners/AbstractVersioner
@param {object} options - Grunt options
@param {object} taskData - Grunt Assets Versioning Task Object
A surrogate task - task with destination files tagged with a revision marker