@contentstack/marketplace-sdk 1.2.8 → 1.3.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 (27) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/dist/es-modules/entity.js +78 -74
  3. package/dist/es-modules/marketplace/app/hosting/deployment.js +71 -70
  4. package/dist/es-modules/marketplace/app/hosting/index.js +85 -84
  5. package/dist/es-modules/marketplace/app/index.js +84 -84
  6. package/dist/es-modules/marketplace/app/oauth/index.js +43 -42
  7. package/dist/es-modules/marketplace/apprequest/index.js +43 -42
  8. package/dist/es-modules/marketplace/authorization/index.js +43 -42
  9. package/dist/es-modules/marketplace/index.js +91 -22
  10. package/dist/es-modules/marketplace/installation/index.js +129 -126
  11. package/dist/es-modules/marketplace/installation/webhooks/index.js +42 -42
  12. package/dist/es5/entity.js +78 -74
  13. package/dist/es5/marketplace/app/hosting/deployment.js +71 -70
  14. package/dist/es5/marketplace/app/hosting/index.js +85 -84
  15. package/dist/es5/marketplace/app/index.js +84 -84
  16. package/dist/es5/marketplace/app/oauth/index.js +43 -42
  17. package/dist/es5/marketplace/apprequest/index.js +43 -42
  18. package/dist/es5/marketplace/authorization/index.js +43 -42
  19. package/dist/es5/marketplace/index.js +91 -22
  20. package/dist/es5/marketplace/installation/index.js +129 -126
  21. package/dist/es5/marketplace/installation/webhooks/index.js +42 -42
  22. package/dist/nativescript/contentstack-marketplace.js +1 -1
  23. package/dist/node/contentstack-marketplace.js +1 -1
  24. package/dist/react-native/contentstack-marketplace.js +1 -1
  25. package/dist/web/contentstack-marketplace.js +1 -1
  26. package/package.json +14 -13
  27. package/types/marketplace/index.d.ts +1 -0
@@ -99,8 +99,9 @@ export function Installation(http, data) {
99
99
  var param,
100
100
  headers,
101
101
  response,
102
- _args = arguments;
103
- return _regeneratorRuntime.wrap(function _callee$(_context) {
102
+ _args = arguments,
103
+ _t;
104
+ return _regeneratorRuntime.wrap(function (_context) {
104
105
  while (1) switch (_context.prev = _context.next) {
105
106
  case 0:
106
107
  param = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
@@ -109,29 +110,29 @@ export function Installation(http, data) {
109
110
  headers: _objectSpread({}, cloneDeep(params)),
110
111
  params: _objectSpread({}, cloneDeep(param))
111
112
  } || {};
112
- _context.next = 5;
113
+ _context.next = 2;
113
114
  return http.get("".concat(_this.urlPath, "/configuration"), headers);
114
- case 5:
115
+ case 2:
115
116
  response = _context.sent;
116
117
  if (!response.data) {
117
- _context.next = 10;
118
+ _context.next = 3;
118
119
  break;
119
120
  }
120
121
  return _context.abrupt("return", response.data);
121
- case 10:
122
+ case 3:
122
123
  throw error(response);
123
- case 11:
124
- _context.next = 16;
124
+ case 4:
125
+ _context.next = 6;
125
126
  break;
126
- case 13:
127
- _context.prev = 13;
128
- _context.t0 = _context["catch"](1);
129
- throw error(_context.t0);
130
- case 16:
127
+ case 5:
128
+ _context.prev = 5;
129
+ _t = _context["catch"](1);
130
+ throw error(_t);
131
+ case 6:
131
132
  case "end":
132
133
  return _context.stop();
133
134
  }
134
- }, _callee, null, [[1, 13]]);
135
+ }, _callee, null, [[1, 5]]);
135
136
  }));
136
137
 
137
138
  /**
@@ -150,37 +151,37 @@ export function Installation(http, data) {
150
151
  */
