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

cordova-res

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

cordova-res - npm Package Compare versions

Comparing version 0.15.3 to 0.15.4

4

dist/platform.js

@@ -147,4 +147,4 @@ "use strict";

debug('Building %s resources', "adaptive-icon" /* ADAPTIVE_ICON */);
const { resources: iconResources = [], source: iconSource, } = (await safelyGenerateSimpleResources("icon" /* ICON */, "android" /* ANDROID */, resourcesDirectory, options.icon, operations, errstream)) || { source: undefined };
const { resources: foregroundResources, source: foregroundSource, } = await generateAdaptiveIconResourcesPortion(resourcesDirectory, "foreground" /* FOREGROUND */, options.foreground.sources, operations, errstream);
const { resources: iconResources = [], source: iconSource } = (await safelyGenerateSimpleResources("icon" /* ICON */, "android" /* ANDROID */, resourcesDirectory, options.icon, operations, errstream)) || { source: undefined };
const { resources: foregroundResources, source: foregroundSource } = await generateAdaptiveIconResourcesPortion(resourcesDirectory, "foreground" /* FOREGROUND */, options.foreground.sources, operations, errstream);
const resolvedBackgroundSource = await resolveSource("android" /* ANDROID */, "adaptive-icon" /* ADAPTIVE_ICON */, "background" /* BACKGROUND */, options.background.sources, errstream);

@@ -151,0 +151,0 @@ const backgroundResources = resolvedBackgroundSource.type === "raster" /* RASTER */

@@ -329,64 +329,13 @@ "use strict";

exports.WINDOWS_SQUARE_44_X_44_ICON,
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_44_X_44_ICON, [
1,
1.25,
1.4,
1.5,
2,
2.4,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_44_X_44_ICON, [1, 1.25, 1.4, 1.5, 2, 2.4, 4]),
exports.WINDOWS_SQUARE_71_X_71_ICON,
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_71_X_71_ICON, [
1,
1.25,
1.4,
1.5,
2,
2.4,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_71_X_71_ICON, [1, 1.25, 1.4, 1.5, 2, 2.4, 4]),
exports.WINDOWS_SQUARE_150_X_150_ICON,
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_150_X_150_ICON, [
1,
1.25,
1.4,
1.5,
2,
2.4,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_150_X_150_ICON, [1, 1.25, 1.4, 1.5, 2, 2.4, 4]),
exports.WINDOWS_SQUARE_310_X_310_ICON,
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_310_X_310_ICON, [
1,
1.25,
1.4,
1.5,
1.8,
2,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_SQUARE_310_X_310_ICON, [1, 1.25, 1.4, 1.5, 1.8, 2, 4]),
exports.WINDOWS_WIDE_310_X_150_LOGO,
...generateScaledWindowsResources(exports.WINDOWS_WIDE_310_X_150_LOGO, [
0.8,
1,
1.25,
1.4,
1.5,
1.8,
2,
2.4,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_WIDE_310_X_150_LOGO, [0.8, 1, 1.25, 1.4, 1.5, 1.8, 2, 2.4, 4]),
exports.WINDOWS_STORE_LOGO,
...generateScaledWindowsResources(exports.WINDOWS_STORE_LOGO, [
1,
1.25,
1.4,
1.5,
1.8,
2,
2.4,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_STORE_LOGO, [1, 1.25, 1.4, 1.5, 1.8, 2, 2.4, 4]),
];

@@ -410,9 +359,3 @@ exports.WINDOWS_SPLASH_SCREEN = {

exports.WINDOWS_SPLASH_SCREEN,
...generateScaledWindowsResources(exports.WINDOWS_SPLASH_SCREEN, [
1,
1.25,
1.5,
2,
4,
]),
...generateScaledWindowsResources(exports.WINDOWS_SPLASH_SCREEN, [1, 1.25, 1.5, 2, 4]),
];

@@ -419,0 +362,0 @@ exports.ANDROID_LDPI_ADAPTIVE_ICON = {

{
"name": "cordova-res",
"version": "0.15.3",
"version": "0.15.4",
"description": "This tool will crop and resize PNG source images into appropriate sizes for modern iOS and Android devices.",

@@ -62,3 +62,3 @@ "homepage": "https://ionicframework.com",

"elementtree": "^0.1.7",
"sharp": "^0.27.1",
"sharp": "^0.29.2",
"tslib": "^2.0.3"

@@ -76,2 +76,3 @@ },

"eslint": "^7.11.0",
"eslint-plugin-import": "^2.22.0",
"husky": "^4.3.0",

@@ -78,0 +79,0 @@ "jest": "~25.5.0",

@@ -17,2 +17,5 @@ # Resource Generator

resources/
├── android
| ├── icon-background.png
| └── icon-foreground.png
├── icon.png

@@ -19,0 +22,0 @@ └── splash.png

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