@biffo/cli 0.49.0 → 0.49.1
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/core.version +1 -1
- package/dist/index.js +3 -7
- package/package.json +1 -1
package/core.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.49.
|
|
1
|
+
0.49.1
|
package/dist/index.js
CHANGED
|
@@ -1314,14 +1314,10 @@ function stampCarriedFrom(content, templateFile) {
|
|
|
1314
1314
|
return content.replace(REVISION_RE, (m) => `${CARRIED_FROM_MARKER} ${templateFile}
|
|
1315
1315
|
${m}`);
|
|
1316
1316
|
}
|
|
1317
|
+
var MODULE_DOCSTRING_RE = /^\s*("""|''')[\s\S]*?\1/;
|
|
1317
1318
|
function migrationBodyHash(content) {
|
|
1318
|
-
const normalised = content.split("\n").map((line) => line.trimEnd()).filter(
|
|
1319
|
-
(line) => !REVISION_RE.test(line) && !DOWN_REVISION_RE.test(line) && !
|
|
1320
|
-
// base migration's `Revises: ` is empty, so requiring the space would
|
|
1321
|
-
// leave that one line in and give every base migration a hash of its
|
|
1322
|
-
// own — a difference in chaining metadata masquerading as a difference
|
|
1323
|
-
// in DDL.
|
|
1324
|
-
!/^Revision ID:/.test(line) && !/^Revises:/.test(line) && !/^Create Date:/.test(line) && line !== ""
|
|
1319
|
+
const normalised = content.replace(MODULE_DOCSTRING_RE, "").split("\n").map((line) => line.trimEnd()).filter(
|
|
1320
|
+
(line) => !REVISION_RE.test(line) && !DOWN_REVISION_RE.test(line) && !line.trimStart().startsWith("#") && line !== ""
|
|
1325
1321
|
).join("\n");
|
|
1326
1322
|
return createHash("sha256").update(normalised).digest("hex");
|
|
1327
1323
|
}
|