151
152
  this.setConfiguration = /*#__PURE__*/function () {
152
153
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config) {
153
- var headers, response;
154
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
154
+ var headers, response, _t2;
155
+ return _regeneratorRuntime.wrap(function (_context2) {
155
156
  while (1) switch (_context2.prev = _context2.next) {
156
157
  case 0:
157
158
  _context2.prev = 0;
158
159
  headers = {
159
160
  headers: _objectSpread({}, cloneDeep(params))
160
161
  } || {};
161
- _context2.next = 4;
162
+ _context2.next = 1;
162
163
  return http.put("".concat(_this.urlPath, "/configuration"), config, headers);
163
- case 4:
164
+ case 1:
164
165
  response = _context2.sent;
165
166
  if (!response.data) {
166
- _context2.next = 9;
167
+ _context2.next = 2;
167
168
  break;
168
169
  }
169
170
  return _context2.abrupt("return", response.data);
170
- case 9:
171
+ case 2:
171
172
  throw error(response);
172
- case 10:
173
- _context2.next = 15;
173
+ case 3:
174
+ _context2.next = 5;
174
175
  break;
175
- case 12:
176
- _context2.prev = 12;
177
- _context2.t0 = _context2["catch"](0);
178
- throw error(_context2.t0);
179
- case 15:
176
+ case 4:
177
+ _context2.prev = 4;
178
+ _t2 = _context2["catch"](0);
179
+ throw error(_t2);
180
+ case 5:
180
181
  case "end":
181
182
  return _context2.stop();
182
183
  }
183
- }, _callee2, null, [[0, 12]]);
184
+ }, _callee2, null, [[0, 4]]);
184
185
  }));
185
186
  return function (_x) {
186
187
  return _ref2.apply(this, arguments);
@@ -202,37 +203,37 @@ export function Installation(http, data) {
202
203
  * .then((response) => console.log(response))
203
204
  */
204
205
  this.getConfigLocation = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
205
- var headers, response;
206
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
206
+ var headers, response, _t3;
207
+ return _regeneratorRuntime.wrap(function (_context3) {
207
208
  while (1) switch (_context3.prev = _context3.next) {
208
209
  case 0:
209
210
  _context3.prev = 0;
210
211
  headers = {
211
212
  headers: _objectSpread({}, cloneDeep(params))
212
213
  } || {};
213
- _context3.next = 4;
214
+ _context3.next = 1;
214
215
  return http.get("".concat(_this.urlPath, "/locations/configuration"), headers);
215
- case 4:
216
+ case 1:
216
217
  response = _context3.sent;
217
218
  if (!response.data) {
218
- _context3.next = 9;
219
+ _context3.next = 2;
219
220
  break;
220
221
  }
221
222
  return _context3.abrupt("return", response.data);
222
- case 9:
223
+ case 2:
223
224
  throw error(response);
224
- case 10:
225
- _context3.next = 15;
225
+ case 3:
226
+ _context3.next = 5;
226
227
  break;
227
- case 12:
228
- _context3.prev = 12;
229
- _context3.t0 = _context3["catch"](0);
230
- throw error(_context3.t0);
231
- case 15:
228
+ case 4:
229
+ _context3.prev = 4;
230
+ _t3 = _context3["catch"](0);
231
+ throw error(_t3);
232
+ case 5:
232
233
  case "end":
233
234
  return _context3.stop();
234
235
  }
235
- }, _callee3, null, [[0, 12]]);
236
+ }, _callee3, null, [[0, 4]]);
236
237
  }));
237
238
 
