@design-edito/tools 0.3.0 → 0.3.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.
Files changed (257) hide show
  1. package/agnostic/arrays/is-array-of/index.js +1 -1
  2. package/agnostic/colors/channels/index.js +3 -3
  3. package/agnostic/colors/contrast/index.js +3 -3
  4. package/agnostic/colors/convert/index.js +2 -2
  5. package/agnostic/colors/distance/index.js +2 -2
  6. package/agnostic/colors/grayscale/index.js +2 -2
  7. package/agnostic/colors/invert/index.js +2 -2
  8. package/agnostic/colors/lerp/index.js +2 -2
  9. package/agnostic/colors/luminance/index.js +3 -3
  10. package/agnostic/colors/palette/index.js +4 -4
  11. package/agnostic/colors/rotate/index.js +4 -4
  12. package/agnostic/colors/tidy/index.js +2 -2
  13. package/agnostic/{numbers/responsive-harmonics → css/scale}/index.d.ts +7 -17
  14. package/agnostic/{numbers/responsive-harmonics → css/scale}/index.js +18 -30
  15. package/agnostic/css/scale/index.test.d.ts +1 -0
  16. package/agnostic/html/hyper-json/cast/index.js +4 -4
  17. package/agnostic/html/hyper-json/index.js +4 -4
  18. package/agnostic/html/hyper-json/serialize/index.js +1 -1
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +4 -4
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +4 -4
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -4
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -4
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
  71. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
  72. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
  73. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
  74. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
  75. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
  76. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
  77. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
  78. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
  79. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
  80. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
  81. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
  82. package/agnostic/html/hyper-json/tree/index.js +4 -4
  83. package/agnostic/html/hyper-json/utils/index.js +4 -4
  84. package/agnostic/misc/assert/index.js +3 -3
  85. package/agnostic/misc/cast/index.js +49 -10
  86. package/agnostic/misc/crawler/index.d.ts +4 -2
  87. package/agnostic/misc/crawler/index.js +2 -2
  88. package/agnostic/misc/is-constructor-function/index.js +1 -1
  89. package/agnostic/numbers/geometric-progressions/index.d.ts +14 -0
  90. package/agnostic/numbers/geometric-progressions/index.js +7 -0
  91. package/agnostic/numbers/geometric-progressions/index.test.d.ts +1 -0
  92. package/agnostic/objects/deep-get-property/index.test.d.ts +1 -0
  93. package/agnostic/objects/enums/is-in-enum/index.test.d.ts +1 -0
  94. package/agnostic/objects/flatten-getters/index.d.ts +2 -2
  95. package/agnostic/objects/flatten-getters/index.js +8 -17
  96. package/agnostic/objects/flatten-getters/index.test.d.ts +1 -0
  97. package/agnostic/objects/is-object/index.test.d.ts +1 -0
  98. package/agnostic/objects/is-record/index.test.d.ts +1 -0
  99. package/agnostic/objects/record-format/index.d.ts +25 -26
  100. package/agnostic/objects/record-format/index.js +1 -5
  101. package/agnostic/objects/record-format/index.test.d.ts +1 -0
  102. package/agnostic/objects/record-map/index.d.ts +5 -5
  103. package/agnostic/objects/record-map/index.test.d.ts +1 -0
  104. package/agnostic/objects/validation/index.test.d.ts +1 -0
  105. package/agnostic/optim/memoize/index.test.d.ts +1 -0
  106. package/agnostic/optim/throttle-debounce/index.js +1 -1
  107. package/agnostic/optim/throttle-debounce/index.test.d.ts +1 -0
  108. package/agnostic/random/hex-char/index.test.d.ts +1 -0
  109. package/agnostic/random/random/index.test.d.ts +1 -0
  110. package/agnostic/random/uuid/index.test.d.ts +1 -0
  111. package/agnostic/regexps/index.d.ts +5 -2
  112. package/agnostic/regexps/index.js +15 -3
  113. package/agnostic/regexps/index.test.d.ts +1 -0
  114. package/agnostic/sanitization/file-name/index.test.d.ts +1 -0
  115. package/agnostic/sanitization/path/index.test.d.ts +1 -0
  116. package/agnostic/sanitization/user-input/index.d.ts +2 -2
  117. package/agnostic/sanitization/user-input/index.js +13 -8
  118. package/agnostic/sanitization/user-input/index.test.d.ts +1 -0
  119. package/agnostic/typescript/types.d.ts +4 -0
  120. package/chunks/chunk-5H3IRSOB.js +8 -0
  121. package/chunks/{chunk-P6K7NPUZ.js → chunk-6KOJFWH3.js} +1 -1
  122. package/chunks/chunk-ASXK7XCC.js +18 -0
  123. package/chunks/{chunk-PC62QFWI.js → chunk-FXISVWGE.js} +1 -1
  124. package/chunks/{chunk-ASNS7K6J.js → chunk-HMPY32F7.js} +1 -1
  125. package/chunks/{chunk-UL4SNGRK.js → chunk-MSAAQTCE.js} +4 -4
  126. package/chunks/{chunk-33SNWUIB.js → chunk-MZYCKOLN.js} +1 -1
  127. package/chunks/{chunk-AOR2M2H3.js → chunk-QFBVETGF.js} +1 -1
  128. package/chunks/{chunk-RJK53Q5I.js → chunk-TLWVLCIQ.js} +1 -1
  129. package/chunks/{chunk-THWQ7NVE.js → chunk-TTJXJX4E.js} +2 -2
  130. package/chunks/{chunk-QWBT7W6I.js → chunk-UR5BUIPU.js} +1 -1
  131. package/node/@aws-s3/storage/directory/copy-dir/index.js +2 -2
  132. package/node/@aws-s3/storage/directory/list/index.js +2 -2
  133. package/node/@aws-s3/storage/directory/move-dir/index.js +2 -2
  134. package/node/@aws-s3/storage/directory/remove-dir/index.js +2 -2
  135. package/node/@aws-s3/storage/file/copy/index.js +2 -2
  136. package/node/@aws-s3/storage/file/download/index.js +2 -2
  137. package/node/@aws-s3/storage/file/exists/index.js +2 -2
  138. package/node/@aws-s3/storage/file/move/index.js +2 -2
  139. package/node/@aws-s3/storage/file/remove/index.js +2 -2
  140. package/node/@aws-s3/storage/file/stat/index.js +2 -2
  141. package/node/@aws-s3/storage/file/upload/index.js +2 -2
  142. package/node/@express/@multer/index.js +3 -3
  143. package/node/@google-cloud/storage/bucket/get-metadata/index.js +3 -3
  144. package/node/@google-cloud/storage/directory/copy-dir/index.js +2 -2
  145. package/node/@google-cloud/storage/directory/list/index.js +2 -2
  146. package/node/@google-cloud/storage/directory/move-dir/index.js +2 -2
  147. package/node/@google-cloud/storage/directory/remove-dir/index.js +2 -2
  148. package/node/@google-cloud/storage/file/copy/index.js +2 -2
  149. package/node/@google-cloud/storage/file/download/index.js +2 -2
  150. package/node/@google-cloud/storage/file/exists/index.js +2 -2
  151. package/node/@google-cloud/storage/file/generate-signed-url/index.js +3 -3
  152. package/node/@google-cloud/storage/file/get-metadata/index.js +3 -3
  153. package/node/@google-cloud/storage/file/get-permissions/index.js +3 -3
  154. package/node/@google-cloud/storage/file/move/index.js +2 -2
  155. package/node/@google-cloud/storage/file/remove/index.js +2 -2
  156. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +6 -6
  157. package/node/@google-cloud/storage/file/stat/index.js +2 -2
  158. package/node/@google-cloud/storage/file/update-metadata/index.js +3 -3
  159. package/node/@google-cloud/storage/file/upload/index.js +2 -2
  160. package/node/cloud-storage/operations/copy-dir/index.js +5 -5
  161. package/node/cloud-storage/operations/copy-file/index.js +5 -5
  162. package/node/cloud-storage/operations/download-file/index.js +5 -5
  163. package/node/cloud-storage/operations/exists-file/index.js +5 -5
  164. package/node/cloud-storage/operations/list-dir/index.js +5 -5
  165. package/node/cloud-storage/operations/move-dir/index.js +5 -5
  166. package/node/cloud-storage/operations/move-file/index.js +5 -5
  167. package/node/cloud-storage/operations/remove-dir/index.js +5 -5
  168. package/node/cloud-storage/operations/remove-file/index.js +5 -5
  169. package/node/cloud-storage/operations/stat-file/index.js +5 -5
  170. package/node/cloud-storage/operations/upload-file/index.js +5 -5
  171. package/node/encryption/@aes-256-gcm/buffer/index.js +2 -2
  172. package/node/encryption/@aes-256-gcm/uint8-array/index.js +2 -2
  173. package/node/ftps/directory/copy-dir/index.js +2 -2
  174. package/node/ftps/directory/list/index.js +2 -2
  175. package/node/ftps/directory/move-dir/index.js +2 -2
  176. package/node/ftps/directory/remove-dir/index.js +2 -2
  177. package/node/ftps/file/copy/index.js +2 -2
  178. package/node/ftps/file/download/index.js +2 -2
  179. package/node/ftps/file/exists/index.js +2 -2
  180. package/node/ftps/file/move/index.js +2 -2
  181. package/node/ftps/file/remove/index.js +2 -2
  182. package/node/ftps/file/stat/index.js +2 -2
  183. package/node/ftps/file/upload/index.js +2 -2
  184. package/node/images/create/index.js +3 -3
  185. package/node/images/format/index.js +3 -3
  186. package/node/images/metadata/index.js +3 -3
  187. package/node/images/transform/index.js +33 -33
  188. package/node/images/transform/operations/extend/index.js +4 -4
  189. package/node/images/transform/operations/flatten/index.js +4 -4
  190. package/node/images/transform/operations/overlay/index.js +4 -4
  191. package/node/images/transform/operations/resize/index.js +4 -4
  192. package/node/images/transform/operations/rotate/index.js +4 -4
  193. package/node/images/utils/index.js +3 -3
  194. package/node/process/spawner/index.js +3 -3
  195. package/node/sftp/directory/copy-dir/index.js +2 -2
  196. package/node/sftp/directory/list/index.js +2 -2
  197. package/node/sftp/directory/move-dir/index.js +2 -2
  198. package/node/sftp/directory/remove-dir/index.js +2 -2
  199. package/node/sftp/file/copy/index.js +2 -2
  200. package/node/sftp/file/download/index.js +2 -2
  201. package/node/sftp/file/exists/index.js +2 -2
  202. package/node/sftp/file/move/index.js +2 -2
  203. package/node/sftp/file/remove/index.js +2 -2
  204. package/node/sftp/file/stat/index.js +2 -2
  205. package/node/sftp/file/upload/index.js +2 -2
  206. package/package.json +1 -1
  207. package/agnostic/misc/elo/index.d.ts +0 -29
  208. package/agnostic/misc/elo/index.js +0 -31
  209. package/chunks/chunk-RCO57B6F.js +0 -9
  210. package/chunks/chunk-YWSXCFYY.js +0 -61
  211. package/chunks/{chunk-AV373PHY.js → chunk-2OGNVG5X.js} +3 -3
  212. package/chunks/{chunk-SBBIQ5UH.js → chunk-4ARE376R.js} +3 -3
  213. package/chunks/{chunk-O7UCJNVF.js → chunk-4WO4M2HE.js} +3 -3
  214. package/chunks/{chunk-66BURDRK.js → chunk-5DJBOYRY.js} +3 -3
  215. package/chunks/{chunk-7B2E2NGH.js → chunk-5LCPENF6.js} +3 -3
  216. package/chunks/{chunk-FH74QWR6.js → chunk-6652JQFX.js} +3 -3
  217. package/chunks/{chunk-6BGIDRU5.js → chunk-6GINUDWK.js} +3 -3
  218. package/chunks/{chunk-5O52VUI6.js → chunk-7OWHDBUD.js} +3 -3
  219. package/chunks/{chunk-BQXTV2GG.js → chunk-AFQ6FUT2.js} +3 -3
  220. package/chunks/{chunk-EBQRPRRC.js → chunk-B4BXEVMI.js} +3 -3
  221. package/chunks/{chunk-FSI422YG.js → chunk-BOI2VKM7.js} +3 -3
  222. package/chunks/{chunk-AOEOW5XW.js → chunk-CDIXAYVL.js} +3 -3
  223. package/chunks/{chunk-BQABPH3I.js → chunk-D3J6JAJW.js} +3 -3
  224. package/chunks/{chunk-6YVXSCRH.js → chunk-EZVE2V6Z.js} +3 -3
  225. package/chunks/{chunk-PTN2V757.js → chunk-FBWBGFRA.js} +3 -3
  226. package/chunks/{chunk-AXMAF3J2.js → chunk-FML7BURX.js} +3 -3
  227. package/chunks/{chunk-O66PEU62.js → chunk-GDSDQ3UB.js} +3 -3
  228. package/chunks/{chunk-5X76KDYN.js → chunk-GFYAOPTP.js} +3 -3
  229. package/chunks/{chunk-JU23NBY2.js → chunk-GICC2TWR.js} +3 -3
  230. package/chunks/{chunk-DBNCEHTT.js → chunk-GOKDRSAD.js} +3 -3
  231. package/chunks/{chunk-54KPQCVI.js → chunk-IV6JXJNW.js} +3 -3
  232. package/chunks/{chunk-DBZAJJUF.js → chunk-J45Y3CWM.js} +3 -3
  233. package/chunks/{chunk-FM3HGCFL.js → chunk-JCXDI6AD.js} +3 -3
  234. package/chunks/{chunk-IBQQCUYV.js → chunk-JPNVNAO4.js} +3 -3
  235. package/chunks/{chunk-RGQNRTBI.js → chunk-KEGTGEAM.js} +3 -3
  236. package/chunks/{chunk-EEPLTO3E.js → chunk-LBK4TBXP.js} +3 -3
  237. package/chunks/{chunk-VU6JYR3W.js → chunk-MFL7PQWJ.js} +3 -3
  238. package/chunks/{chunk-JFXEMK66.js → chunk-NONFIHGT.js} +3 -3
  239. package/chunks/{chunk-BXFRBV67.js → chunk-OCDUURXM.js} +3 -3
  240. package/chunks/{chunk-NIIAUOBO.js → chunk-PA6C6P2W.js} +3 -3
  241. package/chunks/{chunk-J5D4OQ5U.js → chunk-Q6Y27PHJ.js} +3 -3
  242. package/chunks/{chunk-UZ4SWSOZ.js → chunk-QD6KZUTV.js} +3 -3
  243. package/chunks/{chunk-OF2W4ZRG.js → chunk-RC7TRCNX.js} +3 -3
  244. package/chunks/{chunk-LU47ASMQ.js → chunk-RNXRHCHQ.js} +3 -3
  245. package/chunks/{chunk-ZTPRFEPV.js → chunk-S2YRVCQ4.js} +3 -3
  246. package/chunks/{chunk-QQO4QKH2.js → chunk-SJ54QLKA.js} +10 -10
  247. package/chunks/{chunk-JN2UETL4.js → chunk-SNB7HA6G.js} +3 -3
  248. package/chunks/{chunk-S2I77NEE.js → chunk-T3F3S6XV.js} +3 -3
  249. package/chunks/{chunk-S6ZFFGWH.js → chunk-TKAWYSFV.js} +3 -3
  250. package/chunks/{chunk-YOP6WVCF.js → chunk-UVYVJF5Q.js} +3 -3
  251. package/chunks/{chunk-BHGRXDTS.js → chunk-VRVBSI2L.js} +3 -3
  252. package/chunks/{chunk-NEMHJSNM.js → chunk-VYVVS4LW.js} +3 -3
  253. package/chunks/{chunk-2WSVYQ5Q.js → chunk-W7VDFL7P.js} +3 -3
  254. package/chunks/{chunk-Y6FD4ASO.js → chunk-XKELYCHB.js} +3 -3
  255. package/chunks/{chunk-VYDUHDXW.js → chunk-XVH447XG.js} +3 -3
  256. package/chunks/{chunk-ULYGDEW2.js → chunk-Z352FGUT.js} +3 -3
  257. package/chunks/{chunk-W5VY535B.js → chunk-ZE5QOQM6.js} +3 -3
