@valbuild/next 0.87.2 → 0.87.4

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.
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('server-only');
6
6
  var objectSpread2 = require('../../dist/objectSpread2-3c87fb4f.cjs.prod.js');
7
- var asyncToGenerator = require('../../dist/asyncToGenerator-67a5ff70.cjs.prod.js');
7
+ var asyncToGenerator = require('../../dist/asyncToGenerator-8e5c36c8.cjs.prod.js');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var core = require('@valbuild/core');
10
10
  var internal = require('@valbuild/shared/internal');
@@ -20,71 +20,71 @@ stega.SET_RSC(true);
20
20
  var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valServerPromise, isEnabled, getHeaders, getCookies) {
21
21
  return function (selector) {
22
22
  var exec = /*#__PURE__*/function () {
23
- var _ref = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee() {
24
- var enabled, headers, cookies, host, _cookies, valServer, treeRes, modules;
25
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee$(_context) {
26
- while (1) switch (_context.prev = _context.next) {
23
+ var _ref = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee() {
24
+ var enabled, headers, cookies, host, _cookies, valServer, treeRes, modules, _t, _t2, _t3;
25
+ return asyncToGenerator._regenerator().w(function (_context) {
26
+ while (1) switch (_context.p = _context.n) {
27
27
  case 0:
28
28
  enabled = false;
29
- _context.prev = 1;
30
- _context.next = 4;
29
+ _context.p = 1;
30
+ _context.n = 2;
31
31
  return isEnabled();
32
- case 4:
33
- enabled = _context.sent;
34
- _context.next = 10;
32
+ case 2:
33
+ enabled = _context.v;
34
+ _context.n = 4;
35
35
  break;
36
- case 7:
37
- _context.prev = 7;
38
- _context.t0 = _context["catch"](1);
39
- console.error("Val: could not check if Val is enabled! This might be due to an error to check draftMode. fetchVal can only be used server-side. Use useVal on clients.", _context.t0);
40
- case 10:
36
+ case 3:
37
+ _context.p = 3;
38
+ _t = _context.v;
39
+ console.error("Val: could not check if Val is enabled! This might be due to an error to check draftMode. fetchVal can only be used server-side. Use useVal on clients.", _t);
40
+ case 4:
41
41
  if (!enabled) {
42
- _context.next = 52;
42
+ _context.n = 17;
43
43
  break;
44
44
  }
45
45
  stega.SET_AUTO_TAG_JSX_ENABLED(true);
46
- _context.prev = 12;
47
- _context.next = 15;
46
+ _context.p = 5;
47
+ _context.n = 6;
48
48
  return getHeaders();
49
- case 15:
50
- headers = _context.sent;
49
+ case 6:
50
+ headers = _context.v;
51
51
  if (!(typeof headers.get !== "function")) {
52
- _context.next = 18;
52
+ _context.n = 7;
53
53
  break;
54
54
  }
55
55
  throw new Error("Invalid headers");
56
- case 18:
57
- _context.next = 24;
56
+ case 7:
57
+ _context.n = 9;
58
58
  break;
59
- case 20:
60
- _context.prev = 20;
61
- _context.t1 = _context["catch"](12);
62
- console.error("Val: could not read headers! fetchVal can only be used server-side. Use useVal on clients.", _context.t1);
59
+ case 8:
60
+ _context.p = 8;
61
+ _t2 = _context.v;
62
+ console.error("Val: could not read headers! fetchVal can only be used server-side. Use useVal on clients.", _t2);
63
63
  headers = null;
64
- case 24:
65
- _context.prev = 24;
66
- _context.next = 27;
64
+ case 9:
65
+ _context.p = 9;
66
+ _context.n = 10;
67
67
  return getCookies();
68
- case 27:
69
- cookies = _context.sent;
70
- _context.next = 34;
68
+ case 10:
69
+ cookies = _context.v;
70
+ _context.n = 12;
71
71
  break;
72
- case 30:
73
- _context.prev = 30;
74
- _context.t2 = _context["catch"](24);
75
- console.error("Val: could not read cookies! fetchVal can only be used server-side. Use useVal on clients.", _context.t2);
72
+ case 11:
73
+ _context.p = 11;
74
+ _t3 = _context.v;
75
+ console.error("Val: could not read cookies! fetchVal can only be used server-side. Use useVal on clients.", _t3);
76
76
  cookies = null;
77
- case 34:
77
+ case 12:
78
78
  host = headers && getHost(headers);
79
79
  if (!(host && cookies)) {
80
- _context.next = 52;
80
+ _context.n = 17;
81
81
  break;
82
82
  }
83
- _context.next = 38;
83
+ _context.n = 13;
84
84
  return valServerPromise;
85
- case 38:
86
- valServer = _context.sent;
87
- _context.next = 41;
85
+ case 13:
86
+ valServer = _context.v;
87
+ _context.n = 14;
88
88
  return valServer["/sources/~"]["PUT"]({
89
89
  path: "/",
90
90
  query: {
@@ -93,14 +93,14 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
93
93
  },
94
94
  cookies: objectSpread2._defineProperty({}, internal.VAL_SESSION_COOKIE, (_cookies = cookies) === null || _cookies === void 0 || (_cookies = _cookies.get(internal.VAL_SESSION_COOKIE)) === null || _cookies === void 0 ? void 0 : _cookies.value)
95
95
  });
96
- case 41:
97
- treeRes = _context.sent;
96
+ case 14:
97
+ treeRes = _context.v;
98
98
  if (!(treeRes.status === 200)) {
99
- _context.next = 47;
99
+ _context.n = 15;
100
100
  break;
101
101
  }
102
102
  modules = treeRes.json.modules;
103
- return _context.abrupt("return", stega.stegaEncode(selector, {
103
+ return _context.a(2, stega.stegaEncode(selector, {
104
104
  disabled: !enabled,
105
105
  getModule: function getModule(path) {
106
106
  var module = modules[path];
@@ -109,25 +109,22 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
109
109
  }
110
110
  }
111
111
  }));
112
- case 47:
112
+ case 15:
113
113
  if (!(treeRes.status === 401)) {
114
- _context.next = 51;
114
+ _context.n = 16;
115
115
  break;
116
116
  }
117
117
  console.warn("Val: authentication error: ", treeRes.json.message);
118
- _context.next = 52;
118
+ _context.n = 17;
119
119
  break;
120
- case 51:
120
+ case 16:
121
121
  throw Error(JSON.stringify(treeRes.json, null, 2));
122
- case 52:
123
- return _context.abrupt("return", stega.stegaEncode(selector, {
122
+ case 17:
123
+ return _context.a(2, stega.stegaEncode(selector, {
124
124
  disabled: !enabled
125
125
  }));
126
- case 53:
127
- case "end":
128
- return _context.stop();
129
126
  }
130
- }, _callee, null, [[1, 7], [12, 20], [24, 30]]);
127
+ }, _callee, null, [[9, 11], [5, 8], [1, 3]]);
131
128
  }));
132
129
  return function exec() {
133
130
  return _ref.apply(this, arguments);
@@ -182,34 +179,31 @@ function getHost(headers) {
182
179
 
183
180
  var initFetchValRouteStega = function initFetchValRouteStega(config, valApiEndpoints, valServerPromise, isEnabled, getHeaders, getCookies) {
184
181
  return /*#__PURE__*/function () {
185
- var _ref2 = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee2(selector, params) {
186
- var fetchVal, resolvedParams, path, schema, val, route;
187
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee2$(_context2) {
188
- while (1) switch (_context2.prev = _context2.next) {
182
+ var _ref2 = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee2(selector, params) {
183
+ var fetchVal, resolvedParams, path, schema, val, route, _t4;
184
+ return asyncToGenerator._regenerator().w(function (_context2) {
185
+ while (1) switch (_context2.n) {
189
186
  case 0:
190
187
  fetchVal = initFetchValStega(config, valApiEndpoints, valServerPromise, isEnabled, getHeaders, getCookies);
191
- _context2.next = 3;
188
+ _context2.n = 1;
192
189
  return Promise.resolve(params);
193
- case 3:
194
- resolvedParams = _context2.sent;
190
+ case 1:
191
+ resolvedParams = _context2.v;
195
192
  path = selector && core.Internal.getValPath(selector);
196
193
  schema = selector && core.Internal.getSchema(selector);
197
- _context2.t0 = selector;
198
- if (!_context2.t0) {
199
- _context2.next = 11;
194
+ _t4 = selector;
195
+ if (!_t4) {
196
+ _context2.n = 3;
200
197
  break;
201
198
  }
202
- _context2.next = 10;
199
+ _context2.n = 2;
203
200
  return fetchVal(selector);
204
- case 10:
205
- _context2.t0 = _context2.sent;
206
- case 11:
207
- val = _context2.t0;
201
+ case 2:
202
+ _t4 = _context2.v;
203
+ case 3:
204
+ val = _t4;
208
205
  route = routeFromVal.initValRouteFromVal(resolvedParams, "fetchValRoute", path, schema, val);
209
- return _context2.abrupt("return", route);
210
- case 14:
211
- case "end":
212
- return _context2.stop();
206
+ return _context2.a(2, route);
213
207
  }
214
208
  }, _callee2);
215
209
  }));
@@ -220,44 +214,41 @@ var initFetchValRouteStega = function initFetchValRouteStega(config, valApiEndpo
220
214
  };
221
215
  var initFetchValRouteUrl = function initFetchValRouteUrl(config, valApiEndpoints, valServerPromise, isEnabled, getHeaders, getCookies) {
222
216
  return /*#__PURE__*/function () {
223
- var _ref3 = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee3(selector, params) {
224
- var fetchVal, resolvedParams, path, schema, val, route;
225
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee3$(_context3) {
226
- while (1) switch (_context3.prev = _context3.next) {
217
+ var _ref3 = asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee3(selector, params) {
218
+ var fetchVal, resolvedParams, path, schema, val, route, _t5, _t6;
219
+ return asyncToGenerator._regenerator().w(function (_context3) {
220
+ while (1) switch (_context3.n) {
227
221
  case 0:
228
222
  fetchVal = initFetchValStega(config, valApiEndpoints, valServerPromise, isEnabled, getHeaders, getCookies);
229
223
  if (!(params === undefined)) {
230
- _context3.next = 5;
224
+ _context3.n = 1;
231
225
  break;
232
226
  }
233
- _context3.t0 = undefined;
234
- _context3.next = 8;
227
+ _t5 = undefined;
228
+ _context3.n = 3;
235
229
  break;
236
- case 5:
237
- _context3.next = 7;
230
+ case 1:
231
+ _context3.n = 2;
238
232
  return Promise.resolve(params);
239
- case 7:
240
- _context3.t0 = _context3.sent;
241
- case 8:
242
- resolvedParams = _context3.t0;
233
+ case 2:
234
+ _t5 = _context3.v;
235
+ case 3:
236
+ resolvedParams = _t5;
243
237
  path = selector && core.Internal.getValPath(selector);
244
238
  schema = selector && core.Internal.getSchema(selector);
245
- _context3.t1 = selector;
246
- if (!_context3.t1) {
247
- _context3.next = 16;
239
+ _t6 = selector;
240
+ if (!_t6) {
241
+ _context3.n = 5;
248
242
  break;
249
243
  }
250
- _context3.next = 15;
244
+ _context3.n = 4;
251
245
  return fetchVal(selector);
252
- case 15:
253
- _context3.t1 = _context3.sent;
254
- case 16:
255
- val = _context3.t1;
246
+ case 4:
247
+ _t6 = _context3.v;
248
+ case 5:
249
+ val = _t6;
256
250
  route = routeFromVal.getValRouteUrlFromVal(resolvedParams, "fetchValRouteUrl", path, schema, val);
257
- return _context3.abrupt("return", route);
258
- case 19:
259
- case "end":
260
- return _context3.stop();
251
+ return _context3.a(2, route);
261
252
  }
262
253
  }, _callee3);
263
254
  }));
@@ -284,49 +275,44 @@ function initValRsc(config, valModules, rscNextConfig) {
284
275
  }
285
276
  }, config), config, {
286
277
  isEnabled: function isEnabled() {
287
- return asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee4() {
288
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee4$(_context4) {
289
- while (1) switch (_context4.prev = _context4.next) {
278
+ return asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee4() {
279
+ return asyncToGenerator._regenerator().w(function (_context4) {
280
+ while (1) switch (_context4.n) {
290
281
  case 0:
291
- _context4.next = 2;
282
+ _context4.n = 1;
292
283
  return rscNextConfig.draftMode();
293
- case 2:
294
- return _context4.abrupt("return", _context4.sent.isEnabled);
295
- case 3:
296
- case "end":
297
- return _context4.stop();
284
+ case 1:
285
+ return _context4.a(2, _context4.v.isEnabled);
298
286
  }
299
287
  }, _callee4);
300
288
  }))();
301
289
  },
302
290
  onEnable: function onEnable() {
303
- return asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee5() {
304
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee5$(_context5) {
305
- while (1) switch (_context5.prev = _context5.next) {
291
+ return asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee5() {
292
+ return asyncToGenerator._regenerator().w(function (_context5) {
293
+ while (1) switch (_context5.n) {
306
294
  case 0:
307
- _context5.next = 2;
295
+ _context5.n = 1;
308
296
  return rscNextConfig.draftMode();
297
+ case 1:
298
+ _context5.v.enable();
309
299
  case 2:
310
- _context5.sent.enable();
311
- case 3:
312
- case "end":
313
- return _context5.stop();
300
+ return _context5.a(2);
314
301
  }
315
302
  }, _callee5);
316
303
  }))();
317
304
  },
318
305
  onDisable: function onDisable() {
319
- return asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee6() {
320
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee6$(_context6) {
321
- while (1) switch (_context6.prev = _context6.next) {
306
+ return asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee6() {
307
+ return asyncToGenerator._regenerator().w(function (_context6) {
308
+ while (1) switch (_context6.n) {
322
309
  case 0:
323
- _context6.next = 2;
310
+ _context6.n = 1;
324
311
  return rscNextConfig.draftMode();
312
+ case 1:
313
+ _context6.v.disable();
325
314
  case 2:
326
- _context6.sent.disable();
327
- case 3:
328
- case "end":
329
- return _context6.stop();
315
+ return _context6.a(2);
330
316
  }
331
317
  }, _callee6);
332
318
  }))();
@@ -335,125 +321,98 @@ function initValRsc(config, valModules, rscNextConfig) {
335
321
  return {
336
322
  fetchValStega: initFetchValStega(config, valApiEndpoints,
337
323
  // TODO: get from config
338
- valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee7() {
339
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee7$(_context7) {
340
- while (1) switch (_context7.prev = _context7.next) {
324
+ valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee7() {
325
+ return asyncToGenerator._regenerator().w(function (_context7) {
326
+ while (1) switch (_context7.n) {
341
327
  case 0:
342
- _context7.next = 2;
328
+ _context7.n = 1;
343
329
  return rscNextConfig.draftMode();
344
- case 2:
345
- return _context7.abrupt("return", _context7.sent.isEnabled);
346
- case 3:
347
- case "end":
348
- return _context7.stop();
330
+ case 1:
331
+ return _context7.a(2, _context7.v.isEnabled);
349
332
  }
350
333
  }, _callee7);
351
- })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee8() {
352
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee8$(_context8) {
353
- while (1) switch (_context8.prev = _context8.next) {
334
+ })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee8() {
335
+ return asyncToGenerator._regenerator().w(function (_context8) {
336
+ while (1) switch (_context8.n) {
354
337
  case 0:
355
- _context8.next = 2;
338
+ _context8.n = 1;
356
339
  return rscNextConfig.headers();
357
- case 2:
358
- return _context8.abrupt("return", _context8.sent);
359
- case 3:
360
- case "end":
361
- return _context8.stop();
340
+ case 1:
341
+ return _context8.a(2, _context8.v);
362
342
  }
363
343
  }, _callee8);
364
- })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee9() {
365
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee9$(_context9) {
366
- while (1) switch (_context9.prev = _context9.next) {
344
+ })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee9() {
345
+ return asyncToGenerator._regenerator().w(function (_context9) {
346
+ while (1) switch (_context9.n) {
367
347
  case 0:
368
- _context9.next = 2;
348
+ _context9.n = 1;
369
349
  return rscNextConfig.cookies();
370
- case 2:
371
- return _context9.abrupt("return", _context9.sent);
372
- case 3:
373
- case "end":
374
- return _context9.stop();
350
+ case 1:
351
+ return _context9.a(2, _context9.v);
375
352
  }
376
353
  }, _callee9);
377
354
  }))),
378
- fetchValRouteStega: initFetchValRouteStega(config, valApiEndpoints, valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee10() {
379
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee10$(_context10) {
380
- while (1) switch (_context10.prev = _context10.next) {
355
+ fetchValRouteStega: initFetchValRouteStega(config, valApiEndpoints, valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee0() {
356
+ return asyncToGenerator._regenerator().w(function (_context0) {
357
+ while (1) switch (_context0.n) {
381
358
  case 0:
382
- _context10.next = 2;
359
+ _context0.n = 1;
383
360
  return rscNextConfig.draftMode();
384
- case 2:
385
- return _context10.abrupt("return", _context10.sent.isEnabled);
386
- case 3:
387
- case "end":
388
- return _context10.stop();
361
+ case 1:
362
+ return _context0.a(2, _context0.v.isEnabled);
389
363
  }
390
- }, _callee10);
391
- })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee11() {
392
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee11$(_context11) {
393
- while (1) switch (_context11.prev = _context11.next) {
364
+ }, _callee0);
365
+ })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee1() {
366
+ return asyncToGenerator._regenerator().w(function (_context1) {
367
+ while (1) switch (_context1.n) {
394
368
  case 0:
395
- _context11.next = 2;
369
+ _context1.n = 1;
396
370
  return rscNextConfig.headers();
397
- case 2:
398
- return _context11.abrupt("return", _context11.sent);
399
- case 3:
400
- case "end":
401
- return _context11.stop();
371
+ case 1:
372
+ return _context1.a(2, _context1.v);
402
373
  }
403
- }, _callee11);
404
- })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee12() {
405
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee12$(_context12) {
406
- while (1) switch (_context12.prev = _context12.next) {
374
+ }, _callee1);
375
+ })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee10() {
376
+ return asyncToGenerator._regenerator().w(function (_context10) {
377
+ while (1) switch (_context10.n) {
407
378
  case 0:
408
- _context12.next = 2;
379
+ _context10.n = 1;
409
380
  return rscNextConfig.cookies();
410
- case 2:
411
- return _context12.abrupt("return", _context12.sent);
412
- case 3:
413
- case "end":
414
- return _context12.stop();
381
+ case 1:
382
+ return _context10.a(2, _context10.v);
415
383
  }
416
- }, _callee12);
384
+ }, _callee10);
417
385
  }))),
418
- fetchValRouteUrl: initFetchValRouteUrl(config, valApiEndpoints, valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee13() {
419
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee13$(_context13) {
420
- while (1) switch (_context13.prev = _context13.next) {
386
+ fetchValRouteUrl: initFetchValRouteUrl(config, valApiEndpoints, valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee11() {
387
+ return asyncToGenerator._regenerator().w(function (_context11) {
388
+ while (1) switch (_context11.n) {
421
389
  case 0:
422
- _context13.next = 2;
390
+ _context11.n = 1;
423
391
  return rscNextConfig.draftMode();
424
- case 2:
425
- return _context13.abrupt("return", _context13.sent.isEnabled);
426
- case 3:
427
- case "end":
428
- return _context13.stop();
392
+ case 1:
393
+ return _context11.a(2, _context11.v.isEnabled);
429
394
  }
430
- }, _callee13);
431
- })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee14() {
432
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee14$(_context14) {
433
- while (1) switch (_context14.prev = _context14.next) {
395
+ }, _callee11);
396
+ })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee12() {
397
+ return asyncToGenerator._regenerator().w(function (_context12) {
398
+ while (1) switch (_context12.n) {
434
399
  case 0:
435
- _context14.next = 2;
400
+ _context12.n = 1;
436
401
  return rscNextConfig.headers();
437
- case 2:
438
- return _context14.abrupt("return", _context14.sent);
439
- case 3:
440
- case "end":
441
- return _context14.stop();
402
+ case 1:
403
+ return _context12.a(2, _context12.v);
442
404
  }
443
- }, _callee14);
444
- })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regeneratorRuntime().mark(function _callee15() {
445
- return asyncToGenerator._regeneratorRuntime().wrap(function _callee15$(_context15) {
446
- while (1) switch (_context15.prev = _context15.next) {
405
+ }, _callee12);
406
+ })), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator._regenerator().m(function _callee13() {
407
+ return asyncToGenerator._regenerator().w(function (_context13) {
408
+ while (1) switch (_context13.n) {
447
409
  case 0:
448
- _context15.next = 2;
410
+ _context13.n = 1;
449
411
  return rscNextConfig.cookies();
450
- case 2:
451
- return _context15.abrupt("return", _context15.sent);
452
- case 3:
453
- case "end":
454
- return _context15.stop();
412
+ case 1:
413
+ return _context13.a(2, _context13.v);
455
414
  }
456
- }, _callee15);
415
+ }, _callee13);
457
416
  })))
458
417
  };
459
418
  }