@restroom-mw/files
Advanced tools
Comparing version 0.13.1-90283f1.56 to 0.13.1-95d4ac2.64
@@ -82,4 +82,6 @@ "use strict"; | ||
for (let i = 0; i < allPassOutputs.length; i += 2) { | ||
const file = result[allPassOutputs[i]]; | ||
const folder = input[allPassOutputs[i + 1]]; | ||
const file = result[allPassOutputs[i]] || | ||
input[allPassOutputs[i]]; | ||
const folder = result[allPassOutputs[i + 1]] || | ||
input[allPassOutputs[i + 1]]; | ||
if (!file) { | ||
@@ -113,4 +115,6 @@ throw new Error(`[FILES] url not defined`); | ||
for (let i = 0; i < allPassOutputs.length; i += 2) { | ||
const variable = result[allPassOutputs[i]]; | ||
const file = input[allPassOutputs[i + 1]]; | ||
const variable = result[allPassOutputs[i]] || | ||
input[allPassOutputs[i]]; | ||
const file = result[allPassOutputs[i + 1]] || | ||
input[allPassOutputs[i + 1]]; | ||
if (!variable) { | ||
@@ -117,0 +121,0 @@ throw new Error(`[FILES] variable not defined`); |
{ | ||
"name": "@restroom-mw/files", | ||
"version": "0.13.1-90283f1.56+90283f1", | ||
"version": "0.13.1-95d4ac2.64+95d4ac2", | ||
"description": "Utilities middleware to work with files for Restroom", | ||
@@ -35,3 +35,3 @@ "author": "Alberto Lerda <alberto@dyne.org>", | ||
}, | ||
"gitHead": "90283f1488839b9900327d285e6bed8876e044dd" | ||
"gitHead": "95d4ac260cf6746f87f3ca134b9022c2a95a7d3e" | ||
} |
@@ -81,4 +81,6 @@ import {Restroom} from "@restroom-mw/core"; | ||
for (let i = 0; i < allPassOutputs.length; i += 2) { | ||
const file = result[allPassOutputs[i]] | ||
const folder = input[allPassOutputs[i + 1]]; | ||
const file = result[allPassOutputs[i]] || | ||
input[allPassOutputs[i]]; | ||
const folder = result[allPassOutputs[i + 1]] || | ||
input[allPassOutputs[i + 1]]; | ||
@@ -114,4 +116,6 @@ if(!file) { | ||
for (let i = 0; i < allPassOutputs.length; i += 2) { | ||
const variable = result[allPassOutputs[i]] | ||
const file = input[allPassOutputs[i + 1]] | ||
const variable = result[allPassOutputs[i]] || | ||
input[allPassOutputs[i]]; | ||
const file = result[allPassOutputs[i + 1]] || | ||
input[allPassOutputs[i + 1]]; | ||
@@ -118,0 +122,0 @@ if(!variable) { |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
47829
285