@figma-export/transform-svg-with-svgo
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -13,4 +13,10 @@ "use strict"; | ||
module.exports = (options) => { | ||
return (svg) => __awaiter(void 0, void 0, void 0, function* () { return (0, svgo_1.optimize)(svg, options).data; }); | ||
return (svg) => __awaiter(void 0, void 0, void 0, function* () { | ||
const result = (0, svgo_1.optimize)(svg, options); | ||
if (!('data' in result)) { | ||
return undefined; | ||
} | ||
return result.data; | ||
}); | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@figma-export/transform-svg-with-svgo", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Transformer for @figma-export that optimizes svgs using svgo tool", | ||
@@ -27,4 +27,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@figma-export/types": "^4.0.0", | ||
"@types/svgo": "~2.6.0", | ||
"@figma-export/types": "^4.0.1", | ||
"@types/svgo": "~2.6.1", | ||
"svgo": "~2.8.0" | ||
@@ -35,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "a1b41e37b7770030d526f65d992b54fd0d75badd" | ||
"gitHead": "f0f6b98b885ee5a8bd1f5b9e61f06f19c6fc2396" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4819
24
Updated@figma-export/types@^4.0.1
Updated@types/svgo@~2.6.1