decocms 2.281.2 → 2.281.3
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-BeQFaTo3.js → AlertCircle-BIxJ6Rg9.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-C-IANgnQ.js → ArrowNarrowLeft-CE40KV1j.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dh4A5tI_.js → CheckCircle-COmXIEn5.js} +1 -1
- package/dist/client/assets/{ChevronDown-D9aZn2Hi.js → ChevronDown-khwBdZmm.js} +1 -1
- package/dist/client/assets/{ChevronRight-CkL59Zuk.js → ChevronRight-D2N_TrCI.js} +1 -1
- package/dist/client/assets/{ChevronUp-C7hCnblE.js → ChevronUp-FT6mgGv1.js} +1 -1
- package/dist/client/assets/{Container-CSvdcipc.js → Container-YuIVovXE.js} +1 -1
- package/dist/client/assets/{LinkExternal01-sdvrsKlM.js → LinkExternal01-DDaNxuxy.js} +1 -1
- package/dist/client/assets/{Lock01-CneVnDQd.js → Lock01-CkeABLOV.js} +1 -1
- package/dist/client/assets/{Palette-Bo0ad1R6.js → Palette-CPsljGLa.js} +1 -1
- package/dist/client/assets/{Play-BhoAd8Uu.js → Play-BclVnOKX.js} +1 -1
- package/dist/client/assets/{Plus-79r9zazJ.js → Plus-E1YejiXY.js} +1 -1
- package/dist/client/assets/{SearchMd-00qF-7Ba.js → SearchMd-CZudW5Cy.js} +1 -1
- package/dist/client/assets/{Settings02-B6cIpcv6.js → Settings02-KYpYe9Yz.js} +1 -1
- package/dist/client/assets/{Star01-RArWROxo.js → Star01-DYPros2N.js} +1 -1
- package/dist/client/assets/{Sun-CaIYIMZ6.js → Sun-DMUBYzBg.js} +1 -1
- package/dist/client/assets/{Tool01-BK4G_l0X.js → Tool01-BjCpHyDA.js} +1 -1
- package/dist/client/assets/{Trash01-PNv-fbRK.js → Trash01-D8X_Y-CH.js} +1 -1
- package/dist/client/assets/{Upload01-BeVyQxbB.js → Upload01-DORqJLhK.js} +1 -1
- package/dist/client/assets/{User01-BirINwKI.js → User01-BjMDaxtZ.js} +1 -1
- package/dist/client/assets/{Users03-Dpk7x7z4.js → Users03-DvlzurXg.js} +1 -1
- package/dist/client/assets/{X-KSz9xyi5.js → X-DGMDFb7Q.js} +1 -1
- package/dist/client/assets/{XCircle-uU-3aWe3.js → XCircle-BBZJUk3l.js} +1 -1
- package/dist/client/assets/{Zap-DvQy6Azt.js → Zap-CANzvBCB.js} +1 -1
- package/dist/client/assets/{ZapSquare-Dk1UmO2a.js → ZapSquare-CvQHn6nj.js} +1 -1
- package/dist/client/assets/{accordion-w6xYXziw.js → accordion-jGpS5bKT.js} +1 -1
- package/dist/client/assets/{agent-icon-CMOX8nfk.js → agent-icon-CNfJJZjP.js} +1 -1
- package/dist/client/assets/{agents-list-CeEeRXns.js → agents-list-CeP_6hCn.js} +1 -1
- package/dist/client/assets/ai-providers-C3bM9mct.js +1 -0
- package/dist/client/assets/{alert-dialog-DtwmYIx7.js → alert-dialog-Cw0drrbJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-CMH1u4oJ.js → auth-catchall-uBOqh0Nn.js} +1 -1
- package/dist/client/assets/{automation-list-row-Sb9JaQY9.js → automation-list-row-DUeas6D2.js} +1 -1
- package/dist/client/assets/{automations-Dmw1cKQC.js → automations-B24Ufwx2.js} +1 -1
- package/dist/client/assets/{avatar-BSJnhSPL.js → avatar-C3f1_XSr.js} +1 -1
- package/dist/client/assets/{badge-BbahYJz-.js → badge-UZcqLVBi.js} +1 -1
- package/dist/client/assets/{brand-context-9yJi8LtT.js → brand-context-DACRWARm.js} +1 -1
- package/dist/client/assets/{card-BBjkVedQ.js → card-BeBnnJUH.js} +1 -1
- package/dist/client/assets/{chat-context-BVA22TkC.js → chat-context-DJov78wv.js} +1 -1
- package/dist/client/assets/{checkbox-BNYrEZke.js → checkbox-BkumBjmd.js} +1 -1
- package/dist/client/assets/{collection-detail-WDWjdfFo.js → collection-detail-Asuy-_1g.js} +1 -1
- package/dist/client/assets/{collection-display-button-C_SpzkVL.js → collection-display-button-BzGOL-dZ.js} +1 -1
- package/dist/client/assets/{collection-search-3gkmMFfK.js → collection-search-sgztHnmJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Nq245ZaG.js → collection-table-wrapper-BuB667AV.js} +1 -1
- package/dist/client/assets/{collection-tabs-DQAAB0E9.js → collection-tabs-BPMwPHXY.js} +1 -1
- package/dist/client/assets/{collections-CvC03WFa.js → collections-BkkHKP6f.js} +1 -1
- package/dist/client/assets/{command-COmac0HY.js → command-DwBmBE0l.js} +1 -1
- package/dist/client/assets/{connection-card-C-lcUJmx.js → connection-card-dMq-VEuP.js} +1 -1
- package/dist/client/assets/{connection-detail-DXUAuxOs.js → connection-detail-pWGU-NlL.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Beczk_I1.js → connection-form-helpers-wgUzsGEw.js} +1 -1
- package/dist/client/assets/{connections-jiDZ88zc.js → connections-DqsTtENU.js} +1 -1
- package/dist/client/assets/{constants-BXYBvBo8.js → constants-C8yptWZl.js} +1 -1
- package/dist/client/assets/{constants-K9p6sFeA.js → constants-SeBtlxYF.js} +1 -1
- package/dist/client/assets/{dialog-Cu_M3bSF.js → dialog-7MxBMRtv.js} +1 -1
- package/dist/client/assets/{drawer-C0zWk4g_.js → drawer-BoWGhEog.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DVLrmulo.js → dropdown-menu-Tf7X_k_G.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-4eAl2fmh.js → dynamic-plugin-layout-CAIBwlTg.js} +1 -1
- package/dist/client/assets/{empty-state-BKZHnGIj.js → empty-state-B0FZL4pN.js} +1 -1
- package/dist/client/assets/{empty-state-CUC0Gkix.js → empty-state-DTGu1Fdm.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CvyRIMCz.js → extract-connection-data-DbLaOTrL.js} +1 -1
- package/dist/client/assets/{features-XCvz9PLL.js → features-83PDyWcU.js} +1 -1
- package/dist/client/assets/{form-Ddm04alF.js → form-BmBsjzN0.js} +1 -1
- package/dist/client/assets/{general-DUSBEOfs.js → general-DP3Rps2a.js} +1 -1
- package/dist/client/assets/{index-BhIzdEY1.js → index-B6Fe448o.js} +2 -2
- package/dist/client/assets/{index-BPDAXzpD.js → index-BGFEANza.js} +1 -1
- package/dist/client/assets/{index-FLw-zxvs.js → index-BSSsgGZx.js} +1 -1
- package/dist/client/assets/{index-CU16qbkD.js → index-BkTKyHO8.js} +4 -4
- package/dist/client/assets/{index-BH8gPP0f.js → index-BpLvdlDN.js} +1 -1
- package/dist/client/assets/{index-BHskyDSR.js → index-CMwJl8aa.js} +1 -1
- package/dist/client/assets/{index-BdfTJahg.js → index-D2RLcUNw.js} +1 -1
- package/dist/client/assets/{index-Cg0hncqj.js → index-DHHYfLmC.js} +1 -1
- package/dist/client/assets/{index-BrtLQXUh.js → index-DWsq2B99.js} +1 -1
- package/dist/client/assets/{index-uAQGGxtu.js → index-aO0TlYPD.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BO26Xlha.js → infiniteQueryObserver-BxX_zFxP.js} +1 -1
- package/dist/client/assets/{input-Bz8fx1AG.js → input-B6wnc6E0.js} +1 -1
- package/dist/client/assets/{integration-icon-Byenx_4j.js → integration-icon-BkwkZhee.js} +1 -1
- package/dist/client/assets/{label-DaHwCWWB.js → label-5rqczNeH.js} +1 -1
- package/dist/client/assets/{layout-C8AFQnZg.js → layout-BEgtojgD.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-mykHJAKm.js → lean-canvas-recruit-modal-DZ-xsVMV.js} +1 -1
- package/dist/client/assets/{login-DwiMJDl5.js → login-BuRLGM9E.js} +1 -1
- package/dist/client/assets/{members-Cd_WsIS9.js → members-D2SzW3dK.js} +1 -1
- package/dist/client/assets/{monaco-editor-D27CWon0.js → monaco-editor-NoBsgNbn.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C-XRpFjl.js → monitoring-stats-row-CNa1Qyhs.js} +1 -1
- package/dist/client/assets/{oauth-callback-GuSY-vSr.js → oauth-callback-aI0Tid7G.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D3FgevI5.js → oauth-callback-ai-provider-EFLM2H1m.js} +1 -1
- package/dist/client/assets/{onboarding-PM_BE0uA.js → onboarding-Sr2nWjf7.js} +1 -1
- package/dist/client/assets/{org-layout-C251Cbcv.js → org-layout-BOB9EMoQ.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BwQLOazi.js → org-plugin-layout-DcKtHUs4.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DLXHjQeu.js → plugin-empty-state-BHovc0r0.js} +1 -1
- package/dist/client/assets/{plugin-header-BddmOg85.js → plugin-header-BX67VN7B.js} +1 -1
- package/dist/client/assets/{plugin-layout-RqfANRb_.js → plugin-layout-BuvVa8nF.js} +1 -1
- package/dist/client/assets/{popover-BEF8mI0w.js → popover-BU4_Dn9E.js} +1 -1
- package/dist/client/assets/{profile-DrdPa8Y7.js → profile-Y8Sfq9q9.js} +1 -1
- package/dist/client/assets/{project-app-view-XrA_5t6Q.js → project-app-view-CCANnsKQ.js} +1 -1
- package/dist/client/assets/registry-BbDGhxnL.js +2 -0
- package/dist/client/assets/{registry-layout-CwCyJT-v.js → registry-layout-Z-9iQ5Hy.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cxviv7yN.js → required-auth-layout-Dn_y9pYd.js} +1 -1
- package/dist/client/assets/{reset-password-DYbWh4Wq.js → reset-password-CyUYFfOn.js} +1 -1
- package/dist/client/assets/{scroll-area-_gjorSmM.js → scroll-area-C_emWPwP.js} +1 -1
- package/dist/client/assets/{search-input-Dflevf_r.js → search-input-oxb8hZUf.js} +1 -1
- package/dist/client/assets/{select-ruUaRI3f.js → select-CLAiPDa-.js} +1 -1
- package/dist/client/assets/{select-model-BgS5BYlp.js → select-model-BXWqo7I7.js} +1 -1
- package/dist/client/assets/{settings-layout-C9QCDWL8.js → settings-layout-DealGEF-.js} +1 -1
- package/dist/client/assets/{shell-layout-Lnkya_bN.js → shell-layout-BLDfm85U.js} +1 -1
- package/dist/client/assets/{skeleton-CvZ1yhmk.js → skeleton-CbLrdMio.js} +1 -1
- package/dist/client/assets/{sso-DVCm0NAv.js → sso-Ccm_fQKb.js} +1 -1
- package/dist/client/assets/{store-BAtOk8g6.js → store-DbLdk8zH.js} +1 -1
- package/dist/client/assets/store-registry-COcXxk0L.js +2 -0
- package/dist/client/assets/{switch-C4VRxkon.js → switch-CBH6sGXt.js} +1 -1
- package/dist/client/assets/{table-C1xMho2l.js → table-fKK1m7_o.js} +1 -1
- package/dist/client/assets/{tabs-MUC8gGmo.js → tabs-D-EbmTZr.js} +1 -1
- package/dist/client/assets/{task-status-DBTk3ApD.js → task-status-Dpnxg-vx.js} +1 -1
- package/dist/client/assets/{textarea-Dh5aI-9Q.js → textarea-D4ABUBrM.js} +1 -1
- package/dist/client/assets/{toggle-group-qqPb8p7Z.js → toggle-group-CrTmZ_AV.js} +1 -1
- package/dist/client/assets/{tools-list-5INqbH2J.js → tools-list-CqkfReof.js} +1 -1
- package/dist/client/assets/{types-Bp-YI7R5.js → types-GM8sGKcZ.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BXn7VXga.js → use-ai-providers-Bzstkld8.js} +1 -1
- package/dist/client/assets/{use-collections-Dg7sh01O.js → use-collections-CqFt8Ao1.js} +1 -1
- package/dist/client/assets/{use-connection-DhM_x-jA.js → use-connection-aoJhyCQY.js} +1 -1
- package/dist/client/assets/{use-copy-BuEIWb6s.js → use-copy-M68f6GGE.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-KKiF-MXD.js → use-create-virtual-mcp-HCly1WGo.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BSRQhWTI.js → use-decopilot-events-Dyu5zP68.js} +1 -1
- package/dist/client/assets/{use-delete-connection-EjeBh_jx.js → use-delete-connection-D1fyoOVF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BvRRlmDj.js → use-infinite-scroll-DxLzMG99.js} +1 -1
- package/dist/client/assets/{use-list-state-DJ8S20f9.js → use-list-state-0zsLkDoY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C0kKBiKr.js → use-mcp-tools-B8DbBP0f.js} +1 -1
- package/dist/client/assets/{use-members-D4VPX3yK.js → use-members-BwzOWwXP.js} +1 -1
- package/dist/client/assets/{use-mobile-BXRLCdzR.js → use-mobile-BpFBqyL_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C1QNfHMd.js → use-navigate-to-agent-CDDwaLRP.js} +1 -1
- package/dist/client/assets/{use-org-sso-C1E2S5f1.js → use-org-sso-tVtj-Uzh.js} +1 -1
- package/dist/client/assets/{use-organization-settings-NQDr_YDe.js → use-organization-settings-CnHZf6OA.js} +1 -1
- package/dist/client/assets/{use-registry-connections-2buwPIEr.js → use-registry-connections-BGlGR_mo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C5rJSnr7.js → use-status-sounds-DkqPpB9d.js} +1 -1
- package/dist/client/assets/{use-tasks-DoJvFu21.js → use-tasks-5lCHGF_c.js} +1 -1
- package/dist/client/assets/{use-view-mode-eHr1pnSD.js → use-view-mode-DVj5tWV_.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DPQanfrd.js → use-virtual-mcp-By_96asb.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CTYKQqwI.js +1 -0
- package/dist/client/assets/{user-D-0Dg4hb.js → user-DHkNN6iL.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C9JdTAIx.js → view-mode-toggle-Btma8l_9.js} +1 -1
- package/dist/client/assets/workflow-detail-DM7Beg9p.js +1 -0
- package/dist/client/assets/{workflow-Bo7CKW-_.js → workflow-l_Z97b0k.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/server/server.js +2 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-_ruFOoFf.js +0 -1
- package/dist/client/assets/registry-hvW8DAlR.js +0 -2
- package/dist/client/assets/store-registry-DyRkwg3g.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Cozeocmy.js +0 -1
- package/dist/client/assets/workflow-detail-cv-DGPKy.js +0 -1
- package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
- package/dist/server/node_modules/ansi-regex/index.js +0 -14
- package/dist/server/node_modules/ansi-regex/package.json +0 -61
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- package/dist/server/node_modules/figures/index.d.ts +0 -279
- package/dist/server/node_modules/figures/index.js +0 -292
- package/dist/server/node_modules/figures/license +0 -9
- package/dist/server/node_modules/figures/package.json +0 -49
- package/dist/server/node_modules/figures/readme.md +0 -337
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/license +0 -9
- package/dist/server/node_modules/onetime/package.json +0 -43
- package/dist/server/node_modules/onetime/readme.md +0 -94
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- 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/{ansi-regex → get-east-asian-width}/license +0 -0
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
exports.parse = function (source, transform) {
|
|
4
|
-
return new ArrayParser(source, transform).parse()
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
class ArrayParser {
|
|
8
|
-
constructor (source, transform) {
|
|
9
|
-
this.source = source
|
|
10
|
-
this.transform = transform || identity
|
|
11
|
-
this.position = 0
|
|
12
|
-
this.entries = []
|
|
13
|
-
this.recorded = []
|
|
14
|
-
this.dimension = 0
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
isEof () {
|
|
18
|
-
return this.position >= this.source.length
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
nextCharacter () {
|
|
22
|
-
var character = this.source[this.position++]
|
|
23
|
-
if (character === '\\') {
|
|
24
|
-
return {
|
|
25
|
-
value: this.source[this.position++],
|
|
26
|
-
escaped: true
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
value: character,
|
|
31
|
-
escaped: false
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
record (character) {
|
|
36
|
-
this.recorded.push(character)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
newEntry (includeEmpty) {
|
|
40
|
-
var entry
|
|
41
|
-
if (this.recorded.length > 0 || includeEmpty) {
|
|
42
|
-
entry = this.recorded.join('')
|
|
43
|
-
if (entry === 'NULL' && !includeEmpty) {
|
|
44
|
-
entry = null
|
|
45
|
-
}
|
|
46
|
-
if (entry !== null) entry = this.transform(entry)
|
|
47
|
-
this.entries.push(entry)
|
|
48
|
-
this.recorded = []
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
consumeDimensions () {
|
|
53
|
-
if (this.source[0] === '[') {
|
|
54
|
-
while (!this.isEof()) {
|
|
55
|
-
var char = this.nextCharacter()
|
|
56
|
-
if (char.value === '=') break
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
parse (nested) {
|
|
62
|
-
var character, parser, quote
|
|
63
|
-
this.consumeDimensions()
|
|
64
|
-
while (!this.isEof()) {
|
|
65
|
-
character = this.nextCharacter()
|
|
66
|
-
if (character.value === '{' && !quote) {
|
|
67
|
-
this.dimension++
|
|
68
|
-
if (this.dimension > 1) {
|
|
69
|
-
parser = new ArrayParser(this.source.substr(this.position - 1), this.transform)
|
|
70
|
-
this.entries.push(parser.parse(true))
|
|
71
|
-
this.position += parser.position - 2
|
|
72
|
-
}
|
|
73
|
-
} else if (character.value === '}' && !quote) {
|
|
74
|
-
this.dimension--
|
|
75
|
-
if (!this.dimension) {
|
|
76
|
-
this.newEntry()
|
|
77
|
-
if (nested) return this.entries
|
|
78
|
-
}
|
|
79
|
-
} else if (character.value === '"' && !character.escaped) {
|
|
80
|
-
if (quote) this.newEntry(true)
|
|
81
|
-
quote = !quote
|
|
82
|
-
} else if (character.value === ',' && !quote) {
|
|
83
|
-
this.newEntry()
|
|
84
|
-
} else {
|
|
85
|
-
this.record(character.value)
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (this.dimension !== 0) {
|
|
89
|
-
throw new Error('array dimension not balanced')
|
|
90
|
-
}
|
|
91
|
-
return this.entries
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function identity (value) {
|
|
96
|
-
return value
|
|
97
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-array",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "2.0.0",
|
|
5
|
-
"description": "Parse postgres array columns",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-array",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=4"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"types": "index.d.ts",
|
|
20
|
-
"keywords": [
|
|
21
|
-
"postgres",
|
|
22
|
-
"array",
|
|
23
|
-
"parser"
|
|
24
|
-
],
|
|
25
|
-
"dependencies": {},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"standard": "^12.0.1",
|
|
28
|
-
"tape": "^4.0.0"
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"index.js",
|
|
32
|
-
"index.d.ts",
|
|
33
|
-
"readme.md"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# postgres-array [](https://travis-ci.org/bendrucker/postgres-array)
|
|
2
|
-
|
|
3
|
-
> Parse postgres array columns
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-array
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var postgresArray = require('postgres-array')
|
|
17
|
-
|
|
18
|
-
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
|
|
19
|
-
//=> [1, 2, 3]
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## API
|
|
23
|
-
|
|
24
|
-
#### `parse(input, [transform])` -> `array`
|
|
25
|
-
|
|
26
|
-
##### input
|
|
27
|
-
|
|
28
|
-
*Required*
|
|
29
|
-
Type: `string`
|
|
30
|
-
|
|
31
|
-
A Postgres array string.
|
|
32
|
-
|
|
33
|
-
##### transform
|
|
34
|
-
|
|
35
|
-
Type: `function`
|
|
36
|
-
Default: `identity`
|
|
37
|
-
|
|
38
|
-
A function that transforms non-null values inserted into the array.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## License
|
|
42
|
-
|
|
43
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var bufferFrom = Buffer.from || Buffer
|
|
4
|
-
|
|
5
|
-
module.exports = function parseBytea (input) {
|
|
6
|
-
if (/^\\x/.test(input)) {
|
|
7
|
-
// new 'hex' style response (pg >9.0)
|
|
8
|
-
return bufferFrom(input.substr(2), 'hex')
|
|
9
|
-
}
|
|
10
|
-
var output = ''
|
|
11
|
-
var i = 0
|
|
12
|
-
while (i < input.length) {
|
|
13
|
-
if (input[i] !== '\\') {
|
|
14
|
-
output += input[i]
|
|
15
|
-
++i
|
|
16
|
-
} else {
|
|
17
|
-
if (/[0-7]{3}/.test(input.substr(i + 1, 3))) {
|
|
18
|
-
output += String.fromCharCode(parseInt(input.substr(i + 1, 3), 8))
|
|
19
|
-
i += 4
|
|
20
|
-
} else {
|
|
21
|
-
var backslashes = 1
|
|
22
|
-
while (i + backslashes < input.length && input[i + backslashes] === '\\') {
|
|
23
|
-
backslashes++
|
|
24
|
-
}
|
|
25
|
-
for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
|
|
26
|
-
output += '\\'
|
|
27
|
-
}
|
|
28
|
-
i += Math.floor(backslashes / 2) * 2
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return bufferFrom(output, 'binary')
|
|
33
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-bytea",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.0.1",
|
|
5
|
-
"description": "Postgres bytea parser",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-bytea",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=0.10.0"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"bytea",
|
|
21
|
-
"postgres",
|
|
22
|
-
"binary",
|
|
23
|
-
"parser"
|
|
24
|
-
],
|
|
25
|
-
"dependencies": {},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"tape": "^4.0.0",
|
|
28
|
-
"standard": "^4.0.0"
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"index.js",
|
|
32
|
-
"readme.md"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# postgres-bytea [](https://travis-ci.org/bendrucker/postgres-bytea)
|
|
2
|
-
|
|
3
|
-
> Postgres bytea parser
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-bytea
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var bytea = require('postgres-bytea');
|
|
17
|
-
bytea('\\000\\100\\200')
|
|
18
|
-
//=> buffer
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## API
|
|
22
|
-
|
|
23
|
-
#### `bytea(input)` -> `buffer`
|
|
24
|
-
|
|
25
|
-
##### input
|
|
26
|
-
|
|
27
|
-
*Required*
|
|
28
|
-
Type: `string`
|
|
29
|
-
|
|
30
|
-
A Postgres bytea binary string.
|
|
31
|
-
|
|
32
|
-
## License
|
|
33
|
-
|
|
34
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare namespace PostgresInterval {
|
|
2
|
-
export interface IPostgresInterval {
|
|
3
|
-
years?: number;
|
|
4
|
-
months?: number;
|
|
5
|
-
days?: number;
|
|
6
|
-
hours?: number;
|
|
7
|
-
minutes?: number;
|
|
8
|
-
seconds?: number;
|
|
9
|
-
milliseconds?: number;
|
|
10
|
-
|
|
11
|
-
toPostgres(): string;
|
|
12
|
-
|
|
13
|
-
toISO(): string;
|
|
14
|
-
toISOString(): string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare function PostgresInterval(raw: string): PostgresInterval.IPostgresInterval;
|
|
19
|
-
|
|
20
|
-
export = PostgresInterval;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var extend = require('xtend/mutable')
|
|
4
|
-
|
|
5
|
-
module.exports = PostgresInterval
|
|
6
|
-
|
|
7
|
-
function PostgresInterval (raw) {
|
|
8
|
-
if (!(this instanceof PostgresInterval)) {
|
|
9
|
-
return new PostgresInterval(raw)
|
|
10
|
-
}
|
|
11
|
-
extend(this, parse(raw))
|
|
12
|
-
}
|
|
13
|
-
var properties = ['seconds', 'minutes', 'hours', 'days', 'months', 'years']
|
|
14
|
-
PostgresInterval.prototype.toPostgres = function () {
|
|
15
|
-
var filtered = properties.filter(this.hasOwnProperty, this)
|
|
16
|
-
|
|
17
|
-
// In addition to `properties`, we need to account for fractions of seconds.
|
|
18
|
-
if (this.milliseconds && filtered.indexOf('seconds') < 0) {
|
|
19
|
-
filtered.push('seconds')
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (filtered.length === 0) return '0'
|
|
23
|
-
return filtered
|
|
24
|
-
.map(function (property) {
|
|
25
|
-
var value = this[property] || 0
|
|
26
|
-
|
|
27
|
-
// Account for fractional part of seconds,
|
|
28
|
-
// remove trailing zeroes.
|
|
29
|
-
if (property === 'seconds' && this.milliseconds) {
|
|
30
|
-
value = (value + this.milliseconds / 1000).toFixed(6).replace(/\.?0+$/, '')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return value + ' ' + property
|
|
34
|
-
}, this)
|
|
35
|
-
.join(' ')
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var propertiesISOEquivalent = {
|
|
39
|
-
years: 'Y',
|
|
40
|
-
months: 'M',
|
|
41
|
-
days: 'D',
|
|
42
|
-
hours: 'H',
|
|
43
|
-
minutes: 'M',
|
|
44
|
-
seconds: 'S'
|
|
45
|
-
}
|
|
46
|
-
var dateProperties = ['years', 'months', 'days']
|
|
47
|
-
var timeProperties = ['hours', 'minutes', 'seconds']
|
|
48
|
-
// according to ISO 8601
|
|
49
|
-
PostgresInterval.prototype.toISOString = PostgresInterval.prototype.toISO = function () {
|
|
50
|
-
var datePart = dateProperties
|
|
51
|
-
.map(buildProperty, this)
|
|
52
|
-
.join('')
|
|
53
|
-
|
|
54
|
-
var timePart = timeProperties
|
|
55
|
-
.map(buildProperty, this)
|
|
56
|
-
.join('')
|
|
57
|
-
|
|
58
|
-
return 'P' + datePart + 'T' + timePart
|
|
59
|
-
|
|
60
|
-
function buildProperty (property) {
|
|
61
|
-
var value = this[property] || 0
|
|
62
|
-
|
|
63
|
-
// Account for fractional part of seconds,
|
|
64
|
-
// remove trailing zeroes.
|
|
65
|
-
if (property === 'seconds' && this.milliseconds) {
|
|
66
|
-
value = (value + this.milliseconds / 1000).toFixed(6).replace(/0+$/, '')
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return value + propertiesISOEquivalent[property]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var NUMBER = '([+-]?\\d+)'
|
|
74
|
-
var YEAR = NUMBER + '\\s+years?'
|
|
75
|
-
var MONTH = NUMBER + '\\s+mons?'
|
|
76
|
-
var DAY = NUMBER + '\\s+days?'
|
|
77
|
-
var TIME = '([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?'
|
|
78
|
-
var INTERVAL = new RegExp([YEAR, MONTH, DAY, TIME].map(function (regexString) {
|
|
79
|
-
return '(' + regexString + ')?'
|
|
80
|
-
})
|
|
81
|
-
.join('\\s*'))
|
|
82
|
-
|
|
83
|
-
// Positions of values in regex match
|
|
84
|
-
var positions = {
|
|
85
|
-
years: 2,
|
|
86
|
-
months: 4,
|
|
87
|
-
days: 6,
|
|
88
|
-
hours: 9,
|
|
89
|
-
minutes: 10,
|
|
90
|
-
seconds: 11,
|
|
91
|
-
milliseconds: 12
|
|
92
|
-
}
|
|
93
|
-
// We can use negative time
|
|
94
|
-
var negatives = ['hours', 'minutes', 'seconds', 'milliseconds']
|
|
95
|
-
|
|
96
|
-
function parseMilliseconds (fraction) {
|
|
97
|
-
// add omitted zeroes
|
|
98
|
-
var microseconds = fraction + '000000'.slice(fraction.length)
|
|
99
|
-
return parseInt(microseconds, 10) / 1000
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function parse (interval) {
|
|
103
|
-
if (!interval) return {}
|
|
104
|
-
var matches = INTERVAL.exec(interval)
|
|
105
|
-
var isNegative = matches[8] === '-'
|
|
106
|
-
return Object.keys(positions)
|
|
107
|
-
.reduce(function (parsed, property) {
|
|
108
|
-
var position = positions[property]
|
|
109
|
-
var value = matches[position]
|
|
110
|
-
// no empty string
|
|
111
|
-
if (!value) return parsed
|
|
112
|
-
// milliseconds are actually microseconds (up to 6 digits)
|
|
113
|
-
// with omitted trailing zeroes.
|
|
114
|
-
value = property === 'milliseconds'
|
|
115
|
-
? parseMilliseconds(value)
|
|
116
|
-
: parseInt(value, 10)
|
|
117
|
-
// no zeros
|
|
118
|
-
if (!value) return parsed
|
|
119
|
-
if (isNegative && ~negatives.indexOf(property)) {
|
|
120
|
-
value *= -1
|
|
121
|
-
}
|
|
122
|
-
parsed[property] = value
|
|
123
|
-
return parsed
|
|
124
|
-
}, {})
|
|
125
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-interval",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.2.0",
|
|
5
|
-
"description": "Parse Postgres interval columns",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-interval",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=0.10.0"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"postgres",
|
|
21
|
-
"interval",
|
|
22
|
-
"parser"
|
|
23
|
-
],
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"xtend": "^4.0.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"tape": "^4.0.0",
|
|
29
|
-
"standard": "^12.0.1"
|
|
30
|
-
},
|
|
31
|
-
"files": [
|
|
32
|
-
"index.js",
|
|
33
|
-
"index.d.ts",
|
|
34
|
-
"readme.md"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# postgres-interval [](https://travis-ci.org/bendrucker/postgres-interval) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Parse Postgres interval columns
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-interval
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var parse = require('postgres-interval')
|
|
17
|
-
var interval = parse('01:02:03')
|
|
18
|
-
//=> {hours: 1, minutes: 2, seconds: 3}
|
|
19
|
-
interval.toPostgres()
|
|
20
|
-
// 3 seconds 2 minutes 1 hours
|
|
21
|
-
interval.toISO()
|
|
22
|
-
// P0Y0M0DT1H2M3S
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
|
|
27
|
-
#### `parse(pgInterval)` -> `interval`
|
|
28
|
-
|
|
29
|
-
##### pgInterval
|
|
30
|
-
|
|
31
|
-
*Required*
|
|
32
|
-
Type: `string`
|
|
33
|
-
|
|
34
|
-
A Postgres interval string.
|
|
35
|
-
|
|
36
|
-
#### `interval.toPostgres()` -> `string`
|
|
37
|
-
|
|
38
|
-
Returns an interval string. This allows the interval object to be passed into prepared statements.
|
|
39
|
-
|
|
40
|
-
#### `interval.toISOString()` -> `string`
|
|
41
|
-
|
|
42
|
-
Returns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string.
|
|
43
|
-
|
|
44
|
-
Also available as `interval.toISO()` for backwards compatibility.
|
|
45
|
-
|
|
46
|
-
## License
|
|
47
|
-
|
|
48
|
-
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
|
-
}
|