anote-server-libs 0.2.13 → 0.2.14

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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseModelRepository = void 0;
4
+ const crypto = require("crypto");
4
5
  const fs = require("fs");
5
- const node_forge_1 = require("node-forge");
6
6
  const ApiCall_1 = require("../ApiCall");
7
7
  const Migration_1 = require("../Migration");
8
8
  class BaseModelRepository {
@@ -51,7 +51,7 @@ class BaseModelRepository {
51
51
  return {
52
52
  id: file,
53
53
  content: content,
54
- hash: node_forge_1.md.sha256.create().update(content).digest().toHex()
54
+ hash: crypto.createHash('sha256').update(content).digest('hex')
55
55
  };
56
56
  });
57
57
  if (migrationsAvailable.length === 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anote-server-libs",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "Helpers for express-TS servers",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",