decocms 2.276.3 → 2.277.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/client/assets/{AlertCircle-B4Z_bYRy.js → AlertCircle-CDrkM01U.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-Cfmub-b9.js → ArrowNarrowLeft-D40KhznE.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-BCmdWySf.js → CheckCircle-BTIsSwsN.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-LbB92Eif.js → ChevronDown-CYdW9NBw.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-Bp2wM59-.js → ChevronRight-YkSQYi3B.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-DugRD1Os.js → ChevronUp-BcPC1hCC.js} +1 -1
  7. package/dist/client/assets/{Container-4EEqLr04.js → Container-ChD3KoS4.js} +1 -1
  8. package/dist/client/assets/{LinkExternal01-n0OTj3Hs.js → LinkExternal01-l0w4_WlJ.js} +1 -1
  9. package/dist/client/assets/{Lock01-Bcc8tT2X.js → Lock01-CmojMPTn.js} +1 -1
  10. package/dist/client/assets/{Palette-DJlRra7b.js → Palette-D4s8zWmN.js} +1 -1
  11. package/dist/client/assets/{Play-DE1MmEh7.js → Play-CiTVDuYt.js} +1 -1
  12. package/dist/client/assets/{Plus-lTLN-5sW.js → Plus-CVdax6FK.js} +1 -1
  13. package/dist/client/assets/{SearchMd-Ch9A9-sY.js → SearchMd-DJ0JdIz3.js} +1 -1
  14. package/dist/client/assets/{Settings02-CRSd_kje.js → Settings02-D-hypCbK.js} +1 -1
  15. package/dist/client/assets/{Star01-jT36fQMs.js → Star01-Vcjv0Tzc.js} +1 -1
  16. package/dist/client/assets/{Sun-BjJ31DgB.js → Sun-51uZR1E5.js} +1 -1
  17. package/dist/client/assets/{Tool01-BABHhadV.js → Tool01-DCaYwllU.js} +1 -1
  18. package/dist/client/assets/{Trash01-qTBTo_1R.js → Trash01-D5ZS0TOT.js} +1 -1
  19. package/dist/client/assets/{Upload01-D584ZGhL.js → Upload01-CBYhGwn0.js} +1 -1
  20. package/dist/client/assets/{User01-Dn7ERaE8.js → User01-Dq3q9cE-.js} +1 -1
  21. package/dist/client/assets/{Users03-CLsqBvj5.js → Users03-BIYd5t8v.js} +1 -1
  22. package/dist/client/assets/{X-DbufVvYT.js → X-D_4PiiTE.js} +1 -1
  23. package/dist/client/assets/{XCircle-CMz1Sln8.js → XCircle-rGav0QLs.js} +1 -1
  24. package/dist/client/assets/{Zap-DCaRrmPx.js → Zap-qFCEz_qt.js} +1 -1
  25. package/dist/client/assets/{ZapSquare-DOWrBmYM.js → ZapSquare-BYfCzFpy.js} +1 -1
  26. package/dist/client/assets/{accordion-BM2v3K-F.js → accordion-C_FjDGY7.js} +1 -1
  27. package/dist/client/assets/{agent-icon-WnDt_mly.js → agent-icon-31CiXnkF.js} +1 -1
  28. package/dist/client/assets/{agents-list-B15lvUTv.js → agents-list-kGMjebHK.js} +1 -1
  29. package/dist/client/assets/ai-providers-Bykzb-xW.js +1 -0
  30. package/dist/client/assets/{alert-dialog-BGXEvrTS.js → alert-dialog-BpydK2MI.js} +1 -1
  31. package/dist/client/assets/{auth-catchall-BhYcp03z.js → auth-catchall-I0vdEcHs.js} +1 -1
  32. package/dist/client/assets/{automation-list-row-CzwsnIcA.js → automation-list-row-mTTWiKQ6.js} +1 -1
  33. package/dist/client/assets/{automations-BleBenZq.js → automations-Z179s9qX.js} +1 -1
  34. package/dist/client/assets/{avatar-B6IagwQu.js → avatar-BVvDTfBW.js} +1 -1
  35. package/dist/client/assets/{badge-CYgBI6R4.js → badge-BhfSxzi-.js} +1 -1
  36. package/dist/client/assets/{brand-context-kUM9sJBK.js → brand-context-Bn_7uvJT.js} +1 -1
  37. package/dist/client/assets/{card-CDkIOtIp.js → card-BAp6Jwgi.js} +1 -1
  38. package/dist/client/assets/{chat-context-DeS_zKzS.js → chat-context-Dp5HM8R-.js} +1 -1
  39. package/dist/client/assets/{checkbox-B1ZvEQ9K.js → checkbox-BhkHXCse.js} +1 -1
  40. package/dist/client/assets/{collection-detail-C4RjlFe9.js → collection-detail-Bm3mvhEG.js} +1 -1
  41. package/dist/client/assets/{collection-display-button-BYlepxvt.js → collection-display-button-jqECsu1f.js} +1 -1
  42. package/dist/client/assets/{collection-search-BaDjhV61.js → collection-search-C0B93tJw.js} +1 -1
  43. package/dist/client/assets/{collection-table-wrapper-BtJe8KWC.js → collection-table-wrapper-Bf17fkBP.js} +1 -1
  44. package/dist/client/assets/{collection-tabs-B5daS-aK.js → collection-tabs-CMC3SILy.js} +1 -1
  45. package/dist/client/assets/{collections-CnDJSz0t.js → collections-DIuw_dNV.js} +1 -1
  46. package/dist/client/assets/{command-CVgGbZrE.js → command-CRMnQTof.js} +1 -1
  47. package/dist/client/assets/{connection-card-DAXfCJL1.js → connection-card-CJ6uOT9E.js} +1 -1
  48. package/dist/client/assets/{connection-detail-0iVaAltH.js → connection-detail-Dj-OLW3C.js} +1 -1
  49. package/dist/client/assets/{connection-form-helpers-BK0aECJK.js → connection-form-helpers-CDPt3S_P.js} +1 -1
  50. package/dist/client/assets/{connections-CPgxORLh.js → connections-aYS5E8PJ.js} +1 -1
  51. package/dist/client/assets/{constants-BxY9N-ws.js → constants-BG70AVFL.js} +1 -1
  52. package/dist/client/assets/{constants-MEMD8ENM.js → constants-CdNdiXMf.js} +1 -1
  53. package/dist/client/assets/{dialog-D8xpcPd2.js → dialog-C0FUDu40.js} +1 -1
  54. package/dist/client/assets/{drawer-BpOYQqLe.js → drawer-D4_wXu6X.js} +1 -1
  55. package/dist/client/assets/{dropdown-menu-ClMXG_z6.js → dropdown-menu-aG44dJsz.js} +1 -1
  56. package/dist/client/assets/{dynamic-plugin-layout-BDs8LP0t.js → dynamic-plugin-layout-pzG9mWCw.js} +1 -1
  57. package/dist/client/assets/{empty-state-DlH6Q1vv.js → empty-state-BGqwS_3w.js} +1 -1
  58. package/dist/client/assets/{empty-state-DqQ_mj5B.js → empty-state-BjAjwUcB.js} +1 -1
  59. package/dist/client/assets/{extract-connection-data-BattRyEN.js → extract-connection-data-CAAXAkZY.js} +1 -1
  60. package/dist/client/assets/{features-BgwyDCES.js → features-DCfAHIGS.js} +1 -1
  61. package/dist/client/assets/{form-pojp-kTY.js → form-BQFhlKGv.js} +1 -1
  62. package/dist/client/assets/{general-AROtMABc.js → general-0YlUSUig.js} +1 -1
  63. package/dist/client/assets/{index-DiAp1HHT.js → index-BRiQU6du.js} +1 -1
  64. package/dist/client/assets/{index-CtnGGdXo.js → index-C6SXa4V4.js} +1 -1
  65. package/dist/client/assets/{index-DY2kqbCP.js → index-CEQG3Gi2.js} +1 -1
  66. package/dist/client/assets/{index-C3NVKlFX.js → index-CIlSPTSj.js} +1 -1
  67. package/dist/client/assets/{index-BSxLmbjR.js → index-CN1oVHjb.js} +23 -23
  68. package/dist/client/assets/{index-DIVxtkpR.js → index-CoTOPljc.js} +1 -1
  69. package/dist/client/assets/{index-BFVdz8if.js → index-DRjT3wqk.js} +1 -1
  70. package/dist/client/assets/{index-WGfZydLo.js → index-EE9r4ne7.js} +2 -2
  71. package/dist/client/assets/{index-B2JtGbgE.js → index-NYDZhYFt.js} +1 -1
  72. package/dist/client/assets/{index-Coav-ncz.js → index-mdSoEPSF.js} +1 -1
  73. package/dist/client/assets/{infiniteQueryObserver-CdZ0ASHN.js → infiniteQueryObserver-BQYXKuj2.js} +1 -1
  74. package/dist/client/assets/{input-Bzj33Fxq.js → input-r_oEqK-V.js} +1 -1
  75. package/dist/client/assets/{integration-icon-ZjWVueCq.js → integration-icon-BKKqOsd5.js} +1 -1
  76. package/dist/client/assets/{label-DiBCBN0N.js → label-CenAgqhm.js} +1 -1
  77. package/dist/client/assets/{layout-BXIOD6PJ.js → layout-DB6YepVn.js} +1 -1
  78. package/dist/client/assets/{lean-canvas-recruit-modal-BL32AVEC.js → lean-canvas-recruit-modal-TnasvQfT.js} +1 -1
  79. package/dist/client/assets/{login-CXDNRsDi.js → login-DDMVtz0x.js} +1 -1
  80. package/dist/client/assets/{members-DVaoQxs-.js → members-BH6aFn0i.js} +1 -1
  81. package/dist/client/assets/{monaco-editor-lqRUssyU.js → monaco-editor-C3TYqqnp.js} +1 -1
  82. package/dist/client/assets/{monitoring-stats-row-BcGs8N45.js → monitoring-stats-row-DosCpU_L.js} +1 -1
  83. package/dist/client/assets/{oauth-callback-C20Tc5eT.js → oauth-callback-BV7Kg1aN.js} +1 -1
  84. package/dist/client/assets/{oauth-callback-ai-provider-CHWLGFFS.js → oauth-callback-ai-provider-DjkxS6zo.js} +1 -1
  85. package/dist/client/assets/{onboarding-AqO1F9Ot.js → onboarding-DmzJa5qN.js} +1 -1
  86. package/dist/client/assets/{org-layout-GwZNK-gH.js → org-layout-D05CVA_8.js} +1 -1
  87. package/dist/client/assets/{org-plugin-layout-DiKymIqI.js → org-plugin-layout-Cv_313Tb.js} +1 -1
  88. package/dist/client/assets/{plugin-empty-state-BmbedKr8.js → plugin-empty-state-CQeGBgOP.js} +1 -1
  89. package/dist/client/assets/{plugin-header-5ddC-K4s.js → plugin-header-BXYsY1_p.js} +1 -1
  90. package/dist/client/assets/{plugin-layout-ZLFaNfn_.js → plugin-layout-Do_Ws-WY.js} +1 -1
  91. package/dist/client/assets/{popover-DB3l_dUB.js → popover-BktSfQG9.js} +1 -1
  92. package/dist/client/assets/{profile-BXxzRaC3.js → profile-BSS2RbEG.js} +1 -1
  93. package/dist/client/assets/{project-app-view-CLbmaYfp.js → project-app-view-B_z1QorU.js} +1 -1
  94. package/dist/client/assets/registry-B_QfL3wE.js +2 -0
  95. package/dist/client/assets/{registry-layout-Bcu6gWnT.js → registry-layout-B0UM9hrK.js} +1 -1
  96. package/dist/client/assets/{required-auth-layout-DXAKQPxa.js → required-auth-layout-C6TLzB3T.js} +1 -1
  97. package/dist/client/assets/{reset-password-BgkjBAas.js → reset-password-BV1UW9SB.js} +1 -1
  98. package/dist/client/assets/{scroll-area-Df4WEHfA.js → scroll-area-C6ws31M0.js} +1 -1
  99. package/dist/client/assets/{search-input-BgrLZ0dV.js → search-input-Dxw50-Fc.js} +1 -1
  100. package/dist/client/assets/{select-DMGlO4yi.js → select-DMKL-iI9.js} +1 -1
  101. package/dist/client/assets/select-model-D2d213qn.js +4 -0
  102. package/dist/client/assets/{settings-layout-DGJoyTnE.js → settings-layout-BBdiRp4e.js} +1 -1
  103. package/dist/client/assets/{shell-layout-DjJ6Z_Cf.js → shell-layout-CDe1Q4z8.js} +1 -1
  104. package/dist/client/assets/{skeleton-CAEDpRxb.js → skeleton-C8k5qVSG.js} +1 -1
  105. package/dist/client/assets/{sso-D1MeHfxN.js → sso-CChrq6HN.js} +1 -1
  106. package/dist/client/assets/{store-C324vYbF.js → store-Dk4svl-0.js} +1 -1
  107. package/dist/client/assets/store-registry-DNqLsJlQ.js +2 -0
  108. package/dist/client/assets/{switch-DjEl0Zkr.js → switch-BlmZa3uf.js} +1 -1
  109. package/dist/client/assets/{table-DAEmh2te.js → table-omg9OiL8.js} +1 -1
  110. package/dist/client/assets/{tabs-3MozWL7O.js → tabs-ZI6fRQkw.js} +1 -1
  111. package/dist/client/assets/{task-status-DlDVvsLX.js → task-status-erNd2Sbl.js} +1 -1
  112. package/dist/client/assets/{textarea-CfqOOIJa.js → textarea-CpW5pfml.js} +1 -1
  113. package/dist/client/assets/{toggle-group-CNs9-MRq.js → toggle-group-By5F9baT.js} +1 -1
  114. package/dist/client/assets/{tools-list-Bc5Oy8LD.js → tools-list-2T2hc8nL.js} +1 -1
  115. package/dist/client/assets/{types-D_q3jEZ8.js → types-BOQuLrVp.js} +1 -1
  116. package/dist/client/assets/{use-ai-providers-StUHlUMB.js → use-ai-providers-CITI1iNq.js} +1 -1
  117. package/dist/client/assets/{use-collections-DEST7K_q.js → use-collections-CRzXRke9.js} +1 -1
  118. package/dist/client/assets/{use-connection-CbAQnOed.js → use-connection-CeSGdaGP.js} +1 -1
  119. package/dist/client/assets/{use-copy-Cl4ZPEvD.js → use-copy-DGEKKbaG.js} +1 -1
  120. package/dist/client/assets/{use-create-virtual-mcp-CwozrztD.js → use-create-virtual-mcp-UIh1S6RD.js} +1 -1
  121. package/dist/client/assets/{use-decopilot-events-K_yfq6tB.js → use-decopilot-events-CN7YV5I-.js} +1 -1
  122. package/dist/client/assets/{use-delete-connection-BjsFe5Xj.js → use-delete-connection-DeXytvwf.js} +1 -1
  123. package/dist/client/assets/{use-infinite-scroll-BCfAtSyW.js → use-infinite-scroll-DjXaeUEQ.js} +1 -1
  124. package/dist/client/assets/{use-list-state-Dk_FNgfa.js → use-list-state-UZMoJUvO.js} +1 -1
  125. package/dist/client/assets/{use-mcp-tools-BtTkT0ox.js → use-mcp-tools-BKQPDk4x.js} +1 -1
  126. package/dist/client/assets/{use-members-DVLjy3CZ.js → use-members-afZV5Me8.js} +1 -1
  127. package/dist/client/assets/{use-mobile-vpGkifWc.js → use-mobile-DP4MR1ix.js} +1 -1
  128. package/dist/client/assets/{use-navigate-to-agent-Dg-q0ecS.js → use-navigate-to-agent-C0iuNKaP.js} +1 -1
  129. package/dist/client/assets/{use-org-sso-DK-UaGWB.js → use-org-sso-B4mWsSMh.js} +1 -1
  130. package/dist/client/assets/{use-organization-settings-D9EGsoNi.js → use-organization-settings-CcvcpCtE.js} +1 -1
  131. package/dist/client/assets/{use-registry-connections-CjUJFqM_.js → use-registry-connections-Bj_DPVwf.js} +1 -1
  132. package/dist/client/assets/{use-status-sounds-CuOzTU0E.js → use-status-sounds-ChUYFOhF.js} +1 -1
  133. package/dist/client/assets/{use-tasks-Cf8x3tn2.js → use-tasks-DGmrkFpo.js} +1 -1
  134. package/dist/client/assets/{use-view-mode-Cz3j5joy.js → use-view-mode-zFqL6G4U.js} +1 -1
  135. package/dist/client/assets/{use-virtual-mcp-DJidRNsl.js → use-virtual-mcp-Dn9ixQmR.js} +1 -1
  136. package/dist/client/assets/useInfiniteQuery-7hq96Va6.js +1 -0
  137. package/dist/client/assets/{user-DJ61KCKE.js → user-D7q59BB0.js} +1 -1
  138. package/dist/client/assets/{view-mode-toggle-D3cr4bdy.js → view-mode-toggle-BTfIGFL4.js} +1 -1
  139. package/dist/client/assets/{workflow-BJJzWzRg.js → workflow-DXb2lFI1.js} +1 -1
  140. package/dist/client/assets/workflow-detail-CC_ctEsy.js +1 -0
  141. package/dist/client/index.html +1 -1
  142. package/dist/server/cli.js +166 -166
  143. package/dist/server/node_modules/pg/LICENSE +21 -0
  144. package/dist/server/node_modules/pg/README.md +95 -0
  145. package/dist/server/node_modules/pg/esm/index.mjs +20 -0
  146. package/dist/server/node_modules/pg/lib/client.js +743 -0
  147. package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
  148. package/dist/server/node_modules/pg/lib/connection.js +221 -0
  149. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
  150. package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
  151. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
  152. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
  153. package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
  154. package/dist/server/node_modules/pg/lib/defaults.js +91 -0
  155. package/dist/server/node_modules/pg/lib/index.js +73 -0
  156. package/dist/server/node_modules/pg/lib/native/client.js +323 -0
  157. package/dist/server/node_modules/pg/lib/native/index.js +2 -0
  158. package/dist/server/node_modules/pg/lib/native/query.js +165 -0
  159. package/dist/server/node_modules/pg/lib/query.js +252 -0
  160. package/dist/server/node_modules/pg/lib/result.js +109 -0
  161. package/dist/server/node_modules/pg/lib/stream.js +83 -0
  162. package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
  163. package/dist/server/node_modules/pg/lib/utils.js +217 -0
  164. package/dist/server/node_modules/pg/package.json +76 -0
  165. package/dist/server/node_modules/xtend/.jshintrc +30 -0
  166. package/dist/server/node_modules/{deepmerge/license.txt → xtend/LICENSE} +1 -2
  167. package/dist/server/node_modules/xtend/README.md +32 -0
  168. package/dist/server/node_modules/xtend/immutable.js +19 -0
  169. package/dist/server/node_modules/xtend/mutable.js +17 -0
  170. package/dist/server/node_modules/xtend/package.json +55 -0
  171. package/dist/server/node_modules/xtend/test.js +103 -0
  172. package/package.json +1 -1
  173. package/dist/client/assets/ai-providers-B3rFYyQJ.js +0 -1
  174. package/dist/client/assets/registry-h9nbKgtr.js +0 -2
  175. package/dist/client/assets/select-model-D4EGus9X.js +0 -4
  176. package/dist/client/assets/store-registry-DkhNudAU.js +0 -2
  177. package/dist/client/assets/useInfiniteQuery-ChHJkjep.js +0 -1
  178. package/dist/client/assets/workflow-detail-CPLNyuzk.js +0 -1
  179. package/dist/server/node_modules/deepmerge/.editorconfig +0 -7
  180. package/dist/server/node_modules/deepmerge/.eslintcache +0 -1
  181. package/dist/server/node_modules/deepmerge/changelog.md +0 -167
  182. package/dist/server/node_modules/deepmerge/dist/cjs.js +0 -133
  183. package/dist/server/node_modules/deepmerge/dist/umd.js +0 -139
  184. package/dist/server/node_modules/deepmerge/index.d.ts +0 -20
  185. package/dist/server/node_modules/deepmerge/index.js +0 -106
  186. package/dist/server/node_modules/deepmerge/package.json +0 -42
  187. package/dist/server/node_modules/deepmerge/readme.md +0 -264
  188. package/dist/server/node_modules/deepmerge/rollup.config.js +0 -22
  189. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  190. package/dist/server/node_modules/onetime/index.js +0 -44
  191. package/dist/server/node_modules/onetime/license +0 -9
  192. package/dist/server/node_modules/onetime/package.json +0 -43
  193. package/dist/server/node_modules/onetime/readme.md +0 -94
