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
2 changes: 1 addition & 1 deletion __TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const bundleSizeTestCases:ITestCase[] = [
]
},
{
name: 'Import backwards comaptiblity function',
name: 'Import backwards compatibility function',
sizeLimitInKB: 57,
importsArray: [
importFromBase('createCloudinaryLegacyURL')
Expand Down
2 changes: 1 addition & 1 deletion src/assets/CloudinaryMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {LayerAction} from "../actions/layer/LayerAction";
import {Transformation} from "../transformation/Transformation";
import ICloudConfig from "../config/interfaces/Config/ICloudConfig";
import IURLConfig from "../config/interfaces/Config/IURLConfig";
import cloneDeep from 'lodash/cloneDeep';
import { cloneDeep } from '../internal/utils/cloneDeep';
import {ITrackedPropertiesThroughAnalytics} from "../sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics";


Expand Down
2 changes: 1 addition & 1 deletion src/backwards/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cloneDeep from 'lodash.clonedeep';
import { cloneDeep } from '../internal/utils/cloneDeep';
import {isObject} from "./utils/isObject";
/**
* Class for defining account configuration options.
Expand Down
2 changes: 1 addition & 1 deletion src/backwards/createCloudinaryLegacyURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {generateTransformationString} from "./generateTransformationString";
import {finalize_resource_type} from "./utils/finalizeResourceType";
import {finalize_source} from "./utils/finalize_source";
import {unsigned_url_prefix} from "./utils/unsigned_url_prefix";
import cloneDeep from 'lodash/cloneDeep';
import { cloneDeep } from '../internal/utils/cloneDeep';

export function createCloudinaryLegacyURL(public_id: string, transformationOptions: LegacyITransforamtionOptions) {
// Path format
Expand Down
2 changes: 1 addition & 1 deletion src/backwards/transformation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Expression from './expression';
import Condition from './condition';
import {CONFIG_PARAMS} from './configuration';
import cloneDeep from 'lodash.clonedeep';
import { cloneDeep } from '../internal/utils/cloneDeep';

/**
* A list of keys used by the url() function.
Expand Down
11 changes: 11 additions & 0 deletions src/internal/utils/cloneDeep.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import cd from 'lodash.clonedeep';

/**
* Deep clones the given value
* @param val
*/
function cloneDeep<T>(val: T) {
return cd(val);
}

export {cloneDeep};