238
239
  /**
@@ -253,8 +254,9 @@ export function Installation(http, data) {
253
254
  var param,
254
255
  headers,
255
256
  response,
256
- _args4 = arguments;
257
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
257
+ _args4 = arguments,
258
+ _t4;
259
+ return _regeneratorRuntime.wrap(function (_context4) {
258
260
  while (1) switch (_context4.prev = _context4.next) {
259
261
  case 0:
260
262
  param = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
@@ -263,29 +265,29 @@ export function Installation(http, data) {
263
265
  headers: _objectSpread({}, cloneDeep(params)),
264
266
  params: _objectSpread({}, cloneDeep(param))
265
267
  } || {};
266
- _context4.next = 5;
268
+ _context4.next = 2;
267
269
  return http.get("".concat(_this.urlPath, "/server-configuration"), headers);
268
- case 5:
270
+ case 2:
269
271
  response = _context4.sent;
270
272
  if (!response.data) {
271
- _context4.next = 10;
273
+ _context4.next = 3;
272
274
  break;
273
275
  }
274
276
  return _context4.abrupt("return", response.data);
275
- case 10:
277
+ case 3:
276
278
  throw error(response);
277
- case 11:
278
- _context4.next = 16;
279
+ case 4:
280
+ _context4.next = 6;
279
281
  break;
280
- case 13:
281
- _context4.prev = 13;
282
- _context4.t0 = _context4["catch"](1);
283
- throw error(_context4.t0);
284
- case 16:
282
+ case 5:
283
+ _context4.prev = 5;
284
+ _t4 = _context4["catch"](1);
285
+ throw error(_t4);
286
+ case 6:
285
287
  case "end":
286
288
  return _context4.stop();
287
289
  }
288
- }, _callee4, null, [[1, 13]]);
290
+ }, _callee4, null, [[1, 5]]);
289
291
  }));
290
292
 
291
293
  /**
@@ -304,37 +306,37 @@ export function Installation(http, data) {
304
306
  */
305
307
  this.setServerConfig = /*#__PURE__*/function () {
306
308
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(config) {
307
- var headers, response;
308
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
309
+ var headers, response, _t5;
310
+ return _regeneratorRuntime.wrap(function (_context5) {
309
311
  while (1) switch (_context5.prev = _context5.next) {
310
312
  case 0:
311
313
  _context5.prev = 0;
312
314
  headers = {
313
315
  headers: _objectSpread({}, cloneDeep(params))
314
316
  } || {};
315
- _context5.next = 4;
317
+ _context5.next = 1;
316
318
  return http.put("".concat(_this.urlPath, "/server-configuration"), config, headers);
317
- case 4:
319
+ case 1:
318
320
  response = _context5.sent;
319
321
  if (!response.data) {
320
- _context5.next = 9;
322
+ _context5.next = 2;
321
323
  break;
322
324
  }
323
325
  return _context5.abrupt("return", response.data);
324
- case 9:
326
+ case 2:
325
327
  throw error(response);
326
- case 10:
327
- _context5.next = 15;
328
+ case 3:
329
+ _context5.next = 5;
328
330
  break;
329
- case 12:
330
- _context5.prev = 12;
331
- _context5.t0 = _context5["catch"](0);
332
- throw error(_context5.t0);
333
- case 15:
331
+ case 4:
332
+ _context5.prev = 4;
333
+ _t5 = _context5["catch"](0);
334
+ throw error(_t5);
335
+ case 5:
334
336
  case "end":
335
337
  return _context5.stop();
336
338
  }
337
- }, _callee5, null, [[0, 12]]);
339
+ }, _callee5, null, [[0, 4]]);
338
340
  }));
