@daytona/lds-parser
Advanced tools
+14
-0
@@ -126,2 +126,15 @@ var path = require('path'); | ||
| var revisions = {}; | ||
| if (tree['.versions']) { | ||
| Object.keys(tree['.versions']).forEach((filename) => { | ||
| var filenamematch = filename.match(/^(.*)\.(.*)$/); | ||
| var name = filenamematch[1]; | ||
| var timestamp = filenamematch[2]; | ||
| if (!revisions[name]) { | ||
| revisions[name] = {}; | ||
| } | ||
| revisions[name][timestamp] = tree['.versions'][filename]; | ||
| }); | ||
| } | ||
| var LDSObject = { | ||
@@ -147,2 +160,3 @@ id, | ||
| dependencyTo: [], // To be added later | ||
| revisions: revisions | ||
| }; | ||
@@ -149,0 +163,0 @@ |
+1
-1
| { | ||
| "name": "@daytona/lds-parser", | ||
| "version": "0.3.3", | ||
| "version": "0.3.4", | ||
| "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
14230
2.97%338
4%