@eris/image-cli
Advanced tools
Comparing version 0.1.1-alpha.22 to 0.2.0
const fs = require('fs') | ||
const REQUIRED_PROPERTIES = ['input', 'output', 'action'] | ||
const REQUIRED_PROPERTIES = ['input', 'output'] | ||
@@ -5,0 +5,0 @@ class ConfigEntry { |
@@ -45,2 +45,4 @@ const fs = require('fs') | ||
this._cachedFiles.set(entry.output, string) | ||
} else if (!entry.action) { | ||
result = this._getBufferFromCacheOrDisk(entry.input) | ||
} else { | ||
@@ -76,3 +78,3 @@ throw new Error(`Unrecognized action "${entry.action}"`) | ||
const result = await image[entry.action]() | ||
const result = entry.action ? await image[entry.action]() : input | ||
let buffer = result | ||
@@ -79,0 +81,0 @@ |
{ | ||
"name": "@eris/image-cli", | ||
"version": "0.1.1-alpha.22", | ||
"version": "0.2.0", | ||
"description": "CLI wrapper and standalone executable API for @eris/image.", | ||
@@ -10,2 +10,3 @@ "main": "./lib/client.js", | ||
"scripts": { | ||
"download-prebuilt": "./scripts/download-prebuilt.sh", | ||
"build": "bash ./scripts/build.sh", | ||
@@ -49,5 +50,5 @@ "test": "npm run test:lint && npm run test:unit", | ||
"dependencies": { | ||
"@eris/image": "0.1.1-alpha.22", | ||
"@eris/image": "0.2.0", | ||
"yargs": "^9.0.1" | ||
} | ||
} |
15284
12
369
+ Added@eris/exif@0.2.0(transitive)
+ Added@eris/image@0.2.0(transitive)
- Removed@eris/exif@0.1.1-alpha.22(transitive)
- Removed@eris/image@0.1.1-alpha.22(transitive)
Updated@eris/image@0.2.0