decocms 4.113.3 → 4.114.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-C3yBEe62.js → AlertCircle-u3-jN7cm.js} +1 -1
- package/dist/client/assets/{AreaChart-infhzD-o.js → AreaChart-BW8WzRm-.js} +1 -1
- package/dist/client/assets/{ArrowRight-csX1J00v.js → ArrowRight-mNj20Zjh.js} +1 -1
- package/dist/client/assets/{ArrowUp-BMUqiZDH.js → ArrowUp-L9cgM-6a.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B0lTHBei.js → ArrowUpRight-H1UBXt5Z.js} +1 -1
- package/dist/client/assets/{Check-BOCHVTek.js → Check-CaYU5aLO.js} +1 -1
- package/dist/client/assets/{CheckCircle-C06fMtNJ.js → CheckCircle-CMKcMKAK.js} +1 -1
- package/dist/client/assets/{ChevronDown-yHcuw3Yi.js → ChevronDown-CX9YkMBs.js} +1 -1
- package/dist/client/assets/{ChevronRight-BvtCGcbv.js → ChevronRight-DbHUX8I-.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClBbaiAV.js → ChevronUp-DIB-4lf0.js} +1 -1
- package/dist/client/assets/{Copy01-DjMityLv.js → Copy01-CjNrDuBL.js} +1 -1
- package/dist/client/assets/{DotsVertical-C4ZbABhl.js → DotsVertical-Bp1NHhTP.js} +1 -1
- package/dist/client/assets/{Eye-Drm0H5R_.js → Eye-FOTe0Dsm.js} +1 -1
- package/dist/client/assets/{FilterLines-DqKeoryA.js → FilterLines-BZTwbbeF.js} +1 -1
- package/dist/client/assets/{Globe01-BQOw_Ub7.js → Globe01-DOxk62wN.js} +1 -1
- package/dist/client/assets/{Globe04-CGcQW0g-.js → Globe04-9hsl-3e6.js} +1 -1
- package/dist/client/assets/{HardDrive-CWWkxzA_.js → HardDrive-ynMUj-ia.js} +1 -1
- package/dist/client/assets/{Image01-DlFSq1lp.js → Image01-av9S7TeF.js} +1 -1
- package/dist/client/assets/{Key01-DrW6AdUh.js → Key01-CwuF_1BL.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DcUppE8c.js → LayoutLeft-D_cBv5Sy.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BboRX9pE.js → LinkExternal01-B1nrIFqo.js} +1 -1
- package/dist/client/assets/{LogOut01-BB-7O4XA.js → LogOut01-BZi_DqYW.js} +1 -1
- package/dist/client/assets/{Monitor01-CcN96Otm.js → Monitor01-ymd1mMPU.js} +1 -1
- package/dist/client/assets/{Package-BzQD_Ty_.js → Package-CM9ahKwn.js} +1 -1
- package/dist/client/assets/{Palette-Blkp2e-R.js → Palette-Ct1p9svP.js} +1 -1
- package/dist/client/assets/{Play-D8x6tbEi.js → Play-DVEIH1ry.js} +1 -1
- package/dist/client/assets/{Plus-CzNYCMBF.js → Plus-B2hbLmYg.js} +1 -1
- package/dist/client/assets/{SearchLg-ChhVm0Qf.js → SearchLg-CtS3seao.js} +1 -1
- package/dist/client/assets/{SearchMd-CTSIioHN.js → SearchMd-D3MjkhDD.js} +1 -1
- package/dist/client/assets/{Settings02-Cw_4rjJK.js → Settings02-BetwzLEO.js} +1 -1
- package/dist/client/assets/{Shield01-DSa5H3Oo.js → Shield01-BAlJAwp4.js} +1 -1
- package/dist/client/assets/{Star01-D85zX6Wg.js → Star01-Cp-5Xhim.js} +1 -1
- package/dist/client/assets/{Stars01-DTnCAiJN.js → Stars01-CvaXntTQ.js} +1 -1
- package/dist/client/assets/{Stars02-BOwVjfZL.js → Stars02-DyviDCrE.js} +1 -1
- package/dist/client/assets/{Sun-BgpgdJOh.js → Sun-Y3l5BCJc.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DdzfKexZ.js → SwitchHorizontal01-q1XlSXKm.js} +1 -1
- package/dist/client/assets/{Tool01-BHPElJg3.js → Tool01-DiRWeEXb.js} +1 -1
- package/dist/client/assets/{Tool02-B1WxUTRS.js → Tool02-aqrHyC0g.js} +1 -1
- package/dist/client/assets/{Trash01-CQs4hG5x.js → Trash01-COnrCNth.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cjtdx_Mr.js → TrendUp01-Bn-PWo-g.js} +1 -1
- package/dist/client/assets/{Upload01-2aufxkFJ.js → Upload01-DGTw7Jar.js} +1 -1
- package/dist/client/assets/{User01-qg2q5EXG.js → User01-BIMIGJ25.js} +1 -1
- package/dist/client/assets/{Users01-DecEGc0z.js → Users01-CZUvnM1S.js} +1 -1
- package/dist/client/assets/{Users03-DvyrEhaR.js → Users03-CVsX8nJx.js} +1 -1
- package/dist/client/assets/{X-ByT759cs.js → X-DNu2-GhF.js} +1 -1
- package/dist/client/assets/{XCircle-bCCgCduZ.js → XCircle-C_rSb0eR.js} +1 -1
- package/dist/client/assets/{XClose-CZnGWolh.js → XClose-DW-dDUEB.js} +1 -1
- package/dist/client/assets/{Zap-CqiaHzzF.js → Zap-De1_wbpV.js} +1 -1
- package/dist/client/assets/{ZapSquare-c0rQSrXf.js → ZapSquare-Bp4aYGIH.js} +1 -1
- package/dist/client/assets/{ZoomOut-CrXsudJp.js → ZoomOut-BgItYrX3.js} +1 -1
- package/dist/client/assets/{access-gate-v1EkWw_v.js → access-gate-CvPG2rlY.js} +1 -1
- package/dist/client/assets/{add-section-modal-CCmZDfGj.js → add-section-modal-BA2tqrcH.js} +1 -1
- package/dist/client/assets/{agent-icon-BOnTghRl.js → agent-icon-CtZCFShI.js} +1 -1
- package/dist/client/assets/{agents-list-Bh9Nz4Fw.js → agents-list-j6YU2i_U.js} +1 -1
- package/dist/client/assets/{ai-providers-B78j6u61.js → ai-providers-DLZzYNyZ.js} +1 -1
- package/dist/client/assets/{alert-D-rAiL9n.js → alert-EAq1jY4N.js} +1 -1
- package/dist/client/assets/{alert-dialog-BV1C1gcm.js → alert-dialog-aAfJenSo.js} +1 -1
- package/dist/client/assets/{app-editor-0kysJGlw.js → app-editor-az0PkUZQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-OgqNGUQu.js → auth-catchall-DBwvY4WS.js} +1 -1
- package/dist/client/assets/{auth-entry-Bu-wAE4C.js → auth-entry-BPBAWmPC.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BPjEQYcT.js → auth-split-layout-DDWwxUG2.js} +1 -1
- package/dist/client/assets/{auth-DrixEdZV.js → auth-uUmd_yUz.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-trH0piDT.js → authenticate-and-persist-oauth-nQ-5iboz.js} +1 -1
- package/dist/client/assets/{automation-list-row-Hhbhn6Ve.js → automation-list-row-DLSYuPO0.js} +1 -1
- package/dist/client/assets/{automation-runs-Cl8NKzOf.js → automation-runs-BvVxkEL_.js} +1 -1
- package/dist/client/assets/{automations-C0XROIdQ.js → automations-Dg5iM9D-.js} +1 -1
- package/dist/client/assets/{autosend-bk9SGLB7.js → autosend-DNGUJUeU.js} +1 -1
- package/dist/client/assets/{avatar-TfVrzXcD.js → avatar-yTPDq5I2.js} +1 -1
- package/dist/client/assets/{badge-Dq8tKfND.js → badge-BYYz59-0.js} +1 -1
- package/dist/client/assets/{block-document-CSSMbpaN.js → block-document-D_2P8u2S.js} +1 -1
- package/dist/client/assets/{brand-context-BpSXT9j1.js → brand-context-BdmZewbA.js} +1 -1
- package/dist/client/assets/{buckets-CSQzXH56.js → buckets-BalCtIX4.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnemcYrz.js → bulk-category-panel-CziXKZ4f.js} +1 -1
- package/dist/client/assets/{calendar-C4A-LflQ.js → calendar-DWFDhFNo.js} +1 -1
- package/dist/client/assets/{capability-load-error-BVansliv.js → capability-load-error-BVSx_lmj.js} +1 -1
- package/dist/client/assets/{card-CYIXg6Tz.js → card-C3QUqs2n.js} +1 -1
- package/dist/client/assets/{category-editor-CQlm8YTD.js → category-editor-yjOQrzEJ.js} +1 -1
- package/dist/client/assets/{chat-context-C0qm1cNd.js → chat-context-DZnGXN4a.js} +1 -1
- package/dist/client/assets/{checkbox-CJlLtjz4.js → checkbox-CBFK8MAq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-xyy-6T0v.js → cli-auth-success-2A3RVtIL.js} +1 -1
- package/dist/client/assets/{collection-detail-Ber5gOC6.js → collection-detail-Fw_SCIDN.js} +1 -1
- package/dist/client/assets/{collection-display-button-_9VLEjYD.js → collection-display-button-CMt3Z67p.js} +1 -1
- package/dist/client/assets/{collection-search-DMVP7tq9.js → collection-search-B9mHZ3UO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CfaNknkJ.js → collection-table-wrapper-C2UsHzHD.js} +1 -1
- package/dist/client/assets/{collection-tabs-BYtcgqcY.js → collection-tabs-BDkyuUR4.js} +1 -1
- package/dist/client/assets/{command-55Q776qF.js → command-BPpRMP2H.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CwQohRCA.js → commerce-onboarding-C0k3wy77.js} +1 -1
- package/dist/client/assets/{companions-core-BsogTMm0.js → companions-core-DiyBwoGG.js} +1 -1
- package/dist/client/assets/{connect-Dzubmbm6.js → connect-D2oqeqWc.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BRyqkebt.js → connect-desktop-dialog-DNUW6BIf.js} +1 -1
- package/dist/client/assets/{connection-card-CnHj36QW.js → connection-card-QCEeFg-E.js} +1 -1
- package/dist/client/assets/{connection-detail-DioIwvgq.js → connection-detail-BuvcWRak.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C36oVpDa.js → connection-form-helpers--HrBI-cC.js} +1 -1
- package/dist/client/assets/{connections-CMhMeidX.js → connections-CWtydlE_.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DbXyz4b2.js → decopilot-sse-pool-D68vKjC2.js} +1 -1
- package/dist/client/assets/{dialog-Mssh4wvU.js → dialog-CrWMCat9.js} +1 -1
- package/dist/client/assets/{domain-settings-D5jbLq0-.js → domain-settings-qXQKOoeU.js} +1 -1
- package/dist/client/assets/{drawer-Df2dZjAh.js → drawer-DVTkiBrG.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BOgizJmB.js → dropdown-menu-CWVq2kdv.js} +1 -1
- package/dist/client/assets/{empty-state-CajaBMj9.js → empty-state-BtX-gDuD.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bd7ZbKmz.js → extract-connection-data-DfO_43Ui.js} +1 -1
- package/dist/client/assets/{file-explorer-C0-F0HB8.js → file-explorer-nlzTvV0U.js} +1 -1
- package/dist/client/assets/{file-type-icon-DeZBzLiN.js → file-type-icon-Blhm8rpp.js} +1 -1
- package/dist/client/assets/{files-DMRbcRYD.js → files-CB-VCQ9J.js} +1 -1
- package/dist/client/assets/{form-a5EhWS__.js → form-JvR3caoV.js} +1 -1
- package/dist/client/assets/{general-BXzwd9kr.js → general-ofhGwPwk.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BF2G7ylb.js → github-repo-picker-BzqT9Pn1.js} +1 -1
- package/dist/client/assets/{hooks-BYKqudQZ.js → hooks-CX-tJdCi.js} +1 -1
- package/dist/client/assets/{index-DKYptawH.js → index-BF9MIXYh.js} +1 -1
- package/dist/client/assets/{index-i4iJK1qu.js → index-BQKAFkvb.js} +3 -3
- package/dist/client/assets/{index-wa1mGSJt.js → index-Bl8jlw7D.js} +5 -5
- package/dist/client/assets/{index-D3QnFu3t.js → index-Bm91_nbV.js} +3 -3
- package/dist/client/assets/{index-D6Qe38nY.js → index-BuHs6OTD.js} +1 -1
- package/dist/client/assets/{index-D0XkAkng.js → index-CZGf-QlT.js} +1 -1
- package/dist/client/assets/{index-D8_uS6ju.js → index-CdqOC8p4.js} +1 -1
- package/dist/client/assets/{index-ChR3SC6w.js → index-D8itVaOh.js} +1 -1
- package/dist/client/assets/{index-Dd318vVc.js → index-DeAa7cPD.js} +1 -1
- package/dist/client/assets/{index-CDAhksmq.js → index-TgTbYxQM.js} +1 -1
- package/dist/client/assets/{index-BjFrw_Cz.js → index-cM-0JEJy.js} +1 -1
- package/dist/client/assets/{index-BvXIjHT6.js → index-jrZjRdSI.js} +1 -1
- package/dist/client/assets/{index-BzKhWus-.js → index-k2B6oHDy.js} +1 -1
- package/dist/client/assets/{index-redirect-DAwJl3u9.js → index-redirect-pd-pFoY5.js} +1 -1
- package/dist/client/assets/{input-DBTIXVeB.js → input-CfDoPzy7.js} +1 -1
- package/dist/client/assets/{integration-icon-Cws5p9F1.js → integration-icon-ChBrp2uX.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-U14K8dLP.js → invite-member-dialog-7T9uI3o5.js} +1 -1
- package/dist/client/assets/{label-hZbHKQe4.js → label-Br-zNLTG.js} +1 -1
- package/dist/client/assets/{layout-BbmfwSeT.js → layout-DMOlkuOh.js} +1 -1
- package/dist/client/assets/{login-CYk7QqzO.js → login-CWIddfiC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BBJ-dCGK.js → mcp-oauth-DhzxU0XK.js} +1 -1
- package/dist/client/assets/{members-Br5ZzfAU.js → members-CGKVy4T3.js} +1 -1
- package/dist/client/assets/{monaco-editor-B7XD9jse.js → monaco-editor-BcwFx31f.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CiB1VTGS.js → monitoring-stats-row-DKIXNyFS.js} +1 -1
- package/dist/client/assets/{multi-select-DtCSfvTi.js → multi-select-DwEYUWQk.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuoSY6yW.js → oauth-callback-CRC-TNHK.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DTd9RCl8.js → oauth-callback-ai-provider-Bn5ecNQ9.js} +1 -1
- package/dist/client/assets/{onboarding-VI53SQy5.js → onboarding-ChQBM6P7.js} +1 -1
- package/dist/client/assets/{org-install-BpRHfBoz.js → org-install-B2VYuIrV.js} +1 -1
- package/dist/client/assets/{org-layout-Ip0hYM6i.js → org-layout-CXw1-r8T.js} +1 -1
- package/dist/client/assets/{organization-choice-Ccir5zvX.js → organization-choice-thMPBy_H.js} +1 -1
- package/dist/client/assets/{orgs-BK0nOPLw.js → orgs-DpewEJO4.js} +1 -1
- package/dist/client/assets/{page-seo-form-CBAWdwBB.js → page-seo-form-Bj8agFDN.js} +1 -1
- package/dist/client/assets/page-seo-sheet-xYyduq_3.js +1 -0
- package/dist/client/assets/{popover-WvXSsr2A.js → popover-PFUSi04J.js} +1 -1
- package/dist/client/assets/{post-editor-GEIG3Qbs.js → post-editor-fudBfEMW.js} +1 -1
- package/dist/client/assets/{primitives-B4b9OMlU.js → primitives-CRg4BEbe.js} +1 -1
- package/dist/client/assets/{profile-BJOXihUj.js → profile-krVPqEis.js} +1 -1
- package/dist/client/assets/project-app-view-F_105CvS.js +1 -0
- package/dist/client/assets/record-editor-B9z6hPr0.js +1 -0
- package/dist/client/assets/redirect-editor-pmxNft8I.js +1 -0
- package/dist/client/assets/registry-BBaBGga3.js +2 -0
- package/dist/client/assets/{registry-layout-CUSBCALf.js → registry-layout-D0if0uky.js} +2 -2
- package/dist/client/assets/{reports-CJYmnCRR.js → reports-DQRCq5Dl.js} +2 -2
- package/dist/client/assets/{require-capability-BOqOfzCO.js → require-capability-lUm3WxQW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C1iQaX9e.js → required-auth-layout-zgA3qXU6.js} +1 -1
- package/dist/client/assets/{reset-password-ChmXlYVK.js → reset-password-d6_AkYAQ.js} +1 -1
- package/dist/client/assets/{roles-CuzTIzcA.js → roles-B_zG47r7.js} +1 -1
- package/dist/client/assets/{search-input-Di_KVfz5.js → search-input-Im3obJ_5.js} +1 -1
- package/dist/client/assets/{secrets-Cwnb5SFR.js → secrets-DZpWBr7n.js} +1 -1
- package/dist/client/assets/{sections-editor-BnUP7eos.js → sections-editor-D7TakwFG.js} +1 -1
- package/dist/client/assets/{select-CS3vGjLf.js → select-BDOR27tE.js} +1 -1
- package/dist/client/assets/{select-model-CBkA3Qex.js → select-model-BRQ-V94m.js} +1 -1
- package/dist/client/assets/{self-tool-result-olaCzjy8.js → self-tool-result-VStIScqg.js} +1 -1
- package/dist/client/assets/{seo-editor-BS3PrYY5.js → seo-editor-DgKKLq5W.js} +1 -1
- package/dist/client/assets/{settings-layout-BWiwB1ve.js → settings-layout-CxNvsg8J.js} +1 -1
- package/dist/client/assets/{settings-section-B42r-p4q.js → settings-section-BWS26hMF.js} +1 -1
- package/dist/client/assets/{shell-controls-CG47bgem.js → shell-controls-HSPoO0mS.js} +1 -1
- package/dist/client/assets/{shell-layout-C2jFubEc.js → shell-layout-D_sblBCw.js} +1 -1
- package/dist/client/assets/{sidebar-DhNO0hbl.js → sidebar-BvGzib5A.js} +1 -1
- package/dist/client/assets/{skeleton-CkFFLL1Z.js → skeleton-BUe_WzkR.js} +1 -1
- package/dist/client/assets/{sso-DvIYBwsX.js → sso-dMXAkSfn.js} +1 -1
- package/dist/client/assets/{store-D2kZokQ2.js → store-qzvEGiXH.js} +1 -1
- package/dist/client/assets/store-registry-C0M7zBzp.js +2 -0
- package/dist/client/assets/{studio-tools-Dj_suUV-.js → studio-tools-CvoMFYCt.js} +1 -1
- package/dist/client/assets/{switch-CWGgmiWZ.js → switch-muGjhkBJ.js} +1 -1
- package/dist/client/assets/{table-B7Z84RDB.js → table-BUQ1sil8.js} +1 -1
- package/dist/client/assets/{tabs-CSjEyx_g.js → tabs-DHpcGpHH.js} +1 -1
- package/dist/client/assets/{textarea-DNrJISFS.js → textarea-Bt_QtOk0.js} +1 -1
- package/dist/client/assets/{toggle-group-DngQXFC1.js → toggle-group-CQKX4oUd.js} +1 -1
- package/dist/client/assets/{toolbar-BJAhXpws.js → toolbar-0DwtxERz.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPZ8JgHL.js → toolbar-icon-button-DZhVI9-2.js} +1 -1
- package/dist/client/assets/{tooltip-BoYfeb4r.js → tooltip-BigwhDSP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0uEL6GU.js → use-ai-providers-WKbvbsVL.js} +1 -1
- package/dist/client/assets/{use-api-keys-BUXdsmWE.js → use-api-keys-Te5PgtxD.js} +1 -1
- package/dist/client/assets/{use-automations-BX-f2xPQ.js → use-automations--GMik9NX.js} +1 -1
- package/dist/client/assets/{use-autosave-D2xExJSi.js → use-autosave-M2ceoril.js} +1 -1
- package/dist/client/assets/{use-capability-zn_dFQCr.js → use-capability-Bh8YlueK.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Daz3W4ZL.js → use-clock-tick-IRvpmO0_.js} +1 -1
- package/dist/client/assets/{use-connection-CI4KVjBL.js → use-connection-COZgUeU0.js} +1 -1
- package/dist/client/assets/{use-copy-BFe-yhR7.js → use-copy-CFyLSHsK.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BruuOj8R.js → use-create-virtual-mcp-VVjBeALb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C18-WjK7.js → use-debounced-autosave-BxkO-_ca.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgLjUKeF.js → use-debounced-value-DmIl8W6n.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cl6XjjTb.js → use-deco-credits-CmiQbTPM.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Opg95yOG.js → use-decopilot-events-O1Gk-ETR.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CkYrHV-n.js → use-delete-connection-B5quwMM9.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CWMJlws-.js → use-deployment-admin-BElTs8M7.js} +1 -1
- package/dist/client/assets/{use-file-configs-CU2Y0Emb.js → use-file-configs-B0d07k9Y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-mXDq9sbk.js → use-infinite-scroll-BZlKDm5N.js} +1 -1
- package/dist/client/assets/{use-join-requests-zFCwv89L.js → use-join-requests-CZ3onEZJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BoHM8OB0.js → use-mcp-auth-status-BeMiAxE7.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DL89siIV.js → use-mcp-client-CZsvR6c7.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4CClJFZ.js → use-mcp-tools-C86d_75c.js} +1 -1
- package/dist/client/assets/{use-members-A3agoGMA.js → use-members-DmoF-3Ie.js} +1 -1
- package/dist/client/assets/{use-mobile-BwfgD4pT.js → use-mobile-BVFGUH1V.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bc0CpSD2.js → use-navigate-to-agent-CID4qRVq.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BTfVRkCO.js → use-org-auth-client-CcOUerBq.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYo24v3_.js → use-org-sso-DK1YMh-o.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYKLAq-n.js → use-organization-roles-DGfdPMyJ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoCpZun-.js → use-organization-settings-C8zNTcuC.js} +1 -1
- package/dist/client/assets/{use-registry-app-nEihaLca.js → use-registry-app-DOaPd1Kq.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DuneVuyO.js → use-registry-connections-BLLrfs0c.js} +1 -1
- package/dist/client/assets/{use-secrets-CG9MzH4M.js → use-secrets-CmLaq4UW.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-LWwT7t.js → use-status-sounds-C_iNgi5N.js} +1 -1
- package/dist/client/assets/{use-view-mode--BSnFAw6.js → use-view-mode-Be73RvXD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6uu6xME.js → use-virtual-mcp-BGZZhgI8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cdk9mXL-.js +1 -0
- package/dist/client/assets/{useQueries-BT8q2MfJ.js → useQueries-C11UDtFe.js} +1 -1
- package/dist/client/assets/{useRouterState-BMgTcVFU.js → useRouterState-B8sLgF57.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-LZ9xlW1Z.js +1 -0
- package/dist/client/assets/{users-BXaOYgw2.js → users-B_lOVuoe.js} +1 -1
- package/dist/client/assets/{variant-calendar-C61DYxyp.js → variant-calendar-3-o3D_Rr.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C8Ikqgl7.js → view-mode-toggle-DnN-vUal.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/report-og-fallback.png +0 -0
- package/dist/server/cli.js +680 -686
- package/dist/server/migrate.js +5 -5
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +373 -0
- package/dist/server/node_modules/@resvg/resvg-js/README.md +314 -0
- package/dist/server/node_modules/@resvg/resvg-js/index.js +23 -0
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +1 -0
- package/dist/server/node_modules/@resvg/resvg-js/package.json +152 -0
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +20 -0
- package/dist/server/node_modules/@shuding/opentype.js/README.md +9 -0
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +272 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +84 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +64 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +96 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +11655 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +2 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +11639 -0
- package/dist/server/node_modules/@shuding/opentype.js/package.json +73 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +158 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +243 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +16 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +1032 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +74 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +83 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +483 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +40 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +433 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +274 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +150 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +3062 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +5 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +357 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +375 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +628 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +212 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +77 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +447 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +215 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +1156 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +145 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +71 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +62 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +349 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +146 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +251 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +35 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +27 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +51 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +69 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +33 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +32 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +30 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +680 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +65 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +522 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +976 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +17 -0
- package/dist/server/node_modules/base64-js/.travis.yml +5 -0
- package/dist/server/node_modules/base64-js/LICENSE.MIT +21 -0
- package/dist/server/node_modules/base64-js/README.md +31 -0
- package/dist/server/node_modules/base64-js/bench/bench.js +19 -0
- package/dist/server/node_modules/base64-js/lib/b64.js +124 -0
- package/dist/server/node_modules/base64-js/package.json +34 -0
- package/dist/server/node_modules/base64-js/test/convert.js +51 -0
- package/dist/server/node_modules/base64-js/test/url-safe.js +18 -0
- package/dist/server/node_modules/camelize/.eslintrc +24 -0
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +12 -0
- package/dist/server/node_modules/camelize/CHANGELOG.md +64 -0
- package/dist/server/node_modules/camelize/LICENSE +18 -0
- package/dist/server/node_modules/camelize/README.md +81 -0
- package/dist/server/node_modules/camelize/example/camel.js +12 -0
- package/dist/server/node_modules/camelize/index.js +61 -0
- package/dist/server/node_modules/camelize/package.json +84 -0
- package/dist/server/node_modules/camelize/test/camel.js +48 -0
- package/dist/server/node_modules/color-name/LICENSE +8 -0
- package/dist/server/node_modules/color-name/README.md +11 -0
- package/dist/server/node_modules/color-name/index.js +152 -0
- package/dist/server/node_modules/color-name/package.json +28 -0
- package/dist/server/node_modules/css-background-parser/LICENSE +22 -0
- package/dist/server/node_modules/css-background-parser/README.md +149 -0
- package/dist/server/node_modules/css-background-parser/index.js +162 -0
- package/dist/server/node_modules/css-background-parser/package.json +19 -0
- package/dist/server/node_modules/css-box-shadow/README.md +27 -0
- package/dist/server/node_modules/css-box-shadow/index.js +64 -0
- package/dist/server/node_modules/css-box-shadow/package.json +14 -0
- package/dist/server/node_modules/css-box-shadow/test.js +204 -0
- package/dist/server/node_modules/css-color-keywords/LICENSE +15 -0
- package/dist/server/node_modules/css-color-keywords/README.md +47 -0
- package/dist/server/node_modules/css-color-keywords/colors.json +148 -0
- package/dist/server/node_modules/css-color-keywords/index.js +3 -0
- package/dist/server/node_modules/css-color-keywords/package.json +27 -0
- package/dist/server/node_modules/css-gradient-parser/LICENSE +21 -0
- package/dist/server/node_modules/css-gradient-parser/README.md +75 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +2 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +2 -0
- package/dist/server/node_modules/css-gradient-parser/package.json +54 -0
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +21 -0
- package/dist/server/node_modules/css-to-react-native/README.md +115 -0
- package/dist/server/node_modules/css-to-react-native/index.js +886 -0
- package/dist/server/node_modules/css-to-react-native/package.json +65 -0
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +85 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +136 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +83 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +31 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +122 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +22 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +117 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +43 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +15 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +8 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +204 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +13 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +103 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +30 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +55 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +132 -0
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/index.js +90 -0
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +75 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +12 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +11 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +65 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +63 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +20 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +14 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +77 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +24 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +18 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +10 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +99 -0
- package/dist/server/node_modules/hex-rgb/index.js +47 -0
- package/dist/server/node_modules/hex-rgb/license +9 -0
- package/dist/server/node_modules/hex-rgb/package.json +39 -0
- package/dist/server/node_modules/hex-rgb/readme.md +86 -0
- package/dist/server/node_modules/linebreak/LICENSE +21 -0
- package/dist/server/node_modules/linebreak/dist/main.cjs +1369 -0
- package/dist/server/node_modules/linebreak/dist/module.mjs +1368 -0
- package/dist/server/node_modules/linebreak/package.json +57 -0
- package/dist/server/node_modules/linebreak/readme.md +62 -0
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +54 -0
- package/dist/server/node_modules/parse-css-color/LICENSE +21 -0
- package/dist/server/node_modules/parse-css-color/README.md +110 -0
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +171 -0
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +167 -0
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +7 -0
- package/dist/server/node_modules/parse-css-color/package.json +55 -0
- package/dist/server/node_modules/postcss-value-parser/LICENSE +22 -0
- package/dist/server/node_modules/postcss-value-parser/README.md +263 -0
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +28 -0
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +321 -0
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +48 -0
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +120 -0
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +22 -0
- package/dist/server/node_modules/postcss-value-parser/package.json +58 -0
- package/dist/server/node_modules/satori/LICENSE +373 -0
- package/dist/server/node_modules/satori/README.md +516 -0
- package/dist/server/node_modules/satori/dist/index.cjs +8 -0
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/index.js +8 -0
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +2 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +2 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +8 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/standalone.js +8 -0
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/package.json +149 -0
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +21 -0
- package/dist/server/node_modules/tiny-inflate/index.js +375 -0
- package/dist/server/node_modules/tiny-inflate/package.json +28 -0
- package/dist/server/node_modules/tiny-inflate/readme.md +31 -0
- package/dist/server/node_modules/tiny-inflate/test/index.js +75 -0
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +199 -0
- package/dist/server/node_modules/unicode-trie/LICENSE +8 -0
- package/dist/server/node_modules/unicode-trie/README.md +77 -0
- package/dist/server/node_modules/unicode-trie/builder.js +966 -0
- package/dist/server/node_modules/unicode-trie/index.js +136 -0
- package/dist/server/node_modules/unicode-trie/package.json +27 -0
- package/dist/server/node_modules/unicode-trie/swap.js +25 -0
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +1 -0
- package/dist/server/node_modules/unicode-trie/test/test.js +243 -0
- package/dist/server/server.js +664 -670
- package/package.json +3 -1
- package/dist/client/assets/page-seo-sheet-BVOTKmAi.js +0 -1
- package/dist/client/assets/project-app-view-BJPw6BEN.js +0 -1
- package/dist/client/assets/record-editor-DGNLZeof.js +0 -1
- package/dist/client/assets/redirect-editor-rNADegcF.js +0 -1
- package/dist/client/assets/registry-DSHcnwR4.js +0 -2
- package/dist/client/assets/store-registry-q7deglpz.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DVl8ILZo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ClimnWE2.js +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
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 };
|
|
@@ -0,0 +1,21 @@
|
|
|
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.
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
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))
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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']
|
|
@@ -0,0 +1,64 @@
|
|
|
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)
|
|
@@ -0,0 +1,18 @@
|
|
|
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.
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
}
|