spooder 4.5.10 → 4.5.12
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/package.json +1 -1
- package/src/api.ts +3 -3
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -279,12 +279,12 @@ function order_schema_dep_tree<T extends DependencyTarget>(deps: T[]): T[] {
|
|
|
279
279
|
result.push(node);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
for (const dep of deps)
|
|
282
|
+
for (const dep of [...deps].reverse())
|
|
283
283
|
if (!visited.has(dep.file_name))
|
|
284
284
|
visit(dep);
|
|
285
285
|
|
|
286
|
-
return result
|
|
287
|
-
|
|
286
|
+
return result;
|
|
287
|
+
}
|
|
288
288
|
|
|
289
289
|
type Row_DBSchema = { db_schema_table_name: string, db_schema_version: number };
|
|
290
290
|
type SchemaVersionMap = Map<string, number>;
|