New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

underscore-template-loader

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underscore-template-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.jsbeautifyrc

5

index.js

@@ -77,2 +77,7 @@ var path = require('path');

}
// support macros in loader options. because it isn't support customer options from webpack@4
if (_.isObject(query.macros)) {
_.extend(macros, query.macros);
}
}

@@ -79,0 +84,0 @@

5

package.json
{
"name": "underscore-template-loader",
"version": "1.0.0",
"version": "1.1.0",
"description": "An Underscore and Lodash template loader for Webpack",

@@ -30,2 +30,5 @@ "main": "index.js",

"name": "Keith McKnight (kmck)"
},
{
"name": "JimYan"
}

@@ -32,0 +35,0 @@ ],

1

README.md

@@ -9,2 +9,3 @@ underscore-template-loader

<br>
* 1.1: Support macros through `query` (thx @JimYan, @devlinjunker)
* 1.0: Loader now works with Webpack 4. Still a beta release.

@@ -11,0 +12,0 @@

@@ -203,2 +203,17 @@ var fs = require('fs');

});
it('support macros in query', function (done) {
testTemplate(loader, 'macro_in_query.html', {
query: {
macros: {
testquery: function () {
return '"Ok"';
}
}
}
}, function (output) {
assert.equal(output, loadOutput('macro_in_query.txt'));
done();
});
});
});
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