gulp-awspublish-headers
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -6,5 +6,10 @@ 'use strict'; | ||
// These are the options to pass to Minimatch. | ||
const options = { | ||
dot: true, | ||
}; | ||
module.exports = function(headers) { | ||
const matches = Object.entries(headers).map(([key, value]) => ({ | ||
path: new Minimatch(key), | ||
path: new Minimatch(key, options), | ||
headers: Object.entries(value), | ||
@@ -11,0 +16,0 @@ })); |
{ | ||
"name": "gulp-awspublish-headers", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Define per-file headers for gulp-awspublish.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,3 +24,3 @@ # gulp-awspublish-headers | ||
Files may match multiple paths in which case the headers will be merged with the later defined headers taking prescedence. | ||
Files may match multiple paths in which case the headers will be merged with the later defined headers taking precedence. | ||
@@ -27,0 +27,0 @@ ## Installation |
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
4411
34