@riocrypto/common-server 1.0.2737 → 1.0.2739

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,3 +1,3 @@
1
- import { Country } from "@riocrypto/common";
1
+ import { Country, Fiat } from "@riocrypto/common";
2
2
  import { Mongoose } from "mongoose";
3
- export declare const isAfterHours: (mongoose: Mongoose, country: Country) => Promise<boolean>;
3
+ export declare const isAfterHours: (mongoose: Mongoose, country: Country, fiat: Fiat) => Promise<boolean>;
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.isAfterHours = void 0;
13
13
  const common_1 = require("@riocrypto/common");
14
14
  const rio_settings_1 = require("../models/rio-settings");
15
- const isAfterHours = (mongoose, country) => __awaiter(void 0, void 0, void 0, function* () {
15
+ const isAfterHours = (mongoose, country, fiat) => __awaiter(void 0, void 0, void 0, function* () {
16
16
  var _a;
17
- if (country === common_1.Country.UnitedStates) {
17
+ if (country === common_1.Country.UnitedStates || fiat === common_1.Fiat.USD) {
18
18
  return false;
19
19
  }
20
20
  const RioSettings = yield (0, rio_settings_1.buildRioSettings)(mongoose);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2737",
3
+ "version": "1.0.2739",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",