@@ -24,11 +24,11 @@ function fromStartToEnd(regexp, flags = "g") {
24
24
  const mergedFlags = mergeFlags(regexp.flags, flags);
25
25
  return fromStart(toEnd(regexp, mergedFlags), mergedFlags);
26
26
  }
27
- function stringStartsWith(string, regexp, returnMatches = true, flags = "g") {
27
+ function stringStartsWith(string, regexp, returnMatches = false, flags = "g") {
28
28
  const actualRegexp = fromStart(regexp, flags);
29
29
  return returnMatches ? string.match(actualRegexp) : actualRegexp.test(string);
30
30
  }
31
- function stringEndsWith(string, regexp, returnMatches = true, flags = "g") {
31
+ function stringEndsWith(string, regexp, returnMatches = false, flags = "g") {
32
32
  const actualRegexp = toEnd(regexp, flags);
33
33
  return returnMatches ? string.match(actualRegexp) : actualRegexp.test(string);
34
34
  }
@@ -43,7 +43,19 @@ function fromStrings(strings) {
43
43
  return regexp;
44
44
  }
45
45
  function escape(string) {
46
- return string.replace(/\s/igm, "\\s").replace(/\n/igm, "\\n").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
46
+ let result = "";
47
+ for (const ch of string) {
48
+ if (ch === "\n") {
49
+ result += "\\n";
50
+ } else if (/\s/.test(ch)) {
51
+ result += "\\s";
52
+ } else if (/[.*+?^${}()|[\]\\]/.test(ch)) {
53
+ result += "\\" + ch;
54
+ } else {
55
+ result += ch;
56
+ }
57
+ }
58
+ return result;
47
59
  }
48
60
  function stringsToRootsMap(strings, rootsMap = /* @__PURE__ */ new Map()) {
49
61
  const lengthSorted = strings.sort((strA, strB) => strA.length - strB.length);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * - Strings are sanitized using `xss`.
5
5
  * - Arrays and objects are sanitized recursively.
6
- * - Circular references are safely handled via a `WeakSet`.
6
+ * - Circular references are safely handled via a `WeakMap`.
7
7
  *
8
8
  * @template T
9
9
  * @param input - Input value to sanitize (string, object, or array).
10
10
  * @param [seen] - Internal set to track circular references.
11
11
  * @returns Sanitized input with the same structure as the original.
12
12
  */
13
- export declare const sanitizeUserInput: <T>(input: T, seen?: WeakSet<WeakKey>) => T;
13
+ export declare const sanitizeUserInput: <T>(input: T, seen?: WeakMap<WeakKey, any>) => T;
@@ -2,19 +2,24 @@ import "../../../chunks/chunk-XCBH6NLF.js";
2
2
 
3
3
  // src/agnostic/sanitization/user-input/index.ts
4
4
  import xss from "xss";
5
- var sanitizeUserInput = (input, seen = /* @__PURE__ */ new WeakSet()) => {
5
+ var sanitizeUserInput = (input, seen = /* @__PURE__ */ new WeakMap()) => {
6
6
  if (typeof input === "string") return xss(input);
7
7
  if (Array.isArray(input)) {
8
- if (seen.has(input)) return input;
9
- seen.add(input);
10
- return input.map((item) => sanitizeUserInput(item, seen));
8
+ if (seen.has(input)) return seen.get(input);
9
+ const sanitized = [];
10
+ seen.set(input, sanitized);
11
+ sanitized.push(...input.map((item) => sanitizeUserInput(item, seen)));
12
+ return sanitized;
11
13
  }
12
14
  if (input !== null && typeof input === "object") {
13
- if (seen.has(input)) return input;
14
- seen.add(input);
15
+ if (seen.has(input)) return seen.get(input);
16
+ const sanitized = {};
17
+ seen.set(input, sanitized);
15
18
  const entries = Object.entries(input);
16
- const sanitizedEntries = entries.map(([key, value]) => [xss(key), sanitizeUserInput(value, seen)]);
17
- return Object.fromEntries(sanitizedEntries);
19
+ for (const [key, value] of entries) {
20
+ sanitized[xss(key)] = sanitizeUserInput(value, seen);
21
+ }
22
+ return sanitized;
18
23
  }
19
24
  return input;
20
25
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -35,3 +35,7 @@ export type NullIfUndefined<T> = T extends undefined ? null : T;
35
35
  * ```
36
36
  */
37
37
  export type RequireKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
38
+ /**
39
+ * Utility type that extracts the resolved type of a Promise, or returns the type itself if not a Promise.
40
+ */
41
+ export type UnwrapPromise<PromiseOrNot> = PromiseOrNot extends Promise<infer Resolved> ? Resolved : PromiseOrNot;
@@ -0,0 +1,8 @@
1
+ // src/agnostic/misc/is-constructor-function/index.ts
2
+ function isConstructorFunction(input) {
3
+ return typeof input === "function" && "prototype" in input && typeof input.prototype === "object" && "constructor" in input.prototype && input.prototype.constructor === input;
4
+ }
5
+
6
+ export {
7
+ isConstructorFunction
8
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tidy,
3
3
  toRgb
4
- } from "./chunk-LU47ASMQ.js";
4
+ } from "./chunk-RNXRHCHQ.js";
5
5
  import {
6
6
  isNonNullObject
7
7
  } from "./chunk-HQLRJ7XW.js";
@@ -0,0 +1,18 @@
1
+ // src/agnostic/numbers/geometric-progressions/index.ts
2
+ function getGeometricStep(min, max, level, steps) {
3
+ if (min === 0) {
4
+ console.warn("Cannot generate values if min value is zero");
5
+ return NaN;
6
+ }
7
+ if (steps < 1) {
8
+ console.warn("Cannot generate values if steps is lower than one");
9
+ return NaN;
10
+ }
11
+ const maxOverMin = max / min;
12
+ const factor = Math.pow(maxOverMin, 1 / steps);
13
+ return min * Math.pow(factor, level);
14
+ }
15
+
16
+ export {
17
+ getGeometricStep
18
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toSharpColor
3
- } from "./chunk-P6K7NPUZ.js";
3
+ } from "./chunk-6KOJFWH3.js";
4
4
  import {
5
5
  zod_default
6
6
  } from "./chunk-LFHDJTZJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toSharpColor
3
- } from "./chunk-P6K7NPUZ.js";
3
+ } from "./chunk-6KOJFWH3.js";
4
4
  import {
5
5
  zod_default
6
6
  } from "./chunk-LFHDJTZJ.js";
@@ -13,13 +13,13 @@ import {
13
13
  viaLch,
14
14
  viaRgb,
15
15
  viaXyz
16
- } from "./chunk-LU47ASMQ.js";
17
- import {
18
- clamp
19
- } from "./chunk-OSAXBA7G.js";
16
+ } from "./chunk-RNXRHCHQ.js";
20
17
  import {
21
18
  absoluteModulo
22
19
  } from "./chunk-DNIOWD7K.js";
20
+ import {
21
+ clamp
22
+ } from "./chunk-OSAXBA7G.js";
23
23
 
24
24
  // src/agnostic/colors/channels/index.ts
25
25
  function setChannel(color, channel, value) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isDuckTypedSharpInstance,
3
3
  toSharpInstance
4
- } from "./chunk-P6K7NPUZ.js";
4
+ } from "./chunk-6KOJFWH3.js";
5
5
  import {
6
6
  zod_default
7
7
  } from "./chunk-LFHDJTZJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toSharpColor
3
- } from "./chunk-P6K7NPUZ.js";
3
+ } from "./chunk-6KOJFWH3.js";
4
4
  import {
5
5
  zod_default
6
6
  } from "./chunk-LFHDJTZJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toSharpColor
3
- } from "./chunk-P6K7NPUZ.js";
3
+ } from "./chunk-6KOJFWH3.js";
4
4
  import {
5
5
  zod_default
6
6
  } from "./chunk-LFHDJTZJ.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  addChannel
3
- } from "./chunk-UL4SNGRK.js";
3
+ } from "./chunk-MSAAQTCE.js";
4
4
  import {
5
5
  viaLab,
6
6
  viaLch
7
- } from "./chunk-LU47ASMQ.js";
7
+ } from "./chunk-RNXRHCHQ.js";
8
8
  import {
9
9
  absoluteModulo
10
10
  } from "./chunk-DNIOWD7K.js";
@@ -3,7 +3,7 @@ import {
3
3
  toLab,
4
4
  toRgb,
5
5
  toXyz
6
- } from "./chunk-LU47ASMQ.js";
6
+ } from "./chunk-RNXRHCHQ.js";
7
7
 
8
8
  // src/agnostic/colors/luminance/index.ts
9
9
  function luminanceRgb(rgb) {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copyDir
3
- } from "../../../../../chunks/chunk-VU6JYR3W.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-MFL7PQWJ.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  copyDir
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  list
3
- } from "../../../../../chunks/chunk-JFXEMK66.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-NONFIHGT.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  list
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  moveDir
3
- } from "../../../../../chunks/chunk-2WSVYQ5Q.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-W7VDFL7P.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  moveDir
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  removeDir
3
- } from "../../../../../chunks/chunk-5X76KDYN.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-GFYAOPTP.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  removeDir
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copy
3
- } from "../../../../../chunks/chunk-YOP6WVCF.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-UVYVJF5Q.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  copy
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  download
3
- } from "../../../../../chunks/chunk-5O52VUI6.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-7OWHDBUD.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  download
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  exists
3
- } from "../../../../../chunks/chunk-6BGIDRU5.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-6GINUDWK.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  exists
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  move
3
- } from "../../../../../chunks/chunk-AV373PHY.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-2OGNVG5X.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  move
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  remove
3
- } from "../../../../../chunks/chunk-BQXTV2GG.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-AFQ6FUT2.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  remove
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  stat
3
- } from "../../../../../chunks/chunk-AXMAF3J2.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-FML7BURX.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  stat
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  upload
3
- } from "../../../../../chunks/chunk-FM3HGCFL.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-JCXDI6AD.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  upload
@@ -1,10 +1,10 @@
1
+ import {
2
+ unknownToString
3
+ } from "../../../chunks/chunk-FENXVJYO.js";
1
4
  import {
2
5
  makeFailure,
3
6
  makeSuccess
4
7
  } from "../../../chunks/chunk-QEKI6WGQ.js";
5
- import {
6
- unknownToString
7
- } from "../../../chunks/chunk-FENXVJYO.js";
8
8
  import "../../../chunks/chunk-XCBH6NLF.js";
9
9
 
10
10
  // src/node/@express/@multer/index.ts
@@ -1,10 +1,10 @@
1
+ import {
2
+ unknownToString
3
+ } from "../../../../../chunks/chunk-FENXVJYO.js";
1
4
  import {
2
5
  makeFailure,
3
6
  makeSuccess
4
7
  } from "../../../../../chunks/chunk-QEKI6WGQ.js";
5
- import {
6
- unknownToString
7
- } from "../../../../../chunks/chunk-FENXVJYO.js";
8
8
  import "../../../../../chunks/chunk-XCBH6NLF.js";
9
9
 
10
10
  // src/node/@google-cloud/storage/bucket/get-metadata/index.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copyDir
3
- } from "../../../../../chunks/chunk-IBQQCUYV.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-JPNVNAO4.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  copyDir
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  list
3
- } from "../../../../../chunks/chunk-BXFRBV67.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-OCDUURXM.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  list
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  moveDir
3
- } from "../../../../../chunks/chunk-NIIAUOBO.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-PA6C6P2W.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  moveDir
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  removeDir
3
- } from "../../../../../chunks/chunk-ZTPRFEPV.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-S2YRVCQ4.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  removeDir
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  copy
3
- } from "../../../../../chunks/chunk-S6ZFFGWH.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-TKAWYSFV.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  copy
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  download
3
- } from "../../../../../chunks/chunk-O66PEU62.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-GDSDQ3UB.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  download
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  exists
3
- } from "../../../../../chunks/chunk-NEMHJSNM.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-VYVVS4LW.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  exists
@@ -1,10 +1,10 @@
1
+ import {
2
+ unknownToString
3
+ } from "../../../../../chunks/chunk-FENXVJYO.js";
1
4
  import {
2
5
  makeFailure,
3
6
  makeSuccess
4
7
  } from "../../../../../chunks/chunk-QEKI6WGQ.js";
5
- import {
6
- unknownToString
7
- } from "../../../../../chunks/chunk-FENXVJYO.js";
8
8
  import "../../../../../chunks/chunk-XCBH6NLF.js";
9
9
 
10
10
  // src/node/@google-cloud/storage/file/generate-signed-url/index.ts
@@ -1,10 +1,10 @@
1
+ import {
2
+ unknownToString
3
+ } from "../../../../../chunks/chunk-FENXVJYO.js";
1
4
  import {
2
5
  makeFailure,
3
6
  makeSuccess
4
7
  } from "../../../../../chunks/chunk-QEKI6WGQ.js";
5
- import {
6
- unknownToString
7
- } from "../../../../../chunks/chunk-FENXVJYO.js";
8
8
  import "../../../../../chunks/chunk-XCBH6NLF.js";
9
9
 
10
10
  // src/node/@google-cloud/storage/file/get-metadata/index.ts
@@ -1,10 +1,10 @@
1
+ import {
2
+ unknownToString
3
+ } from "../../../../../chunks/chunk-FENXVJYO.js";
1
4
  import {
2
5
  makeFailure,
3
6
  makeSuccess
4
7
  } from "../../../../../chunks/chunk-QEKI6WGQ.js";
5
- import {
6
- unknownToString
7
- } from "../../../../../chunks/chunk-FENXVJYO.js";
8
8
  import "../../../../../chunks/chunk-XCBH6NLF.js";
9
9
 
10
10
  // src/node/@google-cloud/storage/file/get-permissions/index.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  move
3
- } from "../../../../../chunks/chunk-SBBIQ5UH.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-4ARE376R.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  move
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  remove
3
- } from "../../../../../chunks/chunk-66BURDRK.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-5DJBOYRY.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  remove
@@ -1,16 +1,16 @@
1
+ import {
2
+ remove
3
+ } from "../../../../../chunks/chunk-5DJBOYRY.js";
1
4
  import {
2
5
  upload
3
- } from "../../../../../chunks/chunk-UZ4SWSOZ.js";
6
+ } from "../../../../../chunks/chunk-QD6KZUTV.js";
4
7
  import {
5
8
  download
6
- } from "../../../../../chunks/chunk-O66PEU62.js";
7
- import {
8
- remove
9
- } from "../../../../../chunks/chunk-66BURDRK.js";
9
+ } from "../../../../../chunks/chunk-GDSDQ3UB.js";
10
+ import "../../../../../chunks/chunk-FENXVJYO.js";
10
11
  import {
11
12
  makeSuccess
12
13
  } from "../../../../../chunks/chunk-QEKI6WGQ.js";
13
- import "../../../../../chunks/chunk-FENXVJYO.js";
14
14
  import "../../../../../chunks/chunk-XCBH6NLF.js";
15
15
 
16
16
  // src/node/@google-cloud/storage/file/revoke-signed-urls/index.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  stat
3
- } from "../../../../../chunks/chunk-FSI422YG.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-BOI2VKM7.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  stat
@@ -1,10 +1,10 @@
1
+ import {
2
+ unknownToString
3
+ } from "../../../../../chunks/chunk-FENXVJYO.js";
1
4
  import {
2
5
  makeFailure,
3
6
  makeSuccess
4
7
  } from "../../../../../chunks/chunk-QEKI6WGQ.js";
5
- import {
6
- unknownToString
7
- } from "../../../../../chunks/chunk-FENXVJYO.js";
8
8
  import "../../../../../chunks/chunk-XCBH6NLF.js";
9
9
 
10
10
  // src/node/@google-cloud/storage/file/update-metadata/index.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  upload
3
- } from "../../../../../chunks/chunk-UZ4SWSOZ.js";
4
- import "../../../../../chunks/chunk-QEKI6WGQ.js";
3
+ } from "../../../../../chunks/chunk-QD6KZUTV.js";
5
4
  import "../../../../../chunks/chunk-FENXVJYO.js";
5
+ import "../../../../../chunks/chunk-QEKI6WGQ.js";
6
6
  import "../../../../../chunks/chunk-XCBH6NLF.js";
7
7
  export {
8
8
  upload