Skip to content

Commit 815d181

Browse files
committed
replaced assignIn with assign
1 parent bfd34e4 commit 815d181

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

packages/optimizely-sdk/lib/core/audience_evaluator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var MODULE_NAME = 'AUDIENCE_EVALUATOR';
3535
* @constructor
3636
*/
3737
function AudienceEvaluator(UNSTABLE_conditionEvaluators) {
38-
this.typeToEvaluatorMap = fns.assignIn({}, UNSTABLE_conditionEvaluators, {
38+
this.typeToEvaluatorMap = fns.assign({}, UNSTABLE_conditionEvaluators, {
3939
'custom_attribute': customAttributeConditionEvaluator
4040
});
4141
}

packages/optimizely-sdk/lib/core/decision_service/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ DecisionService.prototype.__resolveExperimentBucketMap = function(userId, attrib
116116
attributes = attributes || {}
117117
var userProfile = this.__getUserProfile(userId) || {};
118118
var attributeExperimentBucketMap = attributes[enums.CONTROL_ATTRIBUTES.STICKY_BUCKETING_KEY];
119-
return fns.assignIn({}, userProfile.experiment_bucket_map, attributeExperimentBucketMap);
119+
return fns.assign({}, userProfile.experiment_bucket_map, attributeExperimentBucketMap);
120120
};
121121

122122

packages/optimizely-sdk/lib/core/project_config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = {
5555
fns.forEach(projectConfig.groupIdMap, function(group, Id) {
5656
experiments = fns.cloneDeep(group.experiments);
5757
fns.forEach(experiments, function(experiment) {
58-
projectConfig.experiments.push(fns.assignIn(experiment, {groupId: Id}));
58+
projectConfig.experiments.push(fns.assign(experiment, {groupId: Id}));
5959
});
6060
});
6161

@@ -78,7 +78,7 @@ module.exports = {
7878
experiment.variationKeyMap = fns.keyBy(experiment.variations, 'key');
7979

8080
// Creates { <variationId>: { key: <variationKey>, id: <variationId> } } mapping for quick lookup
81-
fns.assignIn(projectConfig.variationIdMap, fns.keyBy(experiment.variations, 'id'));
81+
fns.assign(projectConfig.variationIdMap, fns.keyBy(experiment.variations, 'id'));
8282

8383
fns.forOwn(experiment.variationKeyMap, function(variation) {
8484
if (variation.variables) {

packages/optimizely-sdk/lib/index.browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = {
107107
eventDispatcher = config.eventDispatcher;
108108
}
109109

110-
config = fns.assignIn(
110+
config = fns.assign(
111111
{
112112
clientEngine: enums.JAVASCRIPT_CLIENT_ENGINE,
113113
eventBatchSize: DEFAULT_EVENT_BATCH_SIZE,

packages/optimizely-sdk/lib/index.react_native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
config.skipJSONValidation = true;
8787
}
8888

89-
config = fns.assignIn(
89+
config = fns.assign(
9090
{
9191
clientEngine: enums.JAVASCRIPT_CLIENT_ENGINE,
9292
eventBatchSize: DEFAULT_EVENT_BATCH_SIZE,

packages/optimizely-sdk/lib/utils/fns/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ module.exports = {
4040
return to;
4141
}
4242
},
43-
assignIn: require('lodash/assignIn'),
4443
cloneDeep: require('lodash/cloneDeep'),
4544
currentTimestamp: function() {
4645
return Math.round(new Date().getTime());

0 commit comments

Comments
 (0)