@daytona/lds-parser
Advanced tools
+10
-4
@@ -60,2 +60,3 @@ var path = require('path'); | ||
| } | ||
| function parseComponentsAsync(config) { | ||
@@ -117,5 +118,12 @@ return function* parser (next) { | ||
| } | ||
| var id = encodeURI(`/${options.group}/${name}`); | ||
| var screendumpUrl = path.join(options.config.path.dirname, options.config.path.dist, 'screens' + id + '.png'); | ||
| var screen = (tree['screen.png'] && path.join(options.path, 'screen.png') || | ||
| tree['screen.jpg'] && path.join(options.path, 'screen.jpg') || | ||
| tree['screen.gif'] && path.join(options.path, 'screen.gif') || | ||
| path.join(options.config.path.public, 'screens' + id + '.png')) | ||
| var LDSObject = { | ||
| id: encodeURI(`/${options.group}/${name}`), | ||
| id, | ||
| path: encodeURI(options.path), | ||
@@ -131,5 +139,3 @@ name, | ||
| config: componentConfig, | ||
| screen: (tree['screen.png'] && path.join(options.path, 'screen.png') || | ||
| tree['screen.jpg'] && path.join(options.path, 'screen.jpg') || | ||
| tree['screen.gif'] && path.join(options.path, 'screen.gif')), | ||
| screen, | ||
| category: options.category, | ||
@@ -136,0 +142,0 @@ group: options.group, |
+1
-1
| { | ||
| "name": "@daytona/lds-parser", | ||
| "version": "0.3.1", | ||
| "version": "0.3.2", | ||
| "description": "Parse LDS structure and return indexable object", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
13749
1.66%324
1.25%