broccoli-asset-rev
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -20,3 +20,5 @@ var fs = require('fs'); | ||
Filter.call(this, inputNode, { | ||
extensions: options.extensions || [] | ||
extensions: options.extensions || [], | ||
// We should drop support for `description` in the next major release | ||
annotation: options.description || options.annotation | ||
}) | ||
@@ -26,3 +28,2 @@ | ||
this.exclude = options.exclude || []; | ||
this.description = options.description; | ||
this.generateAssetMap = options.generateAssetMap; | ||
@@ -55,4 +56,2 @@ this.generateRailsManifest = options.generateRailsManifest; | ||
Fingerprint.prototype.processFile = function (srcDir, destDir, relativePath) { | ||
this._srcDir = srcDir; | ||
var file = fs.readFileSync(srcDir + '/' + relativePath); | ||
@@ -77,3 +76,3 @@ var self = this; | ||
var tmpPath = path.join(this._srcDir, relativePath); | ||
var tmpPath = path.join(this.inputPaths[0], relativePath); | ||
var file = fs.readFileSync(tmpPath, { encoding: null }); | ||
@@ -80,0 +79,0 @@ var hash; |
{ | ||
"name": "broccoli-asset-rev", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "broccoli asset revisions (fingerprint)", | ||
@@ -34,3 +34,3 @@ "main": "lib/asset-rev.js", | ||
"broccoli-asset-rewrite": "^1.0.9", | ||
"broccoli-filter": "~0.2.0", | ||
"broccoli-filter": "^1.2.2", | ||
"json-stable-stringify": "^1.0.0", | ||
@@ -37,0 +37,0 @@ "rsvp": "~3.0.6" |
@@ -56,3 +56,4 @@ #broccoli-asset-rev | ||
``` | ||
- `ignore` - Default: `[]` - An array of strings. If a filename contains any item in the ignore array, the contents of the file will not be processed for fingerprinting. | ||
- `ignore` - Default: `[]` - An array of strings. If a filename contains any item in the ignore array, the contents of the file will not be processed for fingerprinting. | ||
- `annotation` - Default: null. A human-readable description for this plugin instance. | ||
@@ -59,0 +60,0 @@ ## Ember CLI addon usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64077
77
- Removedbroccoli-filter@0.2.0(transitive)
- Removedbroccoli-kitchen-sink-helpers@0.2.9(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedwalk-sync@0.1.3(transitive)
Updatedbroccoli-filter@^1.2.2