@getcoherent/core 0.6.42 → 0.6.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -634,6 +634,14 @@ export const config = ${JSON.stringify(this.config, null, 2)} as const
|
|
|
634
634
|
}
|
|
635
635
|
const lastPart = pathParts[pathParts.length - 1];
|
|
636
636
|
const oldValue = current[lastPart];
|
|
637
|
+
if (String(oldValue) === String(value)) {
|
|
638
|
+
return {
|
|
639
|
+
success: true,
|
|
640
|
+
modified: [],
|
|
641
|
+
config: this.config,
|
|
642
|
+
message: `Token ${path} is already set to ${value}, skipped`
|
|
643
|
+
};
|
|
644
|
+
}
|
|
637
645
|
current[lastPart] = value;
|
|
638
646
|
this.config = validateConfig(this.config);
|
|
639
647
|
const affectedComponents = [];
|