cordova-res
Advanced tools
Comparing version 0.15.3 to 0.15.4
@@ -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 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
129
150737
16
28
3576
1
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addednode-abi@3.71.0(transitive)
+ Addednode-addon-api@4.3.0(transitive)
+ Addedprebuild-install@7.1.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsharp@0.29.3(transitive)
+ Addedstring_decoder@1.3.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@1.2.0(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedarray-flatten@3.0.0(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcolor@3.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddecompress-response@4.2.1(transitive)
- Removeddelegates@1.0.0(transitive)
- Removedgauge@2.7.4(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmimic-response@2.1.0(transitive)
- Removednode-abi@2.30.1(transitive)
- Removednode-addon-api@3.2.1(transitive)
- Removednpmlog@4.1.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprebuild-install@6.1.4(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsharp@0.27.2(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsimple-get@3.1.1(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedwide-align@1.1.5(transitive)
Updatedsharp@^0.29.2