@agent-scope/tokens 1.19.0 → 1.20.0
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7653,7 +7653,7 @@ function setNested(obj, segments, value) {
|
|
|
7653
7653
|
}
|
|
7654
7654
|
current = current[seg];
|
|
7655
7655
|
}
|
|
7656
|
-
const last = segments
|
|
7656
|
+
const last = segments.at(-1);
|
|
7657
7657
|
current[last] = value;
|
|
7658
7658
|
}
|
|
7659
7659
|
function exportTailwind(tokens, options) {
|
|
@@ -7702,7 +7702,7 @@ function exportFigma(tokens, options) {
|
|
|
7702
7702
|
}
|
|
7703
7703
|
current = current[seg];
|
|
7704
7704
|
}
|
|
7705
|
-
const last = segs
|
|
7705
|
+
const last = segs.at(-1);
|
|
7706
7706
|
current[last] = {
|
|
7707
7707
|
value: token.resolvedValue,
|
|
7708
7708
|
type: token.type,
|
|
@@ -7725,7 +7725,7 @@ function exportFigma(tokens, options) {
|
|
|
7725
7725
|
}
|
|
7726
7726
|
current = current[seg];
|
|
7727
7727
|
}
|
|
7728
|
-
const last = segs
|
|
7728
|
+
const last = segs.at(-1);
|
|
7729
7729
|
const baseToken = tokens.find((t) => t.path === path);
|
|
7730
7730
|
current[last] = {
|
|
7731
7731
|
value,
|