@hestia-earth/schema-convert 7.5.2 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/convert-json.js +7 -9
- package/package.json +1 -1
package/convert-json.js
CHANGED
|
@@ -96,19 +96,17 @@ exports.run = function () { return __awaiter(void 0, void 0, void 0, function ()
|
|
|
96
96
|
case 0: return [4 /*yield*/, lstat(path)];
|
|
97
97
|
case 1:
|
|
98
98
|
stat = _d.sent();
|
|
99
|
-
|
|
100
|
-
case 2:
|
|
101
|
-
schemas = _d.sent();
|
|
99
|
+
schemas = json_schema_1.loadSchemas();
|
|
102
100
|
_b = (_a = Promise).all;
|
|
103
|
-
if (!stat.isDirectory()) return [3 /*break*/,
|
|
101
|
+
if (!stat.isDirectory()) return [3 /*break*/, 3];
|
|
104
102
|
return [4 /*yield*/, listFiles(path)];
|
|
105
|
-
case
|
|
103
|
+
case 2:
|
|
106
104
|
_c = (_d.sent()).map(function (file) { return processFile(schemas, path_1.join(path, file)); });
|
|
107
|
-
return [3 /*break*/,
|
|
108
|
-
case
|
|
105
|
+
return [3 /*break*/, 4];
|
|
106
|
+
case 3:
|
|
109
107
|
_c = [processFile(schemas, path)];
|
|
110
|
-
_d.label =
|
|
111
|
-
case
|
|
108
|
+
_d.label = 4;
|
|
109
|
+
case 4: return [2 /*return*/, _b.apply(_a, [_c])];
|
|
112
110
|
}
|
|
113
111
|
});
|
|
114
112
|
}); };
|