@rtorcato/js-common 1.2.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 (170) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/CONTRIBUTORS.md +97 -0
  3. package/LICENSE +21 -0
  4. package/README.md +199 -0
  5. package/dist/abortController/index.d.ts +29 -0
  6. package/dist/abortController/index.d.ts.map +1 -0
  7. package/dist/abortController/index.js +1 -0
  8. package/dist/arrays/index.d.ts +44 -0
  9. package/dist/arrays/index.d.ts.map +1 -0
  10. package/dist/arrays/index.js +1 -0
  11. package/dist/boolean/index.d.ts +41 -0
  12. package/dist/boolean/index.d.ts.map +1 -0
  13. package/dist/boolean/index.js +1 -0
  14. package/dist/chunks/chunk-7MXMG6WN.js +1 -0
  15. package/dist/chunks/chunk-ANN5UYCF.js +1 -0
  16. package/dist/chunks/chunk-DCFILRIS.js +1 -0
  17. package/dist/chunks/chunk-W72HFHZY.js +1 -0
  18. package/dist/chunks/chunk-XAQ7VMV4.js +1 -0
  19. package/dist/cli/index.cjs +3711 -0
  20. package/dist/colors/index.d.ts +63 -0
  21. package/dist/colors/index.d.ts.map +1 -0
  22. package/dist/colors/index.js +1 -0
  23. package/dist/console/index.d.ts +16 -0
  24. package/dist/console/index.d.ts.map +1 -0
  25. package/dist/console/index.js +1 -0
  26. package/dist/crypto/index.d.ts +34 -0
  27. package/dist/crypto/index.d.ts.map +1 -0
  28. package/dist/crypto/index.js +1 -0
  29. package/dist/currency/currencies.d.ts +16 -0
  30. package/dist/currency/currencies.d.ts.map +1 -0
  31. package/dist/currency/currencies.js +1 -0
  32. package/dist/currency/index.d.ts +52 -0
  33. package/dist/currency/index.d.ts.map +1 -0
  34. package/dist/currency/index.js +1 -0
  35. package/dist/date/index.d.ts +44 -0
  36. package/dist/date/index.d.ts.map +1 -0
  37. package/dist/date/index.js +1 -0
  38. package/dist/datetime/index.d.ts +52 -0
  39. package/dist/datetime/index.d.ts.map +1 -0
  40. package/dist/datetime/index.js +1 -0
  41. package/dist/emails/banned/index.d.ts +9 -0
  42. package/dist/emails/banned/index.d.ts.map +1 -0
  43. package/dist/emails/index.d.ts +26 -0
  44. package/dist/emails/index.d.ts.map +1 -0
  45. package/dist/emails/index.js +1 -0
  46. package/dist/env/index.d.ts +63 -0
  47. package/dist/env/index.d.ts.map +1 -0
  48. package/dist/env/index.js +3 -0
  49. package/dist/errors/index.d.ts +39 -0
  50. package/dist/errors/index.d.ts.map +1 -0
  51. package/dist/errors/index.js +1 -0
  52. package/dist/events/index.d.ts +35 -0
  53. package/dist/events/index.d.ts.map +1 -0
  54. package/dist/events/index.js +1 -0
  55. package/dist/fetch/index.d.ts +38 -0
  56. package/dist/fetch/index.d.ts.map +1 -0
  57. package/dist/fetch/index.js +1 -0
  58. package/dist/file/index.d.ts +32 -0
  59. package/dist/file/index.d.ts.map +1 -0
  60. package/dist/file/index.js +1 -0
  61. package/dist/formatting/index.d.ts +52 -0
  62. package/dist/formatting/index.d.ts.map +1 -0
  63. package/dist/formatting/index.js +1 -0
  64. package/dist/functions/index.d.ts +33 -0
  65. package/dist/functions/index.d.ts.map +1 -0
  66. package/dist/functions/index.js +1 -0
  67. package/dist/geometry/index.d.ts +58 -0
  68. package/dist/geometry/index.d.ts.map +1 -0
  69. package/dist/geometry/index.js +1 -0
  70. package/dist/html/index.d.ts +31 -0
  71. package/dist/html/index.d.ts.map +1 -0
  72. package/dist/html/index.js +1 -0
  73. package/dist/i18n/index.d.ts +37 -0
  74. package/dist/i18n/index.d.ts.map +1 -0
  75. package/dist/i18n/index.js +1 -0
  76. package/dist/index.d.ts +3 -0
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/index.js +1 -0
  79. package/dist/interval/index.d.ts +13 -0
  80. package/dist/interval/index.d.ts.map +1 -0
  81. package/dist/interval/index.js +1 -0
  82. package/dist/json/index.d.ts +28 -0
  83. package/dist/json/index.d.ts.map +1 -0
  84. package/dist/json/index.js +1 -0
  85. package/dist/logger/logger.d.ts +3 -0
  86. package/dist/logger/logger.d.ts.map +1 -0
  87. package/dist/logging/index.d.ts +28 -0
  88. package/dist/logging/index.d.ts.map +1 -0
  89. package/dist/logging/index.js +1 -0
  90. package/dist/logging/index1.d.ts +33 -0
  91. package/dist/logging/index1.d.ts.map +1 -0
  92. package/dist/logging/index1.js +1 -0
  93. package/dist/maps/index.d.ts +32 -0
  94. package/dist/maps/index.d.ts.map +1 -0
  95. package/dist/maps/index.js +1 -0
  96. package/dist/math/index.d.ts +3 -0
  97. package/dist/math/index.d.ts.map +1 -0
  98. package/dist/math/index.js +1 -0
  99. package/dist/math/math.d.ts +37 -0
  100. package/dist/math/math.d.ts.map +1 -0
  101. package/dist/math/math.js +1 -0
  102. package/dist/math/sum/index.d.ts +3 -0
  103. package/dist/math/sum/index.d.ts.map +1 -0
  104. package/dist/mime-types/db.d.ts +4605 -0
  105. package/dist/mime-types/db.d.ts.map +1 -0
  106. package/dist/mime-types/db.js +1 -0
  107. package/dist/mime-types/index.d.ts +25 -0
  108. package/dist/mime-types/index.d.ts.map +1 -0
  109. package/dist/mime-types/index.js +7 -0
  110. package/dist/node/index.d.ts +52 -0
  111. package/dist/node/index.d.ts.map +1 -0
  112. package/dist/node/index.js +1 -0
  113. package/dist/numbers/index.d.ts +74 -0
  114. package/dist/numbers/index.d.ts.map +1 -0
  115. package/dist/numbers/index.js +1 -0
  116. package/dist/obects/index.d.ts +34 -0
  117. package/dist/obects/index.d.ts.map +1 -0
  118. package/dist/obects/index.js +1 -0
  119. package/dist/os/index.d.ts +26 -0
  120. package/dist/os/index.d.ts.map +1 -0
  121. package/dist/os/index.js +1 -0
  122. package/dist/process/index.d.ts +31 -0
  123. package/dist/process/index.d.ts.map +1 -0
  124. package/dist/process/index.js +1 -0
  125. package/dist/promises/index.d.ts +39 -0
  126. package/dist/promises/index.d.ts.map +1 -0
  127. package/dist/promises/index.js +1 -0
  128. package/dist/random/index.d.ts +33 -0
  129. package/dist/random/index.d.ts.map +1 -0
  130. package/dist/random/index.js +1 -0
  131. package/dist/regex/index.d.ts +36 -0
  132. package/dist/regex/index.d.ts.map +1 -0
  133. package/dist/regex/index.js +1 -0
  134. package/dist/security/index.d.ts +14 -0
  135. package/dist/security/index.d.ts.map +1 -0
  136. package/dist/security/index.js +1 -0
  137. package/dist/sets/index.d.ts +48 -0
  138. package/dist/sets/index.d.ts.map +1 -0
  139. package/dist/sets/index.js +1 -0
  140. package/dist/sleep/index.d.ts +27 -0
  141. package/dist/sleep/index.d.ts.map +1 -0
  142. package/dist/sleep/index.js +1 -0
  143. package/dist/strings/index.d.ts +74 -0
  144. package/dist/strings/index.d.ts.map +1 -0
  145. package/dist/strings/index.js +1 -0
  146. package/dist/system/index.d.ts +36 -0
  147. package/dist/system/index.d.ts.map +1 -0
  148. package/dist/system/index.js +1 -0
  149. package/dist/time/index.d.ts +36 -0
  150. package/dist/time/index.d.ts.map +1 -0
  151. package/dist/time/index.js +1 -0
  152. package/dist/try/attempt.d.ts +8 -0
  153. package/dist/try/attempt.d.ts.map +1 -0
  154. package/dist/try/attempt.js +1 -0
  155. package/dist/try/index.d.ts +2 -0
  156. package/dist/try/index.d.ts.map +1 -0
  157. package/dist/try/index.js +1 -0
  158. package/dist/try/trycatch.d.ts +12 -0
  159. package/dist/try/trycatch.d.ts.map +1 -0
  160. package/dist/try/trycatch.js +1 -0
  161. package/dist/url/index.d.ts +40 -0
  162. package/dist/url/index.d.ts.map +1 -0
  163. package/dist/url/index.js +1 -0
  164. package/dist/uuid/index.d.ts +40 -0
  165. package/dist/uuid/index.d.ts.map +1 -0
  166. package/dist/uuid/index.js +1 -0
  167. package/dist/validation/index.d.ts +49 -0
  168. package/dist/validation/index.d.ts.map +1 -0
  169. package/dist/validation/index.js +1 -0
  170. package/package.json +290 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/mime-types/db.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,QA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endored version of mime-types that can run on the edge due to not using path.extname
3
+ *
4
+ * Also ported it to TypeScript cause it was easier than playing around with custom d.ts file
5
+ *
6
+ * Removed all the stuff we didn't use
7
+ */
8
+ /*!
9
+ * mime-types
10
+ * Copyright(c) 2014 Jonathan Ong
11
+ * Copyright(c) 2015 Douglas Christopher Wilson
12
+ * MIT Licensed
13
+ */
14
+ import type { FileExtension, MimeType } from './db.js';
15
+ export * from './db.js';
16
+ export declare const extensions: Record<MimeType, FileExtension[]>;
17
+ export declare const types: Record<FileExtension, MimeType>;
18
+ /**
19
+ * Lookup the MIME type for a file path/extension.
20
+ *
21
+ * @param {string} path
22
+ * @return {boolean|string}
23
+ */
24
+ export declare function lookup(path: string): false | "application/json" | "application/andrew-inset" | "application/applixware" | "application/atom+xml" | "application/atomcat+xml" | "application/atomdeleted+xml" | "application/atomsvc+xml" | "application/atsc-dwd+xml" | "application/atsc-held+xml" | "application/atsc-rsat+xml" | "application/calendar+xml" | "application/ccxml+xml" | "application/cdfx+xml" | "application/cdmi-capability" | "application/cdmi-container" | "application/cdmi-domain" | "application/cdmi-object" | "application/cdmi-queue" | "application/cpl+xml" | "application/cu-seeme" | "application/dash+xml" | "application/dash-patch+xml" | "application/davmount+xml" | "application/docbook+xml" | "application/dssc+der" | "application/dssc+xml" | "application/ecmascript" | "application/emma+xml" | "application/emotionml+xml" | "application/epub+zip" | "application/exi" | "application/express" | "application/fdt+xml" | "application/font-tdpfr" | "application/geo+json" | "application/gml+xml" | "application/gpx+xml" | "application/gxf" | "application/gzip" | "application/hyperstudio" | "application/inkml+xml" | "application/ipfix" | "application/its+xml" | "application/java-archive" | "application/java-serialized-object" | "application/java-vm" | "application/javascript" | "application/jsonml+json" | "application/ld+json" | "application/lgr+xml" | "application/lost+xml" | "application/mac-binhex40" | "application/mac-compactpro" | "application/mads+xml" | "application/manifest+json" | "application/marc" | "application/marcxml+xml" | "application/mathematica" | "application/mathml+xml" | "application/mbox" | "application/media-policy-dataset+xml" | "application/mediaservercontrol+xml" | "application/metalink+xml" | "application/metalink4+xml" | "application/mets+xml" | "application/mmt-aei+xml" | "application/mmt-usd+xml" | "application/mods+xml" | "application/mp21" | "application/mp4" | "application/msword" | "application/mxf" | "application/n-quads" | "application/n-triples" | "application/node" | "application/octet-stream" | "application/oda" | "application/oebps-package+xml" | "application/ogg" | "application/omdoc+xml" | "application/onenote" | "application/oxps" | "application/p2p-overlay+xml" | "application/patch-ops-error+xml" | "application/pdf" | "application/pgp-encrypted" | "application/pgp-keys" | "application/pgp-signature" | "application/pics-rules" | "application/pkcs10" | "application/pkcs7-mime" | "application/pkcs7-signature" | "application/pkcs8" | "application/pkix-attr-cert" | "application/pkix-cert" | "application/pkix-crl" | "application/pkix-pkipath" | "application/pkixcmp" | "application/pls+xml" | "application/postscript" | "application/provenance+xml" | "application/prs.cww" | "application/pskc+xml" | "application/rdf+xml" | "application/reginfo+xml" | "application/relax-ng-compact-syntax" | "application/resource-lists+xml" | "application/resource-lists-diff+xml" | "application/rls-services+xml" | "application/route-apd+xml" | "application/route-s-tsid+xml" | "application/route-usd+xml" | "application/rpki-ghostbusters" | "application/rpki-manifest" | "application/rpki-roa" | "application/rsd+xml" | "application/rss+xml" | "application/rtf" | "application/sbml+xml" | "application/scvp-cv-request" | "application/scvp-cv-response" | "application/scvp-vp-request" | "application/scvp-vp-response" | "application/sdp" | "application/senml+xml" | "application/sensml+xml" | "application/set-payment-initiation" | "application/set-registration-initiation" | "application/shf+xml" | "application/sieve" | "application/smil+xml" | "application/sparql-query" | "application/sparql-results+xml" | "application/srgs" | "application/srgs+xml" | "application/sru+xml" | "application/ssdl+xml" | "application/ssml+xml" | "application/swid+xml" | "application/tei+xml" | "application/thraud+xml" | "application/timestamped-data" | "application/trig" | "application/ttml+xml" | "application/urc-ressheet+xml" | "application/urc-targetdesc+xml" | "application/vnd.1000minds.decision-model+xml" | "application/vnd.3gpp.pic-bw-large" | "application/vnd.3gpp.pic-bw-small" | "application/vnd.3gpp.pic-bw-var" | "application/vnd.3gpp2.tcap" | "application/vnd.3m.post-it-notes" | "application/vnd.accpac.simply.aso" | "application/vnd.accpac.simply.imp" | "application/vnd.acucobol" | "application/vnd.acucorp" | "application/vnd.adobe.air-application-installer-package+zip" | "application/vnd.adobe.formscentral.fcdt" | "application/vnd.adobe.fxp" | "application/vnd.adobe.xdp+xml" | "application/vnd.adobe.xfdf" | "application/vnd.age" | "application/vnd.ahead.space" | "application/vnd.airzip.filesecure.azf" | "application/vnd.airzip.filesecure.azs" | "application/vnd.amazon.ebook" | "application/vnd.americandynamics.acc" | "application/vnd.amiga.ami" | "application/vnd.android.package-archive" | "application/vnd.anser-web-certificate-issue-initiation" | "application/vnd.anser-web-funds-transfer-initiation" | "application/vnd.antix.game-component" | "application/vnd.apple.installer+xml" | "application/vnd.apple.keynote" | "application/vnd.apple.mpegurl" | "application/vnd.apple.numbers" | "application/vnd.apple.pages" | "application/vnd.aristanetworks.swi" | "application/vnd.astraea-software.iota" | "application/vnd.audiograph" | "application/vnd.balsamiq.bmml+xml" | "application/vnd.blueice.multipass" | "application/vnd.bmi" | "application/vnd.businessobjects" | "application/vnd.chemdraw+xml" | "application/vnd.chipnuts.karaoke-mmd" | "application/vnd.cinderella" | "application/vnd.citationstyles.style+xml" | "application/vnd.claymore" | "application/vnd.cloanto.rp9" | "application/vnd.clonk.c4group" | "application/vnd.cluetrust.cartomobile-config" | "application/vnd.cluetrust.cartomobile-config-pkg" | "application/vnd.commonspace" | "application/vnd.contact.cmsg" | "application/vnd.cosmocaller" | "application/vnd.crick.clicker" | "application/vnd.crick.clicker.keyboard" | "application/vnd.crick.clicker.palette" | "application/vnd.crick.clicker.template" | "application/vnd.crick.clicker.wordbank" | "application/vnd.criticaltools.wbs+xml" | "application/vnd.ctc-posml" | "application/vnd.cups-ppd" | "application/vnd.curl.car" | "application/vnd.curl.pcurl" | "application/vnd.dart" | "application/vnd.data-vision.rdz" | "application/vnd.dbf" | "application/vnd.dece.data" | "application/vnd.dece.ttml+xml" | "application/vnd.dece.unspecified" | "application/vnd.dece.zip" | "application/vnd.denovo.fcselayout-link" | "application/vnd.dna" | "application/vnd.dolby.mlp" | "application/vnd.dpgraph" | "application/vnd.dreamfactory" | "application/vnd.ds-keypoint" | "application/vnd.dvb.ait" | "application/vnd.dvb.service" | "application/vnd.dynageo" | "application/vnd.ecowin.chart" | "application/vnd.enliven" | "application/vnd.epson.esf" | "application/vnd.epson.msf" | "application/vnd.epson.quickanime" | "application/vnd.epson.salt" | "application/vnd.epson.ssf" | "application/vnd.eszigno3+xml" | "application/vnd.ezpix-album" | "application/vnd.ezpix-package" | "application/vnd.fdf" | "application/vnd.fdsn.mseed" | "application/vnd.fdsn.seed" | "application/vnd.flographit" | "application/vnd.fluxtime.clip" | "application/vnd.framemaker" | "application/vnd.frogans.fnc" | "application/vnd.frogans.ltf" | "application/vnd.fsc.weblaunch" | "application/vnd.fujitsu.oasys" | "application/vnd.fujitsu.oasys2" | "application/vnd.fujitsu.oasys3" | "application/vnd.fujitsu.oasysgp" | "application/vnd.fujitsu.oasysprs" | "application/vnd.fujixerox.ddd" | "application/vnd.fujixerox.docuworks" | "application/vnd.fujixerox.docuworks.binder" | "application/vnd.fuzzysheet" | "application/vnd.genomatix.tuxedo" | "application/vnd.geogebra.file" | "application/vnd.geogebra.tool" | "application/vnd.geometry-explorer" | "application/vnd.geonext" | "application/vnd.geoplan" | "application/vnd.geospace" | "application/vnd.gmx" | "application/vnd.google-earth.kml+xml" | "application/vnd.google-earth.kmz" | "application/vnd.grafeq" | "application/vnd.groove-account" | "application/vnd.groove-help" | "application/vnd.groove-identity-message" | "application/vnd.groove-injector" | "application/vnd.groove-tool-message" | "application/vnd.groove-tool-template" | "application/vnd.groove-vcard" | "application/vnd.hal+xml" | "application/vnd.handheld-entertainment+xml" | "application/vnd.hbci" | "application/vnd.hhe.lesson-player" | "application/vnd.hp-hpgl" | "application/vnd.hp-hpid" | "application/vnd.hp-hps" | "application/vnd.hp-jlyt" | "application/vnd.hp-pcl" | "application/vnd.hp-pclxl" | "application/vnd.hydrostatix.sof-data" | "application/vnd.ibm.minipay" | "application/vnd.ibm.modcap" | "application/vnd.ibm.rights-management" | "application/vnd.ibm.secure-container" | "application/vnd.iccprofile" | "application/vnd.igloader" | "application/vnd.immervision-ivp" | "application/vnd.immervision-ivu" | "application/vnd.insors.igm" | "application/vnd.intercon.formnet" | "application/vnd.intergeo" | "application/vnd.intu.qbo" | "application/vnd.intu.qfx" | "application/vnd.ipunplugged.rcprofile" | "application/vnd.irepository.package+xml" | "application/vnd.is-xpr" | "application/vnd.isac.fcs" | "application/vnd.jam" | "application/vnd.jcp.javame.midlet-rms" | "application/vnd.jisp" | "application/vnd.joost.joda-archive" | "application/vnd.kahootz" | "application/vnd.kde.karbon" | "application/vnd.kde.kchart" | "application/vnd.kde.kformula" | "application/vnd.kde.kivio" | "application/vnd.kde.kontour" | "application/vnd.kde.kpresenter" | "application/vnd.kde.kspread" | "application/vnd.kde.kword" | "application/vnd.kenameaapp" | "application/vnd.kidspiration" | "application/vnd.kinar" | "application/vnd.koan" | "application/vnd.kodak-descriptor" | "application/vnd.las.las+xml" | "application/vnd.llamagraphics.life-balance.desktop" | "application/vnd.llamagraphics.life-balance.exchange+xml" | "application/vnd.lotus-1-2-3" | "application/vnd.lotus-approach" | "application/vnd.lotus-freelance" | "application/vnd.lotus-notes" | "application/vnd.lotus-organizer" | "application/vnd.lotus-screencam" | "application/vnd.lotus-wordpro" | "application/vnd.macports.portpkg" | "application/vnd.mapbox-vector-tile" | "application/vnd.mcd" | "application/vnd.medcalcdata" | "application/vnd.mediastation.cdkey" | "application/vnd.mfer" | "application/vnd.mfmp" | "application/vnd.micrografx.flo" | "application/vnd.micrografx.igx" | "application/vnd.mif" | "application/vnd.mobius.daf" | "application/vnd.mobius.dis" | "application/vnd.mobius.mbk" | "application/vnd.mobius.mqy" | "application/vnd.mobius.msl" | "application/vnd.mobius.plc" | "application/vnd.mobius.txf" | "application/vnd.mophun.application" | "application/vnd.mophun.certificate" | "application/vnd.mozilla.xul+xml" | "application/vnd.ms-artgalry" | "application/vnd.ms-cab-compressed" | "application/vnd.ms-excel" | "application/vnd.ms-excel.addin.macroenabled.12" | "application/vnd.ms-excel.sheet.binary.macroenabled.12" | "application/vnd.ms-excel.sheet.macroenabled.12" | "application/vnd.ms-excel.template.macroenabled.12" | "application/vnd.ms-fontobject" | "application/vnd.ms-htmlhelp" | "application/vnd.ms-ims" | "application/vnd.ms-lrm" | "application/vnd.ms-officetheme" | "application/vnd.ms-pki.seccat" | "application/vnd.ms-pki.stl" | "application/vnd.ms-powerpoint" | "application/vnd.ms-powerpoint.addin.macroenabled.12" | "application/vnd.ms-powerpoint.presentation.macroenabled.12" | "application/vnd.ms-powerpoint.slide.macroenabled.12" | "application/vnd.ms-powerpoint.slideshow.macroenabled.12" | "application/vnd.ms-powerpoint.template.macroenabled.12" | "application/vnd.ms-project" | "application/vnd.ms-word.document.macroenabled.12" | "application/vnd.ms-word.template.macroenabled.12" | "application/vnd.ms-works" | "application/vnd.ms-wpl" | "application/vnd.ms-xpsdocument" | "application/vnd.mseq" | "application/vnd.musician" | "application/vnd.muvee.style" | "application/vnd.mynfc" | "application/vnd.neurolanguage.nlu" | "application/vnd.nitf" | "application/vnd.noblenet-directory" | "application/vnd.noblenet-sealer" | "application/vnd.noblenet-web" | "application/vnd.nokia.n-gage.ac+xml" | "application/vnd.nokia.n-gage.data" | "application/vnd.nokia.n-gage.symbian.install" | "application/vnd.nokia.radio-preset" | "application/vnd.nokia.radio-presets" | "application/vnd.novadigm.edm" | "application/vnd.novadigm.edx" | "application/vnd.novadigm.ext" | "application/vnd.oasis.opendocument.chart" | "application/vnd.oasis.opendocument.chart-template" | "application/vnd.oasis.opendocument.database" | "application/vnd.oasis.opendocument.formula" | "application/vnd.oasis.opendocument.formula-template" | "application/vnd.oasis.opendocument.graphics" | "application/vnd.oasis.opendocument.graphics-template" | "application/vnd.oasis.opendocument.image" | "application/vnd.oasis.opendocument.image-template" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.presentation-template" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.spreadsheet-template" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.text-master" | "application/vnd.oasis.opendocument.text-template" | "application/vnd.oasis.opendocument.text-web" | "application/vnd.olpc-sugar" | "application/vnd.oma.dd2+xml" | "application/vnd.openblox.game+xml" | "application/vnd.openofficeorg.extension" | "application/vnd.openstreetmap.data+xml" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.presentationml.slide" | "application/vnd.openxmlformats-officedocument.presentationml.slideshow" | "application/vnd.openxmlformats-officedocument.presentationml.template" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.spreadsheetml.template" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.wordprocessingml.template" | "application/vnd.osgeo.mapguide.package" | "application/vnd.osgi.dp" | "application/vnd.osgi.subsystem" | "application/vnd.palm" | "application/vnd.pawaafile" | "application/vnd.pg.format" | "application/vnd.pg.osasli" | "application/vnd.picsel" | "application/vnd.pmi.widget" | "application/vnd.pocketlearn" | "application/vnd.powerbuilder6" | "application/vnd.previewsystems.box" | "application/vnd.proteus.magazine" | "application/vnd.publishare-delta-tree" | "application/vnd.pvi.ptid1" | "application/vnd.quark.quarkxpress" | "application/vnd.rar" | "application/vnd.realvnc.bed" | "application/vnd.recordare.musicxml" | "application/vnd.recordare.musicxml+xml" | "application/vnd.rig.cryptonote" | "application/vnd.rim.cod" | "application/vnd.rn-realmedia" | "application/vnd.rn-realmedia-vbr" | "application/vnd.route66.link66+xml" | "application/vnd.sailingtracker.track" | "application/vnd.seemail" | "application/vnd.sema" | "application/vnd.semd" | "application/vnd.semf" | "application/vnd.shana.informed.formdata" | "application/vnd.shana.informed.formtemplate" | "application/vnd.shana.informed.interchange" | "application/vnd.shana.informed.package" | "application/vnd.simtech-mindmapper" | "application/vnd.smaf" | "application/vnd.smart.teacher" | "application/vnd.software602.filler.form+xml" | "application/vnd.solent.sdkm+xml" | "application/vnd.spotfire.dxp" | "application/vnd.spotfire.sfs" | "application/vnd.stardivision.calc" | "application/vnd.stardivision.draw" | "application/vnd.stardivision.impress" | "application/vnd.stardivision.math" | "application/vnd.stardivision.writer" | "application/vnd.stardivision.writer-global" | "application/vnd.stepmania.package" | "application/vnd.stepmania.stepchart" | "application/vnd.sun.wadl+xml" | "application/vnd.sun.xml.calc" | "application/vnd.sun.xml.calc.template" | "application/vnd.sun.xml.draw" | "application/vnd.sun.xml.draw.template" | "application/vnd.sun.xml.impress" | "application/vnd.sun.xml.impress.template" | "application/vnd.sun.xml.math" | "application/vnd.sun.xml.writer" | "application/vnd.sun.xml.writer.global" | "application/vnd.sun.xml.writer.template" | "application/vnd.sus-calendar" | "application/vnd.svd" | "application/vnd.symbian.install" | "application/vnd.syncml+xml" | "application/vnd.syncml.dm+wbxml" | "application/vnd.syncml.dm+xml" | "application/vnd.syncml.dmddf+xml" | "application/vnd.tao.intent-module-archive" | "application/vnd.tcpdump.pcap" | "application/vnd.tmobile-livetv" | "application/vnd.trid.tpt" | "application/vnd.triscape.mxs" | "application/vnd.trueapp" | "application/vnd.ufdl" | "application/vnd.uiq.theme" | "application/vnd.umajin" | "application/vnd.unity" | "application/vnd.uoml+xml" | "application/vnd.vcx" | "application/vnd.visio" | "application/vnd.visionary" | "application/vnd.vsf" | "application/vnd.wap.wbxml" | "application/vnd.wap.wmlc" | "application/vnd.wap.wmlscriptc" | "application/vnd.webturbo" | "application/vnd.wolfram.player" | "application/vnd.wordperfect" | "application/vnd.wqd" | "application/vnd.wt.stf" | "application/vnd.xara" | "application/vnd.xfdl" | "application/vnd.yamaha.hv-dic" | "application/vnd.yamaha.hv-script" | "application/vnd.yamaha.hv-voice" | "application/vnd.yamaha.openscoreformat" | "application/vnd.yamaha.openscoreformat.osfpvg+xml" | "application/vnd.yamaha.smaf-audio" | "application/vnd.yamaha.smaf-phrase" | "application/vnd.yellowriver-custom-menu" | "application/vnd.zul" | "application/vnd.zzazz.deck+xml" | "application/voicexml+xml" | "application/wasm" | "application/watcherinfo+xml" | "application/widget" | "application/winhlp" | "application/wsdl+xml" | "application/wspolicy+xml" | "application/x-7z-compressed" | "application/x-abiword" | "application/x-ace-compressed" | "application/x-apple-diskimage" | "application/x-authorware-bin" | "application/x-authorware-map" | "application/x-authorware-seg" | "application/x-bcpio" | "application/x-bittorrent" | "application/x-blorb" | "application/x-bzip" | "application/x-bzip2" | "application/x-cbr" | "application/x-cdlink" | "application/x-cfs-compressed" | "application/x-chat" | "application/x-chess-pgn" | "application/x-cocoa" | "application/x-conference" | "application/x-cpio" | "application/x-csh" | "application/x-debian-package" | "application/x-dgc-compressed" | "application/x-director" | "application/x-doom" | "application/x-dtbncx+xml" | "application/x-dtbook+xml" | "application/x-dtbresource+xml" | "application/x-dvi" | "application/x-envoy" | "application/x-eva" | "application/x-font-bdf" | "application/x-font-ghostscript" | "application/x-font-linux-psf" | "application/x-font-pcf" | "application/x-font-snf" | "application/x-font-type1" | "application/x-freearc" | "application/x-futuresplash" | "application/x-gca-compressed" | "application/x-glulx" | "application/x-gnumeric" | "application/x-gramps-xml" | "application/x-gtar" | "application/x-hdf" | "application/x-install-instructions" | "application/x-iso9660-image" | "application/x-java-archive-diff" | "application/x-java-jnlp-file" | "application/x-latex" | "application/x-lzh-compressed" | "application/x-makeself" | "application/x-mie" | "application/x-mobipocket-ebook" | "application/x-ms-application" | "application/x-ms-shortcut" | "application/x-ms-wmd" | "application/x-ms-wmz" | "application/x-ms-xbap" | "application/x-msaccess" | "application/x-msbinder" | "application/x-mscardfile" | "application/x-msclip" | "application/x-msdownload" | "application/x-msmediaview" | "application/x-msmetafile" | "application/x-msmoney" | "application/x-mspublisher" | "application/x-msschedule" | "application/x-msterminal" | "application/x-mswrite" | "application/x-netcdf" | "application/x-nzb" | "application/x-perl" | "application/x-pilot" | "application/x-pkcs12" | "application/x-pkcs7-certificates" | "application/x-pkcs7-certreqresp" | "application/x-rar-compressed" | "application/x-redhat-package-manager" | "application/x-research-info-systems" | "application/x-sea" | "application/x-sh" | "application/x-shar" | "application/x-shockwave-flash" | "application/x-silverlight-app" | "application/x-sql" | "application/x-stuffit" | "application/x-stuffitx" | "application/x-subrip" | "application/x-sv4cpio" | "application/x-sv4crc" | "application/x-t3vm-image" | "application/x-tads" | "application/x-tar" | "application/x-tcl" | "application/x-tex" | "application/x-tex-tfm" | "application/x-texinfo" | "application/x-tgif" | "application/x-ustar" | "application/x-wais-source" | "application/x-x509-ca-cert" | "application/x-xfig" | "application/x-xliff+xml" | "application/x-xpinstall" | "application/x-xz" | "application/x-zmachine" | "application/xaml+xml" | "application/xcap-att+xml" | "application/xcap-caps+xml" | "application/xcap-diff+xml" | "application/xcap-el+xml" | "application/xcap-ns+xml" | "application/xenc+xml" | "application/xhtml+xml" | "application/xliff+xml" | "application/xml" | "application/xml-dtd" | "application/xop+xml" | "application/xproc+xml" | "application/xslt+xml" | "application/xspf+xml" | "application/xv+xml" | "application/yang" | "application/yin+xml" | "application/zip" | "audio/3gpp" | "audio/adpcm" | "audio/amr" | "audio/basic" | "audio/midi" | "audio/mobile-xmf" | "audio/mp4" | "audio/mpeg" | "audio/ogg" | "audio/s3m" | "audio/silk" | "audio/vnd.dece.audio" | "audio/vnd.digital-winds" | "audio/vnd.dra" | "audio/vnd.dts" | "audio/vnd.dts.hd" | "audio/vnd.lucent.voice" | "audio/vnd.ms-playready.media.pya" | "audio/vnd.nuera.ecelp4800" | "audio/vnd.nuera.ecelp7470" | "audio/vnd.nuera.ecelp9600" | "audio/vnd.rip" | "audio/webm" | "audio/x-aac" | "audio/x-aiff" | "audio/x-caf" | "audio/x-flac" | "audio/x-m4a" | "audio/x-matroska" | "audio/x-mpegurl" | "audio/x-ms-wax" | "audio/x-ms-wma" | "audio/x-pn-realaudio" | "audio/x-pn-realaudio-plugin" | "audio/x-realaudio" | "audio/x-wav" | "audio/xm" | "chemical/x-cdx" | "chemical/x-cif" | "chemical/x-cmdf" | "chemical/x-cml" | "chemical/x-csml" | "chemical/x-xyz" | "font/collection" | "font/otf" | "font/ttf" | "font/woff" | "font/woff2" | "image/aces" | "image/avci" | "image/avcs" | "image/avif" | "image/bmp" | "image/cgm" | "image/dicom-rle" | "image/emf" | "image/fits" | "image/g3fax" | "image/gif" | "image/heic" | "image/heic-sequence" | "image/heif" | "image/heif-sequence" | "image/hej2k" | "image/hsj2" | "image/ief" | "image/jls" | "image/jp2" | "image/jpeg" | "image/jph" | "image/jphc" | "image/jpm" | "image/jpx" | "image/jxr" | "image/jxra" | "image/jxrs" | "image/jxs" | "image/jxsc" | "image/jxsi" | "image/jxss" | "image/ktx" | "image/ktx2" | "image/png" | "image/prs.btif" | "image/prs.pti" | "image/sgi" | "image/svg+xml" | "image/t38" | "image/tiff" | "image/tiff-fx" | "image/vnd.adobe.photoshop" | "image/vnd.airzip.accelerator.azv" | "image/vnd.dece.graphic" | "image/vnd.djvu" | "image/vnd.dvb.subtitle" | "image/vnd.dwg" | "image/vnd.dxf" | "image/vnd.fastbidsheet" | "image/vnd.fpx" | "image/vnd.fst" | "image/vnd.fujixerox.edmics-mmr" | "image/vnd.fujixerox.edmics-rlc" | "image/vnd.microsoft.icon" | "image/vnd.ms-modi" | "image/vnd.ms-photo" | "image/vnd.net-fpx" | "image/vnd.pco.b16" | "image/vnd.tencent.tap" | "image/vnd.valve.source.texture" | "image/vnd.wap.wbmp" | "image/vnd.xiff" | "image/vnd.zbrush.pcx" | "image/webp" | "image/wmf" | "image/x-3ds" | "image/x-cmu-raster" | "image/x-cmx" | "image/x-freehand" | "image/x-icon" | "image/x-jng" | "image/x-mrsid-image" | "image/x-ms-bmp" | "image/x-pcx" | "image/x-pict" | "image/x-portable-anymap" | "image/x-portable-bitmap" | "image/x-portable-graymap" | "image/x-portable-pixmap" | "image/x-rgb" | "image/x-tga" | "image/x-xbitmap" | "image/x-xpixmap" | "image/x-xwindowdump" | "message/disposition-notification" | "message/global" | "message/global-delivery-status" | "message/global-disposition-notification" | "message/global-headers" | "message/rfc822" | "message/vnd.wfa.wsc" | "model/3mf" | "model/gltf+json" | "model/gltf-binary" | "model/iges" | "model/mesh" | "model/mtl" | "model/obj" | "model/step+xml" | "model/step+zip" | "model/step-xml+zip" | "model/stl" | "model/vnd.collada+xml" | "model/vnd.dwf" | "model/vnd.gdl" | "model/vnd.gtw" | "model/vnd.mts" | "model/vnd.opengex" | "model/vnd.parasolid.transmit.binary" | "model/vnd.parasolid.transmit.text" | "model/vnd.sap.vds" | "model/vnd.usdz+zip" | "model/vnd.valve.source.compiled-map" | "model/vnd.vtu" | "model/vrml" | "model/x3d+binary" | "model/x3d+fastinfoset" | "model/x3d+vrml" | "model/x3d+xml" | "model/x3d-vrml" | "text/cache-manifest" | "text/calendar" | "text/css" | "text/csv" | "text/html" | "text/markdown" | "text/mathml" | "text/n3" | "text/plain" | "text/prs.lines.tag" | "text/richtext" | "text/rtf" | "text/sgml" | "text/shex" | "text/spdx" | "text/tab-separated-values" | "text/troff" | "text/turtle" | "text/uri-list" | "text/vcard" | "text/vnd.curl" | "text/vnd.curl.dcurl" | "text/vnd.curl.mcurl" | "text/vnd.curl.scurl" | "text/vnd.dvb.subtitle" | "text/vnd.familysearch.gedcom" | "text/vnd.fly" | "text/vnd.fmi.flexstor" | "text/vnd.graphviz" | "text/vnd.in3d.3dml" | "text/vnd.in3d.spot" | "text/vnd.sun.j2me.app-descriptor" | "text/vnd.wap.wml" | "text/vnd.wap.wmlscript" | "text/vtt" | "text/x-asm" | "text/x-c" | "text/x-component" | "text/x-fortran" | "text/x-java-source" | "text/x-nfo" | "text/x-opml" | "text/x-pascal" | "text/x-setext" | "text/x-sfv" | "text/x-uuencode" | "text/x-vcalendar" | "text/x-vcard" | "text/xml" | "video/3gpp" | "video/3gpp2" | "video/h261" | "video/h263" | "video/h264" | "video/iso.segment" | "video/jpeg" | "video/jpm" | "video/mj2" | "video/mp2t" | "video/mp4" | "video/mpeg" | "video/ogg" | "video/quicktime" | "video/vnd.dece.hd" | "video/vnd.dece.mobile" | "video/vnd.dece.pd" | "video/vnd.dece.sd" | "video/vnd.dece.video" | "video/vnd.dvb.file" | "video/vnd.fvt" | "video/vnd.mpegurl" | "video/vnd.ms-playready.media.pyv" | "video/vnd.uvvu.mp4" | "video/vnd.vivo" | "video/webm" | "video/x-f4v" | "video/x-fli" | "video/x-flv" | "video/x-m4v" | "video/x-matroska" | "video/x-mng" | "video/x-ms-asf" | "video/x-ms-vob" | "video/x-ms-wm" | "video/x-ms-wmv" | "video/x-ms-wmx" | "video/x-ms-wvx" | "video/x-msvideo" | "video/x-sgi-movie" | "video/x-smv" | "x-conference/x-cooltalk";
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mime-types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAOtD,cAAc,SAAS,CAAA;AAOvB,eAAO,MAAM,UAAU,EAAS,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAA;AACjE,eAAO,MAAM,KAAK,EAAS,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;AAK1D;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,swzBAalC"}
@@ -0,0 +1,7 @@
1
+ import{a as t}from"../chunks/chunk-W72HFHZY.js";import"../chunks/chunk-ANN5UYCF.js";function m(n){let e=n.lastIndexOf(".");return e<0?"":n.substring(e)}var p={},a={};u(p,a);function d(n){if(!n||typeof n!="string")return!1;let e=m(`x.${n}`).toLowerCase().substring(1);return e&&a[e]||!1}function u(n,e){let r=["nginx","apache",void 0,"iana"];for(let i of Object.keys(t)){let c=t[i],s=c.extensions;if(s?.length){n[i]=s;for(let o of s){if(e[o]){let f=r.indexOf(t[e[o]].source),x=r.indexOf(c.source);if(e[o]!=="application/octet-stream"&&(f>x||f===x&&e[o].startsWith("application/")))continue}e[o]=i}}}}export{p as extensions,d as lookup,t as mimeTypes,a as types};
2
+ /*!
3
+ * mime-types
4
+ * Copyright(c) 2014 Jonathan Ong
5
+ * Copyright(c) 2015 Douglas Christopher Wilson
6
+ * MIT Licensed
7
+ */
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Checks if the current Node.js version is less than the specified version.
3
+ * If the version is insufficient, logs a message and exits the process.
4
+ *
5
+ * @param nodeVersion - The minimum required Node.js version as a number (e.g., 18).
6
+ *
7
+ * @remarks
8
+ * This function compares the current Node.js version (`process.version`) to the required version.
9
+ * If the current version is lower, it prompts the user to update Node.js and terminates the process.
10
+ *
11
+ * @example
12
+ * nodeVersionCheck(18); // Ensures Node.js version is at least 18
13
+ */
14
+ export declare const nodeVersionCheck: (nodeVersion: number) => void;
15
+ /**
16
+ * Returns the current Node.js major version as a number.
17
+ *
18
+ * @returns The major version number of the running Node.js process.
19
+ *
20
+ * @example
21
+ * const major = getNodeMajorVersion(); // e.g., 18
22
+ */
23
+ export declare const getNodeMajorVersion: () => number;
24
+ /**
25
+ * Checks if the current environment is Node.js.
26
+ *
27
+ * @returns `true` if running in Node.js, otherwise `false`.
28
+ *
29
+ * @example
30
+ * if (isNode()) { ... }
31
+ */
32
+ export declare const isNode: () => boolean;
33
+ /**
34
+ * Attempts to require a module, returning `undefined` if the module is not found.
35
+ *
36
+ * @param moduleName - The name of the module to require.
37
+ * @returns The required module, or `undefined` if it cannot be loaded.
38
+ *
39
+ * @example
40
+ * const optionalModule = requireOptional('some-module');
41
+ */
42
+ export declare function requireOptional(moduleName: string): any | undefined;
43
+ /**
44
+ * Returns the process uptime in seconds.
45
+ *
46
+ * @returns The number of seconds the current Node.js process has been running.
47
+ *
48
+ * @example
49
+ * const uptime = getProcessUptime();
50
+ */
51
+ export declare const getProcessUptime: () => number;
52
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,KAAG,IAMtD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,QAAO,MAEtC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,QAAO,OAEzB,CAAA;AAED;;;;;;;;GAQG;AAEH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAOnE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,QAAO,MAEnC,CAAA"}
@@ -0,0 +1 @@
1
+ import{a as r}from"../chunks/chunk-ANN5UYCF.js";var n=e=>{o()<e&&(console.log("Please update Node to run this app"),process.exit(1))},o=()=>Number(process.version.match(/^v(\d+)/)?.[1]||0),t=()=>typeof process<"u"&&process.release?.name==="node";function s(e){try{return r(e)}catch{return}}var i=()=>process.uptime();export{o as getNodeMajorVersion,i as getProcessUptime,t as isNode,n as nodeVersionCheck,s as requireOptional};
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Pads a single-digit number with a leading zero and returns it as a string.
3
+ *
4
+ * @param val - The number to pad.
5
+ * @returns The number as a string, padded with a leading zero if it is less than 10.
6
+ *
7
+ * @example
8
+ * padNumberToString(5); // returns "05"
9
+ * padNumberToString(12); // returns "12"
10
+ */
11
+ export declare function getRandomInt(min: number, max: number): number;
12
+ /**
13
+ * Clamps a number between a minimum and maximum value.
14
+ * @param value The number to clamp.
15
+ * @param min The minimum value.
16
+ * @param max The maximum value.
17
+ * @returns The clamped value.
18
+ */
19
+ export declare function clamp(value: number, min: number, max: number): number;
20
+ /**
21
+ * Rounds a number to a specified number of decimal places.
22
+ * @param value The number to round.
23
+ * @param decimals The number of decimal places. Defaults to 2.
24
+ * @returns The rounded number.
25
+ */
26
+ export declare function roundTo(value: number, decimals?: number): number;
27
+ /**
28
+ * Checks if a value is a finite number.
29
+ * @param value The value to check.
30
+ * @returns True if the value is a finite number, false otherwise.
31
+ */
32
+ export declare function isFiniteNumber(value: unknown): value is number;
33
+ /**
34
+ * Generates a random float between min (inclusive) and max (exclusive).
35
+ * @param min The minimum value (inclusive).
36
+ * @param max The maximum value (exclusive).
37
+ * @returns A random float.
38
+ */
39
+ export declare function getRandomFloat(min: number, max: number): number;
40
+ /**
41
+ * Checks if a value is an integer.
42
+ * @param value The value to check.
43
+ * @returns True if the value is an integer, false otherwise.
44
+ */
45
+ export declare function isInteger(value: unknown): value is number;
46
+ /**
47
+ * Checks if a number is between two values.
48
+ * @param value The number to check.
49
+ * @param min The minimum value.
50
+ * @param max The maximum value.
51
+ * @param inclusive Whether the range is inclusive (default: true).
52
+ * @returns True if the number is between min and max, false otherwise.
53
+ */
54
+ export declare function between(value: number, min: number, max: number, inclusive?: boolean): boolean;
55
+ /**
56
+ * Returns the sum of an array of numbers.
57
+ * @param numbers The array of numbers to sum.
58
+ * @returns The sum of the numbers.
59
+ */
60
+ export declare function sum(numbers: number[]): number;
61
+ /**
62
+ * Returns the average of an array of numbers.
63
+ * @param numbers The array of numbers.
64
+ * @returns The average value, or 0 if the array is empty.
65
+ */
66
+ export declare function average(numbers: number[]): number;
67
+ /**
68
+ * Returns the true mathematical modulus, handling negative numbers correctly.
69
+ * @param n The dividend.
70
+ * @param m The divisor.
71
+ * @returns The modulus result.
72
+ */
73
+ export declare function mod(n: number, m: number): number;
74
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/numbers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEzD;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,UAAO,GAAG,OAAO,CAE1F;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function o(n,r){return Math.floor(Math.random()*(r-n+1))+n}function m(n,r,e){return Math.max(r,Math.min(e,n))}function b(n,r=2){let e=10**r;return Math.round(n*e)/e}function i(n){return typeof n=="number"&&Number.isFinite(n)}function c(n,r){return Math.random()*(r-n)+n}function f(n){return typeof n=="number"&&Number.isInteger(n)}function a(n,r,e,t=!0){return t?n>=r&&n<=e:n>r&&n<e}function u(n){return n.reduce((r,e)=>r+e,0)}function p(n){return n.length===0?0:u(n)/n.length}function x(n,r){return(n%r+r)%r}export{p as average,a as between,m as clamp,c as getRandomFloat,o as getRandomInt,i as isFiniteNumber,f as isInteger,x as mod,b as roundTo,u as sum};
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Returns true if the value is a plain object (not null, not array, not function).
3
+ * @param value The value to check.
4
+ * @returns {boolean}
5
+ */
6
+ export declare function isPlainObject(value: any): value is Record<string, any>;
7
+ /**
8
+ * Deeply merges two objects. Does not mutate inputs.
9
+ * @param target The target object.
10
+ * @param source The source object.
11
+ * @returns {object} The merged object.
12
+ */
13
+ export declare function deepMerge<T extends object, U extends object>(target: T, source: U): T & U;
14
+ /**
15
+ * Returns a shallow copy of an object with the given keys omitted.
16
+ * @param obj The source object.
17
+ * @param keys Keys to omit.
18
+ * @returns {object}
19
+ */
20
+ export declare function omit<T extends object, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
21
+ /**
22
+ * Returns a shallow copy of an object with only the given keys.
23
+ * @param obj The source object.
24
+ * @param keys Keys to pick.
25
+ * @returns {object}
26
+ */
27
+ export declare function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
28
+ /**
29
+ * Deep clones a plain object or array.
30
+ * @param obj The object or array to clone.
31
+ * @returns {any}
32
+ */
33
+ export declare function deepClone<T>(obj: T): T;
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/obects/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAUzF;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAMvF;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAQvF;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEtC"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function r(n){return Object.prototype.toString.call(n)==="[object Object]"}function s(n,o){let t={...n};for(let e in o)r(o[e])&&r(t[e])?t[e]=s(t[e],o[e]):t[e]=o[e];return t}function c(n,o){let t={...n};for(let e of o)delete t[e];return t}function i(n,o){let t={};for(let e of o)e in n&&(t[e]=n[e]);return t}function a(n){return JSON.parse(JSON.stringify(n))}export{a as deepClone,s as deepMerge,r as isPlainObject,c as omit,i as pick};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Returns the current operating system platform (Node.js only).
3
+ * @returns {string | undefined} The platform (e.g., 'darwin', 'win32', 'linux').
4
+ */
5
+ export declare function getOsPlatform(): string | undefined;
6
+ /**
7
+ * Returns the OS release/version (Node.js only).
8
+ * @returns {string | undefined}
9
+ */
10
+ export declare function getOsRelease(): string | undefined;
11
+ /**
12
+ * Returns the OS architecture (Node.js only).
13
+ * @returns {string | undefined}
14
+ */
15
+ export declare function getOsArch(): string | undefined;
16
+ /**
17
+ * Returns the user's home directory (Node.js only).
18
+ * @returns {string | undefined}
19
+ */
20
+ export declare function getHomeDir(): string | undefined;
21
+ /**
22
+ * Returns the system's temporary directory (Node.js only).
23
+ * @returns {string | undefined}
24
+ */
25
+ export declare function getTmpDir(): string | undefined;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/os/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,SAAS,CAGlD;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAIjD;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CAG9C;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,GAAG,SAAS,CAM/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CAO9C"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function e(){if(typeof process<"u"&&process.platform)return process.platform}function n(){if(typeof process<"u"&&process.release&&process.release.name)return process.release.name}function r(){if(typeof process<"u"&&process.arch)return process.arch}function s(){if(typeof process<"u"&&process.env&&process.env.HOME)return process.env.HOME;if(typeof process<"u"&&process.env&&process.env.USERPROFILE)return process.env.USERPROFILE}function o(){if(typeof process<"u"&&process.env&&process.env.TMPDIR)return process.env.TMPDIR;if(typeof process<"u"&&process.env&&process.env.TEMP)return process.env.TEMP;if(typeof process<"u"&&process.env&&process.env.TMP)return process.env.TMP}export{s as getHomeDir,r as getOsArch,e as getOsPlatform,n as getOsRelease,o as getTmpDir};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Returns the current process ID (Node.js only).
3
+ * @returns {number | undefined}
4
+ */
5
+ export declare function getProcessId(): number | undefined;
6
+ /**
7
+ * Returns the current process uptime in seconds (Node.js only).
8
+ * @returns {number | undefined}
9
+ */
10
+ export declare function getProcessUptime(): number | undefined;
11
+ /**
12
+ * Returns the current working directory (Node.js only).
13
+ * @returns {string | undefined}
14
+ */
15
+ export declare function getCwd(): string | undefined;
16
+ /**
17
+ * Returns the current process platform (Node.js only).
18
+ * @returns {string | undefined}
19
+ */
20
+ export declare function getProcessPlatform(): string | undefined;
21
+ /**
22
+ * Exits the process with the given code (Node.js only).
23
+ * @param code Exit code (default 0).
24
+ */
25
+ export declare function exitProcess(code?: number): void;
26
+ /**
27
+ * Returns true if the process is running in a CI environment (Node.js only).
28
+ * @returns {boolean}
29
+ */
30
+ export declare function isCI(): boolean;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/process/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAGjD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIrD;AAED;;;GAGG;AACH,wBAAgB,MAAM,IAAI,MAAM,GAAG,SAAS,CAG3C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,SAAS,CAGvD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAU,GAAG,IAAI,CAElD;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,OAAO,CAS9B"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function n(){if(typeof process<"u"&&process.pid)return process.pid}function r(){if(typeof process<"u"&&typeof process.uptime=="function")return process.uptime()}function o(){if(typeof process<"u"&&typeof process.cwd=="function")return process.cwd()}function s(){if(typeof process<"u"&&process.platform)return process.platform}function t(e=0){typeof process<"u"&&typeof process.exit=="function"&&process.exit(e)}function p(){return typeof process<"u"&&!!process.env&&(!!process.env.CI||!!process.env.CONTINUOUS_INTEGRATION||!!process.env.BUILD_NUMBER||!!process.env.RUN_ID)}export{t as exitProcess,o as getCwd,n as getProcessId,s as getProcessPlatform,r as getProcessUptime,p as isCI};
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Returns a promise that resolves after a given delay (ms).
3
+ * @param ms Milliseconds to wait.
4
+ * @returns {Promise<void>}
5
+ */
6
+ export declare function delay(ms: number): Promise<void>;
7
+ /**
8
+ * Wraps a promise and returns a tuple [error, result].
9
+ * @param promise The promise to wrap.
10
+ * @returns {Promise<[any, T | undefined]>}
11
+ */
12
+ export declare function to<T>(promise: Promise<T>): Promise<[any, T | undefined]>;
13
+ /**
14
+ * Returns a promise that rejects after a timeout if the input promise does not resolve.
15
+ * @param promise The promise to race.
16
+ * @param ms Timeout in milliseconds.
17
+ * @param error Optional error to throw on timeout.
18
+ * @returns {Promise<T>}
19
+ */
20
+ export declare function withTimeout<T>(promise: Promise<T>, ms: number, error?: any): Promise<T>;
21
+ /**
22
+ * Returns a promise that resolves when all promises resolve, or rejects on the first rejection (like Promise.all).
23
+ * @param promises Array of promises.
24
+ * @returns {Promise<T[]>}
25
+ */
26
+ export declare function all<T>(promises: Promise<T>[]): Promise<T[]>;
27
+ /**
28
+ * Returns a promise that resolves when all promises settle (like Promise.allSettled).
29
+ * @param promises Array of promises.
30
+ * @returns {Promise<PromiseSettledResult<T>[]>}
31
+ */
32
+ export declare function allSettled<T>(promises: Promise<T>[]): Promise<PromiseSettledResult<T>[]>;
33
+ /**
34
+ * Returns a promise that resolves or rejects as soon as one of the promises resolves or rejects (like Promise.race).
35
+ * @param promises Array of promises.
36
+ * @returns {Promise<T>}
37
+ */
38
+ export declare function race<T>(promises: Promise<T>[]): Promise<T>;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promises/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;;;GAIG;AAEH,wBAAsB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAO9E;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC5B,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,GAA0B,GAC/B,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAExF;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAE1D"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function n(e){return new Promise(r=>setTimeout(r,e))}async function s(e){try{return[null,await e]}catch(r){return[r,void 0]}}function u(e,r,t=new Error("Timeout")){return Promise.race([e,new Promise((i,o)=>setTimeout(()=>o(t),r))])}function m(e){return Promise.all(e)}function T(e){return Promise.allSettled(e)}function P(e){return Promise.race(e)}export{m as all,T as allSettled,n as delay,P as race,s as to,u as withTimeout};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Returns a random integer between min (inclusive) and max (inclusive).
3
+ * @param min Minimum integer value.
4
+ * @param max Maximum integer value.
5
+ * @returns {number} Random integer between min and max.
6
+ */
7
+ export declare function randomInt(min: number, max: number): number;
8
+ /**
9
+ * Returns a random float between min (inclusive) and max (exclusive).
10
+ * @param min Minimum float value.
11
+ * @param max Maximum float value.
12
+ * @returns {number} Random float between min and max.
13
+ */
14
+ export declare function randomFloat(min: number, max: number): number;
15
+ /**
16
+ * Returns a random boolean value.
17
+ * @returns {boolean}
18
+ */
19
+ export declare function randomBool(): boolean;
20
+ /**
21
+ * Returns a random element from an array.
22
+ * @param arr The array to pick from.
23
+ * @returns {T | undefined} A random element from the array, or undefined if the array is empty.
24
+ */
25
+ export declare function randomElement<T>(arr: T[]): T | undefined;
26
+ /**
27
+ * Returns a random string of the given length using the given characters.
28
+ * @param length Length of the string.
29
+ * @param chars Characters to use (default: alphanumeric).
30
+ * @returns {string}
31
+ */
32
+ export declare function randomString(length: number, chars?: string): string;
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/random/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,SAAS,CAGxD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC3B,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,MAAyE,GAC9E,MAAM,CAMR"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function o(n,r){return Math.floor(Math.random()*(r-n+1))+n}function u(n,r){return Math.random()*(r-n)+n}function m(){return Math.random()<.5}function a(n){if(n.length!==0)return n[o(0,n.length-1)]}function d(n,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){let t="";for(let e=0;e<n;e++)t+=r.charAt(o(0,r.length-1));return t}export{m as randomBool,a as randomElement,u as randomFloat,o as randomInt,d as randomString};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Escapes special regex characters in a string so it can be used in a RegExp.
3
+ * @param str The string to escape.
4
+ * @returns The escaped string.
5
+ */
6
+ export declare function escapeRegExp(str: string): string;
7
+ /**
8
+ * Tests if a string matches a given regex pattern.
9
+ * @param str The string to test.
10
+ * @param pattern The regex pattern (string or RegExp).
11
+ * @returns True if the string matches, false otherwise.
12
+ */
13
+ export declare function testRegex(str: string, pattern: string | RegExp): boolean;
14
+ /**
15
+ * Returns all matches of a regex pattern in a string.
16
+ * @param str The string to search.
17
+ * @param pattern The regex pattern (string or RegExp).
18
+ * @returns An array of matches, or an empty array if none found.
19
+ */
20
+ export declare function matchAll(str: string, pattern: string | RegExp): RegExpMatchArray[];
21
+ /**
22
+ * Replaces all matches of a regex pattern in a string with a replacement.
23
+ * @param str The string to search.
24
+ * @param pattern The regex pattern (string or RegExp).
25
+ * @param replacement The replacement string or function.
26
+ * @returns The resulting string.
27
+ */
28
+ export declare function replaceAllRegex(str: string, pattern: string | RegExp, replacement: string | ((substring: string, ...args: any[]) => string)): string;
29
+ /**
30
+ * Splits a string by a regex pattern.
31
+ * @param str The string to split.
32
+ * @param pattern The regex pattern (string or RegExp).
33
+ * @returns An array of strings.
34
+ */
35
+ export declare function splitByRegex(str: string, pattern: string | RegExp): string[];
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/regex/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAGxE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,EAAE,CASlF;AAED;;;;;;GAMG;AAEH,wBAAgB,eAAe,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,GACnE,MAAM,CASR;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAG5E"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e,g){return(typeof g=="string"?new RegExp(g):g).test(e)}function x(e,g){let s=typeof g=="string"?new RegExp(g,"g"):new RegExp(g.source,g.flags.includes("g")?g.flags:`${g.flags}g`);return Array.from(e.matchAll(s))}function t(e,g,s){let r=typeof g=="string"?new RegExp(g,"g"):new RegExp(g.source,g.flags.includes("g")?g.flags:`${g.flags}g`);return e.replace(r,s)}function o(e,g){let s=typeof g=="string"?new RegExp(g):g;return e.split(s)}export{n as escapeRegExp,x as matchAll,t as replaceAllRegex,o as splitByRegex,i as testRegex};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Sanitizes a string by removing script tags and event handlers.
3
+ * @param str The string to sanitize.
4
+ * @returns The sanitized string.
5
+ */
6
+ export declare function sanitizeString(str: string): string;
7
+ /**
8
+ * Checks if a password is strong (min 8 chars, upper, lower, number, special char).
9
+ * @param password The password to check.
10
+ * @returns True if the password is strong, false otherwise.
11
+ */
12
+ export declare function isStrongPassword(password: string): boolean;
13
+ export declare function generateSecureToken(length?: number): string;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI1D;AAQD,wBAAgB,mBAAmB,CAAC,MAAM,SAAK,GAAG,MAAM,CAEvD"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";import{randomBytes as t}from"node:crypto";function n(r){return r.replace(/<script.*?>.*?<\/script>/gi,"").replace(/on\w+\s*=\s*(['"]).*?\1/gi,"")}function e(r){return/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]).{8,}$/.test(r)}function o(r=32){return t(r).toString("hex")}export{o as generateSecureToken,e as isStrongPassword,n as sanitizeString};
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Returns the union of two sets.
3
+ * @param a First set.
4
+ * @param b Second set.
5
+ * @returns {Set<T>} Union of a and b.
6
+ */
7
+ export declare function union<T>(a: Set<T>, b: Set<T>): Set<T>;
8
+ /**
9
+ * Returns the intersection of two sets.
10
+ * @param a First set.
11
+ * @param b Second set.
12
+ * @returns {Set<T>} Intersection of a and b.
13
+ */
14
+ export declare function intersection<T>(a: Set<T>, b: Set<T>): Set<T>;
15
+ /**
16
+ * Returns the difference of two sets (elements in a not in b).
17
+ * @param a First set.
18
+ * @param b Second set.
19
+ * @returns {Set<T>} Difference of a and b.
20
+ */
21
+ export declare function difference<T>(a: Set<T>, b: Set<T>): Set<T>;
22
+ /**
23
+ * Returns true if set a is a subset of set b.
24
+ * @param a First set.
25
+ * @param b Second set.
26
+ * @returns {boolean}
27
+ */
28
+ export declare function isSubset<T>(a: Set<T>, b: Set<T>): boolean;
29
+ /**
30
+ * Returns true if set a is a superset of set b.
31
+ * @param a First set.
32
+ * @param b Second set.
33
+ * @returns {boolean}
34
+ */
35
+ export declare function isSuperset<T>(a: Set<T>, b: Set<T>): boolean;
36
+ /**
37
+ * Converts a set to an array.
38
+ * @param set The set to convert.
39
+ * @returns {T[]}
40
+ */
41
+ export declare function setToArray<T>(set: Set<T>): T[];
42
+ /**
43
+ * Converts an array to a set.
44
+ * @param arr The array to convert.
45
+ * @returns {Set<T>}
46
+ */
47
+ export declare function arrayToSet<T>(arr: T[]): Set<T>;
48
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sets/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAErD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAGzD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAE9C"}
@@ -0,0 +1 @@
1
+ import"../chunks/chunk-ANN5UYCF.js";function n(e,t){return new Set([...e,...t])}function o(e,t){return new Set([...e].filter(r=>t.has(r)))}function T(e,t){return new Set([...e].filter(r=>!t.has(r)))}function S(e,t){for(let r of e)if(!t.has(r))return!1;return!0}function u(e,t){for(let r of t)if(!e.has(r))return!1;return!0}function f(e){return Array.from(e)}function i(e){return new Set(e)}export{i as arrayToSet,T as difference,o as intersection,S as isSubset,u as isSuperset,f as setToArray,n as union};