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.1 to 1.5.2

16

lib/skipFile.js

@@ -18,3 +18,3 @@ // Generated by CoffeeScript 1.9.2

module.exports = function(file, configData, options) {
var appliesTo, extension, fileToTest, i, includeExtensions, includeThisFile, j, k, l, len, len1, len2, len3, ref, ref1, regex, regexes, skip;
var appliesTo, extension, fileToTest, i, includeExtensions, includeThisFile, j, k, l, len, len1, len2, len3, ref, ref1, ref2, ref3, regex, regexes, skip;
if (configData == null) {

@@ -28,3 +28,3 @@ configData = {};

skip = false;
appliesTo = configData.appliesTo;
appliesTo = (ref = configData.appliesTo) != null ? ref : (ref1 = configData.config) != null ? ref1.appliesTo : void 0;
if ((appliesTo == null) || ((appliesTo.includeExtensions == null) && (appliesTo.excludeExtensions == null) && (appliesTo.regex == null) && (appliesTo.files == null))) {

@@ -58,5 +58,5 @@ appliesTo = options;

includeThisFile = false;
ref = appliesTo.files;
for (j = 0, len1 = ref.length; j < len1; j++) {
fileToTest = ref[j];
ref2 = appliesTo.files;
for (j = 0, len1 = ref2.length; j < len1; j++) {
fileToTest = ref2[j];
fileToTest = path.resolve(configData.configDir, fileToTest);

@@ -72,5 +72,5 @@ if (fileToTest === file) {

} else if (appliesTo.excludeExtensions != null) {
ref1 = appliesTo.excludeExtensions;
for (k = 0, len2 = ref1.length; k < len2; k++) {
extension = ref1[k];
ref3 = appliesTo.excludeExtensions;
for (k = 0, len2 = ref3.length; k < len2; k++) {
extension = ref3[k];
if (endsWith(file, extension)) {

@@ -77,0 +77,0 @@ skip = true;

{
"name": "browserify-transform-tools",
"version": "1.5.1",
"version": "1.5.2",
"description": "Utilities for writing browserify transforms.",

@@ -5,0 +5,0 @@ "main": "./lib/transformTools.js",

Sorry, the diff of this file is not supported yet

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