decocms 2.282.0 → 2.282.2
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-BFBGzWbU.js → AlertCircle-i753hIUr.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Dxp25apt.js → ArrowNarrowLeft-DyneV8jh.js} +1 -1
- package/dist/client/assets/{CheckCircle-B3ma3JwC.js → CheckCircle-BDNIuV_g.js} +1 -1
- package/dist/client/assets/{ChevronDown-D9BYLhkI.js → ChevronDown-vRDN8zoj.js} +1 -1
- package/dist/client/assets/{ChevronRight-1PBbNJm4.js → ChevronRight-P2x5wJJp.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cfr7nwaY.js → ChevronUp-Dg737K7F.js} +1 -1
- package/dist/client/assets/{Container-DGdMzimP.js → Container-DsC3rtEa.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D1eXv7CP.js → LinkExternal01-Cw9xV77y.js} +1 -1
- package/dist/client/assets/{Lock01-Cd-pjSnV.js → Lock01-B4C5ICSW.js} +1 -1
- package/dist/client/assets/{Palette-CpczgKVU.js → Palette-CxbsG8jb.js} +1 -1
- package/dist/client/assets/{Play-B7_Vv1Kl.js → Play-F_qMNNeX.js} +1 -1
- package/dist/client/assets/{Plus-DCerBxVp.js → Plus-BM77-3yZ.js} +1 -1
- package/dist/client/assets/{SearchMd-BBYvMMEY.js → SearchMd-BQ703EvX.js} +1 -1
- package/dist/client/assets/{Settings02-CTxpmjIL.js → Settings02-CZ-RzoRL.js} +1 -1
- package/dist/client/assets/{Star01-DtLRJZfG.js → Star01-D8uixfU7.js} +1 -1
- package/dist/client/assets/{Sun-CjaKdP_w.js → Sun-Dzvpwc78.js} +1 -1
- package/dist/client/assets/{Tool01-BZX3PrpA.js → Tool01-DV6LLMyv.js} +1 -1
- package/dist/client/assets/{Trash01-BpPWbnOV.js → Trash01-DeQUJecj.js} +1 -1
- package/dist/client/assets/{Upload01-AtFwS7_4.js → Upload01-C7vhn2fS.js} +1 -1
- package/dist/client/assets/{User01-CbhU6vag.js → User01-CFTuPOYw.js} +1 -1
- package/dist/client/assets/{Users03-C-T3UrlF.js → Users03-AWMGi4Xo.js} +1 -1
- package/dist/client/assets/{X-BNbilc9H.js → X-B19qdsWt.js} +1 -1
- package/dist/client/assets/{XCircle-DYNSiiUr.js → XCircle-Cu_m9KsD.js} +1 -1
- package/dist/client/assets/{Zap-B7kVcQ1u.js → Zap-kmaaq3eG.js} +1 -1
- package/dist/client/assets/{ZapSquare-CdonE3dW.js → ZapSquare-Bzu6OwXc.js} +1 -1
- package/dist/client/assets/{accordion-FpUQMiXV.js → accordion-Bcqp7xWC.js} +1 -1
- package/dist/client/assets/{agent-icon-CxiN-PMV.js → agent-icon-FJlZxNBT.js} +1 -1
- package/dist/client/assets/{agents-list-C7OZID3w.js → agents-list-BzpReqDX.js} +1 -1
- package/dist/client/assets/ai-providers-BxK1xIaH.js +1 -0
- package/dist/client/assets/{alert-dialog-C9VS4Tm4.js → alert-dialog-BJ0hwa2l.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bns0gw3s.js → auth-catchall-CGjZNqai.js} +1 -1
- package/dist/client/assets/{automation-list-row-BcStn6T3.js → automation-list-row-GPd6_cjS.js} +1 -1
- package/dist/client/assets/{automations-CgsrNnd6.js → automations-CXyF6Wr3.js} +1 -1
- package/dist/client/assets/{avatar-BtIUeZzk.js → avatar-BeRTzZHX.js} +1 -1
- package/dist/client/assets/{badge-CiNJMavT.js → badge-OuHAk68F.js} +1 -1
- package/dist/client/assets/{brand-context-B9-s9Xpu.js → brand-context-CAuLcp_u.js} +1 -1
- package/dist/client/assets/{card-BLvmImYq.js → card-64W2yOQo.js} +1 -1
- package/dist/client/assets/{chat-context-Bx9m79lL.js → chat-context-BQqGEJhg.js} +1 -1
- package/dist/client/assets/{checkbox-CRVR_ot1.js → checkbox-Cx3RPx8a.js} +1 -1
- package/dist/client/assets/{collection-detail-D4nuXZXV.js → collection-detail-ztCad3qg.js} +1 -1
- package/dist/client/assets/{collection-display-button-BuSwjRsM.js → collection-display-button-CLTxoM3d.js} +1 -1
- package/dist/client/assets/{collection-search-DoAFbLqs.js → collection-search-CcNzJi6D.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DRpY-ndk.js → collection-table-wrapper-BzqYYOAP.js} +1 -1
- package/dist/client/assets/{collection-tabs-0TZKhC7x.js → collection-tabs-DD0Qt8TU.js} +1 -1
- package/dist/client/assets/{collections-DAiJZOiv.js → collections-BpO3SJDN.js} +1 -1
- package/dist/client/assets/{command-BD_eOk-8.js → command-rQqgIdbd.js} +1 -1
- package/dist/client/assets/{connection-card-C4AfupKS.js → connection-card-DKlghzN6.js} +1 -1
- package/dist/client/assets/{connection-detail-BOwwMlXo.js → connection-detail-nptsFfMw.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-QCTlKFgF.js → connection-form-helpers-ByqGzB7q.js} +1 -1
- package/dist/client/assets/{connections-BjoOQtn5.js → connections-CAWxy7P8.js} +1 -1
- package/dist/client/assets/{constants-CA_0oD0v.js → constants-CN6Il9QM.js} +1 -1
- package/dist/client/assets/{constants-DNupv1Il.js → constants-DBlKftLg.js} +1 -1
- package/dist/client/assets/{dialog-Do5tt2AM.js → dialog-BG20y4ti.js} +1 -1
- package/dist/client/assets/{drawer-CBGNhyg_.js → drawer-Gt9dvwHd.js} +1 -1
- package/dist/client/assets/{dropdown-menu-YCgfVPDE.js → dropdown-menu-D_gbsFgj.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DyQRK4xn.js → dynamic-plugin-layout-DUhVE3zr.js} +1 -1
- package/dist/client/assets/{empty-state-CQYaNwoK.js → empty-state-B4p5HAyS.js} +1 -1
- package/dist/client/assets/{empty-state-v8eFhsr-.js → empty-state-YlXuIlyl.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BUe7uD61.js → extract-connection-data-BkUkPjk1.js} +1 -1
- package/dist/client/assets/{features-DCMNUsWH.js → features-ZB9YPD6T.js} +1 -1
- package/dist/client/assets/{form-CxxwnlP0.js → form-DVLM8o8l.js} +1 -1
- package/dist/client/assets/{general-oBb9oBV3.js → general-BSRTvN4z.js} +1 -1
- package/dist/client/assets/{index-DRqrJul_.js → index-B3NgIo6R.js} +1 -1
- package/dist/client/assets/{index-BzPv7Dhu.js → index-B9tg__2J.js} +1 -1
- package/dist/client/assets/{index-B66cimzy.js → index-BR4Tv9I4.js} +2 -2
- package/dist/client/assets/{index-DCHDqkUk.js → index-BZ-_pOxX.js} +1 -1
- package/dist/client/assets/{index-CT3_Tk81.js → index-B_9MykSP.js} +1 -1
- package/dist/client/assets/{index-3qazylEt.js → index-BejE17RG.js} +1 -1
- package/dist/client/assets/{index-2HrmMP-L.js → index-Bpfr1gkL.js} +5 -5
- package/dist/client/assets/{index-B_SuozHK.js → index-BxuUqWWJ.js} +1 -1
- package/dist/client/assets/{index-DBUcZB2f.js → index-CvjwIR23.js} +1 -1
- package/dist/client/assets/{index-CSgeCYxL.js → index-DWgdGM2y.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BMqyJ-TR.js → infiniteQueryObserver-DjdUCzEf.js} +1 -1
- package/dist/client/assets/{input-n-tkcD47.js → input-C6wlfqbz.js} +1 -1
- package/dist/client/assets/{integration-icon-DMDIiedF.js → integration-icon-EHHTVGeJ.js} +1 -1
- package/dist/client/assets/{label-BtcNLrPM.js → label-CMuBjs0l.js} +1 -1
- package/dist/client/assets/{layout-Db9ocR8l.js → layout-BvulCiLM.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-D_J2ca55.js → lean-canvas-recruit-modal-D54L-ueX.js} +1 -1
- package/dist/client/assets/{login-44n9MoF6.js → login-VLvQus3r.js} +1 -1
- package/dist/client/assets/{members-DVv4q0sB.js → members-Tmd-6nti.js} +1 -1
- package/dist/client/assets/{monaco-editor-BArWst-4.js → monaco-editor-BIIx6Osu.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DwT9f7ma.js → monitoring-stats-row-DfQoN4dU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ZWFD-c9z.js → oauth-callback-COaviXzZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DvgS7JVs.js → oauth-callback-ai-provider-CeDoTmGO.js} +1 -1
- package/dist/client/assets/{onboarding-Bx7D7eeN.js → onboarding-DMIifXKD.js} +1 -1
- package/dist/client/assets/{org-layout-C1WQZ86m.js → org-layout-CkCSATkV.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-aVinWGGP.js → org-plugin-layout-lYj2r1Ln.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-7geUhVaf.js → plugin-empty-state-BCI2akiJ.js} +1 -1
- package/dist/client/assets/{plugin-header-C1Y6Yac2.js → plugin-header--LbVNTsl.js} +1 -1
- package/dist/client/assets/{plugin-layout-ClqwcLfX.js → plugin-layout-Dhbi8qfO.js} +1 -1
- package/dist/client/assets/{popover-XBsYrCQB.js → popover-DL7_3A88.js} +1 -1
- package/dist/client/assets/{profile-DLXMWz7I.js → profile-CYehHV8y.js} +1 -1
- package/dist/client/assets/{project-app-view-BWaWLQ1-.js → project-app-view-B680Vk1Z.js} +1 -1
- package/dist/client/assets/registry-D5sX2gio.js +2 -0
- package/dist/client/assets/{registry-layout-BOqFx2Hr.js → registry-layout-CEoOd_Wq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Q3YyHmAw.js → required-auth-layout-9J8EILU3.js} +1 -1
- package/dist/client/assets/{reset-password-Ben4hB-3.js → reset-password-CzSWUiKA.js} +1 -1
- package/dist/client/assets/{scroll-area-BdtE1vuO.js → scroll-area-CrjX3IME.js} +1 -1
- package/dist/client/assets/{search-input-CmCwxjTX.js → search-input-DmblMA4A.js} +1 -1
- package/dist/client/assets/{select-MIqG5BTZ.js → select-BQ3zutkO.js} +1 -1
- package/dist/client/assets/{select-model-Bg7ZIMS5.js → select-model-Cbrp8hD-.js} +1 -1
- package/dist/client/assets/{settings-layout-DO-ULKWI.js → settings-layout-BxZT4ePy.js} +1 -1
- package/dist/client/assets/{shell-layout-xKLRos3t.js → shell-layout-DrONQ6vr.js} +1 -1
- package/dist/client/assets/{skeleton-BZTVNwC4.js → skeleton-CmnvTWJg.js} +1 -1
- package/dist/client/assets/{sso-BT50WbJk.js → sso-Csn8t5YG.js} +1 -1
- package/dist/client/assets/{store-CHDNsIdi.js → store-B5WMfqFO.js} +1 -1
- package/dist/client/assets/store-registry-MW9ZrAsP.js +2 -0
- package/dist/client/assets/{switch-BI6s_uRk.js → switch-CM_vPUzz.js} +1 -1
- package/dist/client/assets/{table-WyfrKpOs.js → table-S8IBqobR.js} +1 -1
- package/dist/client/assets/{tabs-BK1mEgGf.js → tabs-B14EKG0Q.js} +1 -1
- package/dist/client/assets/{task-status-GcEPbgk8.js → task-status-CoVKDaYE.js} +1 -1
- package/dist/client/assets/{textarea-DVawcto0.js → textarea-Bxm5HSBV.js} +1 -1
- package/dist/client/assets/{toggle-group-wuBBOmnu.js → toggle-group-xjN2RMip.js} +1 -1
- package/dist/client/assets/{tools-list-BgoIxxcE.js → tools-list-DqbhkVqY.js} +1 -1
- package/dist/client/assets/{types-B9bcGYd-.js → types-DA2UHbyR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CvVWYaQ8.js → use-ai-providers-LqR26vuo.js} +1 -1
- package/dist/client/assets/{use-collections-daCmI1gf.js → use-collections-Bo1B5pfj.js} +1 -1
- package/dist/client/assets/{use-connection-DX24Nzyd.js → use-connection-NZXO3HH3.js} +1 -1
- package/dist/client/assets/{use-copy-DnDrxF7p.js → use-copy-BRihc-l2.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BXWOJHzA.js → use-create-virtual-mcp-DgwS04N8.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CqJFbk0C.js → use-decopilot-events-cbOJk-u-.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BypWLqop.js → use-delete-connection-_oGK4bpj.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B2G1dNh-.js → use-infinite-scroll-BE8Qm8G-.js} +1 -1
- package/dist/client/assets/{use-list-state-CUoBuePJ.js → use-list-state-CeUQEO5I.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B7YQiceT.js → use-mcp-tools-DqNbK4tC.js} +1 -1
- package/dist/client/assets/{use-members-CT_s4J5I.js → use-members-DH_gyd2k.js} +1 -1
- package/dist/client/assets/{use-mobile-CZZS48R8.js → use-mobile-UG3f-VUD.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DDSqcJhW.js → use-navigate-to-agent-CDgOtsNz.js} +1 -1
- package/dist/client/assets/{use-org-sso-CtXg6XR8.js → use-org-sso-eSfysoE_.js} +1 -1
- package/dist/client/assets/{use-organization-settings-G7C4gwdM.js → use-organization-settings-bbuIudaf.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CpcHatqk.js → use-registry-connections-DN_uk-6v.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Bo8AWgrW.js → use-status-sounds-e0qVVZe8.js} +1 -1
- package/dist/client/assets/{use-tasks-DBgVSqQb.js → use-tasks-DkVJbPPF.js} +1 -1
- package/dist/client/assets/{use-view-mode-BtECwb27.js → use-view-mode-BvSJEzBA.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6vsxMj0.js → use-virtual-mcp-Doro-WnT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C5UYrvtb.js +1 -0
- package/dist/client/assets/{user-5NHpahbI.js → user-DMxAeRCM.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DqCLjYVJ.js → view-mode-toggle-B0na2o09.js} +1 -1
- package/dist/client/assets/{workflow-BXvm2wWf.js → workflow-BOEOo5nq.js} +1 -1
- package/dist/client/assets/workflow-detail-IfcsUNZf.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/indent-string/index.d.ts +38 -0
- package/dist/server/node_modules/indent-string/index.js +38 -0
- package/dist/server/node_modules/indent-string/license +9 -0
- package/dist/server/node_modules/indent-string/package.json +40 -0
- package/dist/server/node_modules/indent-string/readme.md +73 -0
- package/dist/server/node_modules/widest-line/index.d.ts +12 -0
- package/dist/server/node_modules/widest-line/index.js +11 -0
- package/dist/server/node_modules/widest-line/license +9 -0
- package/dist/server/node_modules/widest-line/package.json +60 -0
- package/dist/server/node_modules/widest-line/readme.md +26 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-BTFQDMp3.js +0 -1
- package/dist/client/assets/registry-fqaSl7FI.js +0 -2
- package/dist/client/assets/store-registry-kH6JKRAv.js +0 -2
- package/dist/client/assets/useInfiniteQuery-wZmQwXID.js +0 -1
- package/dist/client/assets/workflow-detail-C3H1TNiF.js +0 -1
- 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/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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
/**
|
|
3
|
+
The string to use for the indent.
|
|
4
|
+
|
|
5
|
+
@default ' '
|
|
6
|
+
*/
|
|
7
|
+
readonly indent?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
Also indent empty lines.
|
|
11
|
+
|
|
12
|
+
@default false
|
|
13
|
+
*/
|
|
14
|
+
readonly includeEmptyLines?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
Indent each line in a string.
|
|
19
|
+
|
|
20
|
+
@param string - The string to indent.
|
|
21
|
+
@param count - How many times you want `options.indent` repeated. Default: `1`.
|
|
22
|
+
|
|
23
|
+
@example
|
|
24
|
+
```
|
|
25
|
+
import indentString from 'indent-string';
|
|
26
|
+
|
|
27
|
+
indentString('Unicorns\nRainbows', 4);
|
|
28
|
+
//=> ' Unicorns\n Rainbows'
|
|
29
|
+
|
|
30
|
+
indentString('Unicorns\nRainbows', 4, {indent: '♥'});
|
|
31
|
+
//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
|
|
32
|
+
```
|
|
33
|
+
*/
|
|
34
|
+
export default function indentString(
|
|
35
|
+
string: string,
|
|
36
|
+
count?: number,
|
|
37
|
+
options?: Options
|
|
38
|
+
): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export default function indentString(string, count = 1, options = {}) {
|
|
2
|
+
const {
|
|
3
|
+
indent = ' ',
|
|
4
|
+
includeEmptyLines = false
|
|
5
|
+
} = options;
|
|
6
|
+
|
|
7
|
+
if (typeof string !== 'string') {
|
|
8
|
+
throw new TypeError(
|
|
9
|
+
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (typeof count !== 'number') {
|
|
14
|
+
throw new TypeError(
|
|
15
|
+
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (count < 0) {
|
|
20
|
+
throw new RangeError(
|
|
21
|
+
`Expected \`count\` to be at least 0, got \`${count}\``
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (typeof indent !== 'string') {
|
|
26
|
+
throw new TypeError(
|
|
27
|
+
`Expected \`options.indent\` to be a \`string\`, got \`${typeof indent}\``
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (count === 0) {
|
|
32
|
+
return string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const regex = includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
36
|
+
|
|
37
|
+
return string.replace(regex, indent.repeat(count));
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "indent-string",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "Indent each line in a string",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/indent-string",
|
|
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": "./index.js",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=12"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "xo && ava && tsd"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"index.js",
|
|
23
|
+
"index.d.ts"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"indent",
|
|
27
|
+
"string",
|
|
28
|
+
"pad",
|
|
29
|
+
"align",
|
|
30
|
+
"line",
|
|
31
|
+
"text",
|
|
32
|
+
"each",
|
|
33
|
+
"every"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"ava": "^3.15.0",
|
|
37
|
+
"tsd": "^0.14.0",
|
|
38
|
+
"xo": "^0.38.2"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# indent-string
|
|
2
|
+
|
|
3
|
+
> Indent each line in a string
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
$ npm install indent-string
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import indentString from 'indent-string';
|
|
15
|
+
|
|
16
|
+
indentString('Unicorns\nRainbows', 4);
|
|
17
|
+
//=> ' Unicorns\n Rainbows'
|
|
18
|
+
|
|
19
|
+
indentString('Unicorns\nRainbows', 4, {indent: '♥'});
|
|
20
|
+
//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### indentString(string, count?, options?)
|
|
26
|
+
|
|
27
|
+
#### string
|
|
28
|
+
|
|
29
|
+
Type: `string`
|
|
30
|
+
|
|
31
|
+
The string to indent.
|
|
32
|
+
|
|
33
|
+
#### count
|
|
34
|
+
|
|
35
|
+
Type: `number`\
|
|
36
|
+
Default: `1`
|
|
37
|
+
|
|
38
|
+
How many times you want `options.indent` repeated.
|
|
39
|
+
|
|
40
|
+
#### options
|
|
41
|
+
|
|
42
|
+
Type: `object`
|
|
43
|
+
|
|
44
|
+
##### indent
|
|
45
|
+
|
|
46
|
+
Type: `string`\
|
|
47
|
+
Default: `' '`
|
|
48
|
+
|
|
49
|
+
The string to use for the indent.
|
|
50
|
+
|
|
51
|
+
##### includeEmptyLines
|
|
52
|
+
|
|
53
|
+
Type: `boolean`\
|
|
54
|
+
Default: `false`
|
|
55
|
+
|
|
56
|
+
Also indent empty lines.
|
|
57
|
+
|
|
58
|
+
## Related
|
|
59
|
+
|
|
60
|
+
- [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - CLI for this module
|
|
61
|
+
- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
<div align="center">
|
|
66
|
+
<b>
|
|
67
|
+
<a href="https://tidelift.com/subscription/pkg/npm-indent-string?utm_source=npm-indent-string&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
68
|
+
</b>
|
|
69
|
+
<br>
|
|
70
|
+
<sub>
|
|
71
|
+
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
72
|
+
</sub>
|
|
73
|
+
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Get the visual width of the widest line in a string - the number of columns required to display it.
|
|
3
|
+
|
|
4
|
+
@example
|
|
5
|
+
```
|
|
6
|
+
import widestLine from 'widest-line';
|
|
7
|
+
|
|
8
|
+
widestLine('古\n\u001B[1m@\u001B[22m');
|
|
9
|
+
//=> 2
|
|
10
|
+
```
|
|
11
|
+
*/
|
|
12
|
+
export default function widestLine(string: string): number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "widest-line",
|
|
3
|
+
"version": "6.0.0",
|
|
4
|
+
"description": "Get the visual width of the widest line in a string - the number of columns required to display it",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/widest-line",
|
|
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": ">=20"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && ava"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"string",
|
|
31
|
+
"character",
|
|
32
|
+
"unicode",
|
|
33
|
+
"width",
|
|
34
|
+
"visual",
|
|
35
|
+
"column",
|
|
36
|
+
"columns",
|
|
37
|
+
"fullwidth",
|
|
38
|
+
"full-width",
|
|
39
|
+
"full",
|
|
40
|
+
"ansi",
|
|
41
|
+
"escape",
|
|
42
|
+
"codes",
|
|
43
|
+
"cli",
|
|
44
|
+
"command-line",
|
|
45
|
+
"terminal",
|
|
46
|
+
"console",
|
|
47
|
+
"cjk",
|
|
48
|
+
"chinese",
|
|
49
|
+
"japanese",
|
|
50
|
+
"korean",
|
|
51
|
+
"fixed-width"
|
|
52
|
+
],
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"string-width": "^8.1.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"ava": "^6.4.1",
|
|
58
|
+
"xo": "^1.2.3"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# widest-line
|
|
2
|
+
|
|
3
|
+
> Get the visual width of the widest line in a string - the number of columns required to display it
|
|
4
|
+
|
|
5
|
+
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
|
|
6
|
+
|
|
7
|
+
Useful to be able to know the maximum width a string will take up in the terminal.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install widest-line
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import widestLine from 'widest-line';
|
|
19
|
+
|
|
20
|
+
widestLine('古\n\u001B[1m@\u001B[22m');
|
|
21
|
+
//=> 2
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Related
|
|
25
|
+
|
|
26
|
+
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as t,j as i}from"./index-B66cimzy.js";import{O as m}from"./select-model-Bg7ZIMS5.js";import"./checkbox-CRVR_ot1.js";import"./ChevronDown-D9BYLhkI.js";import"./input-n-tkcD47.js";import"./dialog-Do5tt2AM.js";import"./X-BNbilc9H.js";import"./drawer-CBGNhyg_.js";import"./use-mobile-CZZS48R8.js";import"./select-MIqG5BTZ.js";import"./ChevronUp-Cfr7nwaY.js";import"./skeleton-BZTVNwC4.js";import"./Tool01-BZX3PrpA.js";import"./SearchMd-BBYvMMEY.js";import"./Settings02-CTxpmjIL.js";import"./use-ai-providers-CvVWYaQ8.js";import"./constants-CA_0oD0v.js";import"./chat-context-Bx9m79lL.js";import"./use-virtual-mcp-C6vsxMj0.js";import"./use-collections-daCmI1gf.js";import"./use-decopilot-events-CqJFbk0C.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DBgVSqQb.js";import"./use-organization-settings-G7C4gwdM.js";import"./ai-providers-logos-CS4PCiqI.js";import"./Zap-B7kVcQ1u.js";import"./AlertCircle-BFBGzWbU.js";import"./CheckCircle-B3ma3JwC.js";import"./Trash01-BpPWbnOV.js";import"./index-B_SuozHK.js";import"./card-BLvmImYq.js";import"./switch-BI6s_uRk.js";import"./toggle-group-wuBBOmnu.js";import"./avatar-BtIUeZzk.js";import"./User01-CbhU6vag.js";import"./alert-dialog-C9VS4Tm4.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";function M(){const o=t.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(m,{}),o[0]=r):r=o[0],r}export{M as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BOqFx2Hr.js","assets/index-B66cimzy.js","assets/index-DHRo5LVc.css","assets/ArrowNarrowLeft-Dxp25apt.js","assets/CheckCircle-B3ma3JwC.js","assets/Container-DGdMzimP.js","assets/Settings02-CTxpmjIL.js","assets/XCircle-DYNSiiUr.js","assets/constants-CA_0oD0v.js","assets/useInfiniteQuery-wZmQwXID.js","assets/infiniteQueryObserver-BMqyJ-TR.js","assets/badge-CiNJMavT.js","assets/input-n-tkcD47.js","assets/dropdown-menu-YCgfVPDE.js","assets/ChevronDown-D9BYLhkI.js","assets/ChevronRight-1PBbNJm4.js","assets/table-WyfrKpOs.js","assets/toggle-group-wuBBOmnu.js","assets/use-view-mode-BtECwb27.js","assets/use-mobile-CZZS48R8.js","assets/SearchMd-BBYvMMEY.js","assets/dialog-Do5tt2AM.js","assets/X-BNbilc9H.js","assets/AlertCircle-BFBGzWbU.js","assets/Upload01-AtFwS7_4.js","assets/alert-dialog-C9VS4Tm4.js","assets/card-BLvmImYq.js","assets/Trash01-BpPWbnOV.js","assets/label-BtcNLrPM.js","assets/select-MIqG5BTZ.js","assets/ChevronUp-Cfr7nwaY.js","assets/switch-BI6s_uRk.js","assets/textarea-DVawcto0.js","assets/checkbox-CRVR_ot1.js","assets/LinkExternal01-D1eXv7CP.js","assets/use-copy-DnDrxF7p.js","assets/Plus-DCerBxVp.js","assets/Play-B7_Vv1Kl.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,aF as o}from"./index-B66cimzy.js";const n=r.lazy(()=>o(()=>import("./registry-layout-BOqFx2Hr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BOqFx2Hr.js","assets/index-B66cimzy.js","assets/index-DHRo5LVc.css","assets/ArrowNarrowLeft-Dxp25apt.js","assets/CheckCircle-B3ma3JwC.js","assets/Container-DGdMzimP.js","assets/Settings02-CTxpmjIL.js","assets/XCircle-DYNSiiUr.js","assets/constants-CA_0oD0v.js","assets/useInfiniteQuery-wZmQwXID.js","assets/infiniteQueryObserver-BMqyJ-TR.js","assets/badge-CiNJMavT.js","assets/input-n-tkcD47.js","assets/dropdown-menu-YCgfVPDE.js","assets/ChevronDown-D9BYLhkI.js","assets/ChevronRight-1PBbNJm4.js","assets/table-WyfrKpOs.js","assets/toggle-group-wuBBOmnu.js","assets/use-view-mode-BtECwb27.js","assets/use-mobile-CZZS48R8.js","assets/SearchMd-BBYvMMEY.js","assets/dialog-Do5tt2AM.js","assets/X-BNbilc9H.js","assets/AlertCircle-BFBGzWbU.js","assets/Upload01-AtFwS7_4.js","assets/alert-dialog-C9VS4Tm4.js","assets/card-BLvmImYq.js","assets/Trash01-BpPWbnOV.js","assets/label-BtcNLrPM.js","assets/select-MIqG5BTZ.js","assets/ChevronUp-Cfr7nwaY.js","assets/switch-BI6s_uRk.js","assets/textarea-DVawcto0.js","assets/checkbox-CRVR_ot1.js","assets/LinkExternal01-D1eXv7CP.js","assets/use-copy-DnDrxF7p.js","assets/Plus-DCerBxVp.js","assets/Play-B7_Vv1Kl.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as n,f as c,g as m,j as r,l as f,r as l,aF as u}from"./index-B66cimzy.js";const g=l.lazy(()=>u(()=>import("./registry-layout-BOqFx2Hr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37])));function _(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(g,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-BMqyJ-TR.js";import{bY as i}from"./index-B66cimzy.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-B66cimzy.js";import{a as f}from"./index-BzPv7Dhu.js";import"./index-CSgeCYxL.js";import"./constants-CA_0oD0v.js";import"./collections-DAiJZOiv.js";import"./index-DBUcZB2f.js";import"./use-virtual-mcp-C6vsxMj0.js";import"./use-collections-daCmI1gf.js";import"./monaco-editor-BArWst-4.js";import"./scroll-area-BdtE1vuO.js";import"./select-MIqG5BTZ.js";import"./use-mobile-CZZS48R8.js";import"./ChevronDown-D9BYLhkI.js";import"./ChevronUp-Cfr7nwaY.js";import"./accordion-FpUQMiXV.js";import"./agent-icon-CxiN-PMV.js";import"./AlertCircle-BFBGzWbU.js";import"./Tool01-BZX3PrpA.js";import"./SearchMd-BBYvMMEY.js";import"./ArrowNarrowLeft-Dxp25apt.js";import"./XCircle-DYNSiiUr.js";import"./ZapSquare-CdonE3dW.js";import"./Users03-C-T3UrlF.js";import"./CheckCircle-B3ma3JwC.js";import"./ChevronRight-1PBbNJm4.js";import"./Container-DGdMzimP.js";import"./Star01-DtLRJZfG.js";import"./Palette-CpczgKVU.js";import"./index-B_SuozHK.js";import"./X-BNbilc9H.js";import"./LinkExternal01-D1eXv7CP.js";import"./Lock01-Cd-pjSnV.js";import"./Sun-CjaKdP_w.js";import"./Play-B7_Vv1Kl.js";import"./Plus-DCerBxVp.js";import"./Settings02-CTxpmjIL.js";import"./Trash01-BpPWbnOV.js";import"./Upload01-AtFwS7_4.js";import"./User01-CbhU6vag.js";import"./Zap-B7kVcQ1u.js";import"./badge-CiNJMavT.js";import"./view-mode-toggle-DqCLjYVJ.js";import"./layout-Db9ocR8l.js";import"./use-connection-DX24Nzyd.js";import"./use-mcp-tools-B7YQiceT.js";import"./dialog-Do5tt2AM.js";import"./dropdown-menu-YCgfVPDE.js";import"./integration-icon-DMDIiedF.js";import"./index-DRqrJul_.js";import"./empty-state-v8eFhsr-.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-n-tkcD47.js";function ct(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{ct as default};
|
|
@@ -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
|
-
}
|