@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.js
CHANGED
|
@@ -7651,7 +7651,7 @@ function setNested(obj, segments, value) {
|
|
|
7651
7651
|
}
|
|
7652
7652
|
current = current[seg];
|
|
7653
7653
|
}
|
|
7654
|
-
const last = segments
|
|
7654
|
+
const last = segments.at(-1);
|
|
7655
7655
|
current[last] = value;
|
|
7656
7656
|
}
|
|
7657
7657
|
function exportTailwind(tokens, options) {
|
|
@@ -7700,7 +7700,7 @@ function exportFigma(tokens, options) {
|
|
|
7700
7700
|
}
|
|
7701
7701
|
current = current[seg];
|
|
7702
7702
|
}
|
|
7703
|
-
const last = segs
|
|
7703
|
+
const last = segs.at(-1);
|
|
7704
7704
|
current[last] = {
|
|
7705
7705
|
value: token.resolvedValue,
|
|
7706
7706
|
type: token.type,
|
|
@@ -7723,7 +7723,7 @@ function exportFigma(tokens, options) {
|
|
|
7723
7723
|
}
|
|
7724
7724
|
current = current[seg];
|
|
7725
7725
|
}
|
|
7726
|
-
const last = segs
|
|
7726
|
+
const last = segs.at(-1);
|
|
7727
7727
|
const baseToken = tokens.find((t) => t.path === path);
|
|
7728
7728
|
current[last] = {
|
|
7729
7729
|
value,
|