Socket
Socket
Sign inDemoInstall

assets-include

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-include - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

History.md

@@ -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 @@ ==================

10

lib/include.js

@@ -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).",

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