decocms 4.161.2 → 4.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DkjWcZD-.js → AlertCircle-LCxBCJ8n.js} +1 -1
- package/dist/client/assets/{AreaChart-BhkonnRg.js → AreaChart-CVlhdmdg.js} +1 -1
- package/dist/client/assets/{ArrowUp-DAA8boPY.js → ArrowUp-LFRKHLuQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D8TPuRuJ.js → ArrowUpRight-CXMFqfGp.js} +1 -1
- package/dist/client/assets/{Check-De5xpJ0K.js → Check-BCFAcmIa.js} +1 -1
- package/dist/client/assets/{CheckCircle-DeJIdYYq.js → CheckCircle-DpOD9rH0.js} +1 -1
- package/dist/client/assets/{ChevronDown-grOM3xSX.js → ChevronDown-BOvaCVzg.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cyogjxfm.js → ChevronRight-liTksB2U.js} +1 -1
- package/dist/client/assets/{ChevronUp-DIUedEx1.js → ChevronUp-BIqoKMUJ.js} +1 -1
- package/dist/client/assets/{Copy01-DEkTleE-.js → Copy01-ZIMiAxdP.js} +1 -1
- package/dist/client/assets/{CpuChip01-Dsk680MX.js → CpuChip01-ZsmfFXVO.js} +1 -1
- package/dist/client/assets/{DotsVertical-BaMvQPx5.js → DotsVertical-CtO9eku7.js} +1 -1
- package/dist/client/assets/{Eye-DdzBJpW0.js → Eye-BQWYf35S.js} +1 -1
- package/dist/client/assets/{FilterLines-1IFdHyBL.js → FilterLines-CaGojimS.js} +1 -1
- package/dist/client/assets/{HardDrive-CZF0RiCb.js → HardDrive-BRyCfhBH.js} +1 -1
- package/dist/client/assets/{Key01-qFWWm7I0.js → Key01-i8xg5eM3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-D3dfvOJc.js → LayoutLeft-Co2_iLon.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BUH7ViZX.js → LinkExternal01-S8dAjzzi.js} +1 -1
- package/dist/client/assets/{LogOut01-GO407ARs.js → LogOut01-D75UBZCc.js} +1 -1
- package/dist/client/assets/{Monitor01-BBb-96JI.js → Monitor01-BAx1QWFz.js} +1 -1
- package/dist/client/assets/{Palette-G-qrN-IT.js → Palette-Bg3YC03V.js} +1 -1
- package/dist/client/assets/{Play-CkvF8PeT.js → Play-VIp82r5R.js} +1 -1
- package/dist/client/assets/{Plus-DolMQAo4.js → Plus-C9hAZmdY.js} +1 -1
- package/dist/client/assets/{SearchLg-CFQzg9fN.js → SearchLg-CqGEHAUM.js} +1 -1
- package/dist/client/assets/{SearchMd-DCX7P32_.js → SearchMd-oPsBet0y.js} +1 -1
- package/dist/client/assets/{Settings02-QFTejQVV.js → Settings02-DNMfHyCE.js} +1 -1
- package/dist/client/assets/{Shield01-BlitQe4N.js → Shield01-DD8XMdYI.js} +1 -1
- package/dist/client/assets/{Star01-D0qlrfqR.js → Star01-y2n-9wTn.js} +1 -1
- package/dist/client/assets/{Stars01-2TnupN6q.js → Stars01-CJ0QEEdc.js} +1 -1
- package/dist/client/assets/{Stars02-DbK2oBak.js → Stars02-B3TWh8au.js} +1 -1
- package/dist/client/assets/{Sun-DVajpqnC.js → Sun-BQEYQLhf.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DY4K5cqR.js → SwitchHorizontal01-Dsxsamxe.js} +1 -1
- package/dist/client/assets/{Tool01-CgtDQOgO.js → Tool01-Oew-Vovb.js} +1 -1
- package/dist/client/assets/{Tool02-MSwzSxke.js → Tool02-CJeM1QZT.js} +1 -1
- package/dist/client/assets/{Trash01-DSxLTY0P.js → Trash01-CLRqp8e5.js} +1 -1
- package/dist/client/assets/{TrendUp01-djHA1GEE.js → TrendUp01-Bm1SbHN0.js} +1 -1
- package/dist/client/assets/{Upload01-W82kShpH.js → Upload01-ZVOuhs4w.js} +1 -1
- package/dist/client/assets/{User01-CXTn_TP5.js → User01-BYLEai7_.js} +1 -1
- package/dist/client/assets/{Users01-DQVb_7oO.js → Users01-CS4W313X.js} +1 -1
- package/dist/client/assets/{Users03-DK2c0NaU.js → Users03-CbHaoSh0.js} +1 -1
- package/dist/client/assets/{X-DsGAzzV8.js → X-x99fWfG-.js} +1 -1
- package/dist/client/assets/{XCircle-DuADiFVm.js → XCircle-CeqmuHIK.js} +1 -1
- package/dist/client/assets/{XClose-BOYWq1vy.js → XClose-CCug5seG.js} +1 -1
- package/dist/client/assets/{Zap-Djw_FpdI.js → Zap-DHqCvvjt.js} +1 -1
- package/dist/client/assets/{ZapSquare-C3s49zNL.js → ZapSquare-BKWVL4uR.js} +1 -1
- package/dist/client/assets/{access-gate-BRcWAcEH.js → access-gate-C9PFWoZS.js} +1 -1
- package/dist/client/assets/{add-section-modal-DkaZh9cy.js → add-section-modal-DEjIe-XG.js} +1 -1
- package/dist/client/assets/{agent-icon-D0etPDkN.js → agent-icon-DR5LB4zY.js} +1 -1
- package/dist/client/assets/{agents-list-1nArnMzn.js → agents-list-BvXD__fr.js} +1 -1
- package/dist/client/assets/{ai-providers-XeksWCKW.js → ai-providers-DuMestUx.js} +1 -1
- package/dist/client/assets/{alert-I-_PUhRM.js → alert-DWAFMZWl.js} +1 -1
- package/dist/client/assets/{alert-dialog-B3JnEiZT.js → alert-dialog-DR9_FciR.js} +1 -1
- package/dist/client/assets/{app-editor-BbkYtqwi.js → app-editor-BC28cPFO.js} +1 -1
- package/dist/client/assets/{auth-BkcPrlSH.js → auth-BiMrtm96.js} +1 -1
- package/dist/client/assets/{auth-catchall-JZDu0xii.js → auth-catchall-BNPPREMt.js} +1 -1
- package/dist/client/assets/{auth-entry-D376ANc2.js → auth-entry-CVJjeL2L.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DULW70yu.js → auth-split-layout-CbPO57v5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DZxhoF_0.js → authenticate-and-persist-oauth-B8SUVbil.js} +1 -1
- package/dist/client/assets/{automation-list-row-y5_hhf0p.js → automation-list-row-C5X09Iy0.js} +1 -1
- package/dist/client/assets/{automation-runs-DNqF8MQa.js → automation-runs-i1Rm2H_V.js} +1 -1
- package/dist/client/assets/{automations-BTGiuB5f.js → automations-C48IGjrC.js} +1 -1
- package/dist/client/assets/{avatar-ShBwmidu.js → avatar-CssB4IS0.js} +1 -1
- package/dist/client/assets/{badge-CLGDkcax.js → badge-B-S2iO6e.js} +1 -1
- package/dist/client/assets/{block-document-DKkHndgg.js → block-document-Dotg4_gG.js} +1 -1
- package/dist/client/assets/{brand-context-DidwD5g4.js → brand-context-C331P1EH.js} +1 -1
- package/dist/client/assets/{buckets-BXy6rRmD.js → buckets-zt_s5mti.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Pp9TOqgP.js → bulk-category-panel-DMe3EujP.js} +1 -1
- package/dist/client/assets/{calendar-BcaXLcUe.js → calendar-BO4sgiAT.js} +1 -1
- package/dist/client/assets/{capability-load-error-CqdQPRYW.js → capability-load-error-B2CpoAHd.js} +1 -1
- package/dist/client/assets/{card-C98b87L-.js → card-Dtd81GX2.js} +1 -1
- package/dist/client/assets/{category-editor-BnVhTkaR.js → category-editor-BxdNiDrW.js} +1 -1
- package/dist/client/assets/{chat-context-DAYV5YFw.js → chat-context-_ugV5jB0.js} +1 -1
- package/dist/client/assets/{checkbox-hx3qwtU4.js → checkbox-DyL6jqNP.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CSA4lo7W.js → cli-auth-success-CBllfpZy.js} +1 -1
- package/dist/client/assets/{collection-detail-Dnt_8ShC.js → collection-detail-CJ-IT8lZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-D7ZFqgmc.js → collection-display-button-rIB9x9ex.js} +1 -1
- package/dist/client/assets/{collection-search-BujcF3uz.js → collection-search-DDaBoxpd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dxzi1B76.js → collection-table-wrapper-DvDVvjdJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-1Doa_k8q.js → collection-tabs-6ZZEGxA4.js} +1 -1
- package/dist/client/assets/{command-DTif1pCh.js → command-B0sPw5D_.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CkLAXxz7.js → commerce-onboarding-CA2gNg1f.js} +1 -1
- package/dist/client/assets/{companions-core-DyTSbEDy.js → companions-core-bB24Ott2.js} +1 -1
- package/dist/client/assets/{connect-BQJsmY0Z.js → connect-dTZGddot.js} +1 -1
- package/dist/client/assets/{connection-DT5hjP5L.js → connection-B2NXk64E.js} +1 -1
- package/dist/client/assets/{connection-card-BEnBoaJQ.js → connection-card-D4yqc7qp.js} +1 -1
- package/dist/client/assets/{connection-detail-3HClPo6D.js → connection-detail-BNv09xz3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D1M4SXKF.js → connection-form-helpers-Dp2JRmtQ.js} +1 -1
- package/dist/client/assets/{connections-ok4_lFFO.js → connections-Dkp0iGo0.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Z3wBsgik.js → decopilot-sse-pool-tfgrlddF.js} +1 -1
- package/dist/client/assets/{dialog-B1XOtEFa.js → dialog-DDV9hxrK.js} +1 -1
- package/dist/client/assets/{domain-settings-BX-8JSGW.js → domain-settings-Cj5IWEJw.js} +1 -1
- package/dist/client/assets/{drawer-Bindqbrh.js → drawer-CLLhxT0A.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B2utwqdh.js → dropdown-menu-DFyP7pd-.js} +1 -1
- package/dist/client/assets/{empty-state-ClLU6296.js → empty-state-C8MJdBfO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DSg0AjMi.js → extract-connection-data-GzPEHPIn.js} +1 -1
- package/dist/client/assets/{file-explorer-5gFVDcag.js → file-explorer-DcVPQshc.js} +1 -1
- package/dist/client/assets/{form-ujVSU6EU.js → form-dL4WOA5T.js} +1 -1
- package/dist/client/assets/{general-BgWx-5sJ.js → general-6LKGbmPX.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CuyTuY6S.js → github-repo-picker-BYme-j8T.js} +1 -1
- package/dist/client/assets/{hooks-BSzBu2tD.js → hooks-B9cPFqGD.js} +1 -1
- package/dist/client/assets/{index-Cx7SoZn_.js → index-60s5nmmz.js} +1 -1
- package/dist/client/assets/{index-DLYm4Sa-.js → index-BBd4FRXS.js} +1 -1
- package/dist/client/assets/{index-BwQT5Hhi.js → index-By7P3hhU.js} +1 -1
- package/dist/client/assets/{index-Bhxc2Isb.js → index-D2YLDCkn.js} +1 -1
- package/dist/client/assets/{index-B6q32zYz.js → index-DeVgWfhn.js} +1 -1
- package/dist/client/assets/{index-CBD4gVZR.js → index-Y9ucfh4p.js} +1 -1
- package/dist/client/assets/{index-DvtCTmmx.js → index-ZADPN4om.js} +3 -3
- package/dist/client/assets/{index-DyrZQfe8.js → index-jG87093U.js} +1 -1
- package/dist/client/assets/{index-WEdfBcak.js → index-kfiIPtrP.js} +3 -3
- package/dist/client/assets/{index-PxBIb6oF.js → index-pBoO89BO.js} +1 -1
- package/dist/client/assets/{index-redirect-CzO62sP0.js → index-redirect-CfBCt2ky.js} +1 -1
- package/dist/client/assets/{index-DJEeCuky.js → index-u1ajTG-j.js} +5 -5
- package/dist/client/assets/{input-psV6HQEl.js → input-BjlpMnRZ.js} +1 -1
- package/dist/client/assets/{integration-icon-DjHXNUPP.js → integration-icon-CI602PfH.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CB5VBjiU.js → invite-member-dialog-phqD0XUF.js} +1 -1
- package/dist/client/assets/{label-6xyucx-s.js → label-CSNgMmTA.js} +1 -1
- package/dist/client/assets/{layout-CBOg45xC.js → layout-BBpcfaXL.js} +1 -1
- package/dist/client/assets/{login-Cxn9KXio.js → login-DE_463fT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CKixkOtS.js → mcp-oauth-CxvR2V5h.js} +1 -1
- package/dist/client/assets/{members-CL8x8Krr.js → members-CeatJR1m.js} +1 -1
- package/dist/client/assets/{monaco-editor-DJpDPKHP.js → monaco-editor-zuz4s4Wv.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DPROMALt.js → monitoring-stats-row-krDWXB2t.js} +1 -1
- package/dist/client/assets/{multi-select-Bh_v-l_m.js → multi-select-CMyA49eR.js} +1 -1
- package/dist/client/assets/{oauth-callback-DutuJ6V_.js → oauth-callback-C9jDdjjs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C4S55pOq.js → oauth-callback-ai-provider-CY3QZi7E.js} +1 -1
- package/dist/client/assets/{onboarding-DuerzaiT.js → onboarding-C3hOUjMo.js} +1 -1
- package/dist/client/assets/{org-layout-of8A1jAC.js → org-layout-XwuOFG3d.js} +1 -1
- package/dist/client/assets/{organization-choice-B3rPtstm.js → organization-choice-BM-XKanD.js} +1 -1
- package/dist/client/assets/{orgs-3twuRrYh.js → orgs-DmL2XQRI.js} +1 -1
- package/dist/client/assets/{page-seo-form-BY3nYdel.js → page-seo-form-0xV6qNbu.js} +1 -1
- package/dist/client/assets/{popover-BGrrSZ8M.js → popover-EE72qx8A.js} +1 -1
- package/dist/client/assets/{post-editor-C4XyjEMt.js → post-editor-BuHJ7HnN.js} +1 -1
- package/dist/client/assets/{primitives-CbLkj1JF.js → primitives-ChQICk_y.js} +1 -1
- package/dist/client/assets/{profile-QV2jNue9.js → profile-B0SoUvj9.js} +1 -1
- package/dist/client/assets/project-app-view-YTx3iCq1.js +1 -0
- package/dist/client/assets/record-editor-M7bvrOuK.js +1 -0
- package/dist/client/assets/{redirect-editor-s6PMTrlX.js → redirect-editor-_6dVoePs.js} +1 -1
- package/dist/client/assets/registry-fNrz9Fbw.js +2 -0
- package/dist/client/assets/{registry-layout-DO-5mJZI.js → registry-layout-OS_nbWHC.js} +1 -1
- package/dist/client/assets/{reports-CwFf2f6b.js → reports-B3VBQs5Y.js} +1 -1
- package/dist/client/assets/{require-capability-BeOopecx.js → require-capability-CieeBdjs.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BFWyMRf5.js → required-auth-layout-BDIyJAhL.js} +1 -1
- package/dist/client/assets/{reset-password-C_-lQlSH.js → reset-password-CpG0cI8F.js} +1 -1
- package/dist/client/assets/{roles-D_oBaje3.js → roles-DlOhY5JD.js} +1 -1
- package/dist/client/assets/{search-input-Bfg6VxQW.js → search-input-cF6ciAVZ.js} +1 -1
- package/dist/client/assets/{secrets-k2GFZysm.js → secrets-Dh26lP0l.js} +1 -1
- package/dist/client/assets/{sections-editor-BujDptuZ.js → sections-editor-HbcASmu4.js} +1 -1
- package/dist/client/assets/{select-CWMyLghp.js → select-ceaThfRJ.js} +1 -1
- package/dist/client/assets/{select-model-CXvd3jI3.js → select-model-CDLnPEtQ.js} +1 -1
- package/dist/client/assets/{self-tool-result-BpCEaqPw.js → self-tool-result-CaPtQwDV.js} +1 -1
- package/dist/client/assets/{seo-editor-Cxh8JRxE.js → seo-editor-CoW5u7nN.js} +1 -1
- package/dist/client/assets/{settings-layout-D-wc3B9V.js → settings-layout-CM35yCas.js} +1 -1
- package/dist/client/assets/{settings-section-Z9R6HthO.js → settings-section-BJKYi71q.js} +1 -1
- package/dist/client/assets/{shell-controls-DJv-74jc.js → shell-controls-BLKKFd-i.js} +1 -1
- package/dist/client/assets/{shell-layout-C7_zhx2J.js → shell-layout-Cem8gTbL.js} +1 -1
- package/dist/client/assets/{sidebar-CGksZnes.js → sidebar-4JG4Ky1v.js} +1 -1
- package/dist/client/assets/{skeleton-BpfjGmFh.js → skeleton-QaXxQA1G.js} +1 -1
- package/dist/client/assets/{spinner-D0HY4fdO.js → spinner-CyUVcOie.js} +1 -1
- package/dist/client/assets/{sso-Bz5k2CGO.js → sso-CCHd62CO.js} +1 -1
- package/dist/client/assets/{store-DT_Iylxw.js → store-lf3dlAB1.js} +1 -1
- package/dist/client/assets/store-registry-BTA3Me55.js +2 -0
- package/dist/client/assets/{studio-tools-ChooDZCt.js → studio-tools-CUWFqlTh.js} +1 -1
- package/dist/client/assets/{switch-BmoPsk_L.js → switch-1Vfz3uSg.js} +1 -1
- package/dist/client/assets/{tab-id-DpWn0fbM.js → tab-id-CI2T4n3l.js} +1 -1
- package/dist/client/assets/{table-BluVU23Z.js → table-BQAbKOYa.js} +1 -1
- package/dist/client/assets/{tabs-C9Dri0XB.js → tabs-qagPrFeg.js} +1 -1
- package/dist/client/assets/{textarea-CMhJIDqb.js → textarea-C3WLqu3y.js} +1 -1
- package/dist/client/assets/{toggle-group-BK4yx2ic.js → toggle-group-NXghphbz.js} +1 -1
- package/dist/client/assets/{toolbar-CJN41Q0U.js → toolbar-ZE2CENTf.js} +1 -1
- package/dist/client/assets/{tooltip-DCC06XNr.js → tooltip-CiyZj9MW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CTGRuhSY.js → use-ai-providers-B6AoVltc.js} +1 -1
- package/dist/client/assets/{use-automations-CTEnO1Zu.js → use-automations-CiQS3Pmq.js} +1 -1
- package/dist/client/assets/{use-autosave-CgHGIUlv.js → use-autosave-DE9X8qzD.js} +1 -1
- package/dist/client/assets/{use-capability-BTlnzwER.js → use-capability-DX60Hp0S.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Dg1-zfZ4.js → use-clock-tick-Q8CgV2VU.js} +1 -1
- package/dist/client/assets/{use-connection-BTIHIL2U.js → use-connection-c87Xz8U-.js} +1 -1
- package/dist/client/assets/{use-copy-Bkx7pWID.js → use-copy-BPhBM3Oi.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ClJmipur.js → use-create-virtual-mcp-BnZL3DPb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Dp_dA5sI.js → use-debounced-autosave-BmT6bwNL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Dx_Znjq0.js → use-debounced-value-DViZw7k7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CnnQh7bH.js → use-deco-credits-DJJXk8t9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B84Jbaf1.js → use-decopilot-events-DuMl-BWe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Dd7d9SGg.js → use-delete-connection--jtVGLkv.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CElXlSvL.js → use-deployment-admin-Cr_7c4Yl.js} +1 -1
- package/dist/client/assets/{use-file-configs-DUlhqIgH.js → use-file-configs-CwjnQywn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CRM4xUSx.js → use-infinite-scroll-8IyahDR0.js} +1 -1
- package/dist/client/assets/{use-join-requests-B0JwpKM9.js → use-join-requests-tHCwhSs3.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DH8oUnNS.js → use-mcp-auth-status-sjpR15R6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C78T1evw.js → use-mcp-client-BmnPrlCp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-qcP_UOWU.js → use-mcp-tools-B9U_ZOEs.js} +1 -1
- package/dist/client/assets/{use-members-5U5mLxdD.js → use-members-BglXgqfG.js} +1 -1
- package/dist/client/assets/{use-mobile-BufL0gpx.js → use-mobile-ZF_jSfPp.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-bcvHJsmR.js → use-navigate-to-agent-DIeI8ULY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B93vTKrZ.js → use-org-auth-client-C-GSCd--.js} +1 -1
- package/dist/client/assets/{use-org-sso-BpALHDeh.js → use-org-sso-BawqtY1O.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CHjz2_ga.js → use-organization-roles-BfAcHhLm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-rcLpLxq6.js → use-organization-settings-DcixnwK-.js} +1 -1
- package/dist/client/assets/{use-registry-connections-XjUGFr5z.js → use-registry-connections-VIMCCdEN.js} +1 -1
- package/dist/client/assets/{use-secrets-DVGBRr0e.js → use-secrets-DN6xkhJI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CNPY1kJ-.js → use-status-sounds-CVssdpKX.js} +1 -1
- package/dist/client/assets/{use-tags-d-ihZKch.js → use-tags-OVuXWbIz.js} +1 -1
- package/dist/client/assets/{use-view-mode-CxLEvfyI.js → use-view-mode-BdkdIEp5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-tTUO8PD5.js → use-virtual-mcp-BIQdKSoy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-QTu-xaep.js +1 -0
- package/dist/client/assets/{useQueries-CX-pbcRo.js → useQueries-D2CKhSr2.js} +1 -1
- package/dist/client/assets/{useRouterState-DM9ViZSm.js → useRouterState-B0tRZSRp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_f32It26.js +1 -0
- package/dist/client/assets/{users-hps1B13C.js → users-Xgmv3XAu.js} +1 -1
- package/dist/client/assets/{variant-calendar--g4p8stV.js → variant-calendar-CHbHmJQD.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Cn3ICdtv.js → view-mode-toggle-DTYJdfuz.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +766 -766
- package/dist/server/server.js +576 -576
- package/package.json +2 -4
- package/dist/client/assets/project-app-view-CZZgc1s8.js +0 -1
- package/dist/client/assets/record-editor-Bk_Re_fD.js +0 -1
- package/dist/client/assets/registry-BTKEcIS_.js +0 -2
- package/dist/client/assets/store-registry-DwAm5lvb.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C1ye6sqf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CiYM_Dv6.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +0 -373
- package/dist/server/node_modules/@resvg/resvg-js/README.md +0 -314
- package/dist/server/node_modules/@resvg/resvg-js/index.js +0 -23
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/package.json +0 -152
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +0 -20
- package/dist/server/node_modules/@shuding/opentype.js/README.md +0 -9
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +0 -272
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +0 -84
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +0 -64
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +0 -96
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +0 -11655
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +0 -2
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +0 -11639
- package/dist/server/node_modules/@shuding/opentype.js/package.json +0 -73
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +0 -158
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +0 -243
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +0 -16
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +0 -1032
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +0 -74
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +0 -83
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +0 -483
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +0 -40
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +0 -433
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +0 -274
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +0 -150
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +0 -3062
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +0 -5
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +0 -357
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +0 -375
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +0 -628
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +0 -212
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +0 -77
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +0 -447
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +0 -215
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +0 -1156
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +0 -145
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +0 -71
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +0 -62
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +0 -349
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +0 -146
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +0 -251
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +0 -35
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +0 -27
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +0 -51
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +0 -69
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +0 -33
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +0 -32
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +0 -30
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +0 -680
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +0 -65
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +0 -522
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +0 -976
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +0 -17
- package/dist/server/node_modules/base64-js/.travis.yml +0 -5
- package/dist/server/node_modules/base64-js/LICENSE.MIT +0 -21
- package/dist/server/node_modules/base64-js/README.md +0 -31
- package/dist/server/node_modules/base64-js/bench/bench.js +0 -19
- package/dist/server/node_modules/base64-js/lib/b64.js +0 -124
- package/dist/server/node_modules/base64-js/package.json +0 -34
- package/dist/server/node_modules/base64-js/test/convert.js +0 -51
- package/dist/server/node_modules/base64-js/test/url-safe.js +0 -18
- package/dist/server/node_modules/camelize/.eslintrc +0 -24
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +0 -12
- package/dist/server/node_modules/camelize/CHANGELOG.md +0 -64
- package/dist/server/node_modules/camelize/LICENSE +0 -18
- package/dist/server/node_modules/camelize/README.md +0 -81
- package/dist/server/node_modules/camelize/example/camel.js +0 -12
- package/dist/server/node_modules/camelize/index.js +0 -61
- package/dist/server/node_modules/camelize/package.json +0 -84
- package/dist/server/node_modules/camelize/test/camel.js +0 -48
- package/dist/server/node_modules/color-name/LICENSE +0 -8
- package/dist/server/node_modules/color-name/README.md +0 -11
- package/dist/server/node_modules/color-name/index.js +0 -152
- package/dist/server/node_modules/color-name/package.json +0 -28
- package/dist/server/node_modules/css-background-parser/LICENSE +0 -22
- package/dist/server/node_modules/css-background-parser/README.md +0 -149
- package/dist/server/node_modules/css-background-parser/index.js +0 -162
- package/dist/server/node_modules/css-background-parser/package.json +0 -19
- package/dist/server/node_modules/css-box-shadow/README.md +0 -27
- package/dist/server/node_modules/css-box-shadow/index.js +0 -64
- package/dist/server/node_modules/css-box-shadow/package.json +0 -14
- package/dist/server/node_modules/css-box-shadow/test.js +0 -204
- package/dist/server/node_modules/css-color-keywords/LICENSE +0 -15
- package/dist/server/node_modules/css-color-keywords/README.md +0 -47
- package/dist/server/node_modules/css-color-keywords/colors.json +0 -148
- package/dist/server/node_modules/css-color-keywords/index.js +0 -3
- package/dist/server/node_modules/css-color-keywords/package.json +0 -27
- package/dist/server/node_modules/css-gradient-parser/LICENSE +0 -21
- package/dist/server/node_modules/css-gradient-parser/README.md +0 -75
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +0 -2
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +0 -2
- package/dist/server/node_modules/css-gradient-parser/package.json +0 -54
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +0 -21
- package/dist/server/node_modules/css-to-react-native/README.md +0 -115
- package/dist/server/node_modules/css-to-react-native/index.js +0 -886
- package/dist/server/node_modules/css-to-react-native/package.json +0 -65
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +0 -85
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +0 -136
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +0 -83
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +0 -31
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +0 -122
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +0 -22
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +0 -117
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +0 -43
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +0 -15
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +0 -8
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +0 -204
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +0 -13
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +0 -103
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +0 -30
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +0 -55
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +0 -132
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/index.js +0 -90
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +0 -75
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +0 -12
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +0 -11
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +0 -65
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +0 -63
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +0 -20
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +0 -14
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +0 -77
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +0 -24
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +0 -18
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +0 -10
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +0 -99
- package/dist/server/node_modules/hex-rgb/index.js +0 -47
- package/dist/server/node_modules/hex-rgb/license +0 -9
- package/dist/server/node_modules/hex-rgb/package.json +0 -39
- package/dist/server/node_modules/hex-rgb/readme.md +0 -86
- package/dist/server/node_modules/linebreak/LICENSE +0 -21
- package/dist/server/node_modules/linebreak/dist/main.cjs +0 -1369
- package/dist/server/node_modules/linebreak/dist/module.mjs +0 -1368
- package/dist/server/node_modules/linebreak/package.json +0 -57
- package/dist/server/node_modules/linebreak/readme.md +0 -62
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +0 -54
- package/dist/server/node_modules/parse-css-color/LICENSE +0 -21
- package/dist/server/node_modules/parse-css-color/README.md +0 -110
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +0 -171
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +0 -167
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +0 -7
- package/dist/server/node_modules/parse-css-color/package.json +0 -55
- package/dist/server/node_modules/postcss-value-parser/LICENSE +0 -22
- package/dist/server/node_modules/postcss-value-parser/README.md +0 -263
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +0 -28
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +0 -321
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +0 -48
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +0 -120
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +0 -22
- package/dist/server/node_modules/postcss-value-parser/package.json +0 -58
- package/dist/server/node_modules/satori/LICENSE +0 -373
- package/dist/server/node_modules/satori/README.md +0 -516
- package/dist/server/node_modules/satori/dist/index.cjs +0 -8
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/index.js +0 -8
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +0 -8
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/standalone.js +0 -8
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/package.json +0 -149
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +0 -21
- package/dist/server/node_modules/tiny-inflate/index.js +0 -375
- package/dist/server/node_modules/tiny-inflate/package.json +0 -28
- package/dist/server/node_modules/tiny-inflate/readme.md +0 -31
- package/dist/server/node_modules/tiny-inflate/test/index.js +0 -75
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +0 -199
- package/dist/server/node_modules/unicode-trie/LICENSE +0 -8
- package/dist/server/node_modules/unicode-trie/README.md +0 -77
- package/dist/server/node_modules/unicode-trie/builder.js +0 -966
- package/dist/server/node_modules/unicode-trie/index.js +0 -136
- package/dist/server/node_modules/unicode-trie/package.json +0 -27
- package/dist/server/node_modules/unicode-trie/swap.js +0 -25
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +0 -1
- package/dist/server/node_modules/unicode-trie/test/test.js +0 -243
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function nodeBufferToArrayBuffer(buffer) {
|
|
2
|
-
const ab = new ArrayBuffer(buffer.length);
|
|
3
|
-
const view = new Uint8Array(ab);
|
|
4
|
-
for (let i = 0; i < buffer.length; ++i) {
|
|
5
|
-
view[i] = buffer[i];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
return ab;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function checkArgument(expression, message) {
|
|
12
|
-
if (!expression) {
|
|
13
|
-
throw message;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { nodeBufferToArrayBuffer, checkArgument };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
base64-js
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
`base64-js` does basic base64 encoding/decoding in pure JS.
|
|
5
|
-
|
|
6
|
-
[](http://travis-ci.org/beatgammit/base64-js)
|
|
7
|
-
|
|
8
|
-
[](https://ci.testling.com/beatgammit/base64-js)
|
|
9
|
-
|
|
10
|
-
Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.
|
|
11
|
-
|
|
12
|
-
Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
|
|
13
|
-
|
|
14
|
-
## install
|
|
15
|
-
|
|
16
|
-
With [npm](https://npmjs.org) do:
|
|
17
|
-
|
|
18
|
-
`npm install base64-js`
|
|
19
|
-
|
|
20
|
-
## methods
|
|
21
|
-
|
|
22
|
-
`var base64 = require('base64-js')`
|
|
23
|
-
|
|
24
|
-
`base64` has two exposed functions, `toByteArray` and `fromByteArray`, which both take a single argument.
|
|
25
|
-
|
|
26
|
-
* `toByteArray` - Takes a base64 string and returns a byte array
|
|
27
|
-
* `fromByteArray` - Takes a byte array and returns a base64 string
|
|
28
|
-
|
|
29
|
-
## license
|
|
30
|
-
|
|
31
|
-
MIT
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var random = require('crypto').pseudoRandomBytes
|
|
2
|
-
|
|
3
|
-
var b64 = require('../')
|
|
4
|
-
var fs = require('fs')
|
|
5
|
-
var path = require('path')
|
|
6
|
-
var data = random(1e6).toString('base64')
|
|
7
|
-
//fs.readFileSync(path.join(__dirname, 'example.b64'), 'ascii').split('\n').join('')
|
|
8
|
-
var start = Date.now()
|
|
9
|
-
var raw = b64.toByteArray(data)
|
|
10
|
-
var middle = Date.now()
|
|
11
|
-
var data = b64.fromByteArray(raw)
|
|
12
|
-
var end = Date.now()
|
|
13
|
-
|
|
14
|
-
console.log('decode ms, decode ops/ms, encode ms, encode ops/ms')
|
|
15
|
-
console.log(
|
|
16
|
-
middle - start, data.length / (middle - start),
|
|
17
|
-
end - middle, data.length / (end - middle))
|
|
18
|
-
//console.log(data)
|
|
19
|
-
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
2
|
-
|
|
3
|
-
;(function (exports) {
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
var Arr = (typeof Uint8Array !== 'undefined')
|
|
7
|
-
? Uint8Array
|
|
8
|
-
: Array
|
|
9
|
-
|
|
10
|
-
var PLUS = '+'.charCodeAt(0)
|
|
11
|
-
var SLASH = '/'.charCodeAt(0)
|
|
12
|
-
var NUMBER = '0'.charCodeAt(0)
|
|
13
|
-
var LOWER = 'a'.charCodeAt(0)
|
|
14
|
-
var UPPER = 'A'.charCodeAt(0)
|
|
15
|
-
var PLUS_URL_SAFE = '-'.charCodeAt(0)
|
|
16
|
-
var SLASH_URL_SAFE = '_'.charCodeAt(0)
|
|
17
|
-
|
|
18
|
-
function decode (elt) {
|
|
19
|
-
var code = elt.charCodeAt(0)
|
|
20
|
-
if (code === PLUS ||
|
|
21
|
-
code === PLUS_URL_SAFE)
|
|
22
|
-
return 62 // '+'
|
|
23
|
-
if (code === SLASH ||
|
|
24
|
-
code === SLASH_URL_SAFE)
|
|
25
|
-
return 63 // '/'
|
|
26
|
-
if (code < NUMBER)
|
|
27
|
-
return -1 //no match
|
|
28
|
-
if (code < NUMBER + 10)
|
|
29
|
-
return code - NUMBER + 26 + 26
|
|
30
|
-
if (code < UPPER + 26)
|
|
31
|
-
return code - UPPER
|
|
32
|
-
if (code < LOWER + 26)
|
|
33
|
-
return code - LOWER + 26
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function b64ToByteArray (b64) {
|
|
37
|
-
var i, j, l, tmp, placeHolders, arr
|
|
38
|
-
|
|
39
|
-
if (b64.length % 4 > 0) {
|
|
40
|
-
throw new Error('Invalid string. Length must be a multiple of 4')
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// the number of equal signs (place holders)
|
|
44
|
-
// if there are two placeholders, than the two characters before it
|
|
45
|
-
// represent one byte
|
|
46
|
-
// if there is only one, then the three characters before it represent 2 bytes
|
|
47
|
-
// this is just a cheap hack to not do indexOf twice
|
|
48
|
-
var len = b64.length
|
|
49
|
-
placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
|
|
50
|
-
|
|
51
|
-
// base64 is 4/3 + up to two characters of the original data
|
|
52
|
-
arr = new Arr(b64.length * 3 / 4 - placeHolders)
|
|
53
|
-
|
|
54
|
-
// if there are placeholders, only get up to the last complete 4 chars
|
|
55
|
-
l = placeHolders > 0 ? b64.length - 4 : b64.length
|
|
56
|
-
|
|
57
|
-
var L = 0
|
|
58
|
-
|
|
59
|
-
function push (v) {
|
|
60
|
-
arr[L++] = v
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
for (i = 0, j = 0; i < l; i += 4, j += 3) {
|
|
64
|
-
tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
|
|
65
|
-
push((tmp & 0xFF0000) >> 16)
|
|
66
|
-
push((tmp & 0xFF00) >> 8)
|
|
67
|
-
push(tmp & 0xFF)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
if (placeHolders === 2) {
|
|
71
|
-
tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
|
|
72
|
-
push(tmp & 0xFF)
|
|
73
|
-
} else if (placeHolders === 1) {
|
|
74
|
-
tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
|
|
75
|
-
push((tmp >> 8) & 0xFF)
|
|
76
|
-
push(tmp & 0xFF)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return arr
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function uint8ToBase64 (uint8) {
|
|
83
|
-
var i,
|
|
84
|
-
extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
|
|
85
|
-
output = "",
|
|
86
|
-
temp, length
|
|
87
|
-
|
|
88
|
-
function encode (num) {
|
|
89
|
-
return lookup.charAt(num)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function tripletToBase64 (num) {
|
|
93
|
-
return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// go through the array every three bytes, we'll deal with trailing stuff later
|
|
97
|
-
for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
|
|
98
|
-
temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
|
|
99
|
-
output += tripletToBase64(temp)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// pad the end with zeros, but make sure to not forget the extra bytes
|
|
103
|
-
switch (extraBytes) {
|
|
104
|
-
case 1:
|
|
105
|
-
temp = uint8[uint8.length - 1]
|
|
106
|
-
output += encode(temp >> 2)
|
|
107
|
-
output += encode((temp << 4) & 0x3F)
|
|
108
|
-
output += '=='
|
|
109
|
-
break
|
|
110
|
-
case 2:
|
|
111
|
-
temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
|
|
112
|
-
output += encode(temp >> 10)
|
|
113
|
-
output += encode((temp >> 4) & 0x3F)
|
|
114
|
-
output += encode((temp << 2) & 0x3F)
|
|
115
|
-
output += '='
|
|
116
|
-
break
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return output
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
exports.toByteArray = b64ToByteArray
|
|
123
|
-
exports.fromByteArray = uint8ToBase64
|
|
124
|
-
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "T. Jameson Little <t.jameson.little@gmail.com>",
|
|
3
|
-
"name": "base64-js",
|
|
4
|
-
"description": "Base64 encoding/decoding in pure JS",
|
|
5
|
-
"version": "0.0.8",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git://github.com/beatgammit/base64-js.git"
|
|
9
|
-
},
|
|
10
|
-
"main": "lib/b64.js",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"test": "tape test/*.js"
|
|
13
|
-
},
|
|
14
|
-
"testling": {
|
|
15
|
-
"files": "test/*.js",
|
|
16
|
-
"browsers": [
|
|
17
|
-
"ie/6..latest",
|
|
18
|
-
"chrome/4..latest",
|
|
19
|
-
"firefox/3..latest",
|
|
20
|
-
"safari/5.1..latest",
|
|
21
|
-
"opera/11.0..latest",
|
|
22
|
-
"iphone/6",
|
|
23
|
-
"ipad/6"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">= 0.4"
|
|
28
|
-
},
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"dependencies": {},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"tape": "~2.3.2"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var test = require('tape'),
|
|
2
|
-
b64 = require('../lib/b64'),
|
|
3
|
-
checks = [
|
|
4
|
-
'a',
|
|
5
|
-
'aa',
|
|
6
|
-
'aaa',
|
|
7
|
-
'hi',
|
|
8
|
-
'hi!',
|
|
9
|
-
'hi!!',
|
|
10
|
-
'sup',
|
|
11
|
-
'sup?',
|
|
12
|
-
'sup?!'
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
test('convert to base64 and back', function (t) {
|
|
16
|
-
t.plan(checks.length);
|
|
17
|
-
|
|
18
|
-
for (var i = 0; i < checks.length; i++) {
|
|
19
|
-
var check = checks[i],
|
|
20
|
-
b64Str,
|
|
21
|
-
arr,
|
|
22
|
-
str;
|
|
23
|
-
|
|
24
|
-
b64Str = b64.fromByteArray(map(check, function (char) { return char.charCodeAt(0); }));
|
|
25
|
-
|
|
26
|
-
arr = b64.toByteArray(b64Str);
|
|
27
|
-
str = map(arr, function (byte) { return String.fromCharCode(byte); }).join('');
|
|
28
|
-
|
|
29
|
-
t.equal(check, str, 'Checked ' + check);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
function map (arr, callback) {
|
|
35
|
-
var res = [],
|
|
36
|
-
kValue,
|
|
37
|
-
mappedValue;
|
|
38
|
-
|
|
39
|
-
for (var k = 0, len = arr.length; k < len; k++) {
|
|
40
|
-
if ((typeof arr === 'string' && !!arr.charAt(k))) {
|
|
41
|
-
kValue = arr.charAt(k);
|
|
42
|
-
mappedValue = callback(kValue, k, arr);
|
|
43
|
-
res[k] = mappedValue;
|
|
44
|
-
} else if (typeof arr !== 'string' && k in arr) {
|
|
45
|
-
kValue = arr[k];
|
|
46
|
-
mappedValue = callback(kValue, k, arr);
|
|
47
|
-
res[k] = mappedValue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return res;
|
|
51
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var test = require('tape'),
|
|
2
|
-
b64 = require('../lib/b64');
|
|
3
|
-
|
|
4
|
-
test('decode url-safe style base64 strings', function (t) {
|
|
5
|
-
var expected = [0xff, 0xff, 0xbe, 0xff, 0xef, 0xbf, 0xfb, 0xef, 0xff];
|
|
6
|
-
|
|
7
|
-
var actual = b64.toByteArray('//++/++/++//');
|
|
8
|
-
for (var i = 0; i < actual.length; i++) {
|
|
9
|
-
t.equal(actual[i], expected[i])
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
actual = b64.toByteArray('__--_--_--__');
|
|
13
|
-
for (var i = 0; i < actual.length; i++) {
|
|
14
|
-
t.equal(actual[i], expected[i])
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
t.end();
|
|
18
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
|
|
4
|
-
"extends": "@ljharb",
|
|
5
|
-
|
|
6
|
-
"rules": {
|
|
7
|
-
"camelcase": 0,
|
|
8
|
-
"func-style": 1,
|
|
9
|
-
"max-statements-per-line": 0,
|
|
10
|
-
"no-param-reassign": 1,
|
|
11
|
-
"no-restricted-syntax": 1,
|
|
12
|
-
"no-use-before-define": 1,
|
|
13
|
-
"sort-keys": 0,
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
"overrides": [
|
|
17
|
-
{
|
|
18
|
-
"files": "example/**",
|
|
19
|
-
"rules": {
|
|
20
|
-
"no-console": 0,
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: [ljharb]
|
|
4
|
-
patreon: # Replace with a single Patreon username
|
|
5
|
-
open_collective: # Replace with a single Open Collective username
|
|
6
|
-
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: npm/es-value-fixtures
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: # Replace with a single Liberapay username
|
|
10
|
-
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
-
otechie: # Replace with a single Otechie username
|
|
12
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [v1.0.1](https://github.com/ljharb/camelize/compare/v1.0.0...v1.0.1) - 2022-10-11
|
|
9
|
-
|
|
10
|
-
### Commits
|
|
11
|
-
|
|
12
|
-
- [eslint] fix indentation [`1c978b3`](https://github.com/ljharb/camelize/commit/1c978b349113cef7564e869470ee46a4a0b2ed12)
|
|
13
|
-
- [readme] rename, add badges [`640a9c9`](https://github.com/ljharb/camelize/commit/640a9c9509c934fa0af0871cf3a2c57b44e2e17d)
|
|
14
|
-
- [actions] add reusable workflows [`0c27439`](https://github.com/ljharb/camelize/commit/0c2743965ceadbf10928b112b2f505bf8bd1d70e)
|
|
15
|
-
- [eslint] add eslint [`c2f99b1`](https://github.com/ljharb/camelize/commit/c2f99b1ca92adf2d68077f9c9814cbe5c35283e3)
|
|
16
|
-
- [meta] add `auto-changelog` [`18083fe`](https://github.com/ljharb/camelize/commit/18083fed5ac1f60d34371c25c25939829fc359b1)
|
|
17
|
-
- [Dev Deps] update `tape` [`f11a870`](https://github.com/ljharb/camelize/commit/f11a870a40077552d28cfaaf85b97c638d90d696)
|
|
18
|
-
- [meta] create FUNDING.yml; add `funding` in package.json [`83d0195`](https://github.com/ljharb/camelize/commit/83d0195aef76624fbbf0e75b55878da2897a890e)
|
|
19
|
-
- [meta] use `npmignore` to autogenerate an npmignore file [`34862da`](https://github.com/ljharb/camelize/commit/34862dac5a9566f5d30ddcfc73d735875a8fe13a)
|
|
20
|
-
- Only apps should have lockfiles [`270fb10`](https://github.com/ljharb/camelize/commit/270fb103d8061b687f705c49f512ff01353e3ca2)
|
|
21
|
-
- [meta] update URLs [`fa51c88`](https://github.com/ljharb/camelize/commit/fa51c88806e3347b564dccd8df9dfcd440f523b3)
|
|
22
|
-
- [meta] add `safe-publish-latest` [`f141183`](https://github.com/ljharb/camelize/commit/f141183b01229d0a3db085464ecd052dc0dbf331)
|
|
23
|
-
- [Tests] add `aud` in `posttest` [`276e8a2`](https://github.com/ljharb/camelize/commit/276e8a2285d1cc37656cf630ec7961fc6efffe16)
|
|
24
|
-
|
|
25
|
-
## [v1.0.0](https://github.com/ljharb/camelize/compare/v0.2.0...v1.0.0) - 2014-07-07
|
|
26
|
-
|
|
27
|
-
## [v0.2.0](https://github.com/ljharb/camelize/compare/v0.1.2...v0.2.0) - 2014-07-07
|
|
28
|
-
|
|
29
|
-
### Commits
|
|
30
|
-
|
|
31
|
-
- add support for dates and regex [`5c3ae6c`](https://github.com/ljharb/camelize/commit/5c3ae6cb8d5c14fdc47967d194359eced981fb00)
|
|
32
|
-
|
|
33
|
-
## [v0.1.2](https://github.com/ljharb/camelize/compare/v0.1.1...v0.1.2) - 2013-12-18
|
|
34
|
-
|
|
35
|
-
### Commits
|
|
36
|
-
|
|
37
|
-
- shims for ie<9 [`e38b6aa`](https://github.com/ljharb/camelize/commit/e38b6aa03bdd586cd190544515e25d6f9d965a09)
|
|
38
|
-
|
|
39
|
-
## [v0.1.1](https://github.com/ljharb/camelize/compare/v0.1.0...v0.1.1) - 2013-12-18
|
|
40
|
-
|
|
41
|
-
### Commits
|
|
42
|
-
|
|
43
|
-
- failing test for camelizing nested strings [`e4830da`](https://github.com/ljharb/camelize/commit/e4830da24b3f786b1080d726221a48fc708c98ae)
|
|
44
|
-
- do not camelcase nested string values [`5adb7c6`](https://github.com/ljharb/camelize/commit/5adb7c6e2d5d41e21f02a59df0bc7eff6ad8890a)
|
|
45
|
-
|
|
46
|
-
## [v0.1.0](https://github.com/ljharb/camelize/compare/v0.0.0...v0.1.0) - 2013-06-30
|
|
47
|
-
|
|
48
|
-
### Commits
|
|
49
|
-
|
|
50
|
-
- camelCase the value if it's a string. [`2322d77`](https://github.com/ljharb/camelize/commit/2322d771557115a95133a5422e07a3f472b65018)
|
|
51
|
-
- test for strings [`2bb412c`](https://github.com/ljharb/camelize/commit/2bb412c43485f8e810ce5353628ea00a6fb250de)
|
|
52
|
-
- return object [`caa3f44`](https://github.com/ljharb/camelize/commit/caa3f44e053895ae1471b8ba3ab247dda1b88ddb)
|
|
53
|
-
|
|
54
|
-
## v0.0.0 - 2013-03-22
|
|
55
|
-
|
|
56
|
-
### Commits
|
|
57
|
-
|
|
58
|
-
- docs [`055791a`](https://github.com/ljharb/camelize/commit/055791a45b4fefb87ff598b8f6dcda8f34e45be6)
|
|
59
|
-
- package.json etc [`859ff9b`](https://github.com/ljharb/camelize/commit/859ff9b475df18a09b9785068ec1730f84081291)
|
|
60
|
-
- a passing test [`8987c4b`](https://github.com/ljharb/camelize/commit/8987c4bd9d2ca798551cf01443ddcfe6a3ebf5f9)
|
|
61
|
-
- working example [`46e18af`](https://github.com/ljharb/camelize/commit/46e18afcfded7d3a5d525b4765eb488b998db791)
|
|
62
|
-
- add testling [`9b3ae79`](https://github.com/ljharb/camelize/commit/9b3ae7979689614dd1b88b4dea7b970d27ff6ce0)
|
|
63
|
-
- badges [`f140dfd`](https://github.com/ljharb/camelize/commit/f140dfd33e89493c69a001643bae911a297303e6)
|
|
64
|
-
- using travis [`ef4251b`](https://github.com/ljharb/camelize/commit/ef4251bd3b4f86f3207a84bd3527cbfe0f4750d5)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
This software is released under the MIT license:
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
-
the Software without restriction, including without limitation the rights to
|
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
7
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
8
|
-
subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
15
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
16
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
18
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# camelize <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
-
|
|
3
|
-
[![github actions][actions-image]][actions-url]
|
|
4
|
-
[![coverage][codecov-image]][codecov-url]
|
|
5
|
-
[![License][license-image]][license-url]
|
|
6
|
-
[![Downloads][downloads-image]][downloads-url]
|
|
7
|
-
|
|
8
|
-
[![npm badge][npm-badge-png]][package-url]
|
|
9
|
-
|
|
10
|
-
recursively transform key strings to camel-case
|
|
11
|
-
|
|
12
|
-
# example
|
|
13
|
-
|
|
14
|
-
``` js
|
|
15
|
-
var camelize = require('camelize');
|
|
16
|
-
var obj = {
|
|
17
|
-
fee_fie_foe: 'fum',
|
|
18
|
-
beep_boop: [
|
|
19
|
-
{ 'abc.xyz': 'mno' },
|
|
20
|
-
{ 'foo-bar': 'baz' }
|
|
21
|
-
]
|
|
22
|
-
};
|
|
23
|
-
var res = camelize(obj);
|
|
24
|
-
console.log(JSON.stringify(res, null, 2));
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
output:
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
{
|
|
31
|
-
"feeFieFoe": "fum",
|
|
32
|
-
"beepBoop": [
|
|
33
|
-
{
|
|
34
|
-
"abcXyz": "mno"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"fooBar": "baz"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
# methods
|
|
44
|
-
|
|
45
|
-
``` js
|
|
46
|
-
var camelize = require('camelize')
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## camelize(obj)
|
|
50
|
-
|
|
51
|
-
Convert the key strings in `obj` to camel-case recursively.
|
|
52
|
-
|
|
53
|
-
# install
|
|
54
|
-
|
|
55
|
-
With [npm](https://npmjs.org) do:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
npm install camelize
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
To use in the browser, use [browserify](http://browserify.org).
|
|
62
|
-
|
|
63
|
-
# license
|
|
64
|
-
|
|
65
|
-
MIT
|
|
66
|
-
|
|
67
|
-
[package-url]: https://npmjs.org/package/camelize
|
|
68
|
-
[npm-version-svg]: https://versionbadg.es/ljharb/camelize.svg
|
|
69
|
-
[deps-svg]: https://david-dm.org/ljharb/camelize.svg
|
|
70
|
-
[deps-url]: https://david-dm.org/ljharb/camelize
|
|
71
|
-
[dev-deps-svg]: https://david-dm.org/ljharb/camelize/dev-status.svg
|
|
72
|
-
[dev-deps-url]: https://david-dm.org/ljharb/camelize#info=devDependencies
|
|
73
|
-
[npm-badge-png]: https://nodei.co/npm/camelize.png?downloads=true&stars=true
|
|
74
|
-
[license-image]: https://img.shields.io/npm/l/camelize.svg
|
|
75
|
-
[license-url]: LICENSE
|
|
76
|
-
[downloads-image]: https://img.shields.io/npm/dm/camelize.svg
|
|
77
|
-
[downloads-url]: https://npm-stat.com/charts.html?package=camelize
|
|
78
|
-
[codecov-image]: https://codecov.io/gh/ljharb/camelize/branch/main/graphs/badge.svg
|
|
79
|
-
[codecov-url]: https://app.codecov.io/gh/ljharb/camelize/
|
|
80
|
-
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/camelize
|
|
81
|
-
[actions-url]: https://github.com/ljharb/camelize/actions
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = function (obj) {
|
|
4
|
-
if (typeof obj === 'string') { return camelCase(obj); }
|
|
5
|
-
return walk(obj);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
function walk(obj) {
|
|
9
|
-
if (!obj || typeof obj !== 'object') { return obj; }
|
|
10
|
-
if (isDate(obj) || isRegex(obj)) { return obj; }
|
|
11
|
-
if (isArray(obj)) { return map(obj, walk); }
|
|
12
|
-
return reduce(objectKeys(obj), function (acc, key) {
|
|
13
|
-
var camel = camelCase(key);
|
|
14
|
-
acc[camel] = walk(obj[key]);
|
|
15
|
-
return acc;
|
|
16
|
-
}, {});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function camelCase(str) {
|
|
20
|
-
return str.replace(/[_.-](\w|$)/g, function (_, x) {
|
|
21
|
-
return x.toUpperCase();
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var isArray = Array.isArray || function (obj) {
|
|
26
|
-
return Object.prototype.toString.call(obj) === '[object Array]';
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var isDate = function (obj) {
|
|
30
|
-
return Object.prototype.toString.call(obj) === '[object Date]';
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
var isRegex = function (obj) {
|
|
34
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var has = Object.prototype.hasOwnProperty;
|
|
38
|
-
var objectKeys = Object.keys || function (obj) {
|
|
39
|
-
var keys = [];
|
|
40
|
-
for (var key in obj) {
|
|
41
|
-
if (has.call(obj, key)) { keys.push(key); }
|
|
42
|
-
}
|
|
43
|
-
return keys;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
function map(xs, f) {
|
|
47
|
-
if (xs.map) { return xs.map(f); }
|
|
48
|
-
var res = [];
|
|
49
|
-
for (var i = 0; i < xs.length; i++) {
|
|
50
|
-
res.push(f(xs[i], i));
|
|
51
|
-
}
|
|
52
|
-
return res;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function reduce(xs, f, acc) {
|
|
56
|
-
if (xs.reduce) { return xs.reduce(f, acc); }
|
|
57
|
-
for (var i = 0; i < xs.length; i++) {
|
|
58
|
-
acc = f(acc, xs[i], i);
|
|
59
|
-
}
|
|
60
|
-
return acc;
|
|
61
|
-
}
|