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

@transloadit/analyze-step

Package Overview
Dependencies
Maintainers
6
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.1.2 to 0.1.3

38

dist/analyzeStep.d.ts

@@ -1,2 +0,36 @@

declare const _default: (step: $TSFixMe, robots: $TSFixMe, extrameta?: {}) => string;
export default _default;
type Condition = [value: string, operator: string, value: string];
type FileFilterStep = {
accepts?: string | Condition[];
declines?: string | Condition[];
condition_type?: 'or' | 'and';
};
type StepWithDimensions = {
width?: number | string;
height?: number | string;
crop?: {
x1: number;
x2: number;
y1: number;
y2: number;
};
};
type PresetStep = {
preset?: string;
};
type ExtraMeta = {
deviceName?: string;
};
type FormatStep = {
format?: string;
};
type Robots = {
[key: string]: {
rname: string;
purpose_words: string;
};
};
type Step = Partial<FileFilterStep> & Partial<StepWithDimensions> & Partial<PresetStep> & Partial<FormatStep> & {
[key: string]: any;
};
export default function humanize(step: Step, robots: Robots, extrameta?: ExtraMeta): string;
export {};

7

dist/analyzeStep.js

@@ -85,3 +85,3 @@ "use strict";

}
else if (step[type] && step[type].length > 0) {
else if (step[type] && Array.isArray(step[type])) {
for (const [key, operator, val] of Object.values(step[type])) {

@@ -247,3 +247,3 @@ const template = (0, lodash_1.clone)(templates[operator]);

}
exports.default = (step, robots, extrameta = {}) => {
function humanize(step, robots, extrameta = {}) {
let str = ``;

@@ -374,3 +374,4 @@ const robot = robots[step.robot];

return str;
};
}
exports.default = humanize;
//# sourceMappingURL=analyzeStep.js.map

@@ -22,15 +22,14 @@ {

"scripts": {
"tsc": "tsc",
"tsc": "tsc --build --clean && tsc --build",
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@transloadit/format-duration-ms": "^0.1.2",
"@transloadit/prettier-bytes": "^0.1.2",
"@transloadit/format-duration-ms": "^0.1.3",
"@transloadit/prettier-bytes": "^0.1.3",
"inflection": "^3.0.0",
"jsonpath": "1.0.2",
"jsonpath-plus": "^7.2.0",
"lodash": "^4.17.21"
},
"version": "0.1.2",
"gitHead": "5c487499031f01adcc6869b3a0b7a4ac3d7d21c0",
"version": "0.1.3",
"gitHead": "b9159b6f037336d9325656c35b9b15023d5c1ce7",
"devDependencies": {

@@ -37,0 +36,0 @@ "@types/jsonpath": "^0.2.0",

Sorry, the diff of this file is not supported yet

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