You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/appConfigurationImpl.ts
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -333,8 +333,9 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
333
333
if(current[lastSegment]!==undefined){
334
334
thrownewInvalidOperationError(`Ambiguity occurs when constructing configuration object from key '${key}', value '${value}'. The key should not be part of another key.`);
335
335
}
336
-
// set value to the last segment
337
-
current[lastSegment]=value;
336
+
// Deep copy object values to avoid mutating the original objects in #configMap via shared references.
337
+
// Using JSON.parse(JSON.stringify(...)) instead of structuredClone for compatibility with Node.js < 17.
0 commit comments