@webtypen/webframez-react 0.0.31 → 0.0.32
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/http.cjs +9 -2
- package/dist/http.js +9 -2
- package/dist/index.cjs +9 -2
- package/dist/index.js +9 -2
- package/dist/router.cjs +8 -1
- package/dist/router.js +8 -1
- package/dist/types.d.ts +3 -0
- package/dist/webframez-core.cjs +9 -2
- package/dist/webframez-core.js +9 -2
- package/package.json +1 -1
package/dist/http.cjs
CHANGED
|
@@ -437,15 +437,22 @@ function mergeHead(...configs) {
|
|
|
437
437
|
if (!config) {
|
|
438
438
|
continue;
|
|
439
439
|
}
|
|
440
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
440
441
|
if (config.title) {
|
|
441
442
|
merged.title = config.title;
|
|
442
443
|
}
|
|
443
444
|
if (config.description) {
|
|
444
445
|
merged.description = config.description;
|
|
445
446
|
}
|
|
446
|
-
if (
|
|
447
|
+
if (hasOwn("basename")) {
|
|
447
448
|
merged.basename = config.basename;
|
|
448
449
|
}
|
|
450
|
+
if (hasOwn("routeBasePath")) {
|
|
451
|
+
merged.routeBasePath = config.routeBasePath;
|
|
452
|
+
}
|
|
453
|
+
if (hasOwn("transportBasePath")) {
|
|
454
|
+
merged.transportBasePath = config.transportBasePath;
|
|
455
|
+
}
|
|
449
456
|
if (config.favicon) {
|
|
450
457
|
merged.favicon = config.favicon;
|
|
451
458
|
}
|
|
@@ -885,7 +892,7 @@ async function decodeFlightPayloadFromString(flightData, moduleMap) {
|
|
|
885
892
|
|
|
886
893
|
if (typeof reactServerDomClientNode.createFromNodeStream === "function") {
|
|
887
894
|
return await reactServerDomClientNode.createFromNodeStream(
|
|
888
|
-
Readable.from([flightData]),
|
|
895
|
+
Readable.from([Buffer.from(flightData)]),
|
|
889
896
|
serverConsumerManifest
|
|
890
897
|
);
|
|
891
898
|
}
|
package/dist/http.js
CHANGED
|
@@ -412,15 +412,22 @@ function mergeHead(...configs) {
|
|
|
412
412
|
if (!config) {
|
|
413
413
|
continue;
|
|
414
414
|
}
|
|
415
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
415
416
|
if (config.title) {
|
|
416
417
|
merged.title = config.title;
|
|
417
418
|
}
|
|
418
419
|
if (config.description) {
|
|
419
420
|
merged.description = config.description;
|
|
420
421
|
}
|
|
421
|
-
if (
|
|
422
|
+
if (hasOwn("basename")) {
|
|
422
423
|
merged.basename = config.basename;
|
|
423
424
|
}
|
|
425
|
+
if (hasOwn("routeBasePath")) {
|
|
426
|
+
merged.routeBasePath = config.routeBasePath;
|
|
427
|
+
}
|
|
428
|
+
if (hasOwn("transportBasePath")) {
|
|
429
|
+
merged.transportBasePath = config.transportBasePath;
|
|
430
|
+
}
|
|
424
431
|
if (config.favicon) {
|
|
425
432
|
merged.favicon = config.favicon;
|
|
426
433
|
}
|
|
@@ -860,7 +867,7 @@ async function decodeFlightPayloadFromString(flightData, moduleMap) {
|
|
|
860
867
|
|
|
861
868
|
if (typeof reactServerDomClientNode.createFromNodeStream === "function") {
|
|
862
869
|
return await reactServerDomClientNode.createFromNodeStream(
|
|
863
|
-
Readable.from([flightData]),
|
|
870
|
+
Readable.from([Buffer.from(flightData)]),
|
|
864
871
|
serverConsumerManifest
|
|
865
872
|
);
|
|
866
873
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -470,15 +470,22 @@ function mergeHead(...configs) {
|
|
|
470
470
|
if (!config) {
|
|
471
471
|
continue;
|
|
472
472
|
}
|
|
473
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
473
474
|
if (config.title) {
|
|
474
475
|
merged.title = config.title;
|
|
475
476
|
}
|
|
476
477
|
if (config.description) {
|
|
477
478
|
merged.description = config.description;
|
|
478
479
|
}
|
|
479
|
-
if (
|
|
480
|
+
if (hasOwn("basename")) {
|
|
480
481
|
merged.basename = config.basename;
|
|
481
482
|
}
|
|
483
|
+
if (hasOwn("routeBasePath")) {
|
|
484
|
+
merged.routeBasePath = config.routeBasePath;
|
|
485
|
+
}
|
|
486
|
+
if (hasOwn("transportBasePath")) {
|
|
487
|
+
merged.transportBasePath = config.transportBasePath;
|
|
488
|
+
}
|
|
482
489
|
if (config.favicon) {
|
|
483
490
|
merged.favicon = config.favicon;
|
|
484
491
|
}
|
|
@@ -922,7 +929,7 @@ async function decodeFlightPayloadFromString(flightData, moduleMap) {
|
|
|
922
929
|
|
|
923
930
|
if (typeof reactServerDomClientNode.createFromNodeStream === "function") {
|
|
924
931
|
return await reactServerDomClientNode.createFromNodeStream(
|
|
925
|
-
Readable.from([flightData]),
|
|
932
|
+
Readable.from([Buffer.from(flightData)]),
|
|
926
933
|
serverConsumerManifest
|
|
927
934
|
);
|
|
928
935
|
}
|
package/dist/index.js
CHANGED
|
@@ -434,15 +434,22 @@ function mergeHead(...configs) {
|
|
|
434
434
|
if (!config) {
|
|
435
435
|
continue;
|
|
436
436
|
}
|
|
437
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
437
438
|
if (config.title) {
|
|
438
439
|
merged.title = config.title;
|
|
439
440
|
}
|
|
440
441
|
if (config.description) {
|
|
441
442
|
merged.description = config.description;
|
|
442
443
|
}
|
|
443
|
-
if (
|
|
444
|
+
if (hasOwn("basename")) {
|
|
444
445
|
merged.basename = config.basename;
|
|
445
446
|
}
|
|
447
|
+
if (hasOwn("routeBasePath")) {
|
|
448
|
+
merged.routeBasePath = config.routeBasePath;
|
|
449
|
+
}
|
|
450
|
+
if (hasOwn("transportBasePath")) {
|
|
451
|
+
merged.transportBasePath = config.transportBasePath;
|
|
452
|
+
}
|
|
446
453
|
if (config.favicon) {
|
|
447
454
|
merged.favicon = config.favicon;
|
|
448
455
|
}
|
|
@@ -886,7 +893,7 @@ async function decodeFlightPayloadFromString(flightData, moduleMap) {
|
|
|
886
893
|
|
|
887
894
|
if (typeof reactServerDomClientNode.createFromNodeStream === "function") {
|
|
888
895
|
return await reactServerDomClientNode.createFromNodeStream(
|
|
889
|
-
Readable.from([flightData]),
|
|
896
|
+
Readable.from([Buffer.from(flightData)]),
|
|
890
897
|
serverConsumerManifest
|
|
891
898
|
);
|
|
892
899
|
}
|
package/dist/router.cjs
CHANGED
|
@@ -326,15 +326,22 @@ function mergeHead(...configs) {
|
|
|
326
326
|
if (!config) {
|
|
327
327
|
continue;
|
|
328
328
|
}
|
|
329
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
329
330
|
if (config.title) {
|
|
330
331
|
merged.title = config.title;
|
|
331
332
|
}
|
|
332
333
|
if (config.description) {
|
|
333
334
|
merged.description = config.description;
|
|
334
335
|
}
|
|
335
|
-
if (
|
|
336
|
+
if (hasOwn("basename")) {
|
|
336
337
|
merged.basename = config.basename;
|
|
337
338
|
}
|
|
339
|
+
if (hasOwn("routeBasePath")) {
|
|
340
|
+
merged.routeBasePath = config.routeBasePath;
|
|
341
|
+
}
|
|
342
|
+
if (hasOwn("transportBasePath")) {
|
|
343
|
+
merged.transportBasePath = config.transportBasePath;
|
|
344
|
+
}
|
|
338
345
|
if (config.favicon) {
|
|
339
346
|
merged.favicon = config.favicon;
|
|
340
347
|
}
|
package/dist/router.js
CHANGED
|
@@ -296,15 +296,22 @@ function mergeHead(...configs) {
|
|
|
296
296
|
if (!config) {
|
|
297
297
|
continue;
|
|
298
298
|
}
|
|
299
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
299
300
|
if (config.title) {
|
|
300
301
|
merged.title = config.title;
|
|
301
302
|
}
|
|
302
303
|
if (config.description) {
|
|
303
304
|
merged.description = config.description;
|
|
304
305
|
}
|
|
305
|
-
if (
|
|
306
|
+
if (hasOwn("basename")) {
|
|
306
307
|
merged.basename = config.basename;
|
|
307
308
|
}
|
|
309
|
+
if (hasOwn("routeBasePath")) {
|
|
310
|
+
merged.routeBasePath = config.routeBasePath;
|
|
311
|
+
}
|
|
312
|
+
if (hasOwn("transportBasePath")) {
|
|
313
|
+
merged.transportBasePath = config.transportBasePath;
|
|
314
|
+
}
|
|
308
315
|
if (config.favicon) {
|
|
309
316
|
merged.favicon = config.favicon;
|
|
310
317
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export type HeadConfig = {
|
|
|
61
61
|
title?: string;
|
|
62
62
|
description?: string;
|
|
63
63
|
basename?: string;
|
|
64
|
+
routeBasePath?: string;
|
|
65
|
+
transportBasePath?: string;
|
|
64
66
|
favicon?: string;
|
|
65
67
|
meta?: HeadMetaTag[];
|
|
66
68
|
links?: HeadLinkTag[];
|
|
@@ -112,6 +114,7 @@ export type CreateHtmlShellOptions = {
|
|
|
112
114
|
initialFlightData?: string;
|
|
113
115
|
clientRenderMode?: "hydrate" | "mount";
|
|
114
116
|
basename?: string;
|
|
117
|
+
routeBasePath?: string;
|
|
115
118
|
liveReloadPath?: string;
|
|
116
119
|
liveReloadServerId?: string;
|
|
117
120
|
};
|
package/dist/webframez-core.cjs
CHANGED
|
@@ -440,15 +440,22 @@ function mergeHead(...configs) {
|
|
|
440
440
|
if (!config) {
|
|
441
441
|
continue;
|
|
442
442
|
}
|
|
443
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
443
444
|
if (config.title) {
|
|
444
445
|
merged.title = config.title;
|
|
445
446
|
}
|
|
446
447
|
if (config.description) {
|
|
447
448
|
merged.description = config.description;
|
|
448
449
|
}
|
|
449
|
-
if (
|
|
450
|
+
if (hasOwn("basename")) {
|
|
450
451
|
merged.basename = config.basename;
|
|
451
452
|
}
|
|
453
|
+
if (hasOwn("routeBasePath")) {
|
|
454
|
+
merged.routeBasePath = config.routeBasePath;
|
|
455
|
+
}
|
|
456
|
+
if (hasOwn("transportBasePath")) {
|
|
457
|
+
merged.transportBasePath = config.transportBasePath;
|
|
458
|
+
}
|
|
452
459
|
if (config.favicon) {
|
|
453
460
|
merged.favicon = config.favicon;
|
|
454
461
|
}
|
|
@@ -888,7 +895,7 @@ async function decodeFlightPayloadFromString(flightData, moduleMap) {
|
|
|
888
895
|
|
|
889
896
|
if (typeof reactServerDomClientNode.createFromNodeStream === "function") {
|
|
890
897
|
return await reactServerDomClientNode.createFromNodeStream(
|
|
891
|
-
Readable.from([flightData]),
|
|
898
|
+
Readable.from([Buffer.from(flightData)]),
|
|
892
899
|
serverConsumerManifest
|
|
893
900
|
);
|
|
894
901
|
}
|
package/dist/webframez-core.js
CHANGED
|
@@ -412,15 +412,22 @@ function mergeHead(...configs) {
|
|
|
412
412
|
if (!config) {
|
|
413
413
|
continue;
|
|
414
414
|
}
|
|
415
|
+
const hasOwn = (key) => Object.prototype.hasOwnProperty.call(config, key);
|
|
415
416
|
if (config.title) {
|
|
416
417
|
merged.title = config.title;
|
|
417
418
|
}
|
|
418
419
|
if (config.description) {
|
|
419
420
|
merged.description = config.description;
|
|
420
421
|
}
|
|
421
|
-
if (
|
|
422
|
+
if (hasOwn("basename")) {
|
|
422
423
|
merged.basename = config.basename;
|
|
423
424
|
}
|
|
425
|
+
if (hasOwn("routeBasePath")) {
|
|
426
|
+
merged.routeBasePath = config.routeBasePath;
|
|
427
|
+
}
|
|
428
|
+
if (hasOwn("transportBasePath")) {
|
|
429
|
+
merged.transportBasePath = config.transportBasePath;
|
|
430
|
+
}
|
|
424
431
|
if (config.favicon) {
|
|
425
432
|
merged.favicon = config.favicon;
|
|
426
433
|
}
|
|
@@ -860,7 +867,7 @@ async function decodeFlightPayloadFromString(flightData, moduleMap) {
|
|
|
860
867
|
|
|
861
868
|
if (typeof reactServerDomClientNode.createFromNodeStream === "function") {
|
|
862
869
|
return await reactServerDomClientNode.createFromNodeStream(
|
|
863
|
-
Readable.from([flightData]),
|
|
870
|
+
Readable.from([Buffer.from(flightData)]),
|
|
864
871
|
serverConsumerManifest
|
|
865
872
|
);
|
|
866
873
|
}
|