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.23 to 0.0.24

13

analyzeStep.js

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