@minolettinat/proxy-figma-export-core
Advanced tools
Comparing version 4.5.2 to 4.5.3
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as Figma from '@minolettinat/proxy-figma-js'; | ||
@@ -3,0 +2,0 @@ import * as FigmaExport from '@minolettinat/proxy-figma-export-types'; |
@@ -60,11 +60,5 @@ "use strict"; | ||
var _a; | ||
const regexMatches = (_a = /(?<==)(\d+|[a-zA-Z]+)/gm[Symbol.match](child.name)) === null || _a === void 0 ? void 0 : _a.map((match) => match.toLowerCase()); | ||
if ((regexMatches === null || regexMatches === void 0 ? void 0 : regexMatches[1]) === 'light') { | ||
// eslint-disable-next-line no-param-reassign,max-len | ||
child.name = `${node.name}_${regexMatches === null || regexMatches === void 0 ? void 0 : regexMatches[0]}`; | ||
} | ||
else { | ||
// eslint-disable-next-line no-param-reassign,max-len | ||
child.name = `${node.name}_${regexMatches === null || regexMatches === void 0 ? void 0 : regexMatches[0]}_${regexMatches === null || regexMatches === void 0 ? void 0 : regexMatches[1]}`; | ||
} | ||
const propertyValues = (_a = /(?<==)([^,]+)/gm[Symbol.match](child.name)) === null || _a === void 0 ? void 0 : _a.map((match) => match.toLowerCase()); | ||
// eslint-disable-next-line no-param-reassign,max-len | ||
child.name = `${node.name}_${propertyValues === null || propertyValues === void 0 ? void 0 : propertyValues.join('_')}`; | ||
}); | ||
@@ -71,0 +65,0 @@ components = [ |
{ | ||
"name": "@minolettinat/proxy-figma-export-core", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"description": "@minolettinat/figma-export core functionalities", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57226
673