Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions __TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const bundleSizeTestCases:ITestCase[] = [
},
{
name: 'Tests CloudinaryImage with Resize and Adjust',
sizeLimitInKB: 33,
sizeLimitInKB: 34,
importsArray: [
importFromDist('assets/CloudinaryImage', 'CloudinaryImage'),
importFromDist('instance/Cloudinary', 'Cloudinary'),
Expand All @@ -34,7 +34,7 @@ const bundleSizeTestCases:ITestCase[] = [
},
{
name: 'Tests CloudinaryImage with Resize, Adjust and Border',
sizeLimitInKB: 34,
sizeLimitInKB: 35,
importsArray: [
importFromDist('assets/CloudinaryImage', 'CloudinaryImage'),
importFromDist('instance/Cloudinary', 'Cloudinary'),
Expand All @@ -45,7 +45,7 @@ const bundleSizeTestCases:ITestCase[] = [
},
{
name: 'Tests CloudinaryImage image with Resize, adjust and delivery',
sizeLimitInKB: 35,
sizeLimitInKB: 36,
importsArray: [
importFromDist('assets/CloudinaryImage', 'CloudinaryImage'),
importFromDist('instance/Cloudinary', 'Cloudinary'),
Expand Down Expand Up @@ -74,7 +74,7 @@ const bundleSizeTestCases:ITestCase[] = [
},
{
name: 'Import all of the SDK',
sizeLimitInKB: 140,
sizeLimitInKB: 142,
importsArray: [
importFromPackage('* as CloudinaryURLGEN')
]
Expand All @@ -88,7 +88,7 @@ const bundleSizeTestCases:ITestCase[] = [
},
{
name: 'Import All Actions',
sizeLimitInKB: 65,
sizeLimitInKB: 67,
importsArray: [
importFromPackage('Actions')
]
Expand Down
4 changes: 4 additions & 0 deletions src/sdkAnalytics/getAnalyticsOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ export function getAnalyticsOptions(options: ITrackedPropertiesThroughAnalytics)
analyticsOptions.feature = 'B';
}

if (options.feature) {
analyticsOptions.feature = options.feature;
}

return analyticsOptions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export interface ITrackedPropertiesThroughAnalytics {
lazyload?: boolean; // Was lazy-load used
responsive?: boolean; // Was responsive used
placeholder?: boolean; // Was placeholder used
feature?: string;
}