spooder 4.5.11 → 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 +2 -2
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -276,7 +276,7 @@ function order_schema_dep_tree<T extends DependencyTarget>(deps: T[]): T[] {
|
|
|
276
276
|
|
|
277
277
|
temp.delete(node.file_name);
|
|
278
278
|
visited.add(node.file_name);
|
|
279
|
-
result.
|
|
279
|
+
result.push(node);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
for (const dep of deps)
|
|
@@ -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.
|