339
341
  return function (_x2) {
340
342
  return _ref5.apply(this, arguments);
@@ -355,37 +357,37 @@ export function Installation(http, data) {
355
357
  * .then((response) => console.log(response))
356
358
  */
357
359
  this.installationData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
358
- var headers, response;
359
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
360
+ var headers, response, _t6;
361
+ return _regeneratorRuntime.wrap(function (_context6) {
360
362
  while (1) switch (_context6.prev = _context6.next) {
361
363
  case 0:
362
364
  _context6.prev = 0;
363
365
  headers = {
364
366
  headers: _objectSpread({}, cloneDeep(params))
365
367
  } || {};
366
- _context6.next = 4;
368
+ _context6.next = 1;
367
369
  return http.get("".concat(_this.urlPath, "/installationData"), headers);
368
- case 4:
370
+ case 1:
369
371
  response = _context6.sent;
370
372
  if (!response.data) {
371
- _context6.next = 9;
373
+ _context6.next = 2;
372
374
  break;
373
375
  }
374
376
  return _context6.abrupt("return", response.data);
375
- case 9:
377
+ case 2:
376
378
  throw error(response);
377
- case 10:
378
- _context6.next = 15;
379
+ case 3:
380
+ _context6.next = 5;
379
381
  break;
380
- case 12:
381
- _context6.prev = 12;
382
- _context6.t0 = _context6["catch"](0);
383
- throw error(_context6.t0);
384
- case 15:
382
+ case 4:
383
+ _context6.prev = 4;
384
+ _t6 = _context6["catch"](0);
385
+ throw error(_t6);
386
+ case 5:
385
387
  case "end":
386
388
  return _context6.stop();
387
389
  }
388
- }, _callee6, null, [[0, 12]]);
390
+ }, _callee6, null, [[0, 4]]);
389
391
  }));
390
392
 
391
393
  /**
@@ -442,8 +444,9 @@ export function Installation(http, data) {
442
444
  var param,
443
445
  headers,
444
446
  response,
445
- _args7 = arguments;
446
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
447
+ _args7 = arguments,
448
+ _t7;
449
+ return _regeneratorRuntime.wrap(function (_context7) {
447
450
  while (1) switch (_context7.prev = _context7.next) {
448
451
  case 0:
449
452
  param = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
@@ -452,29 +455,29 @@ export function Installation(http, data) {
452
455
  headers: _objectSpread({}, cloneDeep(params)),
453
456
  params: _objectSpread({}, cloneDeep(param))
454
457
  };
455
- _context7.next = 5;
458
+ _context7.next = 2;
456
459
  return http.get("".concat(_this.urlPath, "/view/apps"), headers);
457
- case 5:
460
+ case 2:
458
461
  response = _context7.sent;
459
462
  if (!response.data) {
460
- _context7.next = 10;
463
+ _context7.next = 3;
461
464
  break;
462
465
  }
463
466
  return _context7.abrupt("return", response.data);
464
- case 10:
467
+ case 3:
465
468
  throw error(response);
466
- case 11:
467
- _context7.next = 16;
469
+ case 4:
470
+ _context7.next = 6;
468
471
  break;
469
- case 13:
470
- _context7.prev = 13;
471
- _context7.t0 = _context7["catch"](1);
472
- throw error(_context7.t0);
473
- case 16:
472
+ case 5:
473
+ _context7.prev = 5;
474
+ _t7 = _context7["catch"](1);
475
+ throw error(_t7);
476
+ case 6:
474
477
  case "end":
475
478
  return _context7.stop();
476
479
  }
477
- }, _callee7, null, [[1, 13]]);
480
+ }, _callee7, null, [[1, 5]]);
478
481
  }));
479
482
 
480
483
  /**
@@ -492,37 +495,37 @@ export function Installation(http, data) {
492
495
  *
493
496
  */
494
497
  this.getInstalledUsers = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
495
- var headers, response;
496
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
498
+ var headers, response, _t8;
499
+ return _regeneratorRuntime.wrap(function (_context8) {
497
500
  while (1) switch (_context8.prev = _context8.next) {
498
501
  case 0:
499
502
  _context8.prev = 0;
500
503
  headers = {
501
504
  headers: _objectSpread({}, cloneDeep(params))
502
505
  } || {};
503
- _context8.next = 4;
506
+ _context8.next = 1;
504
507
  return http.get("".concat(_this.urlPath, "/view/users"), headers);
505
- case 4:
508
+ case 1:
506
509
  response = _context8.sent;
507
510
  if (!response.data) {
508
- _context8.next = 9;
511
+ _context8.next = 2;
509
512
  break;
510
513
  }
511
514
  return _context8.abrupt("return", response.data);
512
- case 9:
515
+ case 2:
513
516
  throw error(response);
514
- case 10:
515
- _context8.next = 15;
517
+ case 3:
518
+ _context8.next = 5;
516
519
  break;
517
- case 12:
518
- _context8.prev = 12;
519
- _context8.t0 = _context8["catch"](0);
520
- throw error(_context8.t0);
521
- case 15:
520
+ case 4:
521
+ _context8.prev = 4;
522
+ _t8 = _context8["catch"](0);
523
+ throw error(_t8);
524
+ case 5:
522
525
  case "end":
523
526
  return _context8.stop();
524
527
  }
525
- }, _callee8, null, [[0, 12]]);
528
+ }, _callee8, null, [[0, 4]]);
526
529
  }));
