decocms 2.310.9 → 2.310.10
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-dmAxGfdw.js → AlertCircle-C2Kq9sP5.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-B5Pmgm3m.js → ArrowNarrowLeft-CtJPKQti.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Di5qgspg.js → ArrowUpRight-CC_IBduD.js} +1 -1
- package/dist/client/assets/{Check-CoZObZfw.js → Check-8mi3AYKX.js} +1 -1
- package/dist/client/assets/{CheckCircle-CymGi1vs.js → CheckCircle-DN6M9EOU.js} +1 -1
- package/dist/client/assets/{ChevronDown-BYVKL3lw.js → ChevronDown-uewl1bwO.js} +1 -1
- package/dist/client/assets/{ChevronRight-C1-MREha.js → ChevronRight-CCrVuKwq.js} +1 -1
- package/dist/client/assets/{ChevronUp-DEJu7vcr.js → ChevronUp-DBRtGVBG.js} +1 -1
- package/dist/client/assets/{Container-C-gv68K3.js → Container-iNRgecVs.js} +1 -1
- package/dist/client/assets/{DotsVertical-BGA0iFJE.js → DotsVertical-BFkn4l7W.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DFR79haX.js → LinkExternal01-C0SukdlX.js} +1 -1
- package/dist/client/assets/{Lock01-C7ffyA7b.js → Lock01-DrMjxg7_.js} +1 -1
- package/dist/client/assets/{Palette-YRlo3qST.js → Palette-B3GUBwDn.js} +1 -1
- package/dist/client/assets/{Play-W_nmstmM.js → Play-X_jxvK3z.js} +1 -1
- package/dist/client/assets/{Plus-BlcqyD1c.js → Plus-DrvlnS13.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-PuuFD9kE.js → RefreshCcw01-Fv5N4uZX.js} +1 -1
- package/dist/client/assets/{SearchMd-Cao-tsku.js → SearchMd-CvC8K2bA.js} +1 -1
- package/dist/client/assets/{Settings02-CMH55uu4.js → Settings02-Dp59S32g.js} +1 -1
- package/dist/client/assets/{Shield01-BO11ag-O.js → Shield01-CNaokdKB.js} +1 -1
- package/dist/client/assets/{Star01-CT1-Dwgl.js → Star01-C6oeO1Ak.js} +1 -1
- package/dist/client/assets/{Sun-CZX18uSg.js → Sun-Brr68tKM.js} +1 -1
- package/dist/client/assets/{Tool01-CkahRpzI.js → Tool01-aRUajebu.js} +1 -1
- package/dist/client/assets/{Trash01-DKGk_jtN.js → Trash01-CbD3JV1r.js} +1 -1
- package/dist/client/assets/{User01-CKWvc4f3.js → User01-DgN3y7Wm.js} +1 -1
- package/dist/client/assets/{Users03-BNJux13w.js → Users03-DpX7qz1q.js} +1 -1
- package/dist/client/assets/{X-DV_Dk1et.js → X-BPB3AnNC.js} +1 -1
- package/dist/client/assets/{XCircle-B03IdlZI.js → XCircle-BcurAQXM.js} +1 -1
- package/dist/client/assets/{XClose-DO3Jw2Iw.js → XClose-BpBqOBr0.js} +1 -1
- package/dist/client/assets/{Zap-CRY_cqST.js → Zap-FnE4yTgm.js} +1 -1
- package/dist/client/assets/{ZapSquare-DN4FFgDX.js → ZapSquare-DTXvHII8.js} +1 -1
- package/dist/client/assets/{accordion-CK1j-E3o.js → accordion-C2Kw8vOW.js} +1 -1
- package/dist/client/assets/{agent-icon-BuL7s1QY.js → agent-icon-DmFxQL-w.js} +1 -1
- package/dist/client/assets/{agents-list-DZLuDkTU.js → agents-list-DeiKac1A.js} +1 -1
- package/dist/client/assets/ai-providers-BaO9GV46.js +1 -0
- package/dist/client/assets/{alert-dialog-isc4o1-I.js → alert-dialog-CgPM83OZ.js} +1 -1
- package/dist/client/assets/{auth-catchall-C6M8n_qi.js → auth-catchall-C-PAm6ZL.js} +1 -1
- package/dist/client/assets/{automation-list-row-DpgLcgFR.js → automation-list-row-B6FveCl-.js} +1 -1
- package/dist/client/assets/{automations-DkAmc4i3.js → automations-CXpeWc-P.js} +1 -1
- package/dist/client/assets/{avatar-DiDbRWhL.js → avatar-R_EpLjLl.js} +1 -1
- package/dist/client/assets/{badge-CcZ6rzZn.js → badge-BRPQ2RXs.js} +1 -1
- package/dist/client/assets/{brand-context-bECXteWO.js → brand-context-VkbfuEAP.js} +1 -1
- package/dist/client/assets/{card-Dyb5BvJt.js → card-BRMBr6rT.js} +1 -1
- package/dist/client/assets/{chat-context-CEizejmQ.js → chat-context-B6LniWh4.js} +1 -1
- package/dist/client/assets/{checkbox-BQTCEZdR.js → checkbox-BblhT8hm.js} +1 -1
- package/dist/client/assets/{collection-detail-p2x4ej8F.js → collection-detail-jGRcLklu.js} +1 -1
- package/dist/client/assets/{collection-display-button-qvCsF5ZQ.js → collection-display-button-pckzcvu0.js} +1 -1
- package/dist/client/assets/{collection-search-D_h_Cv4k.js → collection-search-DSNbkFi1.js} +1 -1
- package/dist/client/assets/{collection-search-CbVyOd8I.js → collection-search-Dx8FaY02.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DEWFnK11.js → collection-table-wrapper-VAZMo6kd.js} +1 -1
- package/dist/client/assets/{collection-tabs-FmSrPuTk.js → collection-tabs-BNmGhBX4.js} +1 -1
- package/dist/client/assets/{collections-BllQf3RV.js → collections-Dvzt0ZNN.js} +1 -1
- package/dist/client/assets/{command-BFqloV6u.js → command-D-hEs58n.js} +1 -1
- package/dist/client/assets/{connection-card-ZDJNBKt1.js → connection-card-DItj_2IY.js} +1 -1
- package/dist/client/assets/{connection-detail-Bv_VTkme.js → connection-detail-DKK-p3nN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BPWJCRm4.js → connection-form-helpers-CqjB58DM.js} +1 -1
- package/dist/client/assets/{connections-C4_JMZUe.js → connections-o9GkxKpU.js} +1 -1
- package/dist/client/assets/{constants-2NOiN3ZN.js → constants-DGqDuCM6.js} +1 -1
- package/dist/client/assets/{constants-C13iIB-x.js → constants-TOA097jd.js} +1 -1
- package/dist/client/assets/{dialog-Bm2ikVw1.js → dialog-BIz1GP40.js} +1 -1
- package/dist/client/assets/{domain-settings-DU7Hy3hX.js → domain-settings-Cw-RjCkh.js} +1 -1
- package/dist/client/assets/{drawer-B-6CGObe.js → drawer-DeI1k7rI.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BgdOElZe.js → dropdown-menu-CVHV92Hd.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-B8gbCAdF.js → dynamic-plugin-layout-DzaSbnSD.js} +1 -1
- package/dist/client/assets/{empty-state-M47VX7Kg.js → empty-state-CsO6fXax.js} +1 -1
- package/dist/client/assets/{empty-state-C6U2d6Iz.js → empty-state-DyZKbBnm.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D-R6UfWy.js → extract-connection-data-CUnE0R1z.js} +1 -1
- package/dist/client/assets/{features-Da9ot7ES.js → features-1BU-fGDo.js} +1 -1
- package/dist/client/assets/{form-BtPrdx-O.js → form-DC3ztBaq.js} +1 -1
- package/dist/client/assets/{general-BG62xLug.js → general-CnC_f06H.js} +1 -1
- package/dist/client/assets/index-245DoaKF.js +1 -0
- package/dist/client/assets/{index-DwWrsogB.js → index-B6-6SdwK.js} +1 -1
- package/dist/client/assets/{index-B7E_TqLL.js → index-Bd-TvWO2.js} +1 -1
- package/dist/client/assets/{index-CJ7tezbs.js → index-BlZUyqNd.js} +2 -2
- package/dist/client/assets/{index-Daezupu2.js → index-BlnWfdPR.js} +1 -1
- package/dist/client/assets/{index-B8kTK5az.js → index-C57DmctK.js} +1 -1
- package/dist/client/assets/{index-CkG8PUwG.js → index-CbqGifzG.js} +3 -3
- package/dist/client/assets/{index-Qm4SNvbw.js → index-D7cq1ZGD.js} +1 -1
- package/dist/client/assets/{index-DxGAxKWV.js → index-DFYb3Vpx.js} +1 -1
- package/dist/client/assets/{index-NB4Mduyj.js → index-DLT73ts-.js} +1 -1
- package/dist/client/assets/{index-BGe9yRbG.js → index-DrLrIvkx.js} +1 -1
- package/dist/client/assets/{index-WuQt9nPz.js → index-Dvixz6yi.js} +1 -1
- package/dist/client/assets/{index-AFdAkH-K.js → index-GNXHd8Mf.js} +1 -1
- package/dist/client/assets/{index-CwKjHTTq.js → index-UojFMTLq.js} +1 -1
- package/dist/client/assets/index-c5PVgI_h.js +1 -0
- package/dist/client/assets/{index-DtGR3bfn.js → index-fZC6RD3v.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DgD5FfMR.js → infiniteQueryObserver--n1cwXQ3.js} +1 -1
- package/dist/client/assets/{input-icoGmB9A.js → input-IMib1XXi.js} +1 -1
- package/dist/client/assets/{integration-icon-j7ghn9fJ.js → integration-icon-BcQ6nvGQ.js} +1 -1
- package/dist/client/assets/{label-DwvsOTNS.js → label-BF3A-7va.js} +1 -1
- package/dist/client/assets/{layout-DNIR8-Gh.js → layout-CYH5LRmI.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CWnnJj13.js → lean-canvas-recruit-modal-Co3Pdhei.js} +1 -1
- package/dist/client/assets/{login-B8k4XLcx.js → login-DEc-TFri.js} +1 -1
- package/dist/client/assets/{members-Dbapgu6b.js → members-C6yb3qP6.js} +1 -1
- package/dist/client/assets/{monaco-editor-9inEh7xO.js → monaco-editor-CIc49-ol.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BHorL9l7.js → monitoring-stats-row-CsWNy_j8.js} +1 -1
- package/dist/client/assets/{oauth-callback-CChdekEG.js → oauth-callback-R-Bw8hrO.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-WQJptNwQ.js → oauth-callback-ai-provider-CUDjs3hN.js} +1 -1
- package/dist/client/assets/{onboarding-BzAXbJFJ.js → onboarding-CqMGDXrZ.js} +1 -1
- package/dist/client/assets/{org-layout-C36c0Pnr.js → org-layout-DphhPFpe.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DjTzbgei.js → org-plugin-layout-B-I7FI8h.js} +1 -1
- package/dist/client/assets/{pair-DFjjTBxK.js → pair-DY8QPktF.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-GKGnpdyc.js → plugin-empty-state-BZy0fBVH.js} +1 -1
- package/dist/client/assets/{plugin-header-CqdUd-_y.js → plugin-header-CkLM2-lj.js} +1 -1
- package/dist/client/assets/{plugin-layout-CmX7ns9R.js → plugin-layout-30U_ewhr.js} +1 -1
- package/dist/client/assets/{popover-D_mzt8K-.js → popover-DNgwAx9Z.js} +1 -1
- package/dist/client/assets/{profile-l21waEZY.js → profile-CEE9ZZqn.js} +1 -1
- package/dist/client/assets/{project-app-view-DxehH6hP.js → project-app-view-DiCZcUip.js} +1 -1
- package/dist/client/assets/registry-DvsbyjKa.js +2 -0
- package/dist/client/assets/{registry-layout-Cbt57EG3.js → registry-layout-JBM4bR0G.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dw6MDr53.js → required-auth-layout-Ct1Qic00.js} +1 -1
- package/dist/client/assets/{reset-password-BKSptcrB.js → reset-password-D4u9tX7x.js} +1 -1
- package/dist/client/assets/{roles-D2adhbyA.js → roles-1l3z_zFU.js} +1 -1
- package/dist/client/assets/{scroll-area-PAWYGyUn.js → scroll-area-BOXDpfo4.js} +1 -1
- package/dist/client/assets/{search-input-aEr0S-jx.js → search-input-B4DkDHlW.js} +1 -1
- package/dist/client/assets/{select-CCp_dm-8.js → select-Cq3xZiQ5.js} +1 -1
- package/dist/client/assets/{select-model-DvEurWhO.js → select-model-k80wu5Pg.js} +1 -1
- package/dist/client/assets/settings-layout-BRNqIdJy.js +1 -0
- package/dist/client/assets/{settings-section-CyFvqFYP.js → settings-section-DuBFbDJh.js} +1 -1
- package/dist/client/assets/{shell-layout-D3MTPgKe.js → shell-layout-Biylk4dt.js} +1 -1
- package/dist/client/assets/{skeleton-B9eUxWyV.js → skeleton-8YZ7FRdJ.js} +1 -1
- package/dist/client/assets/{sso-C5CIXiBT.js → sso-DYf-HKpX.js} +1 -1
- package/dist/client/assets/{store-B-QOQxiI.js → store-gk30Uetz.js} +1 -1
- package/dist/client/assets/store-registry-DQg-S5Pq.js +2 -0
- package/dist/client/assets/{switch-D3jsuVqF.js → switch-JEYeupUE.js} +1 -1
- package/dist/client/assets/{table-BDdckIYz.js → table-DXz6Ne28.js} +1 -1
- package/dist/client/assets/{tabs-IOtx7wF_.js → tabs-DGHdxspT.js} +1 -1
- package/dist/client/assets/{task-status-cqc-yyHP.js → task-status-D3yOR3Rw.js} +1 -1
- package/dist/client/assets/{textarea-BnNXmx3Y.js → textarea-Byzq1Tag.js} +1 -1
- package/dist/client/assets/{toggle-group-CtNug1AN.js → toggle-group-iM11rQDQ.js} +1 -1
- package/dist/client/assets/{tools-list-OK0eBQ2-.js → tools-list-Bl74NcgJ.js} +1 -1
- package/dist/client/assets/{tooltip-CgMBEJ1D.js → tooltip-CFVYr91W.js} +1 -1
- package/dist/client/assets/{types-9ClSFAcb.js → types-CtN4LDEQ.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CwrAqPK8.js → use-ai-providers-AxSx2mei.js} +1 -1
- package/dist/client/assets/{use-collections-J581b1V6.js → use-collections-BTtpR02V.js} +1 -1
- package/dist/client/assets/{use-connection-ClgerwwF.js → use-connection-C2keyruh.js} +1 -1
- package/dist/client/assets/{use-copy-DfoEPJYg.js → use-copy-CjrjEzGR.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BVCqQhR9.js → use-create-virtual-mcp-4-L0RDrZ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BZFAEb2X.js → use-debounced-autosave-Cgsc15ij.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DrHzIpMn.js → use-decopilot-events-CHyT765k.js} +1 -1
- package/dist/client/assets/{use-delete-connection-r9tq33yO.js → use-delete-connection-Dr1RMEfK.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BiJUnXqe.js → use-infinite-scroll-B6apK_e6.js} +1 -1
- package/dist/client/assets/{use-list-state-DjgKOoV4.js → use-list-state-IspgLdDd.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DrjB_1aW.js → use-mcp-tools-BJa7tdVW.js} +1 -1
- package/dist/client/assets/{use-members-YXTlTBnJ.js → use-members-CmOgxRUf.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-a_qVz0hx.js → use-navigate-to-agent-CHMFR1ZO.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-S_JrdH5c.js → use-org-auth-client-QmlbF_wd.js} +1 -1
- package/dist/client/assets/{use-org-sso-ByR6WIOr.js → use-org-sso-CZxuEwzK.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CUDaH6Ds.js → use-organization-roles-ByHQCBC7.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BvDmL50b.js → use-organization-settings-CUGnoKbY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BtL_BpNO.js → use-registry-connections-CAHIxYD2.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DWHIYYpy.js → use-status-sounds-D34DNC68.js} +1 -1
- package/dist/client/assets/{use-tasks-B9rHJzLa.js → use-tasks-Dt-gbeRh.js} +1 -1
- package/dist/client/assets/{use-view-mode-DkE-SOvf.js → use-view-mode--UJYYM2y.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CIedFfzt.js → use-virtual-mcp-CNyZ0pwV.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DeJoxETV.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CBbBRTcV.js +1 -0
- package/dist/client/assets/{user-BakGW47z.js → user-DJ1C04bV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DR7PcZfm.js → view-mode-toggle-DS5tFvFk.js} +1 -1
- package/dist/client/assets/{workflow-CSNmmmKf.js → workflow-BClHU4t7.js} +1 -1
- package/dist/client/assets/workflow-detail-B6kzSF7O.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/{get-east-asian-width → escape-string-regexp}/license +1 -1
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/{postgres-date → postgres-interval}/package.json +11 -8
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CKU4YYdO.js +0 -1
- package/dist/client/assets/index-D6_8Dfq1.js +0 -1
- package/dist/client/assets/index-da3cMpwe.js +0 -1
- package/dist/client/assets/registry-BwMw1E_A.js +0 -2
- package/dist/client/assets/settings-layout-DD5s9jz9.js +0 -1
- package/dist/client/assets/store-registry-DeHxcxuH.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BnMBc2sn.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DRJEzN-I.js +0 -1
- package/dist/client/assets/workflow-detail-DnUnNIQp.js +0 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
- package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
- package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
- package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{postgres-date → postgres-interval}/license +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/build.js
|
|
2
|
-
|
|
3
|
-
// prettier-ignore
|
|
4
|
-
const ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
5
|
-
|
|
6
|
-
// prettier-ignore
|
|
7
|
-
const fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
8
|
-
|
|
9
|
-
// prettier-ignore
|
|
10
|
-
const halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
11
|
-
|
|
12
|
-
// prettier-ignore
|
|
13
|
-
const narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
14
|
-
|
|
15
|
-
// prettier-ignore
|
|
16
|
-
const wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
17
|
-
|
|
18
|
-
export {ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ambiguousRanges,
|
|
3
|
-
fullwidthRanges,
|
|
4
|
-
halfwidthRanges,
|
|
5
|
-
narrowRanges,
|
|
6
|
-
wideRanges,
|
|
7
|
-
} from './lookup-data.js';
|
|
8
|
-
import {isInRange} from './utilities.js';
|
|
9
|
-
|
|
10
|
-
const minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
11
|
-
const maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
12
|
-
const minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
13
|
-
const maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
14
|
-
const minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
15
|
-
const maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
16
|
-
const minimumNarrowCodePoint = narrowRanges[0];
|
|
17
|
-
const maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
18
|
-
const minimumWideCodePoint = wideRanges[0];
|
|
19
|
-
const maximumWideCodePoint = wideRanges.at(-1);
|
|
20
|
-
|
|
21
|
-
const commonCjkCodePoint = 0x4E_00;
|
|
22
|
-
const [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
23
|
-
|
|
24
|
-
// Use a hot-path range so common `isWide` calls can skip binary search.
|
|
25
|
-
// The range containing U+4E00 covers common CJK ideographs;
|
|
26
|
-
// fallback to the largest range for resilience to Unicode table changes.
|
|
27
|
-
function findWideFastPathRange(ranges) {
|
|
28
|
-
let fastPathStart = ranges[0];
|
|
29
|
-
let fastPathEnd = ranges[1];
|
|
30
|
-
|
|
31
|
-
for (let index = 0; index < ranges.length; index += 2) {
|
|
32
|
-
const start = ranges[index];
|
|
33
|
-
const end = ranges[index + 1];
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
commonCjkCodePoint >= start
|
|
37
|
-
&& commonCjkCodePoint <= end
|
|
38
|
-
) {
|
|
39
|
-
return [start, end];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if ((end - start) > (fastPathEnd - fastPathStart)) {
|
|
43
|
-
fastPathStart = start;
|
|
44
|
-
fastPathEnd = end;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return [fastPathStart, fastPathEnd];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const isAmbiguous = codePoint => {
|
|
52
|
-
if (
|
|
53
|
-
codePoint < minimumAmbiguousCodePoint
|
|
54
|
-
|| codePoint > maximumAmbiguousCodePoint
|
|
55
|
-
) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return isInRange(ambiguousRanges, codePoint);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const isFullWidth = codePoint => {
|
|
63
|
-
if (
|
|
64
|
-
codePoint < minimumFullWidthCodePoint
|
|
65
|
-
|| codePoint > maximumFullWidthCodePoint
|
|
66
|
-
) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return isInRange(fullwidthRanges, codePoint);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const isHalfWidth = codePoint => {
|
|
74
|
-
if (
|
|
75
|
-
codePoint < minimumHalfWidthCodePoint
|
|
76
|
-
|| codePoint > maximumHalfWidthCodePoint
|
|
77
|
-
) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return isInRange(halfwidthRanges, codePoint);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const isNarrow = codePoint => {
|
|
85
|
-
if (
|
|
86
|
-
codePoint < minimumNarrowCodePoint
|
|
87
|
-
|| codePoint > maximumNarrowCodePoint
|
|
88
|
-
) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return isInRange(narrowRanges, codePoint);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const isWide = codePoint => {
|
|
96
|
-
if (
|
|
97
|
-
codePoint >= wideFastPathStart
|
|
98
|
-
&& codePoint <= wideFastPathEnd
|
|
99
|
-
) {
|
|
100
|
-
return true;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
codePoint < minimumWideCodePoint
|
|
105
|
-
|| codePoint > maximumWideCodePoint
|
|
106
|
-
) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return isInRange(wideRanges, codePoint);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export function getCategory(codePoint) {
|
|
114
|
-
if (isAmbiguous(codePoint)) {
|
|
115
|
-
return 'ambiguous';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (isFullWidth(codePoint)) {
|
|
119
|
-
return 'fullwidth';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (isHalfWidth(codePoint)) {
|
|
123
|
-
return 'halfwidth';
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (isNarrow(codePoint)) {
|
|
127
|
-
return 'narrow';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (isWide(codePoint)) {
|
|
131
|
-
return 'wide';
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return 'neutral';
|
|
135
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "get-east-asian-width",
|
|
3
|
-
"version": "1.5.0",
|
|
4
|
-
"description": "Determine the East Asian Width of a Unicode character",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/get-east-asian-width",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsc index.d.ts",
|
|
24
|
-
"build": "node scripts/build.js",
|
|
25
|
-
"prepublish": "npm run build"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"index.js",
|
|
29
|
-
"index.d.ts",
|
|
30
|
-
"lookup.js",
|
|
31
|
-
"lookup-data.js",
|
|
32
|
-
"utilities.js"
|
|
33
|
-
],
|
|
34
|
-
"keywords": [
|
|
35
|
-
"unicode",
|
|
36
|
-
"east-asian-width",
|
|
37
|
-
"eastasianwidth",
|
|
38
|
-
"character",
|
|
39
|
-
"string",
|
|
40
|
-
"width",
|
|
41
|
-
"text",
|
|
42
|
-
"layout",
|
|
43
|
-
"alignment",
|
|
44
|
-
"fullwidth",
|
|
45
|
-
"halfwidth",
|
|
46
|
-
"ambiguous",
|
|
47
|
-
"narrow",
|
|
48
|
-
"wide",
|
|
49
|
-
"neutral",
|
|
50
|
-
"typography",
|
|
51
|
-
"japanese",
|
|
52
|
-
"chinese",
|
|
53
|
-
"korean",
|
|
54
|
-
"codepoint",
|
|
55
|
-
"text-processing",
|
|
56
|
-
"i18n",
|
|
57
|
-
"l10n"
|
|
58
|
-
],
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"ava": "^5.3.1",
|
|
61
|
-
"outdent": "^0.8.0",
|
|
62
|
-
"simplify-ranges": "^0.1.0",
|
|
63
|
-
"typescript": "^5.2.2",
|
|
64
|
-
"xo": "^0.56.0"
|
|
65
|
-
},
|
|
66
|
-
"xo": {
|
|
67
|
-
"ignores": [
|
|
68
|
-
"lookup-data.js"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# get-east-asian-width
|
|
2
|
-
|
|
3
|
-
> Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
|
|
4
|
-
|
|
5
|
-
> East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
|
|
6
|
-
|
|
7
|
-
Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install get-east-asian-width
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
|
|
19
|
-
|
|
20
|
-
const codePoint = '字'.codePointAt(0);
|
|
21
|
-
|
|
22
|
-
console.log(eastAsianWidth(codePoint));
|
|
23
|
-
//=> 2
|
|
24
|
-
|
|
25
|
-
console.log(eastAsianWidthType(codePoint));
|
|
26
|
-
//=> 'wide'
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
|
|
30
|
-
|
|
31
|
-
Returns the width as a number for the given code point.
|
|
32
|
-
|
|
33
|
-
### options
|
|
34
|
-
|
|
35
|
-
Type: `object`
|
|
36
|
-
|
|
37
|
-
#### ambiguousAsWide
|
|
38
|
-
|
|
39
|
-
Type: `boolean`\
|
|
40
|
-
Default: `false`
|
|
41
|
-
|
|
42
|
-
Whether to treat an `'ambiguous'` character as wide.
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
import {eastAsianWidth} from 'get-east-asian-width';
|
|
46
|
-
|
|
47
|
-
const codePoint = '⛣'.codePointAt(0);
|
|
48
|
-
|
|
49
|
-
console.log(eastAsianWidth(codePoint));
|
|
50
|
-
//=> 1
|
|
51
|
-
|
|
52
|
-
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
53
|
-
//=> 2
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). **If the context cannot be established reliably, they should be treated as narrow characters by default.**
|
|
57
|
-
> - http://www.unicode.org/reports/tr11/
|
|
58
|
-
|
|
59
|
-
## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
|
|
60
|
-
|
|
61
|
-
Returns the type of “East Asian Width” for the given code point.
|
|
62
|
-
|
|
63
|
-
## Related
|
|
64
|
-
|
|
65
|
-
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Binary search on a sorted flat array of [start, end] pairs.
|
|
3
|
-
|
|
4
|
-
@param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
|
|
5
|
-
@param {number} codePoint - The value to search for.
|
|
6
|
-
@returns {boolean} Whether the value falls within any of the ranges.
|
|
7
|
-
*/
|
|
8
|
-
export const isInRange = (ranges, codePoint) => {
|
|
9
|
-
let low = 0;
|
|
10
|
-
let high = Math.floor(ranges.length / 2) - 1;
|
|
11
|
-
while (low <= high) {
|
|
12
|
-
const mid = Math.floor((low + high) / 2);
|
|
13
|
-
const i = mid * 2;
|
|
14
|
-
if (codePoint < ranges[i]) {
|
|
15
|
-
high = mid - 1;
|
|
16
|
-
} else if (codePoint > ranges[i + 1]) {
|
|
17
|
-
low = mid + 1;
|
|
18
|
-
} else {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var DATE_TIME = /(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/
|
|
4
|
-
var DATE = /^(\d{1,})-(\d{2})-(\d{2})( BC)?$/
|
|
5
|
-
var TIME_ZONE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/
|
|
6
|
-
var INFINITY = /^-?infinity$/
|
|
7
|
-
|
|
8
|
-
module.exports = function parseDate (isoDate) {
|
|
9
|
-
if (INFINITY.test(isoDate)) {
|
|
10
|
-
// Capitalize to Infinity before passing to Number
|
|
11
|
-
return Number(isoDate.replace('i', 'I'))
|
|
12
|
-
}
|
|
13
|
-
var matches = DATE_TIME.exec(isoDate)
|
|
14
|
-
|
|
15
|
-
if (!matches) {
|
|
16
|
-
// Force YYYY-MM-DD dates to be parsed as local time
|
|
17
|
-
return getDate(isoDate) || null
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
var isBC = !!matches[8]
|
|
21
|
-
var year = parseInt(matches[1], 10)
|
|
22
|
-
if (isBC) {
|
|
23
|
-
year = bcYearToNegativeYear(year)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var month = parseInt(matches[2], 10) - 1
|
|
27
|
-
var day = matches[3]
|
|
28
|
-
var hour = parseInt(matches[4], 10)
|
|
29
|
-
var minute = parseInt(matches[5], 10)
|
|
30
|
-
var second = parseInt(matches[6], 10)
|
|
31
|
-
|
|
32
|
-
var ms = matches[7]
|
|
33
|
-
ms = ms ? 1000 * parseFloat(ms) : 0
|
|
34
|
-
|
|
35
|
-
var date
|
|
36
|
-
var offset = timeZoneOffset(isoDate)
|
|
37
|
-
if (offset != null) {
|
|
38
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, ms))
|
|
39
|
-
|
|
40
|
-
// Account for years from 0 to 99 being interpreted as 1900-1999
|
|
41
|
-
// by Date.UTC / the multi-argument form of the Date constructor
|
|
42
|
-
if (is0To99(year)) {
|
|
43
|
-
date.setUTCFullYear(year)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (offset !== 0) {
|
|
47
|
-
date.setTime(date.getTime() - offset)
|
|
48
|
-
}
|
|
49
|
-
} else {
|
|
50
|
-
date = new Date(year, month, day, hour, minute, second, ms)
|
|
51
|
-
|
|
52
|
-
if (is0To99(year)) {
|
|
53
|
-
date.setFullYear(year)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return date
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function getDate (isoDate) {
|
|
61
|
-
var matches = DATE.exec(isoDate)
|
|
62
|
-
if (!matches) {
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
var year = parseInt(matches[1], 10)
|
|
67
|
-
var isBC = !!matches[4]
|
|
68
|
-
if (isBC) {
|
|
69
|
-
year = bcYearToNegativeYear(year)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
var month = parseInt(matches[2], 10) - 1
|
|
73
|
-
var day = matches[3]
|
|
74
|
-
// YYYY-MM-DD will be parsed as local time
|
|
75
|
-
var date = new Date(year, month, day)
|
|
76
|
-
|
|
77
|
-
if (is0To99(year)) {
|
|
78
|
-
date.setFullYear(year)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return date
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// match timezones:
|
|
85
|
-
// Z (UTC)
|
|
86
|
-
// -05
|
|
87
|
-
// +06:30
|
|
88
|
-
function timeZoneOffset (isoDate) {
|
|
89
|
-
if (isoDate.endsWith('+00')) {
|
|
90
|
-
return 0
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
var zone = TIME_ZONE.exec(isoDate.split(' ')[1])
|
|
94
|
-
if (!zone) return
|
|
95
|
-
var type = zone[1]
|
|
96
|
-
|
|
97
|
-
if (type === 'Z') {
|
|
98
|
-
return 0
|
|
99
|
-
}
|
|
100
|
-
var sign = type === '-' ? -1 : 1
|
|
101
|
-
var offset = parseInt(zone[2], 10) * 3600 +
|
|
102
|
-
parseInt(zone[3] || 0, 10) * 60 +
|
|
103
|
-
parseInt(zone[4] || 0, 10)
|
|
104
|
-
|
|
105
|
-
return offset * sign * 1000
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function bcYearToNegativeYear (year) {
|
|
109
|
-
// Account for numerical difference between representations of BC years
|
|
110
|
-
// See: https://github.com/bendrucker/postgres-date/issues/5
|
|
111
|
-
return -(year - 1)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function is0To99 (num) {
|
|
115
|
-
return num >= 0 && num < 100
|
|
116
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# postgres-date [](https://travis-ci.org/bendrucker/postgres-date) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Postgres date output parser
|
|
4
|
-
|
|
5
|
-
This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
|
|
6
|
-
|
|
7
|
-
If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
|
|
8
|
-
|
|
9
|
-
**Supported Postgres Versions:** `>= 9.6`
|
|
10
|
-
|
|
11
|
-
All prior versions of Postgres are likely compatible but not officially supported.
|
|
12
|
-
|
|
13
|
-
## Install
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
$ npm install --save postgres-date
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
var parse = require('postgres-date')
|
|
24
|
-
parse('2011-01-23 22:15:51Z')
|
|
25
|
-
// => 2011-01-23T22:15:51.000Z
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
#### `parse(isoDate)` -> `date`
|
|
31
|
-
|
|
32
|
-
##### isoDate
|
|
33
|
-
|
|
34
|
-
*Required*
|
|
35
|
-
Type: `string`
|
|
36
|
-
|
|
37
|
-
A date string from Postgres.
|
|
38
|
-
|
|
39
|
-
## Releases
|
|
40
|
-
|
|
41
|
-
The following semantic versioning increments will be used for changes:
|
|
42
|
-
|
|
43
|
-
* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
|
|
44
|
-
* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
|
|
45
|
-
* **Patch**: Any fix for parsing behavior
|
|
46
|
-
|
|
47
|
-
## License
|
|
48
|
-
|
|
49
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"maxdepth": 4,
|
|
3
|
-
"maxstatements": 200,
|
|
4
|
-
"maxcomplexity": 12,
|
|
5
|
-
"maxlen": 80,
|
|
6
|
-
"maxparams": 5,
|
|
7
|
-
|
|
8
|
-
"curly": true,
|
|
9
|
-
"eqeqeq": true,
|
|
10
|
-
"immed": true,
|
|
11
|
-
"latedef": false,
|
|
12
|
-
"noarg": true,
|
|
13
|
-
"noempty": true,
|
|
14
|
-
"nonew": true,
|
|
15
|
-
"undef": true,
|
|
16
|
-
"unused": "vars",
|
|
17
|
-
"trailing": true,
|
|
18
|
-
|
|
19
|
-
"quotmark": true,
|
|
20
|
-
"expr": true,
|
|
21
|
-
"asi": true,
|
|
22
|
-
|
|
23
|
-
"browser": false,
|
|
24
|
-
"esnext": true,
|
|
25
|
-
"devel": false,
|
|
26
|
-
"node": false,
|
|
27
|
-
"nonstandard": false,
|
|
28
|
-
|
|
29
|
-
"predef": ["require", "module", "__dirname", "__filename"]
|
|
30
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
Copyright (c) 2012-2014 Raynos.
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in
|
|
12
|
-
all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
THE SOFTWARE.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# xtend
|
|
2
|
-
|
|
3
|
-
[![browser support][3]][4]
|
|
4
|
-
|
|
5
|
-
[](http://github.com/badges/stability-badges)
|
|
6
|
-
|
|
7
|
-
Extend like a boss
|
|
8
|
-
|
|
9
|
-
xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
var extend = require("xtend")
|
|
15
|
-
|
|
16
|
-
// extend returns a new object. Does not mutate arguments
|
|
17
|
-
var combination = extend({
|
|
18
|
-
a: "a",
|
|
19
|
-
b: "c"
|
|
20
|
-
}, {
|
|
21
|
-
b: "b"
|
|
22
|
-
})
|
|
23
|
-
// { a: "a", b: "b" }
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Stability status: Locked
|
|
27
|
-
|
|
28
|
-
## MIT Licensed
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[3]: http://ci.testling.com/Raynos/xtend.png
|
|
32
|
-
[4]: http://ci.testling.com/Raynos/xtend
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
module.exports = extend
|
|
2
|
-
|
|
3
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
-
|
|
5
|
-
function extend() {
|
|
6
|
-
var target = {}
|
|
7
|
-
|
|
8
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
9
|
-
var source = arguments[i]
|
|
10
|
-
|
|
11
|
-
for (var key in source) {
|
|
12
|
-
if (hasOwnProperty.call(source, key)) {
|
|
13
|
-
target[key] = source[key]
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return target
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module.exports = extend
|
|
2
|
-
|
|
3
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
-
|
|
5
|
-
function extend(target) {
|
|
6
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
7
|
-
var source = arguments[i]
|
|
8
|
-
|
|
9
|
-
for (var key in source) {
|
|
10
|
-
if (hasOwnProperty.call(source, key)) {
|
|
11
|
-
target[key] = source[key]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return target
|
|
17
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xtend",
|
|
3
|
-
"version": "4.0.2",
|
|
4
|
-
"description": "extend like a boss",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"extend",
|
|
7
|
-
"merge",
|
|
8
|
-
"options",
|
|
9
|
-
"opts",
|
|
10
|
-
"object",
|
|
11
|
-
"array"
|
|
12
|
-
],
|
|
13
|
-
"author": "Raynos <raynos2@gmail.com>",
|
|
14
|
-
"repository": "git://github.com/Raynos/xtend.git",
|
|
15
|
-
"main": "immutable",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "node test"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {},
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"tape": "~1.1.0"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://github.com/Raynos/xtend",
|
|
24
|
-
"contributors": [
|
|
25
|
-
{
|
|
26
|
-
"name": "Jake Verbaten"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "Matt Esch"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/Raynos/xtend/issues",
|
|
34
|
-
"email": "raynos2@gmail.com"
|
|
35
|
-
},
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"testling": {
|
|
38
|
-
"files": "test.js",
|
|
39
|
-
"browsers": [
|
|
40
|
-
"ie/7..latest",
|
|
41
|
-
"firefox/16..latest",
|
|
42
|
-
"firefox/nightly",
|
|
43
|
-
"chrome/22..latest",
|
|
44
|
-
"chrome/canary",
|
|
45
|
-
"opera/12..latest",
|
|
46
|
-
"opera/next",
|
|
47
|
-
"safari/5.1..latest",
|
|
48
|
-
"ipad/6.0..latest",
|
|
49
|
-
"iphone/6.0..latest"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"engines": {
|
|
53
|
-
"node": ">=0.4"
|
|
54
|
-
}
|
|
55
|
-
}
|