Skip to content

Commit 8df1adb

Browse files
committed
renamed to useDefaultValues
1 parent 3c0968b commit 8df1adb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const bundleSizeTestCases:ITestCase[] = [
7474
},
7575
{
7676
name: 'Import all of the SDK',
77-
sizeLimitInKB: 117,
77+
sizeLimitInKB: 118,
7878
importsArray: [
7979
importFromBase('CloudinaryBaseSDK')
8080
]

src/backwards/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {isObject} from "./utils/isObject";
1515
* @param {...Object} source - the source object(s) to assign defaults from
1616
* @return {Object} destination after it was modified
1717
*/
18-
const defaults = (destination:{}, ...sources: object[])=>{
18+
const useDefaultValues = (destination:{}, ...sources: object[])=>{
1919
return sources.reduce(function(dest, source) {
2020
let key, value;
2121
for (key in source) {
@@ -42,7 +42,7 @@ class Configuration {
4242
private configuration: any;
4343
constructor(options: {}) {
4444
this.configuration = options == null ? {} : cloneDeep(options);
45-
defaults(this.configuration, DEFAULT_CONFIGURATION_PARAMS);
45+
useDefaultValues(this.configuration, DEFAULT_CONFIGURATION_PARAMS);
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)