Socket
Socket
Sign inDemoInstall

karma-lodash-template-preprocessor

Package Overview
Dependencies
137
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

8

index.js
var lodash = require( "lodash" ),
createLodashPreprocessor = function( args, config, logger ) {
"use strict";
config = config || {};

@@ -7,4 +9,6 @@

options = lodash.merge( args.options || {}, config.options || {} ),
data = lodash.merge( args.data || {}, config.data || {} ),
transformPath = options.transformPath || function( path ) {
argsData = args.data ? lodash.result(args, 'data') : {},
configData = config.data ? lodash.result(config, 'data') : {},
data = lodash.merge(argsData, configData),
transformPath = args.transformPath || config.transformPath || function( path ) {
return path.replace( /\.template\./i, "." );

@@ -11,0 +15,0 @@ };

{
"name": "karma-lodash-template-preprocessor",
"version": "0.1.1",
"version": "0.1.2",
"description": "A Karma plugin. Compile Lo-Dash templates on the fly.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,2 +23,3 @@ # karma-lodash-template-preprocessor

lodashPreprocessor: {
// Template data. You can use function, which returns object
data: {

@@ -25,0 +26,0 @@ "this will be passed": "to _.template as second argument"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc