@riocrypto/common 1.0.1193 → 1.0.1195

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,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Listener = void 0;
4
- const get_current_cdmx_date_1 = require("../helpers/get-current-cdmx-date");
5
4
  class Listener {
6
5
  constructor(client) {
7
6
  this.ackWait = 5 * 1000;
8
7
  this.client = client;
9
- this.listenerStartTime = (0, get_current_cdmx_date_1.getCurrentMexicoCityDate)(); // Record the start time of the listener
8
+ this.listenerStartTime = new Date(); // Record the start time of the listener
10
9
  }
11
10
  subscriptionOptions() {
12
11
  return this.client
package/build/index.d.ts CHANGED
@@ -223,8 +223,6 @@ export * from "./helpers/round-to-decimals";
223
223
  export * from "./helpers/number-with-commas";
224
224
  export * from "./helpers/alpha-2-to-alpha-3";
225
225
  export * from "./helpers/get-user-name";
226
- export * from "./helpers/get-current-cdmx-date";
227
- export * from "./helpers/convert-to-cdmx-date";
228
226
  export * from "./clients/rio-client";
229
227
  export * from "./clients/rio-admin-client";
230
228
  export * from "./constants/mexico-fiscal-regimens";
package/build/index.js CHANGED
@@ -239,8 +239,6 @@ __exportStar(require("./helpers/round-to-decimals"), exports);
239
239
  __exportStar(require("./helpers/number-with-commas"), exports);
240
240
  __exportStar(require("./helpers/alpha-2-to-alpha-3"), exports);
241
241
  __exportStar(require("./helpers/get-user-name"), exports);
242
- __exportStar(require("./helpers/get-current-cdmx-date"), exports);
243
- __exportStar(require("./helpers/convert-to-cdmx-date"), exports);
244
242
  __exportStar(require("./clients/rio-client"), exports);
245
243
  __exportStar(require("./clients/rio-admin-client"), exports);
246
244
  __exportStar(require("./constants/mexico-fiscal-regimens"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1193",
3
+ "version": "1.0.1195",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1 +0,0 @@
1
- export declare const convertToCDMXDate: (date: Date) => Date;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertToCDMXDate = void 0;
4
- const convertToCDMXDate = (date) => {
5
- const mexicoCityTimeZone = "America/Mexico_City";
6
- const mexicoCityTime = date.toLocaleString("en-US", {
7
- timeZone: mexicoCityTimeZone,
8
- });
9
- const mexicoCityDate = new Date(mexicoCityTime);
10
- return mexicoCityDate;
11
- };
12
- exports.convertToCDMXDate = convertToCDMXDate;
@@ -1 +0,0 @@
1
- export declare const getCurrentMexicoCityDate: () => Date;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCurrentMexicoCityDate = void 0;
4
- const getCurrentMexicoCityDate = () => {
5
- const mexicoCityTimeZone = "America/Mexico_City";
6
- const mexicoCityTime = new Date().toLocaleString("en-US", {
7
- timeZone: mexicoCityTimeZone,
8
- });
9
- const mexicoCityDate = new Date(mexicoCityTime);
10
- return mexicoCityDate;
11
- };
12
- exports.getCurrentMexicoCityDate = getCurrentMexicoCityDate;