527
530
 
528
531
  /**
@@ -540,37 +543,37 @@ export function Installation(http, data) {
540
543
  *
541
544
  */
542
545
  this.getInstalledStacks = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
543
- var headers, response;
544
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
546
+ var headers, response, _t9;
547
+ return _regeneratorRuntime.wrap(function (_context9) {
545
548
  while (1) switch (_context9.prev = _context9.next) {
546
549
  case 0:
547
550
  _context9.prev = 0;
548
551
  headers = {
549
552
  headers: _objectSpread({}, cloneDeep(params))
550
553
  } || {};
551
- _context9.next = 4;
554
+ _context9.next = 1;
552
555
  return http.get("".concat(_this.urlPath, "/view/stacks"), headers);
553
- case 4:
556
+ case 1:
554
557
  response = _context9.sent;
555
558
  if (!response.data) {
556
- _context9.next = 9;
559
+ _context9.next = 2;
557
560
  break;
558
561
  }
559
562
  return _context9.abrupt("return", response.data);
560
- case 9:
563
+ case 2:
561
564
  throw error(response);
562
- case 10:
563
- _context9.next = 15;
565
+ case 3:
566
+ _context9.next = 5;
564
567
  break;
565
- case 12:
566
- _context9.prev = 12;
567
- _context9.t0 = _context9["catch"](0);
568
- throw error(_context9.t0);
569
- case 15:
568
+ case 4:
569
+ _context9.prev = 4;
570
+ _t9 = _context9["catch"](0);
571
+ throw error(_t9);
572
+ case 5:
570
573
  case "end":
571
574
  return _context9.stop();
572
575
  }
573
- }, _callee9, null, [[0, 12]]);
576
+ }, _callee9, null, [[0, 4]]);
574
577
  }));
575
578
  }
576
579
  }
@@ -39,37 +39,37 @@ export function WebHooks(http, data) {
39
39
  *
40
40
  */
41
41
  this.listExecutionLogs = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
42
- var headers, response;
43
- return _regeneratorRuntime.wrap(function _callee$(_context) {
42
+ var headers, response, _t;
43
+ return _regeneratorRuntime.wrap(function (_context) {
44
44
  while (1) switch (_context.prev = _context.next) {
45
45
  case 0:
46
46
  _context.prev = 0;
47
47
  headers = {
48
48
  headers: _objectSpread({}, cloneDeep(params))
49
49
  } || {};
50
- _context.next = 4;
50
+ _context.next = 1;
51
51
  return http.get("".concat(_this.urlPath, "/executions"), headers);
52
- case 4:
52
+ case 1:
53
53
  response = _context.sent;
54
54
  if (!response.data) {
55
- _context.next = 9;
55
+ _context.next = 2;
56
56
  break;
57
57
  }
58
58
  return _context.abrupt("return", response.data);
59
- case 9:
59
+ case 2:
60
60
  throw error(response);
61
- case 10:
62
- _context.next = 15;
61
+ case 3:
62
+ _context.next = 5;
63
63
  break;
64
- case 12:
65
- _context.prev = 12;
66
- _context.t0 = _context["catch"](0);
67
- throw error(_context.t0);
68
- case 15:
64
+ case 4:
65
+ _context.prev = 4;
66
+ _t = _context["catch"](0);
67
+ throw error(_t);
68
+ case 5:
69
69
  case "end":
70
70
  return _context.stop();
71
71
  }
72
- }, _callee, null, [[0, 12]]);
72
+ }, _callee, null, [[0, 4]]);
73
73
  }));
