@vendit-dev/thirdparty-adapters 0.4.0-beta.3 → 0.4.0-beta.5

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.
@@ -13,6 +13,7 @@ declare type VenditAmanoKoreaAuthInfo = {
13
13
  };
14
14
  export default class AmanoKoreaAdapter {
15
15
  API_HOST: string;
16
+ API_PORT: number;
16
17
  authenticator: UserServiceGrpcCaller;
17
18
  redis: any;
18
19
  PROVIDER_KEY: string;
@@ -56,6 +56,7 @@ var AmanoKoreaAdapter = /** @class */ (function () {
56
56
  function AmanoKoreaAdapter(_a) {
57
57
  var _this = this;
58
58
  var authenticator = _a.authenticator, redis = _a.redis;
59
+ this.API_PORT = 9948;
59
60
  this.PROVIDER_KEY = 'AmanoKorea';
60
61
  // base64
61
62
  this.authorization = '';
@@ -163,7 +164,7 @@ var AmanoKoreaAdapter = /** @class */ (function () {
163
164
  switch (_b.label) {
164
165
  case 0:
165
166
  _b.trys.push([0, 3, , 4]);
166
- return [4 /*yield*/, node_fetch_1.default(this.API_HOST + "/interop/" + directory, {
167
+ return [4 /*yield*/, node_fetch_1.default(this.API_HOST + ":" + this.API_PORT + "/interop/" + directory, {
167
168
  method: 'POST',
168
169
  headers: {
169
170
  'Content-Type': 'application/json',
@@ -173,10 +174,10 @@ var AmanoKoreaAdapter = /** @class */ (function () {
173
174
  })];
174
175
  case 1:
175
176
  fetchResult = _b.sent();
176
- return [4 /*yield*/, fetchResult.json()];
177
+ console.log('fetchResult', fetchResult);
178
+ return [4 /*yield*/, (fetchResult === null || fetchResult === void 0 ? void 0 : fetchResult.json())];
177
179
  case 2:
178
180
  fetchResultJson = _b.sent();
179
- console.log('fetchResultJson', fetchResultJson);
180
181
  data = fetchResultJson.data;
181
182
  return [2 /*return*/, data];
182
183
  case 3:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendit-dev/thirdparty-adapters",
3
- "version": "0.4.0-beta.3",
3
+ "version": "0.4.0-beta.5",
4
4
  "description": "Third party adapters between v-cloud and other PMS/CMS providers.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {