@transloadit/analyze-step
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -0,1 +1,2 @@ | ||
/* eslint-disable no-template-curly-in-string */ | ||
const formatDurationMs = require('@transloadit/format-duration-ms') | ||
@@ -8,7 +9,7 @@ const prettierBytes = require('@transloadit/prettier-bytes') | ||
function humanJoin (array, reduce = true, glueword = 'and') { | ||
const countedArray = array | ||
let countedArray = array | ||
if (reduce === true) { | ||
const counted = _.countBy(array) | ||
const countedArray = [] | ||
countedArray = [] | ||
for (const name in counted) { | ||
@@ -135,3 +136,3 @@ const count = counted[name] | ||
total.push('Exclude ' + joindec) | ||
total.push(`Exclude ${joindec}`) | ||
} | ||
@@ -142,3 +143,3 @@ if (collection.accepts && collection.accepts.length > 0) { | ||
total.push('Pick ' + joinacc) | ||
total.push(`Pick ${joinacc}`) | ||
} | ||
@@ -269,3 +270,3 @@ | ||
} else if (('width' in step || 'height' in step) && (step.width !== '${file.meta.width}') && (step.height !== '${file.meta.height}')) { | ||
str = `Resize videos` + humanDimensions(step) | ||
str = `Resize videos${humanDimensions(step)}` | ||
if ('resize_strategy' in step && step.resize_strategy !== 'pad') { | ||
@@ -275,3 +276,3 @@ str = `${str} using the ${step.resize_strategy} strategy` | ||
if ('preset' in step) { | ||
str = `${str} and encode for ` + humanPreset(step, extrameta) | ||
str = `${str} and encode for ${humanPreset(step, extrameta)}` | ||
} | ||
@@ -281,6 +282,6 @@ } else if (('resize_strategy' in step)) { | ||
if ('preset' in step) { | ||
str = `${str} in ` + humanPreset(step, extrameta) | ||
str = `${str} in ${humanPreset(step, extrameta)}` | ||
} | ||
} else if ('preset' in step) { | ||
str = `Transcode videos to ` + humanPreset(step, extrameta) | ||
str = `Transcode videos to ${humanPreset(step, extrameta)}` | ||
} | ||
@@ -303,3 +304,3 @@ | ||
} else if ('preset' in step) { | ||
str = `Encode audio to ` + humanPreset(step, extrameta) | ||
str = `Encode audio to ${humanPreset(step, extrameta)}` | ||
} | ||
@@ -306,0 +307,0 @@ |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable no-template-curly-in-string */ | ||
const analyzeStep = require('./analyzeStep.js') | ||
@@ -2,0 +3,0 @@ // const util = require('util') |
@@ -15,4 +15,4 @@ { | ||
"dependencies": { | ||
"@transloadit/format-duration-ms": "^0.0.29", | ||
"@transloadit/prettier-bytes": "^0.0.8", | ||
"@transloadit/format-duration-ms": "^0.0.30", | ||
"@transloadit/prettier-bytes": "^0.0.9", | ||
"inflect": "0.4.0", | ||
@@ -22,4 +22,4 @@ "jsonpath": "1.0.2", | ||
}, | ||
"version": "0.0.22", | ||
"gitHead": "0f4e5fc430e70cca68201a8f4e129469a265bbc0" | ||
"version": "0.0.23", | ||
"gitHead": "1d649aa77fbabed471420f73f9433954452743bd" | ||
} |
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
56726
572
+ Added@transloadit/format-duration-ms@0.0.30(transitive)
+ Added@transloadit/prettier-bytes@0.0.9(transitive)
- Removed@transloadit/format-duration-ms@0.0.29(transitive)
- Removed@transloadit/prettier-bytes@0.0.8(transitive)