@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.
- package/dist/{ValNextProvider-49b788b8.cjs.dev.js → ValNextProvider-579b1e3d.cjs.dev.js} +9 -8
- package/dist/{ValNextProvider-5657aa89.esm.js → ValNextProvider-abf09691.esm.js} +9 -8
- package/dist/ValNextProvider-af07de36.cjs.js +7 -0
- package/dist/{ValNextProvider-9ce953f7.cjs.prod.js → ValNextProvider-af07de36.cjs.prod.js} +9 -8
- package/dist/asyncToGenerator-500f022f.esm.js +137 -0
- package/dist/asyncToGenerator-8e5c36c8.cjs.prod.js +140 -0
- package/dist/asyncToGenerator-c3823d62.cjs.dev.js +140 -0
- package/dist/valbuild-next.cjs.dev.js +4 -4
- package/dist/valbuild-next.cjs.prod.js +4 -4
- package/dist/valbuild-next.esm.js +4 -4
- package/package.json +10 -6
- package/rsc/dist/valbuild-next-rsc.cjs.dev.js +172 -213
- package/rsc/dist/valbuild-next-rsc.cjs.prod.js +172 -213
- package/rsc/dist/valbuild-next-rsc.esm.js +172 -213
- package/server/dist/valbuild-next-server.cjs.dev.js +21 -26
- package/server/dist/valbuild-next-server.cjs.prod.js +21 -26
- package/server/dist/valbuild-next-server.esm.js +21 -26
- package/dist/ValNextProvider-9ce953f7.cjs.js +0 -7
- package/dist/asyncToGenerator-5f8c02f3.esm.js +0 -329
- package/dist/asyncToGenerator-67a5ff70.cjs.prod.js +0 -332
- package/dist/asyncToGenerator-6ba61221.cjs.dev.js +0 -332
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('server-only');
|
|
6
6
|
var objectSpread2 = require('../../dist/objectSpread2-792eb2c2.cjs.dev.js');
|
|
7
|
-
var asyncToGenerator = require('../../dist/asyncToGenerator-
|
|
7
|
+
var asyncToGenerator = require('../../dist/asyncToGenerator-c3823d62.cjs.dev.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.
|
|
24
|
-
var enabled, headers, cookies, host, _cookies, valServer, treeRes, modules;
|
|
25
|
-
return asyncToGenerator.
|
|
26
|
-
while (1) switch (_context.
|
|
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.
|
|
30
|
-
_context.
|
|
29
|
+
_context.p = 1;
|
|
30
|
+
_context.n = 2;
|
|
31
31
|
return isEnabled();
|
|
32
|
-
case
|
|
33
|
-
enabled = _context.
|
|
34
|
-
_context.
|
|
32
|
+
case 2:
|
|
33
|
+
enabled = _context.v;
|
|
34
|
+
_context.n = 4;
|
|
35
35
|
break;
|
|
36
|
-
case
|
|
37
|
-
_context.
|
|
38
|
-
|
|
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.",
|
|
40
|
-
case
|
|
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.
|
|
42
|
+
_context.n = 17;
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
45
|
stega.SET_AUTO_TAG_JSX_ENABLED(true);
|
|
46
|
-
_context.
|
|
47
|
-
_context.
|
|
46
|
+
_context.p = 5;
|
|
47
|
+
_context.n = 6;
|
|
48
48
|
return getHeaders();
|
|
49
|
-
case
|
|
50
|
-
headers = _context.
|
|
49
|
+
case 6:
|
|
50
|
+
headers = _context.v;
|
|
51
51
|
if (!(typeof headers.get !== "function")) {
|
|
52
|
-
_context.
|
|
52
|
+
_context.n = 7;
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
throw new Error("Invalid headers");
|
|
56
|
-
case
|
|
57
|
-
_context.
|
|
56
|
+
case 7:
|
|
57
|
+
_context.n = 9;
|
|
58
58
|
break;
|
|
59
|
-
case
|
|
60
|
-
_context.
|
|
61
|
-
|
|
62
|
-
console.error("Val: could not read headers! fetchVal can only be used server-side. Use useVal on clients.",
|
|
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
|
|
65
|
-
_context.
|
|
66
|
-
_context.
|
|
64
|
+
case 9:
|
|
65
|
+
_context.p = 9;
|
|
66
|
+
_context.n = 10;
|
|
67
67
|
return getCookies();
|
|
68
|
-
case
|
|
69
|
-
cookies = _context.
|
|
70
|
-
_context.
|
|
68
|
+
case 10:
|
|
69
|
+
cookies = _context.v;
|
|
70
|
+
_context.n = 12;
|
|
71
71
|
break;
|
|
72
|
-
case
|
|
73
|
-
_context.
|
|
74
|
-
|
|
75
|
-
console.error("Val: could not read cookies! fetchVal can only be used server-side. Use useVal on clients.",
|
|
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
|
|
77
|
+
case 12:
|
|
78
78
|
host = headers && getHost(headers);
|
|
79
79
|
if (!(host && cookies)) {
|
|
80
|
-
_context.
|
|
80
|
+
_context.n = 17;
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
|
-
_context.
|
|
83
|
+
_context.n = 13;
|
|
84
84
|
return valServerPromise;
|
|
85
|
-
case
|
|
86
|
-
valServer = _context.
|
|
87
|
-
_context.
|
|
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
|
|
97
|
-
treeRes = _context.
|
|
96
|
+
case 14:
|
|
97
|
+
treeRes = _context.v;
|
|
98
98
|
if (!(treeRes.status === 200)) {
|
|
99
|
-
_context.
|
|
99
|
+
_context.n = 15;
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
modules = treeRes.json.modules;
|
|
103
|
-
return _context.
|
|
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
|
|
112
|
+
case 15:
|
|
113
113
|
if (!(treeRes.status === 401)) {
|
|
114
|
-
_context.
|
|
114
|
+
_context.n = 16;
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
console.warn("Val: authentication error: ", treeRes.json.message);
|
|
118
|
-
_context.
|
|
118
|
+
_context.n = 17;
|
|
119
119
|
break;
|
|
120
|
-
case
|
|
120
|
+
case 16:
|
|
121
121
|
throw Error(JSON.stringify(treeRes.json, null, 2));
|
|
122
|
-
case
|
|
123
|
-
return _context.
|
|
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, [[
|
|
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.
|
|
186
|
-
var fetchVal, resolvedParams, path, schema, val, route;
|
|
187
|
-
return asyncToGenerator.
|
|
188
|
-
while (1) switch (_context2.
|
|
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.
|
|
188
|
+
_context2.n = 1;
|
|
192
189
|
return Promise.resolve(params);
|
|
193
|
-
case
|
|
194
|
-
resolvedParams = _context2.
|
|
190
|
+
case 1:
|
|
191
|
+
resolvedParams = _context2.v;
|
|
195
192
|
path = selector && core.Internal.getValPath(selector);
|
|
196
193
|
schema = selector && core.Internal.getSchema(selector);
|
|
197
|
-
|
|
198
|
-
if (!
|
|
199
|
-
_context2.
|
|
194
|
+
_t4 = selector;
|
|
195
|
+
if (!_t4) {
|
|
196
|
+
_context2.n = 3;
|
|
200
197
|
break;
|
|
201
198
|
}
|
|
202
|
-
_context2.
|
|
199
|
+
_context2.n = 2;
|
|
203
200
|
return fetchVal(selector);
|
|
204
|
-
case
|
|
205
|
-
|
|
206
|
-
case
|
|
207
|
-
val =
|
|
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.
|
|
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.
|
|
224
|
-
var fetchVal, resolvedParams, path, schema, val, route;
|
|
225
|
-
return asyncToGenerator.
|
|
226
|
-
while (1) switch (_context3.
|
|
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.
|
|
224
|
+
_context3.n = 1;
|
|
231
225
|
break;
|
|
232
226
|
}
|
|
233
|
-
|
|
234
|
-
_context3.
|
|
227
|
+
_t5 = undefined;
|
|
228
|
+
_context3.n = 3;
|
|
235
229
|
break;
|
|
236
|
-
case
|
|
237
|
-
_context3.
|
|
230
|
+
case 1:
|
|
231
|
+
_context3.n = 2;
|
|
238
232
|
return Promise.resolve(params);
|
|
239
|
-
case
|
|
240
|
-
|
|
241
|
-
case
|
|
242
|
-
resolvedParams =
|
|
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
|
-
|
|
246
|
-
if (!
|
|
247
|
-
_context3.
|
|
239
|
+
_t6 = selector;
|
|
240
|
+
if (!_t6) {
|
|
241
|
+
_context3.n = 5;
|
|
248
242
|
break;
|
|
249
243
|
}
|
|
250
|
-
_context3.
|
|
244
|
+
_context3.n = 4;
|
|
251
245
|
return fetchVal(selector);
|
|
252
|
-
case
|
|
253
|
-
|
|
254
|
-
case
|
|
255
|
-
val =
|
|
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.
|
|
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.
|
|
288
|
-
return asyncToGenerator.
|
|
289
|
-
while (1) switch (_context4.
|
|
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.
|
|
282
|
+
_context4.n = 1;
|
|
292
283
|
return rscNextConfig.draftMode();
|
|
293
|
-
case
|
|
294
|
-
return _context4.
|
|
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.
|
|
304
|
-
return asyncToGenerator.
|
|
305
|
-
while (1) switch (_context5.
|
|
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.
|
|
295
|
+
_context5.n = 1;
|
|
308
296
|
return rscNextConfig.draftMode();
|
|
297
|
+
case 1:
|
|
298
|
+
_context5.v.enable();
|
|
309
299
|
case 2:
|
|
310
|
-
_context5.
|
|
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.
|
|
320
|
-
return asyncToGenerator.
|
|
321
|
-
while (1) switch (_context6.
|
|
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.
|
|
310
|
+
_context6.n = 1;
|
|
324
311
|
return rscNextConfig.draftMode();
|
|
312
|
+
case 1:
|
|
313
|
+
_context6.v.disable();
|
|
325
314
|
case 2:
|
|
326
|
-
_context6.
|
|
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.
|
|
339
|
-
return asyncToGenerator.
|
|
340
|
-
while (1) switch (_context7.
|
|
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.
|
|
328
|
+
_context7.n = 1;
|
|
343
329
|
return rscNextConfig.draftMode();
|
|
344
|
-
case
|
|
345
|
-
return _context7.
|
|
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.
|
|
352
|
-
return asyncToGenerator.
|
|
353
|
-
while (1) switch (_context8.
|
|
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.
|
|
338
|
+
_context8.n = 1;
|
|
356
339
|
return rscNextConfig.headers();
|
|
357
|
-
case
|
|
358
|
-
return _context8.
|
|
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.
|
|
365
|
-
return asyncToGenerator.
|
|
366
|
-
while (1) switch (_context9.
|
|
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.
|
|
348
|
+
_context9.n = 1;
|
|
369
349
|
return rscNextConfig.cookies();
|
|
370
|
-
case
|
|
371
|
-
return _context9.
|
|
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.
|
|
379
|
-
return asyncToGenerator.
|
|
380
|
-
while (1) switch (
|
|
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
|
-
|
|
359
|
+
_context0.n = 1;
|
|
383
360
|
return rscNextConfig.draftMode();
|
|
384
|
-
case
|
|
385
|
-
return
|
|
386
|
-
case 3:
|
|
387
|
-
case "end":
|
|
388
|
-
return _context10.stop();
|
|
361
|
+
case 1:
|
|
362
|
+
return _context0.a(2, _context0.v.isEnabled);
|
|
389
363
|
}
|
|
390
|
-
},
|
|
391
|
-
})), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator.
|
|
392
|
-
return asyncToGenerator.
|
|
393
|
-
while (1) switch (
|
|
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
|
-
|
|
369
|
+
_context1.n = 1;
|
|
396
370
|
return rscNextConfig.headers();
|
|
397
|
-
case
|
|
398
|
-
return
|
|
399
|
-
case 3:
|
|
400
|
-
case "end":
|
|
401
|
-
return _context11.stop();
|
|
371
|
+
case 1:
|
|
372
|
+
return _context1.a(2, _context1.v);
|
|
402
373
|
}
|
|
403
|
-
},
|
|
404
|
-
})), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator.
|
|
405
|
-
return asyncToGenerator.
|
|
406
|
-
while (1) switch (
|
|
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
|
-
|
|
379
|
+
_context10.n = 1;
|
|
409
380
|
return rscNextConfig.cookies();
|
|
410
|
-
case
|
|
411
|
-
return
|
|
412
|
-
case 3:
|
|
413
|
-
case "end":
|
|
414
|
-
return _context12.stop();
|
|
381
|
+
case 1:
|
|
382
|
+
return _context10.a(2, _context10.v);
|
|
415
383
|
}
|
|
416
|
-
},
|
|
384
|
+
}, _callee10);
|
|
417
385
|
}))),
|
|
418
|
-
fetchValRouteUrl: initFetchValRouteUrl(config, valApiEndpoints, valServerPromise, /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator.
|
|
419
|
-
return asyncToGenerator.
|
|
420
|
-
while (1) switch (
|
|
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
|
-
|
|
390
|
+
_context11.n = 1;
|
|
423
391
|
return rscNextConfig.draftMode();
|
|
424
|
-
case
|
|
425
|
-
return
|
|
426
|
-
case 3:
|
|
427
|
-
case "end":
|
|
428
|
-
return _context13.stop();
|
|
392
|
+
case 1:
|
|
393
|
+
return _context11.a(2, _context11.v.isEnabled);
|
|
429
394
|
}
|
|
430
|
-
},
|
|
431
|
-
})), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator.
|
|
432
|
-
return asyncToGenerator.
|
|
433
|
-
while (1) switch (
|
|
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
|
-
|
|
400
|
+
_context12.n = 1;
|
|
436
401
|
return rscNextConfig.headers();
|
|
437
|
-
case
|
|
438
|
-
return
|
|
439
|
-
case 3:
|
|
440
|
-
case "end":
|
|
441
|
-
return _context14.stop();
|
|
402
|
+
case 1:
|
|
403
|
+
return _context12.a(2, _context12.v);
|
|
442
404
|
}
|
|
443
|
-
},
|
|
444
|
-
})), /*#__PURE__*/asyncToGenerator._asyncToGenerator(/*#__PURE__*/asyncToGenerator.
|
|
445
|
-
return asyncToGenerator.
|
|
446
|
-
while (1) switch (
|
|
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
|
-
|
|
410
|
+
_context13.n = 1;
|
|
449
411
|
return rscNextConfig.cookies();
|
|
450
|
-
case
|
|
451
|
-
return
|
|
452
|
-
case 3:
|
|
453
|
-
case "end":
|
|
454
|
-
return _context15.stop();
|
|
412
|
+
case 1:
|
|
413
|
+
return _context13.a(2, _context13.v);
|
|
455
414
|
}
|
|
456
|
-
},
|
|
415
|
+
}, _callee13);
|
|
457
416
|
})))
|
|
458
417
|
};
|
|
459
418
|
}
|