assets-include
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,1 +1,6 @@ | ||
[1.1.0 / 2014-03-12](https://github.com/GoalSmashers/assets-include/compare/v1.0.0...v1.1.0) | ||
================== | ||
* Fixed issue [#1](https://github.com/GoalSmashers/assets-include/issues/1) - allow `group` to override `loadingMode` option. | ||
[1.0.0 / 2014-03-05](https://github.com/GoalSmashers/assets-include/compare/v0.7.0...v1.0.0) | ||
@@ -2,0 +7,0 @@ ================== |
@@ -95,9 +95,13 @@ (function() { | ||
AssetsInclude.prototype.group = function(locator) { | ||
var self = this; | ||
AssetsInclude.prototype.group = function(locator, options) { | ||
options = options || {}; | ||
var info = bundleInfo(locator); | ||
var fragmentOptions = { | ||
loadingMode: options.loadingMode || this.options.loadingMode | ||
}; | ||
return this.list(locator) | ||
.map(function(assetPathWithMTime) { | ||
return assetFragment(assetPathWithMTime, info, self.options); | ||
return assetFragment(assetPathWithMTime, info, fragmentOptions); | ||
}) | ||
@@ -104,0 +108,0 @@ .join(''); |
{ | ||
"name": "assets-include", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "GoalSmashers.com <jakub@goalsmashers.com>", | ||
@@ -5,0 +5,0 @@ "description": "Include assets into your views with ease (assets-packager compatible).", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14880
142
0