browserify-transform-tools
Advanced tools
Comparing version 1.5.0 to 1.5.1
// Generated by CoffeeScript 1.9.2 | ||
(function() { | ||
var falafel, fs, isRootDir, loadConfig, merge, path, skipFile, through; | ||
var clone, falafel, fs, isRootDir, loadConfig, merge, path, skipFile, through; | ||
@@ -45,2 +45,14 @@ path = require('path'); | ||
clone = function(a) { | ||
var answer, key; | ||
if (!a) { | ||
return a; | ||
} | ||
answer = {}; | ||
for (key in a) { | ||
answer[key] = a[key]; | ||
} | ||
return answer; | ||
}; | ||
exports.makeStringTransform = function(transformName, options, transformFn) { | ||
@@ -56,10 +68,8 @@ var transform; | ||
transform = function(file, config) { | ||
var configData, content, end, write; | ||
var configData, content, end, ref, write; | ||
configData = transform.configData != null ? transform.configData : loadConfig.loadTransformConfigSync(transformName, file, options); | ||
if (config != null) { | ||
if (configData == null) { | ||
configData = { | ||
config: {} | ||
}; | ||
} | ||
configData = (ref = clone(configData)) != null ? ref : { | ||
config: {} | ||
}; | ||
configData.config = merge(configData.config, config); | ||
@@ -66,0 +76,0 @@ } |
{ | ||
"name": "browserify-transform-tools", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Utilities for writing browserify transforms.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/transformTools.js", |
Sorry, the diff of this file is not supported yet
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
83084
648