cordova-res
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -11,3 +11,3 @@ "use strict"; | ||
toString() { | ||
return `${this.message}\n`; | ||
return this.message; | ||
} | ||
@@ -14,0 +14,0 @@ toJSON() { |
@@ -89,3 +89,3 @@ "use strict"; | ||
else { | ||
process.stderr.write(e instanceof error_1.BaseError ? `ERROR: ${e.toString()}` : (e.stack ? e.stack : String(e))); | ||
process.stderr.write(`${e instanceof error_1.BaseError ? `ERROR: ${e.toString()}` : (e.stack ? e.stack : String(e))}\n`); | ||
} | ||
@@ -92,0 +92,0 @@ } |
@@ -22,3 +22,3 @@ "use strict"; | ||
else { | ||
const iconResult = await runType("icon" /* ICON */, platform, resourcesDirectory, options["icon" /* ICON */]); | ||
const iconResult = await runType("icon" /* ICON */, platform, resourcesDirectory, options["icon" /* ICON */], errstream); | ||
if (iconResult) { | ||
@@ -29,3 +29,3 @@ resources.push(...iconResult.resources); | ||
} | ||
const splashResult = await runType("splash" /* SPLASH */, platform, resourcesDirectory, options["splash" /* SPLASH */]); | ||
const splashResult = await runType("splash" /* SPLASH */, platform, resourcesDirectory, options["splash" /* SPLASH */], errstream); | ||
if (splashResult) { | ||
@@ -127,3 +127,3 @@ resources.push(...splashResult.resources); | ||
async function runAdaptiveSource(resourcesDirectory, sources, type, errstream) { | ||
const source = await image_1.resolveSourceImage("adaptive-icon" /* ADAPTIVE_ICON */, sources); | ||
const source = await image_1.resolveSourceImage("adaptive-icon" /* ADAPTIVE_ICON */, sources, errstream); | ||
debug('Using %O for %s source image for %s', source.image.src, "adaptive-icon" /* ADAPTIVE_ICON */, "android" /* ANDROID */); | ||
@@ -130,0 +130,0 @@ const config = resources_1.getResourcesConfig("android" /* ANDROID */, "adaptive-icon" /* ADAPTIVE_ICON */); |
{ | ||
"name": "cordova-res", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "This tool will crop and resize PNG source images into appropriate sizes for modern iOS and Android devices.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://ionicframework.com", |
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
64847