Skip to content

Commit d6fa337

Browse files
Add Enhance and AutoPad actions (#594)
* Add Enhance and AutoPad actions * Increase test size limit
1 parent 9b6330c commit d6fa337

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import importFromPackage from "./utils/stringGenerators/importFromPackage";
1515
const bundleSizeTestCases:ITestCase[] = [
1616
{
1717
name: 'Tests CloudinaryImage with Resize',
18-
sizeLimitInKB: 28,
18+
sizeLimitInKB: 29,
1919
importsArray: [
2020
importFromDist('assets/CloudinaryImage', 'CloudinaryImage'),
2121
importFromDist('instance/Cloudinary', 'Cloudinary'),
@@ -24,7 +24,7 @@ const bundleSizeTestCases:ITestCase[] = [
2424
},
2525
{
2626
name: 'Tests CloudinaryImage with Resize and Adjust',
27-
sizeLimitInKB: 32,
27+
sizeLimitInKB: 33,
2828
importsArray: [
2929
importFromDist('assets/CloudinaryImage', 'CloudinaryImage'),
3030
importFromDist('instance/Cloudinary', 'Cloudinary'),
@@ -45,7 +45,7 @@ const bundleSizeTestCases:ITestCase[] = [
4545
},
4646
{
4747
name: 'Tests CloudinaryImage image with Resize, adjust and delivery',
48-
sizeLimitInKB: 34,
48+
sizeLimitInKB: 35,
4949
importsArray: [
5050
importFromDist('assets/CloudinaryImage', 'CloudinaryImage'),
5151
importFromDist('instance/Cloudinary', 'Cloudinary'),
@@ -74,7 +74,7 @@ const bundleSizeTestCases:ITestCase[] = [
7474
},
7575
{
7676
name: 'Import all of the SDK',
77-
sizeLimitInKB: 137,
77+
sizeLimitInKB: 138,
7878
importsArray: [
7979
importFromPackage('* as CloudinaryURLGEN')
8080
]

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@
150150
}
151151
},
152152
"dependencies": {
153-
"@cloudinary/transformation-builder-sdk": "^1.10.3"
153+
"@cloudinary/transformation-builder-sdk": "^1.12.1"
154154
}
155-
}
155+
}

src/actions/effect.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ import {
4040
generativeRecolor,
4141
generativeRestore,
4242
upscale,
43-
theme
43+
theme,
44+
enhance
4445
} from "@cloudinary/transformation-builder-sdk/actions/effect";
4546

4647
export {
@@ -85,5 +86,6 @@ export {
8586
generativeRecolor,
8687
generativeRestore,
8788
upscale,
88-
theme
89+
theme,
90+
enhance
8991
};

src/actions/resize.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import {
1414
minimumFit,
1515
limitPad,
1616
fillPad,
17-
auto
17+
auto,
18+
autoPad
1819
} from "@cloudinary/transformation-builder-sdk/actions/resize";
1920

2021
export {
@@ -33,5 +34,6 @@ export {
3334
minimumFit,
3435
limitPad,
3536
fillPad,
36-
auto
37+
auto,
38+
autoPad
3739
};

0 commit comments

Comments
 (0)