@figma-export/core
Advanced tools
Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1
export { components } from './lib/export-components'; | ||
export { styles } from './lib/export-styles'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,4 @@ "use strict"; | ||
Object.defineProperty(exports, "components", { enumerable: true, get: function () { return export_components_1.components; } }); | ||
var export_styles_1 = require("./lib/export-styles"); | ||
Object.defineProperty(exports, "styles", { enumerable: true, get: function () { return export_styles_1.styles; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { FigmaExport } from '@figma-export/types'; | ||
import * as FigmaExport from '@figma-export/types'; | ||
declare type Options = { | ||
@@ -7,3 +7,3 @@ token: string; | ||
transformers?: FigmaExport.StringTransformer[]; | ||
outputters?: FigmaExport.Outputter[]; | ||
outputters?: FigmaExport.ComponentOutputter[]; | ||
log?: (msg: string) => void; | ||
@@ -10,0 +10,0 @@ }; |
import * as Figma from 'figma-js'; | ||
import { FigmaExport } from '@figma-export/types'; | ||
import * as FigmaExport from '@figma-export/types'; | ||
declare type NodeWithChildren = FigmaExport.ComponentNode | Figma.Group | Figma.Frame | Figma.Instance | Figma.BooleanGroup; | ||
@@ -4,0 +4,0 @@ declare const getComponents: (children?: readonly NodeWithChildren[]) => FigmaExport.ComponentNode[]; |
@@ -7,3 +7,4 @@ declare const toArray: <T extends unknown>(any: T) => T[]; | ||
declare const fetchAsSvgXml: (url: string) => Promise<string>; | ||
export { toArray, fromEntries, promiseSequentially, fetchAsSvgXml, }; | ||
declare const notEmpty: <TValue>(value: TValue | null | undefined) => value is TValue; | ||
export { toArray, fromEntries, promiseSequentially, fetchAsSvgXml, notEmpty, }; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fetchAsSvgXml = exports.promiseSequentially = exports.fromEntries = exports.toArray = void 0; | ||
exports.notEmpty = exports.fetchAsSvgXml = exports.promiseSequentially = exports.fromEntries = exports.toArray = void 0; | ||
const axios_1 = __importDefault(require("axios")); | ||
@@ -39,2 +39,6 @@ const toArray = (any) => (Array.isArray(any) ? any : [any]); | ||
exports.fetchAsSvgXml = fetchAsSvgXml; | ||
const notEmpty = (value) => { | ||
return value !== null && value !== undefined; | ||
}; | ||
exports.notEmpty = notEmpty; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@figma-export/core", | ||
"version": "3.0.0-alpha.0", | ||
"version": "3.0.0-alpha.1", | ||
"description": "@figma-export core functionalities", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@figma-export/types": "^3.0.0-alpha.0", | ||
"@figma-export/types": "^3.0.0-alpha.1", | ||
"axios": "~0.19.2", | ||
@@ -26,3 +26,3 @@ "figma-js": "~1.11.0" | ||
}, | ||
"gitHead": "05a70e69f8758f8566896d5bb492007aaf423e58" | ||
"gitHead": "37315218c189d05ad1ca8ef48625c114a06f5795" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
44979
43
537