@@ -1,264 +0,0 @@
1
- # deepmerge
2
-
3
- Merges the enumerable properties of two or more objects deeply.
4
-
5
- > UMD bundle is 723B minified+gzipped
6
-
7
- ## Getting Started
8
-
9
- ### Example Usage
10
- <!--js
11
- const merge = require('./')
12
- -->
13
-
14
- ```js
15
- const x = {
16
- foo: { bar: 3 },
17
- array: [{
18
- does: 'work',
19
- too: [ 1, 2, 3 ]
20
- }]
21
- }
22
-
23
- const y = {
24
- foo: { baz: 4 },
25
- quux: 5,
26
- array: [{
27
- does: 'work',
28
- too: [ 4, 5, 6 ]
29
- }, {
30
- really: 'yes'
31
- }]
32
- }
33
-
34
- const output = {
35
- foo: {
36
- bar: 3,
37
- baz: 4
38
- },
39
- array: [{
40
- does: 'work',
41
- too: [ 1, 2, 3 ]
42
- }, {
43
- does: 'work',
44
- too: [ 4, 5, 6 ]
45
- }, {
46
- really: 'yes'
47
- }],
48
- quux: 5
49
- }
50
-
51
- merge(x, y) // => output
52
- ```
53
-
54
-
55
- ### Installation
56
-
57
- With [npm](http://npmjs.org) do:
58
-
59
- ```sh
60
- npm install deepmerge
61
- ```
62
-
63
- deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js).
64
-
65
-
66
- ### Include
67
-
68
- deepmerge exposes a CommonJS entry point:
69
-
70
- ```
71
- const merge = require('deepmerge')
72
- ```
73
-
74
- The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584).
75
-
76
- # API
77
-
78
-
79
- ## `merge(x, y, [options])`
80
-
81
- Merge two objects `x` and `y` deeply, returning a new merged object with the
82
- elements from both `x` and `y`.
83
-
84
- If an element at the same key is present for both `x` and `y`, the value from
85
- `y` will appear in the result.
86
-
87
- Merging creates a new object, so that neither `x` or `y` is modified.
88
-
89
- **Note:** By default, arrays are merged by concatenating them.
90
-
91
- ## `merge.all(arrayOfObjects, [options])`
92
-
93
- Merges any number of objects into a single result object.
94
-
95
- ```js
96
- const foobar = { foo: { bar: 3 } }
97
- const foobaz = { foo: { baz: 4 } }
98
- const bar = { bar: 'yay!' }
99
-
100
- merge.all([ foobar, foobaz, bar ]) // => { foo: { bar: 3, baz: 4 }, bar: 'yay!' }
101
- ```
102
-
103
-
104
- ## Options
105
-
106
- ### `arrayMerge`
107
-
108
- There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function.
109
-
110
- Your `arrayMerge` function will be called with three arguments: a `target` array, the `source` array, and an `options` object with these properties:
111
-
112
- - `isMergeableObject(value)`
113
- - `cloneUnlessOtherwiseSpecified(value, options)`
114
-
115
- #### `arrayMerge` example: overwrite target array
116
-
117
- Overwrites the existing array values completely rather than concatenating them:
118
-
119
- ```js
120
- const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray
121
-
122
- merge(
123
- [1, 2, 3],
124
- [3, 2, 1],
125
- { arrayMerge: overwriteMerge }
126
- ) // => [3, 2, 1]
127
- ```
128
-
129
- #### `arrayMerge` example: combine arrays
130
-
131
- Combines objects at the same index in the two arrays.
132
-
133
- This was the default array merging algorithm pre-version-2.0.0.
134
-
135
- ```js
136
- const combineMerge = (target, source, options) => {
137
- const destination = target.slice()
138
-
139
- source.forEach((item, index) => {
140
- if (typeof destination[index] === 'undefined') {
141
- destination[index] = options.cloneUnlessOtherwiseSpecified(item, options)
142
- } else if (options.isMergeableObject(item)) {
143
- destination[index] = merge(target[index], item, options)
144
- } else if (target.indexOf(item) === -1) {
145
- destination.push(item)
146
- }
147
- })
148
- return destination
149
- }
150
-
151
- merge(
152
- [{ a: true }],
153
- [{ b: true }, 'ah yup'],
154
- { arrayMerge: combineMerge }
155
- ) // => [{ a: true, b: true }, 'ah yup']
156
- ```
157
-
158
- ### `isMergeableObject`
159
-
160
- By default, deepmerge clones every property from almost every kind of object.
161
-
162
- You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties.
163
-
164
- You can accomplish this by passing in a function for the `isMergeableObject` option.
165
-
166
- If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object).
167
-
168
- ```js
169
- const { isPlainObject } = require('is-plain-object')
170
-
171
- function SuperSpecial() {
172
- this.special = 'oh yeah man totally'
173
- }
174
-
175
- const instantiatedSpecialObject = new SuperSpecial()
176
-
177
- const target = {
178
- someProperty: {
179
- cool: 'oh for sure'
180
- }
181
- }
182
-
183
- const source = {
184
- someProperty: instantiatedSpecialObject
185
- }
186
-
187
- const defaultOutput = merge(target, source)
188
-
189
- defaultOutput.someProperty.cool // => 'oh for sure'
190
- defaultOutput.someProperty.special // => 'oh yeah man totally'
191
- defaultOutput.someProperty instanceof SuperSpecial // => false
192
-
193
- const customMergeOutput = merge(target, source, {
194
- isMergeableObject: isPlainObject
195
- })
196
-
197
- customMergeOutput.someProperty.cool // => undefined
198
- customMergeOutput.someProperty.special // => 'oh yeah man totally'
199
- customMergeOutput.someProperty instanceof SuperSpecial // => true
200
- ```
201
-
202
- ### `customMerge`
203
-
204
- Specifies a function which can be used to override the default merge behavior for a property, based on the property name.
205
-
206
- The `customMerge` function will be passed the key for each property, and should return the function which should be used to merge the values for that property.
207
-
208
- It may also return undefined, in which case the default merge behaviour will be used.
209
-
210
- ```js
211
- const alex = {
212
- name: {
213
- first: 'Alex',
214
- last: 'Alexson'
215
- },
216
- pets: ['Cat', 'Parrot']
217
- }
218
-
219
- const tony = {
220
- name: {
221
- first: 'Tony',
222
- last: 'Tonison'
223
- },
224
- pets: ['Dog']
225
- }
226
-
227
- const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}`
228
-
229
- const options = {
230
- customMerge: (key) => {
231
- if (key === 'name') {
232
- return mergeNames
233
- }
234
- }
235
- }
236
-
237
- const result = merge(alex, tony, options)
238
-
239
- result.name // => 'Alex and Tony'
240
- result.pets // => ['Cat', 'Parrot', 'Dog']
241
- ```
242
-
243
-
244
- ### `clone`
245
-
246
- *Deprecated.*
247
-
248
- Defaults to `true`.
249
-
250
- If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x.
251
-
252
-
253
- # Testing
254
-
255
- With [npm](http://npmjs.org) do:
256
-
257
- ```sh
258
- npm test
259
- ```
260
-
261
-
262
- # License
263
-
264
- MIT
@@ -1,22 +0,0 @@
1
- import resolve from 'rollup-plugin-node-resolve'
2
- import commonjs from 'rollup-plugin-commonjs'
3
- import pkg from './package.json'
4
-
5
- export default {
6
- input: `index.js`,
7
- plugins: [
8
- commonjs(),
9
- resolve(),
10
- ],
11
- output: [
12
- {
13
- file: pkg.main,
14
- format: `cjs`
15
- },
16
- {
17
- name: 'deepmerge',
18
- file: 'dist/umd.js',
19
- format: `umd`
20
- },
21
- ],
22
- }
@@ -1,64 +0,0 @@
1
- declare namespace onetime {
2
- interface Options {
3
- /**
4
- Throw an error when called more than once.
5
-
6
- @default false
7
- */
8
- throw?: boolean;
9
- }
10
- }
11
-
12
- declare const onetime: {
13
- /**
14
- Ensure a function is only called once. When called multiple times it will return the return value from the first call.
15
-
16
- @param fn - Function that should only be called once.
17
- @returns A function that only calls `fn` once.
18
-
19
- @example
20
- ```
21
- import onetime = require('onetime');
22
-
23
- let i = 0;
24
-
25
- const foo = onetime(() => ++i);
26
-
27
- foo(); //=> 1
28
- foo(); //=> 1
29
- foo(); //=> 1
30
-
31
- onetime.callCount(foo); //=> 3
32
- ```
33
- */
34
- <ArgumentsType extends unknown[], ReturnType>(
35
- fn: (...arguments: ArgumentsType) => ReturnType,
36
- options?: onetime.Options
37
- ): (...arguments: ArgumentsType) => ReturnType;
38
-
39
- /**
40
- Get the number of times `fn` has been called.
41
-
42
- @param fn - Function to get call count from.
43
- @returns A number representing how many times `fn` has been called.
44
-
45
- @example
46
- ```
47
- import onetime = require('onetime');
48
-
49
- const foo = onetime(() => {});
50
- foo();
51
- foo();
52
- foo();
53
-
54
- console.log(onetime.callCount(foo));
55
- //=> 3
56
- ```
57
- */
58
- callCount(fn: (...arguments: any[]) => unknown): number;
59
-
60
- // TODO: Remove this for the next major release
61
- default: typeof onetime;
62
- };
63
-
64
- export = onetime;
@@ -1,44 +0,0 @@
1
- 'use strict';
2
- const mimicFn = require('mimic-fn');
3
-
4
- const calledFunctions = new WeakMap();
5
-
6
- const onetime = (function_, options = {}) => {
7
- if (typeof function_ !== 'function') {
8
- throw new TypeError('Expected a function');
9
- }
10
-
11
- let returnValue;
12
- let callCount = 0;
13
- const functionName = function_.displayName || function_.name || '<anonymous>';
14
-
15
- const onetime = function (...arguments_) {
16
- calledFunctions.set(onetime, ++callCount);
17
-
18
- if (callCount === 1) {
19
- returnValue = function_.apply(this, arguments_);
20
- function_ = null;
21
- } else if (options.throw === true) {
22
- throw new Error(`Function \`${functionName}\` can only be called once`);
23
- }
24
-
25
- return returnValue;
26
- };
27
-
28
- mimicFn(onetime, function_);
29
- calledFunctions.set(onetime, callCount);
30
-
31
- return onetime;
32
- };
33
-
34
- module.exports = onetime;
35
- // TODO: Remove this for the next major release
36
- module.exports.default = onetime;
37
-
38
- module.exports.callCount = function_ => {
39
- if (!calledFunctions.has(function_)) {
40
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
41
- }
42
-
43
- return calledFunctions.get(function_);
44
- };
@@ -1,9 +0,0 @@
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.
@@ -1,43 +0,0 @@
1
- {
2
- "name": "onetime",
3
- "version": "5.1.2",
4
- "description": "Ensure a function is only called once",
5
- "license": "MIT",
6
- "repository": "sindresorhus/onetime",
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
- "engines": {
14
- "node": ">=6"
15
- },
16
- "scripts": {
17
- "test": "xo && ava && tsd"
18
- },
19
- "files": [
20
- "index.js",
21
- "index.d.ts"
22
- ],
23
- "keywords": [
24
- "once",
25
- "function",
26
- "one",
27
- "onetime",
28
- "func",
29
- "fn",
30
- "single",
31
- "call",
32
- "called",
33
- "prevent"
34
- ],
35
- "dependencies": {
36
- "mimic-fn": "^2.1.0"
37
- },
38
- "devDependencies": {
39
- "ava": "^1.4.1",
40
- "tsd": "^0.7.1",
41
- "xo": "^0.24.0"
42
- }
43
- }
@@ -1,94 +0,0 @@
1
- # onetime [![Build Status](https://travis-ci.com/sindresorhus/onetime.svg?branch=master)](https://travis-ci.com/github/sindresorhus/onetime)
2
-
3
- > Ensure a function is only called once
4
-
5
- When called multiple times it will return the return value from the first call.
6
-
7
- *Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
8
-
9
- ## Install
10
-
11
- ```
12
- $ npm install onetime
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- const onetime = require('onetime');
19
-
20
- let i = 0;
21
-
22
- const foo = onetime(() => ++i);
23
-
24
- foo(); //=> 1
25
- foo(); //=> 1
26
- foo(); //=> 1
27
-
28
- onetime.callCount(foo); //=> 3
29
- ```
30
-
31
- ```js
32
- const onetime = require('onetime');
33
-
34
- const foo = onetime(() => {}, {throw: true});
35
-
36
- foo();
37
-
38
- foo();
39
- //=> Error: Function `foo` can only be called once
40
- ```
41
-
42
- ## API
43
-
44
- ### onetime(fn, options?)
45
-
46
- Returns a function that only calls `fn` once.
47
-
48
- #### fn
49
-
50
- Type: `Function`
51
-
52
- Function that should only be called once.
53
-
54
- #### options
55
-
56
- Type: `object`
57
-
58
- ##### throw
59
-
60
- Type: `boolean`\
61
- Default: `false`
62
-
63
- Throw an error when called more than once.
64
-
65
- ### onetime.callCount(fn)
66
-
67
- Returns a number representing how many times `fn` has been called.
68
-
69
- Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
70
-
71
- ```js
72
- const onetime = require('onetime');
73
-
74
- const foo = onetime(() => {});
75
-
76
- foo();
77
- foo();
78
- foo();
79
-
80
- console.log(onetime.callCount(foo));
81
- //=> 3
82
- ```
83
-
84
- #### fn
85
-
86
- Type: `Function`
87
-
88
- Function to get call count from.
89
-
90
- ## onetime for enterprise
91
-
92
- Available as part of the Tidelift Subscription.
93
-
94
- The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)