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

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.
@@ -154,7 +154,7 @@ var AmanoKoreaAdapter = /** @class */ (function () {
154
154
  };
155
155
  this.setAuthorization = function (_a) {
156
156
  var authorization = _a.authorization;
157
- _this.authorization = "Basic " + authorization;
157
+ _this.authorization = authorization;
158
158
  };
159
159
  this.callAPI = function (_a) {
160
160
  var directory = _a.directory, resources = _a.resources;
@@ -163,7 +163,10 @@ var AmanoKoreaAdapter = /** @class */ (function () {
163
163
  return __generator(this, function (_b) {
164
164
  switch (_b.label) {
165
165
  case 0:
166
- _b.trys.push([0, 3, , 4]);
166
+ console.log('callAPI', this.authorization);
167
+ _b.label = 1;
168
+ case 1:
169
+ _b.trys.push([1, 4, , 5]);
167
170
  return [4 /*yield*/, node_fetch_1.default(this.API_HOST + ":" + this.API_PORT + "/interop/" + directory, {
168
171
  method: 'POST',
169
172
  headers: {
@@ -172,19 +175,19 @@ var AmanoKoreaAdapter = /** @class */ (function () {
172
175
  },
173
176
  body: JSON.stringify(__assign({}, resources)),
174
177
  })];
175
- case 1:
178
+ case 2:
176
179
  fetchResult = _b.sent();
177
180
  console.log('fetchResult', fetchResult);
178
181
  return [4 /*yield*/, (fetchResult === null || fetchResult === void 0 ? void 0 : fetchResult.json())];
179
- case 2:
182
+ case 3:
180
183
  fetchResultJson = _b.sent();
181
184
  data = fetchResultJson.data;
182
185
  return [2 /*return*/, data];
183
- case 3:
186
+ case 4:
184
187
  err_2 = _b.sent();
185
188
  console.error('err', err_2);
186
189
  return [2 /*return*/, err_2];
187
- case 4: return [2 /*return*/];
190
+ case 5: return [2 /*return*/];
188
191
  }
189
192
  });
190
193
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendit-dev/thirdparty-adapters",
3
- "version": "0.4.0-beta.5",
3
+ "version": "0.4.0-beta.6",
4
4
  "description": "Third party adapters between v-cloud and other PMS/CMS providers.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {