protobuf2flowtype
Advanced tools
@@ -467,3 +467,3 @@ const ProtoBuf = require('protobufjs'); | ||
| */ | ||
| function processProto(protoFile, root) { | ||
| function processProto(protoFile, root, imported = []) { | ||
| const protPath = path.format({ | ||
@@ -476,3 +476,8 @@ dir: root, | ||
| protoAst.imports.forEach(file => processProto(file, root)); | ||
| imported.push(protoFile); | ||
| protoAst.imports.forEach(file => { | ||
| if (imported.indexOf(file) === -1) { | ||
| processProto(file, root, imported); | ||
| } | ||
| }); | ||
@@ -479,0 +484,0 @@ return Namespace.getNamespace(protoAst.package).update(protoAst); |
+2
-2
| { | ||
| "name": "protobuf2flowtype", | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "description": "Given protobuf file will generate node packages which export protobufjs builders annotated with flowtype type anotations", | ||
@@ -14,3 +14,3 @@ "main": "runtime/index.js", | ||
| "mustache": "^2.2.1", | ||
| "protobuf2flowtype-runtime": "3.0.1", | ||
| "protobuf2flowtype-runtime": "3.0.2", | ||
| "yargs": "^6.0.0" | ||
@@ -17,0 +17,0 @@ }, |
| { | ||
| "name": "protobuf2flowtype-runtime", | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "description": "Base flowtype type annotations for protobuf", | ||
@@ -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
39627
0.33%741
0.68%+ Added
- Removed