nexushub-commands 1.5.7 → 1.5.8

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.
@@ -261,7 +261,7 @@ tslib_1.__decorate([
261
261
  const config = Client_1.Client.config(context);
262
262
  const maxDeposit = yield config.API.get('/config/maxDepositInService').then((x) => x.data.value);
263
263
  const depositAmount = yield value.convert({ from: config.currency, to: 'RUB' });
264
- if (depositAmount > maxDeposit && validateArgs.method !== 'cryptowallet')
264
+ if (depositAmount > maxDeposit && validateArgs.method !== 'cryptoWallet')
265
265
  throw new Error(`Пополнение, более чем на ${yield maxDeposit.convert({ from: 'RUB', to: config.currency })}, доступно только через <a href="t.me/{{ ${config.support.username} }}">тех. поддержку</a>`);
266
266
  return value;
267
267
  }), (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ value, context, validateArgs }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -161,7 +161,7 @@ export class DepositCommand extends Command {
161
161
  const maxDeposit = await config.API.get('/config/maxDepositInService').then((x) => x.data.value);
162
162
  const depositAmount = await value.convert({ from: config.currency, to: 'RUB' });
163
163
 
164
- if (depositAmount > maxDeposit && validateArgs.method !== 'cryptowallet')
164
+ if (depositAmount > maxDeposit && validateArgs.method !== 'cryptoWallet')
165
165
  throw new Error(
166
166
  `Пополнение, более чем на ${await maxDeposit.convert({ from: 'RUB', to: config.currency })}, доступно только через <a href="t.me/{{ ${
167
167
  config.support.username