@ultrade/shared 1.0.4 → 1.0.5

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.
@@ -2,4 +2,3 @@ export * from './mappers';
2
2
  export * from './utils';
3
3
  export * from './auth.helper';
4
4
  export * from './big-number.helper';
5
- export * from './timestamp.helper';
@@ -2,31 +2,6 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 180:
6
- /***/ ((__unused_webpack_module, exports) => {
7
-
8
-
9
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10
- exports.timestamp = timestamp;
11
- const startTime = BigInt(Date.now());
12
- const startHrTime = process.hrtime.bigint();
13
- function timestamp(accuracy = 'micro') {
14
- const elapsedNano = process.hrtime.bigint() - startHrTime;
15
- const baseTimestampNano = startTime * 10n ** 6n + elapsedNano;
16
- const baseString = baseTimestampNano.toString();
17
- let result;
18
- if (accuracy === "micro") {
19
- result = `${baseString.slice(0, -6)}.${baseString.slice(-6, -3)}`;
20
- }
21
- else {
22
- result = `${baseString.slice(0, -6)}.${baseString.slice(-6)}`;
23
- }
24
- return result;
25
- }
26
-
27
-
28
- /***/ }),
29
-
30
5
  /***/ 221:
31
6
  /***/ ((__unused_webpack_module, exports) => {
32
7
 
@@ -977,7 +952,6 @@ __exportStar(__webpack_require__(9321), exports);
977
952
  __exportStar(__webpack_require__(8398), exports);
978
953
  __exportStar(__webpack_require__(696), exports);
979
954
  __exportStar(__webpack_require__(1174), exports);
980
- __exportStar(__webpack_require__(180), exports);
981
955
 
982
956
 
983
957
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrade/shared",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "This package contains shared code for the projects.",
5
5
  "exports": {
6
6
  "./common": {
@@ -1 +0,0 @@
1
- export declare function timestamp(accuracy?: "micro" | "nano"): string;
@@ -1,30 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- var __webpack_exports__ = {};
4
- // This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
5
- (() => {
6
- var exports = __webpack_exports__;
7
-
8
- Object.defineProperty(exports, "__esModule", ({ value: true }));
9
- exports.timestamp = timestamp;
10
- const startTime = BigInt(Date.now());
11
- const startHrTime = process.hrtime.bigint();
12
- function timestamp(accuracy = 'micro') {
13
- const elapsedNano = process.hrtime.bigint() - startHrTime;
14
- const baseTimestampNano = startTime * 10n ** 6n + elapsedNano;
15
- const baseString = baseTimestampNano.toString();
16
- let result;
17
- if (accuracy === "micro") {
18
- result = `${baseString.slice(0, -6)}.${baseString.slice(-6, -3)}`;
19
- }
20
- else {
21
- result = `${baseString.slice(0, -6)}.${baseString.slice(-6)}`;
22
- }
23
- return result;
24
- }
25
-
26
- })();
27
-
28
- module.exports = __webpack_exports__;
29
- /******/ })()
30
- ;