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
// TODO: messages should go in a separate locales file to future proof translations
113
+
if("messages"inconfigCopy){
114
+
deleteconfigCopy.messages;
115
+
}
116
+
117
+
// remove the "algorithm.salt" part as it may have injected keys
118
+
// TODO: this enables messing with the salt file path pre-injection without signature validations, but is required for compatibility w/ the injection workflow
119
+
deleteconfigCopy.algorithm!.salt!.value;
120
+
// mock the salt source as STRING to ensure that both imported and saved
121
+
// (with pre-injected salt) config files work
122
+
configCopy.algorithm!.salt!.source='STRING';
123
+
124
+
// generate a stable JSON representation
125
+
conststableJson=stableStringify(configCopy);
126
+
if(typeofstableJson!=='string')thrownewError(`Unable to serialise config object to JSON.`);
0 commit comments