@odda-studio/schema-builder
Advanced tools
+12
-7
@@ -25,11 +25,16 @@ #!/usr/bin/env node | ||
| function* walkSync(dir) { | ||
| const files = (0, fs_1.readdirSync)(dir, { withFileTypes: true }); | ||
| for (const file of files) { | ||
| if (file.isDirectory()) { | ||
| yield* walkSync(path_1.default.join(dir, file.name)); | ||
| try { | ||
| const files = (0, fs_1.readdirSync)(dir, { withFileTypes: true }); | ||
| for (const file of files) { | ||
| if (file.isDirectory()) { | ||
| yield* walkSync(path_1.default.join(dir, file.name)); | ||
| } | ||
| else { | ||
| yield path_1.default.join(dir, file.name); | ||
| } | ||
| } | ||
| else { | ||
| yield path_1.default.join(dir, file.name); | ||
| } | ||
| } | ||
| catch (eex) { | ||
| yield dir; | ||
| } | ||
| } | ||
@@ -36,0 +41,0 @@ if (options.f || options.d) { |
+1
-1
| { | ||
| "name": "@odda-studio/schema-builder", | ||
| "version": "1.0.137", | ||
| "version": "1.0.138", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "model-builder.js", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
114583
0.08%3004
0.17%