74
74
 
75
75
  /**
@@ -89,37 +89,37 @@ export function WebHooks(http, data) {
89
89
  */
90
90
  this.getExecutionLog = /*#__PURE__*/function () {
91
91
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(executionUid) {
92
- var headers, response;
93
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
92
+ var headers, response, _t2;
93
+ return _regeneratorRuntime.wrap(function (_context2) {
94
94
  while (1) switch (_context2.prev = _context2.next) {
95
95
  case 0:
96
96
  _context2.prev = 0;
97
97
  headers = {
98
98
  headers: _objectSpread({}, cloneDeep(params))
99
99
  } || {};
100
- _context2.next = 4;
100
+ _context2.next = 1;
101
101
  return http.get("".concat(_this.urlPath, "/executions/").concat(executionUid), headers);
102
- case 4:
102
+ case 1:
103
103
  response = _context2.sent;
104
104
  if (!response.data) {
105
- _context2.next = 9;
105
+ _context2.next = 2;
106
106
  break;
107
107
  }
108
108
  return _context2.abrupt("return", response.data);
109
- case 9:
109
+ case 2:
110
110
  throw error(response);
111
- case 10:
112
- _context2.next = 15;
111
+ case 3:
112
+ _context2.next = 5;
113
113
  break;
114
- case 12:
115
- _context2.prev = 12;
116
- _context2.t0 = _context2["catch"](0);
117
- throw error(_context2.t0);
118
- case 15:
114
+ case 4:
115
+ _context2.prev = 4;
116
+ _t2 = _context2["catch"](0);
117
+ throw error(_t2);
118
+ case 5:
119
119
  case "end":
120
120
  return _context2.stop();
121
121
  }
122
- }, _callee2, null, [[0, 12]]);
122
+ }, _callee2, null, [[0, 4]]);
123
123
  }));
124
124
  return function (_x) {
125
125
  return _ref2.apply(this, arguments);
@@ -143,37 +143,37 @@ export function WebHooks(http, data) {
143
143
  */
144
144
  this.retryExecution = /*#__PURE__*/function () {
145
145
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(executionUid) {
146
- var headers, response;
147
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
146
+ var headers, response, _t3;
147
+ return _regeneratorRuntime.wrap(function (_context3) {
148
148
  while (1) switch (_context3.prev = _context3.next) {
149
149
  case 0:
150
150
  _context3.prev = 0;
151
151
  headers = {
152
152
  headers: _objectSpread({}, cloneDeep(params))
153
153
  } || {};
154
- _context3.next = 4;
154
+ _context3.next = 1;
155
155
  return http.post("".concat(_this.urlPath, "/executions/").concat(executionUid, "/retry"), headers);
156
- case 4:
156
+ case 1:
157
157
  response = _context3.sent;
158
158
  if (!response.data) {
159
- _context3.next = 9;
159
+ _context3.next = 2;
160
160
  break;
161
161
  }
162
162
  return _context3.abrupt("return", response.data);
163
- case 9:
163
+ case 2:
164
164
  throw error(response);
165
- case 10:
166
- _context3.next = 15;
165
+ case 3:
166
+ _context3.next = 5;
167
167
  break;
168
- case 12:
169
- _context3.prev = 12;
170
- _context3.t0 = _context3["catch"](0);
171
- throw error(_context3.t0);
172
- case 15:
168
+ case 4:
169
+ _context3.prev = 4;
170
+ _t3 = _context3["catch"](0);
171
+ throw error(_t3);
172
+ case 5:
173
173
  case "end":
174
174
  return _context3.stop();
175
175
  }
176
- }, _callee3, null, [[0, 12]]);
176
+ }, _callee3, null, [[0, 4]]);
177
177
  }));
178
178
  return function (_x2) {
179
179
  return _ref3.apply(this, arguments);