@biffo/cli 0.49.0 → 0.49.2

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 CHANGED
@@ -1 +1 @@
1
- 0.49.0
1
+ 0.49.2
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) && !CARRIED_FROM_RE.test(line) && // No trailing space in the patterns: lines are trimEnd()ed first, and a
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.49.0",
3
+ "version": "0.49.2",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",