@getcoherent/core 0.6.41 → 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.
Files changed (2) hide show
  1. package/dist/index.js +8 -0
  2. 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 = [];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.41",
6
+ "version": "0.6.43",
7
7
  "description": "Core design system engine for Coherent",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",