@taskora-uni/common 2.0.0 → 2.1.0

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.
@@ -0,0 +1 @@
1
+ export declare const sha256: (value: string) => string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sha256 = void 0;
4
+ const crypto_1 = require("crypto");
5
+ const sha256 = (value) => (0, crypto_1.createHash)("sha256").update(value).digest("hex");
6
+ exports.sha256 = sha256;
@@ -1 +1,2 @@
1
1
  export * from "./timestamp.util";
2
+ export * from "./hash.util";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./timestamp.util"), exports);
18
+ __exportStar(require("./hash.util"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskora-uni/common",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Shared common modules for Taskora Uni backend services",
5
5
  "license": "MIT",
6
6
  "files": [