@funpay-pilot/common 0.0.2 → 0.0.4

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/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from './enums';
2
- export * from './utils';
package/dist/index.js CHANGED
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums"), exports);
18
- __exportStar(require("./utils"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funpay-pilot/common",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Core shared components for FunPay Pilot microservice ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +0,0 @@
1
- export type ProtoTimestamp = {
2
- seconds: number | bigint;
3
- nanos: number;
4
- };
5
- export declare function dateToTimestamp(date: Date): ProtoTimestamp;
6
- export declare function timestampToDate(ts: ProtoTimestamp): Date;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dateToTimestamp = dateToTimestamp;
4
- exports.timestampToDate = timestampToDate;
5
- function dateToTimestamp(date) {
6
- const ms = date.getTime();
7
- return {
8
- seconds: Math.floor(ms / 1000),
9
- nanos: (ms % 1000) * 1e6,
10
- };
11
- }
12
- function timestampToDate(ts) {
13
- const ms = Number(ts.seconds) * 1000 + Math.floor(ts.nanos / 1e6);
14
- return new Date(ms);
15
- }
@@ -1 +0,0 @@
1
- export * from './format-timestamp.util';
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./format-timestamp.util"), exports);