Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figma-export/core

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/core - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

lib/_config.test.js

@@ -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 @@

16

lib/figma.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc