@transloadit/analyze-step
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -14,4 +14,3 @@ /* eslint-disable no-template-curly-in-string */ | ||
countedArray = [] | ||
for (const name in counted) { | ||
const count = counted[name] | ||
for (const [name, count] of Object.entries(counted)) { | ||
if (count > 1) { | ||
@@ -60,7 +59,7 @@ countedArray.push(`${count} ${inflect.pluralize(name)}`) | ||
for (const type of types) { | ||
if (step[type] && step[type].length > 0) { | ||
for (const i in step[type]) { | ||
collection[type] = collection[type] || [] | ||
const [key, operator, val] = step[type][i] | ||
collection[type] = collection[type] || [] | ||
if (typeof step[type] === 'string') { | ||
collection[type].push(`Filter by code evaluation`) | ||
} else if (step[type] && step[type].length > 0) { | ||
for (const [key, operator, val] of Object.values(step[type])) { | ||
const template = _.clone(templates[operator]) | ||
@@ -67,0 +66,0 @@ if (!template) { |
/* eslint-disable no-template-curly-in-string */ | ||
const analyzeStep = require('./analyzeStep.js') | ||
const analyzeStep = require('./analyzeStep') | ||
// const util = require('util') | ||
@@ -101,2 +101,7 @@ | ||
robot : '/file/filter', | ||
accepts: '${file.meta.width > file.meta.height}', | ||
}, ROBOTS)).toMatch('Filter by code evaluation') | ||
expect(analyzeStep({ | ||
robot : '/file/filter', | ||
accepts: [ | ||
@@ -103,0 +108,0 @@ [ |
@@ -19,6 +19,6 @@ { | ||
"jsonpath": "1.0.2", | ||
"lodash": "4.17.19" | ||
"lodash": "4.17.21" | ||
}, | ||
"version": "0.0.23", | ||
"gitHead": "1d649aa77fbabed471420f73f9433954452743bd" | ||
"version": "0.0.24", | ||
"gitHead": "6c2f312c57208959ea9186194bc11dcc4f5c63c6" | ||
} |
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
56964
576
+ Addedlodash@4.17.21(transitive)
- Removedlodash@4.17.19(transitive)
Updatedlodash@4.17.21