@oliasoft-open-source/node-json-migrator 2.3.4-beta-1 → 2.3.4-beta-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.
@@ -8,6 +8,7 @@ var _chalk = _interopRequireDefault(require("chalk"));
8
8
  var _plan = require("../plan/plan");
9
9
  var _executed = require("../executed/executed");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ const shortHash = hash => hash ? hash.substring(0, 8) : '';
11
12
  const getPendingMigrations = ({
12
13
  plannedMigrations,
13
14
  executedMigrations,
@@ -29,7 +30,7 @@ const getPendingMigrations = ({
29
30
  });
30
31
  if (printPendingFileNames) {
31
32
  pendingMigrations.forEach(m => {
32
- console.log(_chalk.default.gray(` ${m.fileName}`));
33
+ console.log(_chalk.default.gray(` ${m.fileName} ${shortHash(m?.fileHash)}`));
33
34
  });
34
35
  }
35
36
  return pendingMigrations.map(m => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/node-json-migrator",
3
- "version": "2.3.4-beta-1",
3
+ "version": "2.3.4-beta-2",
4
4
  "description": "A library for JSON migrations",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/node-postgresql-migrator",
6
6
  "bugs": {