Socket
Socket
Sign inDemoInstall

browserify-transform-tools

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-transform-tools - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

24

lib/transformTools.js
// 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

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