decocms 2.282.0 → 2.282.1
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-CJ_7BsPP.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Dxp25apt.js → ArrowNarrowLeft-DtS9FYAN.js} +1 -1
- package/dist/client/assets/{CheckCircle-B3ma3JwC.js → CheckCircle-smRbUGaN.js} +1 -1
- package/dist/client/assets/{ChevronDown-D9BYLhkI.js → ChevronDown-xWqM1qJV.js} +1 -1
- package/dist/client/assets/{ChevronRight-1PBbNJm4.js → ChevronRight-BCgvkwtC.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cfr7nwaY.js → ChevronUp-CrL9TH1K.js} +1 -1
- package/dist/client/assets/{Container-DGdMzimP.js → Container-B7M87Wz6.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D1eXv7CP.js → LinkExternal01-DLKyZWWz.js} +1 -1
- package/dist/client/assets/{Lock01-Cd-pjSnV.js → Lock01-bZF1KUvq.js} +1 -1
- package/dist/client/assets/{Palette-CpczgKVU.js → Palette-Dl7lzquw.js} +1 -1
- package/dist/client/assets/{Play-B7_Vv1Kl.js → Play-DtJ0cxBf.js} +1 -1
- package/dist/client/assets/{Plus-DCerBxVp.js → Plus-IUiAby9e.js} +1 -1
- package/dist/client/assets/{SearchMd-BBYvMMEY.js → SearchMd-A2WzjBhy.js} +1 -1
- package/dist/client/assets/{Settings02-CTxpmjIL.js → Settings02-uCCFk89X.js} +1 -1
- package/dist/client/assets/{Star01-DtLRJZfG.js → Star01-07LmVEi1.js} +1 -1
- package/dist/client/assets/{Sun-CjaKdP_w.js → Sun-NZLaiUcL.js} +1 -1
- package/dist/client/assets/{Tool01-BZX3PrpA.js → Tool01-1Tm6sx2D.js} +1 -1
- package/dist/client/assets/{Trash01-BpPWbnOV.js → Trash01-2of3D7QX.js} +1 -1
- package/dist/client/assets/{Upload01-AtFwS7_4.js → Upload01-BPC1olzj.js} +1 -1
- package/dist/client/assets/{User01-CbhU6vag.js → User01-Dj2-no-V.js} +1 -1
- package/dist/client/assets/{Users03-C-T3UrlF.js → Users03-B_ZFhEj7.js} +1 -1
- package/dist/client/assets/{X-BNbilc9H.js → X-BXQFKahF.js} +1 -1
- package/dist/client/assets/{XCircle-DYNSiiUr.js → XCircle-ByksmUze.js} +1 -1
- package/dist/client/assets/{Zap-B7kVcQ1u.js → Zap-Ct-Bt-7a.js} +1 -1
- package/dist/client/assets/{ZapSquare-CdonE3dW.js → ZapSquare-CLlEU1BK.js} +1 -1
- package/dist/client/assets/{accordion-FpUQMiXV.js → accordion-CBx4kF0A.js} +1 -1
- package/dist/client/assets/{agent-icon-CxiN-PMV.js → agent-icon-uOxmWZzX.js} +1 -1
- package/dist/client/assets/{agents-list-C7OZID3w.js → agents-list-c4HvLnHM.js} +1 -1
- package/dist/client/assets/ai-providers-DNv3Q1EX.js +1 -0
- package/dist/client/assets/{alert-dialog-C9VS4Tm4.js → alert-dialog-P8pjafE2.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bns0gw3s.js → auth-catchall-8f9iLpUP.js} +1 -1
- package/dist/client/assets/{automation-list-row-BcStn6T3.js → automation-list-row-BDBawYyn.js} +1 -1
- package/dist/client/assets/{automations-CgsrNnd6.js → automations-C_zdEQX8.js} +1 -1
- package/dist/client/assets/{avatar-BtIUeZzk.js → avatar-F9o71OJ0.js} +1 -1
- package/dist/client/assets/{badge-CiNJMavT.js → badge-D2Q0fk8p.js} +1 -1
- package/dist/client/assets/{brand-context-B9-s9Xpu.js → brand-context-CW58R34a.js} +1 -1
- package/dist/client/assets/{card-BLvmImYq.js → card-fcmwdw-g.js} +1 -1
- package/dist/client/assets/{chat-context-Bx9m79lL.js → chat-context-CXS-qe2G.js} +1 -1
- package/dist/client/assets/{checkbox-CRVR_ot1.js → checkbox-CqcJoypg.js} +1 -1
- package/dist/client/assets/{collection-detail-D4nuXZXV.js → collection-detail-DhZtELgd.js} +1 -1
- package/dist/client/assets/{collection-display-button-BuSwjRsM.js → collection-display-button-CgNICB5x.js} +1 -1
- package/dist/client/assets/{collection-search-DoAFbLqs.js → collection-search-BhW0WppR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DRpY-ndk.js → collection-table-wrapper-rCxyye9m.js} +1 -1
- package/dist/client/assets/{collection-tabs-0TZKhC7x.js → collection-tabs-CCiykiFm.js} +1 -1
- package/dist/client/assets/{collections-DAiJZOiv.js → collections-C5k4gitm.js} +1 -1
- package/dist/client/assets/{command-BD_eOk-8.js → command-Bap7RtnO.js} +1 -1
- package/dist/client/assets/{connection-card-C4AfupKS.js → connection-card-CAIl5zuH.js} +1 -1
- package/dist/client/assets/{connection-detail-BOwwMlXo.js → connection-detail-C-murm81.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-QCTlKFgF.js → connection-form-helpers-Kb2X2zWy.js} +1 -1
- package/dist/client/assets/{connections-BjoOQtn5.js → connections-BUYyasfH.js} +1 -1
- package/dist/client/assets/{constants-DNupv1Il.js → constants-BYqEB04Y.js} +1 -1
- package/dist/client/assets/{constants-CA_0oD0v.js → constants-Cz3vSCG9.js} +1 -1
- package/dist/client/assets/{dialog-Do5tt2AM.js → dialog-BEtDzaNY.js} +1 -1
- package/dist/client/assets/{drawer-CBGNhyg_.js → drawer-BXhHhfPv.js} +1 -1
- package/dist/client/assets/{dropdown-menu-YCgfVPDE.js → dropdown-menu-CPrJeiSb.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DyQRK4xn.js → dynamic-plugin-layout-B3frXkTC.js} +1 -1
- package/dist/client/assets/{empty-state-CQYaNwoK.js → empty-state-D17b8ueP.js} +1 -1
- package/dist/client/assets/{empty-state-v8eFhsr-.js → empty-state-QyaCdfZt.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BUe7uD61.js → extract-connection-data-Df_ti4Xy.js} +1 -1
- package/dist/client/assets/{features-DCMNUsWH.js → features-DpwKJvfV.js} +1 -1
- package/dist/client/assets/{form-CxxwnlP0.js → form-CyOS6D3q.js} +1 -1
- package/dist/client/assets/{general-oBb9oBV3.js → general-BXFZtoDZ.js} +1 -1
- package/dist/client/assets/{index-3qazylEt.js → index-B6nAXVWE.js} +1 -1
- package/dist/client/assets/{index-B66cimzy.js → index-C27Pbex0.js} +2 -2
- package/dist/client/assets/{index-DRqrJul_.js → index-C6iu8syV.js} +1 -1
- package/dist/client/assets/{index-CSgeCYxL.js → index-CjRdG1Vp.js} +1 -1
- package/dist/client/assets/{index-BzPv7Dhu.js → index-CpMJ05u5.js} +1 -1
- package/dist/client/assets/{index-2HrmMP-L.js → index-D2u00J0R.js} +4 -4
- package/dist/client/assets/{index-DCHDqkUk.js → index-DYJpZ_hI.js} +1 -1
- package/dist/client/assets/{index-B_SuozHK.js → index-DsXJm4s8.js} +1 -1
- package/dist/client/assets/{index-CT3_Tk81.js → index-FD-g03rr.js} +1 -1
- package/dist/client/assets/{index-DBUcZB2f.js → index-tiUiHjMI.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BMqyJ-TR.js → infiniteQueryObserver-Bm_4nXxh.js} +1 -1
- package/dist/client/assets/{input-n-tkcD47.js → input-BMDCCsVs.js} +1 -1
- package/dist/client/assets/{integration-icon-DMDIiedF.js → integration-icon-gIhUX9GC.js} +1 -1
- package/dist/client/assets/{label-BtcNLrPM.js → label-2vBVhIzi.js} +1 -1
- package/dist/client/assets/{layout-Db9ocR8l.js → layout-BU5OyVXS.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-D_J2ca55.js → lean-canvas-recruit-modal-BpJpmMV7.js} +1 -1
- package/dist/client/assets/{login-44n9MoF6.js → login-mUATXvn9.js} +1 -1
- package/dist/client/assets/{members-DVv4q0sB.js → members-CEd1LJk0.js} +1 -1
- package/dist/client/assets/{monaco-editor-BArWst-4.js → monaco-editor-BnguFt9B.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DwT9f7ma.js → monitoring-stats-row-DRhzCagY.js} +1 -1
- package/dist/client/assets/{oauth-callback-ZWFD-c9z.js → oauth-callback-BeAxhA0O.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DvgS7JVs.js → oauth-callback-ai-provider-BNMpbB2T.js} +1 -1
- package/dist/client/assets/{onboarding-Bx7D7eeN.js → onboarding-DXyWyIV-.js} +1 -1
- package/dist/client/assets/{org-layout-C1WQZ86m.js → org-layout-DJZ7Z_p1.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-aVinWGGP.js → org-plugin-layout-nQpaPqCP.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-7geUhVaf.js → plugin-empty-state-D4pz75Eg.js} +1 -1
- package/dist/client/assets/{plugin-header-C1Y6Yac2.js → plugin-header-D_Oa6gN8.js} +1 -1
- package/dist/client/assets/{plugin-layout-ClqwcLfX.js → plugin-layout-csD4Blom.js} +1 -1
- package/dist/client/assets/{popover-XBsYrCQB.js → popover-C6ihUqMx.js} +1 -1
- package/dist/client/assets/{profile-DLXMWz7I.js → profile-725q4zwE.js} +1 -1
- package/dist/client/assets/{project-app-view-BWaWLQ1-.js → project-app-view-BgI1ObN0.js} +1 -1
- package/dist/client/assets/registry-DiyPXzzy.js +2 -0
- package/dist/client/assets/{registry-layout-BOqFx2Hr.js → registry-layout-CZiwWJ4l.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Q3YyHmAw.js → required-auth-layout-DYZPY8fJ.js} +1 -1
- package/dist/client/assets/{reset-password-Ben4hB-3.js → reset-password-D92BxTuZ.js} +1 -1
- package/dist/client/assets/{scroll-area-BdtE1vuO.js → scroll-area-BjkPDLjB.js} +1 -1
- package/dist/client/assets/{search-input-CmCwxjTX.js → search-input-BsH-Fhn1.js} +1 -1
- package/dist/client/assets/{select-MIqG5BTZ.js → select-ByGBjkSM.js} +1 -1
- package/dist/client/assets/{select-model-Bg7ZIMS5.js → select-model-ipn8mtVw.js} +1 -1
- package/dist/client/assets/{settings-layout-DO-ULKWI.js → settings-layout-DaVsMStD.js} +1 -1
- package/dist/client/assets/{shell-layout-xKLRos3t.js → shell-layout-CBHcQlP6.js} +1 -1
- package/dist/client/assets/{skeleton-BZTVNwC4.js → skeleton-CKW2-ArL.js} +1 -1
- package/dist/client/assets/{sso-BT50WbJk.js → sso-GNLrvSnU.js} +1 -1
- package/dist/client/assets/{store-CHDNsIdi.js → store-Bv7PRV1N.js} +1 -1
- package/dist/client/assets/store-registry-IxsRTF9k.js +2 -0
- package/dist/client/assets/{switch-BI6s_uRk.js → switch-D_oyEj-7.js} +1 -1
- package/dist/client/assets/{table-WyfrKpOs.js → table-DmvqYMYA.js} +1 -1
- package/dist/client/assets/{tabs-BK1mEgGf.js → tabs-CHeB-_P1.js} +1 -1
- package/dist/client/assets/{task-status-GcEPbgk8.js → task-status-CGy28UD5.js} +1 -1
- package/dist/client/assets/{textarea-DVawcto0.js → textarea-Bo2Nbyc2.js} +1 -1
- package/dist/client/assets/{toggle-group-wuBBOmnu.js → toggle-group-hicYHCaj.js} +1 -1
- package/dist/client/assets/{tools-list-BgoIxxcE.js → tools-list-Bc5L72jI.js} +1 -1
- package/dist/client/assets/{types-B9bcGYd-.js → types-Qy_lXSZi.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CvVWYaQ8.js → use-ai-providers-D5svCGwH.js} +1 -1
- package/dist/client/assets/{use-collections-daCmI1gf.js → use-collections-C9mDhhDp.js} +1 -1
- package/dist/client/assets/{use-connection-DX24Nzyd.js → use-connection-labJovV0.js} +1 -1
- package/dist/client/assets/{use-copy-DnDrxF7p.js → use-copy-C--xeydh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BXWOJHzA.js → use-create-virtual-mcp-Dmy-tzU3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CqJFbk0C.js → use-decopilot-events-BQ6lKiUz.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BypWLqop.js → use-delete-connection-Bj5gBc4Q.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B2G1dNh-.js → use-infinite-scroll-CSBdO1Tg.js} +1 -1
- package/dist/client/assets/{use-list-state-CUoBuePJ.js → use-list-state-BjQoZx3U.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B7YQiceT.js → use-mcp-tools-C0TDyIdf.js} +1 -1
- package/dist/client/assets/{use-members-CT_s4J5I.js → use-members-BJMZeTol.js} +1 -1
- package/dist/client/assets/{use-mobile-CZZS48R8.js → use-mobile-49sQdb0b.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DDSqcJhW.js → use-navigate-to-agent-DHv3qU4y.js} +1 -1
- package/dist/client/assets/{use-org-sso-CtXg6XR8.js → use-org-sso-DZn2rTnY.js} +1 -1
- package/dist/client/assets/{use-organization-settings-G7C4gwdM.js → use-organization-settings-BhA6YmfT.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CpcHatqk.js → use-registry-connections-Bvn4-1Jy.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Bo8AWgrW.js → use-status-sounds-hwHn7ByT.js} +1 -1
- package/dist/client/assets/{use-tasks-DBgVSqQb.js → use-tasks-CEfchIrz.js} +1 -1
- package/dist/client/assets/{use-view-mode-BtECwb27.js → use-view-mode-BZEJDQ3u.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6vsxMj0.js → use-virtual-mcp-kjgk684A.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bices_FL.js +1 -0
- package/dist/client/assets/{user-5NHpahbI.js → user-DxIuCi_O.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DqCLjYVJ.js → view-mode-toggle-KKeD1zNQ.js} +1 -1
- package/dist/client/assets/{workflow-BXvm2wWf.js → workflow-3PvqRa7g.js} +1 -1
- package/dist/client/assets/workflow-detail-BLyd9EdB.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/license +9 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- 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/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,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
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
var test = require("tape")
|
|
2
|
-
var extend = require("./")
|
|
3
|
-
var mutableExtend = require("./mutable")
|
|
4
|
-
|
|
5
|
-
test("merge", function(assert) {
|
|
6
|
-
var a = { a: "foo" }
|
|
7
|
-
var b = { b: "bar" }
|
|
8
|
-
|
|
9
|
-
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
10
|
-
assert.end()
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
test("replace", function(assert) {
|
|
14
|
-
var a = { a: "foo" }
|
|
15
|
-
var b = { a: "bar" }
|
|
16
|
-
|
|
17
|
-
assert.deepEqual(extend(a, b), { a: "bar" })
|
|
18
|
-
assert.end()
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
test("undefined", function(assert) {
|
|
22
|
-
var a = { a: undefined }
|
|
23
|
-
var b = { b: "foo" }
|
|
24
|
-
|
|
25
|
-
assert.deepEqual(extend(a, b), { a: undefined, b: "foo" })
|
|
26
|
-
assert.deepEqual(extend(b, a), { a: undefined, b: "foo" })
|
|
27
|
-
assert.end()
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
test("handle 0", function(assert) {
|
|
31
|
-
var a = { a: "default" }
|
|
32
|
-
var b = { a: 0 }
|
|
33
|
-
|
|
34
|
-
assert.deepEqual(extend(a, b), { a: 0 })
|
|
35
|
-
assert.deepEqual(extend(b, a), { a: "default" })
|
|
36
|
-
assert.end()
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
test("is immutable", function (assert) {
|
|
40
|
-
var record = {}
|
|
41
|
-
|
|
42
|
-
extend(record, { foo: "bar" })
|
|
43
|
-
assert.equal(record.foo, undefined)
|
|
44
|
-
assert.end()
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
test("null as argument", function (assert) {
|
|
48
|
-
var a = { foo: "bar" }
|
|
49
|
-
var b = null
|
|
50
|
-
var c = void 0
|
|
51
|
-
|
|
52
|
-
assert.deepEqual(extend(b, a, c), { foo: "bar" })
|
|
53
|
-
assert.end()
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
test("mutable", function (assert) {
|
|
57
|
-
var a = { foo: "bar" }
|
|
58
|
-
|
|
59
|
-
mutableExtend(a, { bar: "baz" })
|
|
60
|
-
|
|
61
|
-
assert.equal(a.bar, "baz")
|
|
62
|
-
assert.end()
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
test("null prototype", function(assert) {
|
|
66
|
-
var a = { a: "foo" }
|
|
67
|
-
var b = Object.create(null)
|
|
68
|
-
b.b = "bar";
|
|
69
|
-
|
|
70
|
-
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
71
|
-
assert.end()
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
test("null prototype mutable", function (assert) {
|
|
75
|
-
var a = { foo: "bar" }
|
|
76
|
-
var b = Object.create(null)
|
|
77
|
-
b.bar = "baz";
|
|
78
|
-
|
|
79
|
-
mutableExtend(a, b)
|
|
80
|
-
|
|
81
|
-
assert.equal(a.bar, "baz")
|
|
82
|
-
assert.end()
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
test("prototype pollution", function (assert) {
|
|
86
|
-
var a = {}
|
|
87
|
-
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
88
|
-
|
|
89
|
-
assert.strictEqual(a.oops, undefined)
|
|
90
|
-
extend({}, maliciousPayload)
|
|
91
|
-
assert.strictEqual(a.oops, undefined)
|
|
92
|
-
assert.end()
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
test("prototype pollution mutable", function (assert) {
|
|
96
|
-
var a = {}
|
|
97
|
-
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
98
|
-
|
|
99
|
-
assert.strictEqual(a.oops, undefined)
|
|
100
|
-
mutableExtend({}, maliciousPayload)
|
|
101
|
-
assert.strictEqual(a.oops, undefined)
|
|
102
|
-
assert.end()
|
|
103
|
-
})
|