@figma-export/core
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -22,2 +22,6 @@ | ||
svg: svg.content, | ||
figmaExport: { | ||
dirname: '.', | ||
basename: 'Figma-Logo', | ||
}, | ||
}; | ||
@@ -37,2 +41,6 @@ | ||
svg: '<svg id="c3"></svg>', | ||
figmaExport: { | ||
dirname: '.', | ||
basename: 'Login', | ||
}, | ||
}; | ||
@@ -39,0 +47,0 @@ |
@@ -0,1 +1,3 @@ | ||
const { basename, dirname } = require('path'); | ||
const Figma = require('figma-js'); | ||
@@ -7,5 +9,11 @@ const utils = require('./utils'); | ||
children.forEach((child) => { | ||
if (child.type === 'COMPONENT') { | ||
components.push(child); | ||
children.forEach((component) => { | ||
if (component.type === 'COMPONENT') { | ||
components.push({ | ||
...component, | ||
figmaExport: { | ||
dirname: dirname(component.name), | ||
basename: basename(component.name), | ||
}, | ||
}); | ||
return; | ||
@@ -16,3 +24,3 @@ } | ||
...components, | ||
...getComponents(child.children), | ||
...getComponents(component.children), | ||
]; | ||
@@ -19,0 +27,0 @@ }); |
{ | ||
"name": "@figma-export/core", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "@figma-export core functionalities", | ||
@@ -18,5 +18,5 @@ "main": "index.js", | ||
"axios": "~0.19.0", | ||
"figma-js": "~1.8.5" | ||
"figma-js": "~1.9.0" | ||
}, | ||
"gitHead": "68483596c712eb479bf496180de823a5edb5d32d" | ||
"gitHead": "6b4430491c3e45757082ec63b9d68db29798758d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15443
387
+ Addedfigma-js@1.9.0(transitive)
- Removedfigma-js@1.8.5(transitive)
Updatedfigma-js@~1.9.0