Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transloadit/analyze-step

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transloadit/analyze-step - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

19

analyzeStep.js

@@ -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"
}
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