diff --git a/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts b/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts index 3508abb7..a3983cd1 100644 --- a/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts +++ b/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts @@ -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'), @@ -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'), @@ -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'), @@ -74,7 +74,7 @@ const bundleSizeTestCases:ITestCase[] = [ }, { name: 'Import all of the SDK', - sizeLimitInKB: 140, + sizeLimitInKB: 142, importsArray: [ importFromPackage('* as CloudinaryURLGEN') ] @@ -88,7 +88,7 @@ const bundleSizeTestCases:ITestCase[] = [ }, { name: 'Import All Actions', - sizeLimitInKB: 65, + sizeLimitInKB: 67, importsArray: [ importFromPackage('Actions') ] diff --git a/src/sdkAnalytics/getAnalyticsOptions.ts b/src/sdkAnalytics/getAnalyticsOptions.ts index 43e9cd8c..51bbd826 100644 --- a/src/sdkAnalytics/getAnalyticsOptions.ts +++ b/src/sdkAnalytics/getAnalyticsOptions.ts @@ -34,5 +34,9 @@ export function getAnalyticsOptions(options: ITrackedPropertiesThroughAnalytics) analyticsOptions.feature = 'B'; } + if (options.feature) { + analyticsOptions.feature = options.feature; + } + return analyticsOptions; } diff --git a/src/sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics.ts b/src/sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics.ts index 6ec66ff0..203a31b4 100644 --- a/src/sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics.ts +++ b/src/sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics.ts @@ -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; }