@aussieljk/forkbook 0.0.1-15 → 0.0.1-17
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/assets/server/template.ejs +5 -1
- package/dist/_browser-chunks/{Color-OSKHEBLS.js → Color-NKLLBRKK.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-IPJFQHVQ.js → WithTooltip-GRPTCOVV.js} +1 -1
- package/dist/_browser-chunks/{chunk-XRILAR4S.js → chunk-56NKJ4MR.js} +11 -11
- package/dist/_browser-chunks/{chunk-74S4GA34.js → chunk-5N7RXR3D.js} +1 -1
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_node-chunks/{attached-runtime-5ABH72AY.js → attached-runtime-BODU5N5Q.js} +32 -29
- package/dist/_node-chunks/{builder-manager-4T5FVGUR.js → builder-manager-SNVBXDAZ.js} +41 -20
- package/dist/_node-chunks/{chunk-LHRQTTE7.js → chunk-2B6V6AVR.js} +8 -8
- package/dist/_node-chunks/{chunk-QZR6HJVD.js → chunk-2O2A5PZP.js} +7 -7
- package/dist/_node-chunks/{chunk-UAU6RMOS.js → chunk-2VWQ57G2.js} +19 -19
- package/dist/_node-chunks/chunk-32N6R2A6.js +11 -0
- package/dist/_node-chunks/{chunk-7LYHZMJO.js → chunk-35OISTYM.js} +6 -6
- package/dist/_node-chunks/{chunk-W6AOA2O5.js → chunk-3GMDBVCD.js} +7 -7
- package/dist/_node-chunks/{chunk-B6JJQARD.js → chunk-3QV4EUKS.js} +9 -9
- package/dist/_node-chunks/{chunk-MLJPAH4O.js → chunk-3Z6X5O4S.js} +6 -6
- package/dist/_node-chunks/{chunk-VXDKI65K.js → chunk-424GG5ZE.js} +26 -26
- package/dist/_node-chunks/{chunk-KFZRX33G.js → chunk-4CZH3XG3.js} +8 -8
- package/dist/_node-chunks/{chunk-A3EPCOVV.js → chunk-4NOVPVLF.js} +7 -7
- package/dist/_node-chunks/{chunk-TVDV6YAE.js → chunk-4XKI5NKZ.js} +8 -8
- package/dist/_node-chunks/{chunk-JAPFAHXG.js → chunk-54RJVFEQ.js} +6 -6
- package/dist/_node-chunks/{chunk-4ISTQSCO.js → chunk-66DGG2O7.js} +17 -7
- package/dist/_node-chunks/{chunk-7IYNKFXW.js → chunk-66TAMNHV.js} +10 -10
- package/dist/_node-chunks/{chunk-T34DVPWM.js → chunk-6N23OB4T.js} +6 -6
- package/dist/_node-chunks/{chunk-VCKRLODV.js → chunk-6OTSKKBF.js} +8 -8
- package/dist/_node-chunks/{chunk-HK47D3O3.js → chunk-7FREACY6.js} +7 -7
- package/dist/_node-chunks/{chunk-R5H4DAON.js → chunk-7KKA3Q43.js} +6 -6
- package/dist/_node-chunks/{chunk-SL53Q3H4.js → chunk-7QYZ55PS.js} +6 -6
- package/dist/_node-chunks/{chunk-MBTS4OBP.js → chunk-A3FYJ5M4.js} +6 -6
- package/dist/_node-chunks/{chunk-KIAQML4H.js → chunk-A5RYL7EU.js} +8 -8
- package/dist/_node-chunks/{chunk-GRJPH3NW.js → chunk-AIEYQ7PU.js} +11 -10
- package/dist/_node-chunks/{chunk-6WHTGFDB.js → chunk-AUQEZWHV.js} +6 -6
- package/dist/_node-chunks/{chunk-SJVTZ4IO.js → chunk-B6SDV62R.js} +23 -23
- package/dist/_node-chunks/{chunk-QAQWINPN.js → chunk-BGNW6SMB.js} +7 -7
- package/dist/_node-chunks/{chunk-AK4RPNTY.js → chunk-BMQAU7WB.js} +6 -6
- package/dist/_node-chunks/{chunk-FSSOM72N.js → chunk-BVDH3UV6.js} +14 -14
- package/dist/_node-chunks/{chunk-4BWBFTBZ.js → chunk-BZ42MRKX.js} +7 -7
- package/dist/_node-chunks/{chunk-FJE2XPLI.js → chunk-C6UTUPHF.js} +6 -6
- package/dist/_node-chunks/{chunk-FFE4YDDE.js → chunk-CENSJBOG.js} +9 -9
- package/dist/_node-chunks/{chunk-U6T34IDM.js → chunk-CFB6WTNU.js} +6 -6
- package/dist/_node-chunks/{chunk-2FWG2MQN.js → chunk-CKBFZLYD.js} +6 -6
- package/dist/_node-chunks/{chunk-OS6P62RS.js → chunk-D4Z4SESM.js} +6 -6
- package/dist/_node-chunks/{chunk-4GGXQOD4.js → chunk-E2L2KQAK.js} +8 -8
- package/dist/_node-chunks/{chunk-EHPAFXPB.js → chunk-EBK2BTNM.js} +8 -8
- package/dist/_node-chunks/{chunk-G6M5USWY.js → chunk-EKFEF7FU.js} +8 -8
- package/dist/_node-chunks/{chunk-VS4AUXP2.js → chunk-F2TYHA27.js} +6 -6
- package/dist/_node-chunks/{chunk-W32FBKF3.js → chunk-F6BIOW6V.js} +10 -10
- package/dist/_node-chunks/{chunk-H4IDYTC4.js → chunk-FDERIYTI.js} +7 -7
- package/dist/_node-chunks/{chunk-6H3FQSQV.js → chunk-FLKOMVEA.js} +9 -9
- package/dist/_node-chunks/chunk-G3RUMVD7.js +49 -0
- package/dist/_node-chunks/{chunk-WTZ24FWN.js → chunk-GHG2TM7A.js} +8 -8
- package/dist/_node-chunks/{chunk-YHYL4HYS.js → chunk-GUOELDLF.js} +6 -6
- package/dist/_node-chunks/{chunk-4XKLH4I3.js → chunk-GW7BXWTM.js} +6 -6
- package/dist/_node-chunks/{chunk-ZSTCVYOA.js → chunk-H6RFOVN4.js} +6 -6
- package/dist/_node-chunks/{chunk-X3BAGYZJ.js → chunk-H6TYPSV2.js} +8 -8
- package/dist/_node-chunks/{chunk-G7NZ27DS.js → chunk-H7U6SEHI.js} +7 -7
- package/dist/_node-chunks/chunk-HAVDCVZW.js +298 -0
- package/dist/_node-chunks/{chunk-4ELXERU6.js → chunk-HEB7LVZV.js} +6 -6
- package/dist/_node-chunks/{chunk-767UK7PX.js → chunk-HRF77FGL.js} +9 -9
- package/dist/_node-chunks/{chunk-33IC7FUB.js → chunk-IXVQUJAU.js} +9 -9
- package/dist/_node-chunks/{chunk-5NWCUFPU.js → chunk-JGHJUGTC.js} +6 -6
- package/dist/_node-chunks/{chunk-7RE5WNOM.js → chunk-JSULSBPW.js} +7 -7
- package/dist/_node-chunks/{chunk-FVHSCRCK.js → chunk-KPDGGNTL.js} +7 -7
- package/dist/_node-chunks/{chunk-M6LN66WA.js → chunk-KSQYJW2B.js} +6 -6
- package/dist/_node-chunks/{chunk-AUUVNECB.js → chunk-KXKTY4VF.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPWEQZYR.js → chunk-KXRGXTG7.js} +7 -7
- package/dist/_node-chunks/{chunk-6DHYHTHM.js → chunk-LTODR44X.js} +8 -8
- package/dist/_node-chunks/{chunk-Y3FJT543.js → chunk-MEKYIRUI.js} +7 -7
- package/dist/_node-chunks/{chunk-H5AAYJZE.js → chunk-MXNR25VV.js} +8 -8
- package/dist/_node-chunks/{chunk-JYQSJLIK.js → chunk-NDIG5KJO.js} +8 -8
- package/dist/_node-chunks/{chunk-LNMVMXBN.js → chunk-NDM35KTJ.js} +7 -7
- package/dist/_node-chunks/{chunk-W7352H3Q.js → chunk-NNJBBU37.js} +6 -6
- package/dist/_node-chunks/{chunk-XV76A4CX.js → chunk-OIEYSJZQ.js} +6 -6
- package/dist/_node-chunks/{chunk-WMUNVUVG.js → chunk-PAGKAN2S.js} +6 -6
- package/dist/_node-chunks/{chunk-5Y53QRNN.js → chunk-PNPIWEJR.js} +6 -6
- package/dist/_node-chunks/{chunk-BVF25DJF.js → chunk-PNPMBU3R.js} +6 -6
- package/dist/_node-chunks/{chunk-VUHK6VXL.js → chunk-QM5TMDR6.js} +12 -12
- package/dist/_node-chunks/{chunk-XWHHBYMV.js → chunk-SS2FGO4S.js} +6 -6
- package/dist/_node-chunks/{chunk-UMWJISED.js → chunk-T4YGYZRD.js} +6 -6
- package/dist/_node-chunks/chunk-T7BUIVKR.js +52 -0
- package/dist/_node-chunks/{chunk-DTFPS5QE.js → chunk-TRQQTMVB.js} +7 -7
- package/dist/_node-chunks/{chunk-ZNT3JZI2.js → chunk-TZUO3OXE.js} +7 -7
- package/dist/_node-chunks/{chunk-DASUWWHV.js → chunk-U37YCQDK.js} +6 -6
- package/dist/_node-chunks/{chunk-XERNMHVC.js → chunk-UMFUS7PF.js} +6 -6
- package/dist/_node-chunks/{chunk-DJPS7LWH.js → chunk-V4JLDWO6.js} +7 -7
- package/dist/_node-chunks/{chunk-NGFVR7UO.js → chunk-V7SAH2IU.js} +6 -6
- package/dist/_node-chunks/{chunk-JC4I7ZVM.js → chunk-VUFKOINV.js} +7 -7
- package/dist/_node-chunks/{chunk-56L6SVSQ.js → chunk-WFD3QAD2.js} +6 -6
- package/dist/_node-chunks/{chunk-JQKD337A.js → chunk-X2ND43GY.js} +6 -6
- package/dist/_node-chunks/chunk-X37GVICO.js +18 -0
- package/dist/_node-chunks/{chunk-VUP4EHUR.js → chunk-XHD5J6RT.js} +8 -8
- package/dist/_node-chunks/{chunk-ONKMPF4O.js → chunk-XTDK7QBA.js} +6 -6
- package/dist/_node-chunks/{chunk-JCQU3LND.js → chunk-Y6EAOBYH.js} +7 -7
- package/dist/_node-chunks/{chunk-QF5RQWCH.js → chunk-YEV5SVMM.js} +6 -6
- package/dist/_node-chunks/{chunk-RENIT4CI.js → chunk-YOGHVKVE.js} +6 -6
- package/dist/_node-chunks/{chunk-46E6YIPW.js → chunk-YQMENGBH.js} +7 -7
- package/dist/_node-chunks/{chunk-UO3EXKJC.js → chunk-YXLQJR3R.js} +6 -6
- package/dist/_node-chunks/{chunk-J2ZTT2OP.js → chunk-Z37X3NOU.js} +15 -11
- package/dist/_node-chunks/{chunk-QF4WUMRT.js → chunk-ZNJQ4JAS.js} +10 -10
- package/dist/_node-chunks/{chunk-M75NG64K.js → chunk-ZWUV3LPT.js} +7 -7
- package/dist/_node-chunks/{chunk-XU6HITGZ.js → chunk-ZYMT2Z74.js} +7 -7
- package/dist/_node-chunks/dist-55GVJVDF.js +27 -0
- package/dist/_node-chunks/dist-YETMXINZ.js +16 -0
- package/dist/_node-chunks/{local-runtime-W3N7O65Q.js → local-runtime-RWMEFVQR.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-NVSAW2N3.js → mdx-plugin-ARMGGEAR.js} +13 -13
- package/dist/_node-chunks/{monorepo-JDWM46J3.js → monorepo-A4YCSFR6.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-56HEREMG.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3XAIWI64.js} +11 -11
- package/dist/_node-chunks/optimized-tests-R4YZ6KJA.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-ZWHYXQK5.js → pattern-copy-play-K4XLDCUI.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-EI4PJBGN.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-ME2XNDXH.js → rehype-external-links-HMX6LC4S.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-2UJLYPC6.js → rehype-slug-7C3BVKEP.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-XWE3S456.js → relaxed-limits-YOIAJJY5.js} +11 -11
- package/dist/_node-chunks/{run-5YG73LXV.js → run-IXH6ZYK4.js} +17 -17
- package/dist/_node-chunks/{run-DNDPGCFE.js → run-KAOS4DDE.js} +15 -15
- package/dist/_node-chunks/{setup-MDNSLQIJ.js → setup-VNUO347Q.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-TXAUMPSS.js → vitest.config.4.template-NE4Y4M3P.js} +7 -7
- package/dist/addon-a11y/manager.js +4 -4
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-comments/manager.js +10 -3
- package/dist/addon-comments/preset.js +8 -8
- package/dist/addon-docs/blocks.js +10 -10
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +23 -12
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +11 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +3 -3
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +12 -12
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +60 -59
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +185 -0
- package/dist/builder-vite/index.d.ts +7 -2
- package/dist/builder-vite/index.js +23 -16
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +25 -3
- package/dist/{chunk-C4-cnJ1R.d.ts → chunk-BsO65uOb.d.ts} +1 -1
- package/dist/{chunk-CV4-Z2pn.d.ts → chunk-CDMZhRke.d.ts} +1 -1
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-BNRZY6Jq.d.ts → chunk-D2CQlXaR.d.ts} +1 -1
- package/dist/chunk-DtFyKAil.d.ts +142 -0
- package/dist/{chunk-s5Ka0eSs.d.ts → chunk-OksNJcvJ.d.ts} +1 -1
- package/dist/{chunk-BRMwIGWt.d.ts → chunk-ge-rSPy0.d.ts} +33 -14
- package/dist/{chunk-QtkUsZCs.d.ts → chunk-r-Vjut9o.d.ts} +2 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +21 -21
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +4 -4
- package/dist/common/index.js +34 -34
- package/dist/components/index.js +26 -26
- package/dist/core-server/index.d.ts +19 -4
- package/dist/core-server/index.js +166 -107
- package/dist/core-server/presets/common-manager.js +8 -8
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +42 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-DjkYleFR.js → globals-runtime-B57gPuuh.js} +149 -85
- package/dist/manager/_manager-chunks/{globals-runtime-BsHjh8rR.js → globals-runtime-Barb--td.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BUEqXras.js → globals-runtime-BdquQI3D.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-DiIxNujJ.js → globals-runtime-Cq3M4fmR.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-DChrMWvh.js → globals-runtime-DdOE9xHG.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CQ0Et7dZ.js → globals-runtime-QogXhBot.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BWASr_zc.js → runtime-B-zsavHW.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-CXOuNYw-.js → runtime-B1aqoFKC.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-TSEq5lJd.js → runtime-B3sVeEUb.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CLIeRJL-.js → runtime-B5U9ifKl.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-B_e-Zdqt.js → runtime-BnJTmihE.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-CWZ9qCi4.js → runtime-CSyYERXx.js} +22 -22
- package/dist/manager/_manager-chunks/{runtime-Dn2myy1z.js → runtime-Ccj5SxBg.js} +6 -6
- package/dist/manager/_manager-chunks/{runtime-BMoEpoix.js → runtime-DPTwiG8p.js} +7 -0
- package/dist/manager/_manager-chunks/{runtime-C_H6vGzi.js → runtime-DaCr0frF.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-CEi1oIg2.js → runtime-ruwLauiW.js} +130 -130
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- package/dist/next/index.d.ts +189 -0
- package/dist/next/index.js +289 -0
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +30 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-YJlypwja.js → runtime-BiYuZt-X.js} +3 -3
- package/dist/preview/_chunks/{runtime-CrKf1OM4.js → runtime-C88AzFBv.js} +2 -2
- package/dist/preview/_chunks/{runtime-COMyPEkR.js → runtime-Cpzxe5eK.js} +73 -9
- package/dist/preview/_chunks/{runtime-CqTqsVg2.js → runtime-MYVHRAoo.js} +2 -2
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.d.ts +2 -2
- package/dist/react-native/metro/withForkbook.js +13 -13
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +8 -8
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +11 -11
- package/dist/types/index.d.ts +1 -1
- package/package.json +11 -1
- package/dist/_node-chunks/chunk-2YVNFDPN.js +0 -18
- package/dist/_node-chunks/chunk-MBTTUFUX.js +0 -11
- package/dist/_node-chunks/dist-2H6YEUMD.js +0 -16
- package/dist/_node-chunks/dist-HL4THRGZ.js +0 -27
- package/dist/_node-chunks/optimized-tests-VZGTWCG4.js +0 -22
- package/dist/_node-chunks/postinstallAddon-5TRUTJXJ.js +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globalThis_,
|
|
14
14
|
noop
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3Z6X5O4S.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
18
18
|
function getSymbols(object) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EKFEF7FU.js";
|
|
15
15
|
|
|
16
16
|
// src/oxc-parser/parse.ts
|
|
17
17
|
import { parse as oxcRawParse } from "rolldown/utils";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
findVarInitialization,
|
|
16
16
|
pathForNode,
|
|
17
17
|
unwrapExpression
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H6TYPSV2.js";
|
|
19
19
|
import {
|
|
20
20
|
invariant
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YEV5SVMM.js";
|
|
22
22
|
|
|
23
23
|
// src/csf-tools/configFileImports.ts
|
|
24
24
|
import { types as t } from "@aussieljk/forkbook/internal/babel";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
jsModuleExtensions
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X2ND43GY.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/exsolve/dist/index.mjs
|
|
17
17
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NDM35KTJ.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError,
|
|
17
17
|
StorybookError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EKFEF7FU.js";
|
|
19
19
|
|
|
20
20
|
// src/preview-errors.ts
|
|
21
21
|
import { dedent } from "ts-dedent";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
nodePathsToArray
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-66TAMNHV.js";
|
|
15
15
|
import {
|
|
16
16
|
Tag
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YOGHVKVE.js";
|
|
18
18
|
|
|
19
19
|
// src/common/utils/envs.ts
|
|
20
20
|
var isWebContainer = () => process.versions.webcontainer != null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EKFEF7FU.js";
|
|
15
15
|
|
|
16
16
|
// src/manager-errors.ts
|
|
17
17
|
var StatusTypeIdMismatchError = class extends StorybookError {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
postInstall
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3QV4EUKS.js";
|
|
15
15
|
import {
|
|
16
16
|
RN_FORKBOOK_DIR,
|
|
17
17
|
applyPreviewImportsMap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-C6UTUPHF.js";
|
|
19
19
|
import {
|
|
20
20
|
any,
|
|
21
21
|
up2 as up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GW7BXWTM.js";
|
|
23
23
|
import {
|
|
24
24
|
invariant
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YEV5SVMM.js";
|
|
26
26
|
import {
|
|
27
27
|
resolvePackageDir
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MEKYIRUI.js";
|
|
29
29
|
|
|
30
30
|
// src/create/initiate.ts
|
|
31
31
|
import { resolve as resolve3 } from "node:path";
|
|
@@ -1135,7 +1135,7 @@ var ADDON_INSTALLATION_INSTRUCTIONS = {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
/** Configure test addons */
|
|
1137
1137
|
async configureAddons(configDir, addons) {
|
|
1138
|
-
let { postinstallAddon } = await import("./postinstallAddon-
|
|
1138
|
+
let { postinstallAddon } = await import("./postinstallAddon-EI4PJBGN.js"), task = prompt6.taskLog({
|
|
1139
1139
|
id: "configure-addons",
|
|
1140
1140
|
title: "Configuring addons..."
|
|
1141
1141
|
}), addonResults = /* @__PURE__ */ new Map();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
normalizeBasePath,
|
|
14
|
+
stripBasePath
|
|
15
|
+
} from "./chunk-G3RUMVD7.js";
|
|
16
|
+
|
|
17
|
+
// src/core-server/utils/base-path.ts
|
|
18
|
+
function resolveBasePath(cliValue, coreValue) {
|
|
19
|
+
return normalizeBasePath(cliValue ?? coreValue);
|
|
20
|
+
}
|
|
21
|
+
function createBasePathMount(basePath) {
|
|
22
|
+
let base = normalizeBasePath(basePath);
|
|
23
|
+
return (req, res) => {
|
|
24
|
+
if (!base)
|
|
25
|
+
return !1;
|
|
26
|
+
let url = req.url ?? "/", stripped = stripBasePath(base, url);
|
|
27
|
+
if (stripped !== void 0)
|
|
28
|
+
return req.url = stripped, req.forkbookBasePath = base, !1;
|
|
29
|
+
let pathname = url.split(/[?#]/)[0];
|
|
30
|
+
return (req.method === "GET" || req.method === "HEAD") && (pathname === "/" || !pathname.split("/").pop()?.includes(".") && !pathname.startsWith("/@") && (req.headers.accept ?? "").includes("text/html")) ? (res.statusCode = 302, res.setHeader("Location", `${base}${pathname === "/" ? url.slice(1) : url}`), res.end(), !0) : !1;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
var firstHeaderValue = (value) => (Array.isArray(value) ? value[0] : value)?.split(",")[0]?.trim() || void 0;
|
|
34
|
+
function getForwardedHost(headers) {
|
|
35
|
+
return firstHeaderValue(headers["x-forwarded-host"]) ?? firstHeaderValue(headers.host);
|
|
36
|
+
}
|
|
37
|
+
function getPublicOrigin(req) {
|
|
38
|
+
let host = getForwardedHost(req.headers) ?? "localhost", forwardedProto = firstHeaderValue(req.headers["x-forwarded-proto"]), encrypted = "encrypted" in req.socket && !!req.socket.encrypted;
|
|
39
|
+
return `${forwardedProto ?? (encrypted ? "https" : "http")}://${host}`;
|
|
40
|
+
}
|
|
41
|
+
var LOOPBACK_ADDRESSES = /* @__PURE__ */ new Set(["127.0.0.1", "::1", "::ffff:127.0.0.1"]);
|
|
42
|
+
function isForwardedForOrigin(req, originHost) {
|
|
43
|
+
let forwarded = firstHeaderValue(req.headers["x-forwarded-host"]);
|
|
44
|
+
return forwarded !== void 0 && forwarded === originHost && LOOPBACK_ADDRESSES.has(req.socket?.remoteAddress ?? "");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
resolveBasePath,
|
|
49
|
+
createBasePathMount,
|
|
50
|
+
getPublicOrigin,
|
|
51
|
+
isForwardedForOrigin
|
|
52
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SS2FGO4S.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/detectLanguage.ts
|
|
17
17
|
import { existsSync } from "node:fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
UniversalStoreFollowerTimeoutError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NDM35KTJ.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/universal-store/index.ts
|
|
17
17
|
import { dedent } from "ts-dedent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
kebabCase
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6N23OB4T.js";
|
|
15
15
|
|
|
16
16
|
// src/shared/open-service/toolset-names.ts
|
|
17
17
|
function parseToolsetMethodId(methodId) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-35OISTYM.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/has-flag/index.js
|
|
18
18
|
var require_has_flag = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yrthiesbig from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yrthiesbig from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yrthiesbig from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yrthiesbig.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yrthiesbig.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yrthiesbig.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|