spooder 4.5.12 → 4.5.13
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
|
|
282
|
+
for (const dep of deps)
|
|
283
283
|
if (!visited.has(dep.file_name))
|
|
284
284
|
visit(dep);
|
|
285
285
|
|
|
286
286
|
return result;
|
|
287
|
-
}
|
|
287
|
+
}
|
|
288
288
|
|
|
289
289
|
type Row_DBSchema = { db_schema_table_name: string, db_schema_version: number };
|
|
290
290
|
type SchemaVersionMap = Map<string, number>;
|
|
@@ -319,7 +319,7 @@ async function db_load_schema(schema_dir: string, schema_versions: SchemaVersion
|
|
|
319
319
|
if (line_identifier !== null) {
|
|
320
320
|
if (line_identifier[1] === 'deps') {
|
|
321
321
|
// Line contains schema dependencies, example: -- [deps] schema_b.sql,schema_c.sql
|
|
322
|
-
const deps_raw = line.substring(line.indexOf('
|
|
322
|
+
const deps_raw = line.substring(line.indexOf(']') + 1);
|
|
323
323
|
deps.push(...deps_raw.split(',').map(e => e.trim().toLowerCase()));
|
|
324
324
|
} else {
|
|
325
325
|
// New chunk definition detected, store the current chunk and start a new one.
|