@smartsoft001/revolut 2.127.0 → 2.128.0

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.
Files changed (2) hide show
  1. package/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,8 +5,7 @@ var __decorateClass = (decorators, target, key, kind) => {
5
5
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
6
  if (decorator = decorators[i])
7
7
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result)
9
- __defProp(target, key, result);
8
+ if (kind && result) __defProp(target, key, result);
10
9
  return result;
11
10
  };
12
11
  var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
@@ -29,6 +28,9 @@ var RevolutService = class {
29
28
  this.moduleRef = moduleRef;
30
29
  this.config = config;
31
30
  }
31
+ httpService;
32
+ moduleRef;
33
+ config;
32
34
  async create(obj) {
33
35
  const config = await this.getConfig(obj.data);
34
36
  const data = {
@@ -75,8 +77,7 @@ var RevolutService = class {
75
77
  return Promise.reject("Revolut does not support refund");
76
78
  }
77
79
  getBaseUrl(config) {
78
- if (config.test)
79
- return "https://sandbox-merchant.revolut.com";
80
+ if (config.test) return "https://sandbox-merchant.revolut.com";
80
81
  return "https://merchant.revolut.com";
81
82
  }
82
83
  getHeaders(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/revolut",
3
- "version": "2.127.0",
3
+ "version": "2.128.0",
4
4
  "description": "Utils for revolut",
5
5
  "repository": {
6
6
  "type": "git",