@8ms/helpers 1.40.6 → 1.40.9

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 (1027) hide show
  1. package/api/ApiResponse.d.ts +50 -0
  2. package/api/ApiResponse.js +94 -0
  3. package/api/index.d.ts +9 -0
  4. package/api/index.js +13 -0
  5. package/api/isError.d.ts +6 -0
  6. package/api/isError.js +7 -0
  7. package/api/isSuccess.d.ts +6 -0
  8. package/api/isSuccess.js +7 -0
  9. package/api/response.d.ts +8 -0
  10. package/api/response.js +9 -0
  11. package/array/contains.d.ts +9 -0
  12. package/array/contains.js +7 -0
  13. package/array/getArray.d.ts +8 -0
  14. package/array/getArray.js +11 -0
  15. package/atInternet/request.d.ts +30 -0
  16. package/atInternet/request.js +2 -0
  17. package/aws/athenaExpress/initClient.d.ts +12 -0
  18. package/aws/athenaExpress/initClient.js +31 -0
  19. package/aws/athenaExpress/query.d.ts +8 -0
  20. package/aws/athenaExpress/query.js +16 -0
  21. package/aws/ec2/initClient.d.ts +11 -0
  22. package/aws/ec2/initClient.js +23 -0
  23. package/aws/ec2/startInstances.d.ts +11 -0
  24. package/aws/ec2/startInstances.js +18 -0
  25. package/aws/ec2/stopInstances.d.ts +12 -0
  26. package/aws/ec2/stopInstances.js +19 -0
  27. package/aws/ecs/getClusters.d.ts +9 -0
  28. package/aws/ecs/getClusters.js +32 -0
  29. package/aws/ecs/getTaskDefinitions.d.ts +13 -0
  30. package/aws/ecs/getTaskDefinitions.js +35 -0
  31. package/aws/ecs/getTasks.d.ts +16 -0
  32. package/aws/ecs/getTasks.js +38 -0
  33. package/aws/ecs/initClient.d.ts +11 -0
  34. package/aws/ecs/initClient.js +23 -0
  35. package/aws/ecs/runTask.d.ts +16 -0
  36. package/aws/ecs/runTask.js +30 -0
  37. package/aws/getConfig.d.ts +13 -0
  38. package/aws/getConfig.js +27 -0
  39. package/aws/glue/initClient.d.ts +10 -0
  40. package/aws/glue/initClient.js +21 -0
  41. package/aws/glue/invoke.d.ts +9 -0
  42. package/aws/glue/invoke.js +23 -0
  43. package/aws/isResponse200.d.ts +7 -0
  44. package/aws/isResponse200.js +22 -0
  45. package/aws/lambda/getHandlerPath.d.ts +5 -0
  46. package/aws/lambda/getHandlerPath.js +7 -0
  47. package/aws/lambda/initClient.d.ts +10 -0
  48. package/aws/lambda/initClient.js +21 -0
  49. package/aws/lambda/invoke.d.ts +13 -0
  50. package/aws/lambda/invoke.js +61 -0
  51. package/aws/s3/copyFile.d.ts +13 -0
  52. package/aws/s3/copyFile.js +14 -0
  53. package/aws/s3/deleteFile.d.ts +9 -0
  54. package/aws/s3/deleteFile.js +13 -0
  55. package/aws/s3/deleteFiles.d.ts +9 -0
  56. package/aws/s3/deleteFiles.js +17 -0
  57. package/aws/s3/deleteFolder.d.ts +9 -0
  58. package/aws/s3/deleteFolder.js +36 -0
  59. package/aws/s3/getGlueJson.d.ts +8 -0
  60. package/aws/s3/getGlueJson.js +11 -0
  61. package/aws/s3/getPresignedPost.d.ts +20 -0
  62. package/aws/s3/getPresignedPost.js +19 -0
  63. package/aws/s3/getSignedUrl.d.ts +12 -0
  64. package/aws/s3/getSignedUrl.js +17 -0
  65. package/aws/s3/initClient.d.ts +10 -0
  66. package/aws/s3/initClient.js +19 -0
  67. package/aws/s3/isFileExists.d.ts +9 -0
  68. package/aws/s3/isFileExists.js +27 -0
  69. package/aws/s3/listFiles.d.ts +9 -0
  70. package/aws/s3/listFiles.js +33 -0
  71. package/aws/s3/listFilesIteratively.d.ts +9 -0
  72. package/aws/s3/listFilesIteratively.js +44 -0
  73. package/aws/s3/listFolders.d.ts +9 -0
  74. package/aws/s3/listFolders.js +32 -0
  75. package/aws/s3/moveFile.d.ts +10 -0
  76. package/aws/s3/moveFile.js +21 -0
  77. package/aws/s3/readBrotli.d.ts +11 -0
  78. package/aws/s3/readBrotli.js +28 -0
  79. package/aws/s3/readBuffer.d.ts +13 -0
  80. package/aws/s3/readBuffer.js +39 -0
  81. package/aws/s3/readFile.d.ts +31 -0
  82. package/aws/s3/readFile.js +83 -0
  83. package/aws/s3/readGzip.d.ts +11 -0
  84. package/aws/s3/readGzip.js +28 -0
  85. package/aws/s3/writeBrotli.d.ts +12 -0
  86. package/aws/s3/writeBrotli.js +28 -0
  87. package/aws/s3/writeFile.d.ts +11 -0
  88. package/aws/s3/writeFile.js +16 -0
  89. package/aws/s3/writeGzip.d.ts +12 -0
  90. package/aws/s3/writeGzip.js +28 -0
  91. package/aws/s3/writePresignedPost.d.ts +14 -0
  92. package/aws/s3/writePresignedPost.js +31 -0
  93. package/aws/s3/writeUrlContents.d.ts +10 -0
  94. package/aws/s3/writeUrlContents.js +23 -0
  95. package/aws/s3cache/getCache.d.ts +11 -0
  96. package/aws/s3cache/getCache.js +37 -0
  97. package/aws/s3cache/getKey.d.ts +10 -0
  98. package/aws/s3cache/getKey.js +18 -0
  99. package/aws/s3cache/index.d.ts +6 -0
  100. package/aws/s3cache/index.js +2 -0
  101. package/aws/s3cache/saveCache.d.ts +10 -0
  102. package/aws/s3cache/saveCache.js +17 -0
  103. package/aws/s3cache/updateCache.d.ts +10 -0
  104. package/aws/s3cache/updateCache.js +24 -0
  105. package/aws/ses/SimpleEmail.d.ts +51 -0
  106. package/aws/ses/SimpleEmail.js +114 -0
  107. package/aws/ses/initClient.d.ts +10 -0
  108. package/aws/ses/initClient.js +19 -0
  109. package/aws/sqs/addToQueue.d.ts +27 -0
  110. package/aws/sqs/addToQueue.js +26 -0
  111. package/aws/sqs/deleteFromQueue.d.ts +10 -0
  112. package/aws/sqs/deleteFromQueue.js +15 -0
  113. package/aws/sqs/initClient.d.ts +10 -0
  114. package/aws/sqs/initClient.js +19 -0
  115. package/aws/sqs/isEventSqs.js +13 -0
  116. package/aws/ssm/getParameter.d.ts +10 -0
  117. package/aws/ssm/getParameter.js +40 -0
  118. package/aws/ssm/initClient.d.ts +10 -0
  119. package/aws/ssm/initClient.js +19 -0
  120. package/axios/delete.d.ts +11 -0
  121. package/axios/delete.js +43 -0
  122. package/axios/get.d.ts +10 -0
  123. package/axios/get.js +39 -0
  124. package/axios/post.d.ts +11 -0
  125. package/axios/post.js +39 -0
  126. package/boolean/getBoolean.d.ts +7 -0
  127. package/boolean/getBoolean.js +16 -0
  128. package/brightData/getCustomerId.d.ts +10 -0
  129. package/brightData/getCustomerId.js +11 -0
  130. package/brightData/getZone.d.ts +9 -0
  131. package/brightData/getZone.js +10 -0
  132. package/brightData/param.d.ts +9 -0
  133. package/brightData/param.js +3 -0
  134. package/brightData/serpApi/buildGoogleSerpUrl.d.ts +32 -0
  135. package/brightData/serpApi/buildGoogleSerpUrl.js +115 -0
  136. package/brightData/serpApi/buildGoogleTrendsUrl.d.ts +22 -0
  137. package/brightData/serpApi/buildGoogleTrendsUrl.js +60 -0
  138. package/brightData/serpApi/getAsyncRequestId.d.ts +14 -0
  139. package/brightData/serpApi/getAsyncRequestId.js +50 -0
  140. package/brightData/serpApi/getAsyncResults.d.ts +12 -0
  141. package/brightData/serpApi/getAsyncResults.js +49 -0
  142. package/brightData/serpApi/getRealtime.d.ts +10 -0
  143. package/brightData/serpApi/getRealtime.js +35 -0
  144. package/brightData/serpApi/type.d.ts +11 -0
  145. package/brightData/serpApi/type.js +14 -0
  146. package/brightData/webScraperIde/getBatch.d.ts +14 -0
  147. package/brightData/webScraperIde/getBatch.js +34 -0
  148. package/brightData/webScraperIde/getRealtime.d.ts +13 -0
  149. package/brightData/webScraperIde/getRealtime.js +64 -0
  150. package/class/BaseClass.d.ts +31 -0
  151. package/class/BaseClass.js +50 -0
  152. package/crud/index.d.ts +6 -0
  153. package/crud/index.js +10 -0
  154. package/crypto/getDecrypt.d.ts +10 -0
  155. package/crypto/getDecrypt.js +13 -0
  156. package/crypto/getEncrypt.d.ts +10 -0
  157. package/crypto/getEncrypt.js +13 -0
  158. package/crypto/getRandom.d.ts +8 -0
  159. package/crypto/getRandom.js +12 -0
  160. package/crypto/getSha256.d.ts +8 -0
  161. package/crypto/getSha256.js +17 -0
  162. package/date/format.d.ts +10 -0
  163. package/date/format.js +21 -0
  164. package/date/getDate.d.ts +14 -0
  165. package/date/getDate.js +138 -0
  166. package/date/getDatesBetween.d.ts +13 -0
  167. package/date/getDatesBetween.js +54 -0
  168. package/date/getDurationHours.d.ts +9 -0
  169. package/date/getDurationHours.js +24 -0
  170. package/date/getDurationMinutes.d.ts +9 -0
  171. package/date/getDurationMinutes.js +22 -0
  172. package/date/getFinancialYear.d.ts +9 -0
  173. package/date/getFinancialYear.js +52 -0
  174. package/date/getFinancialYearToDate.d.ts +7 -0
  175. package/date/getFinancialYearToDate.js +20 -0
  176. package/date/getFinancialYearToYesterday.d.ts +7 -0
  177. package/date/getFinancialYearToYesterday.js +20 -0
  178. package/date/getFinancialYearWeeks.d.ts +9 -0
  179. package/date/getFinancialYearWeeks.js +33 -0
  180. package/date/getLastWeek.d.ts +10 -0
  181. package/date/getLastWeek.js +34 -0
  182. package/date/getMax.d.ts +13 -0
  183. package/date/getMax.js +24 -0
  184. package/date/getMidnight.d.ts +10 -0
  185. package/date/getMidnight.js +13 -0
  186. package/date/getMin.d.ts +13 -0
  187. package/date/getMin.js +24 -0
  188. package/date/getMonday.d.ts +15 -0
  189. package/date/getMonday.js +46 -0
  190. package/date/getNumber.d.ts +7 -0
  191. package/date/getNumber.js +20 -0
  192. package/date/getPredefinedTimeframe.d.ts +8 -0
  193. package/date/getPredefinedTimeframe.js +24 -0
  194. package/date/getSunday.d.ts +15 -0
  195. package/date/getSunday.js +42 -0
  196. package/date/getThisWeek.d.ts +10 -0
  197. package/date/getThisWeek.js +36 -0
  198. package/date/getTimeZoned.d.ts +13 -0
  199. package/date/getTimeZoned.js +55 -0
  200. package/date/getToday.d.ts +9 -0
  201. package/date/getToday.js +24 -0
  202. package/date/getTodayYmd.d.ts +5 -0
  203. package/date/getTodayYmd.js +21 -0
  204. package/date/getTodayYmdhis.d.ts +5 -0
  205. package/date/getTodayYmdhis.js +21 -0
  206. package/date/getTwoWeeksAgo.d.ts +10 -0
  207. package/date/getTwoWeeksAgo.js +36 -0
  208. package/date/getWeeksAgo.d.ts +13 -0
  209. package/date/getWeeksAgo.js +25 -0
  210. package/date/getYesterday.d.ts +9 -0
  211. package/date/getYesterday.js +52 -0
  212. package/date/index.d.ts +55 -0
  213. package/date/index.js +36 -0
  214. package/date/isDateValid.d.ts +7 -0
  215. package/date/isDateValid.js +20 -0
  216. package/date/isLastWeek.d.ts +6 -0
  217. package/date/isLastWeek.js +14 -0
  218. package/date/isThisWeek.d.ts +6 -0
  219. package/date/isThisWeek.js +14 -0
  220. package/date/parseExcelDate.d.ts +8 -0
  221. package/date/parseExcelDate.js +19 -0
  222. package/environment/getEnvironment.d.ts +6 -0
  223. package/environment/getEnvironment.js +43 -0
  224. package/environment/index.d.ts +9 -0
  225. package/environment/index.js +14 -0
  226. package/environment/isAws.d.ts +5 -0
  227. package/environment/isAws.js +8 -0
  228. package/environment/isDevelopment.d.ts +2 -0
  229. package/environment/isDevelopment.js +9 -0
  230. package/environment/isLocalhost.d.ts +5 -0
  231. package/environment/isLocalhost.js +25 -0
  232. package/environment/isProduction.d.ts +2 -0
  233. package/environment/isProduction.js +9 -0
  234. package/environment/isStaging.d.ts +2 -0
  235. package/environment/isStaging.js +9 -0
  236. package/environment/isVercel.d.ts +5 -0
  237. package/environment/isVercel.js +7 -0
  238. package/eskimi/ageGroups.d.ts +5 -0
  239. package/eskimi/ageGroups.js +41 -0
  240. package/eskimi/campaign.d.ts +19 -0
  241. package/eskimi/campaign.js +2 -0
  242. package/eskimi/devices.d.ts +5 -0
  243. package/eskimi/devices.js +13 -0
  244. package/eskimi/endpoints.d.ts +16 -0
  245. package/eskimi/endpoints.js +18 -0
  246. package/eskimi/genders.d.ts +5 -0
  247. package/eskimi/genders.js +13 -0
  248. package/eskimi/getAccessToken.d.ts +9 -0
  249. package/eskimi/getAccessToken.js +23 -0
  250. package/eskimi/getAgeGroup.d.ts +7 -0
  251. package/eskimi/getAgeGroup.js +17 -0
  252. package/eskimi/getCampaignIds.d.ts +7 -0
  253. package/eskimi/getCampaignIds.js +12 -0
  254. package/eskimi/getData.d.ts +8 -0
  255. package/eskimi/getData.js +23 -0
  256. package/eskimi/getDevice.d.ts +7 -0
  257. package/eskimi/getDevice.js +17 -0
  258. package/eskimi/getGender.d.ts +7 -0
  259. package/eskimi/getGender.js +17 -0
  260. package/file/createDirectory.d.ts +9 -0
  261. package/file/createDirectory.js +16 -0
  262. package/file/writeFile.d.ts +1 -0
  263. package/file/writeFile.js +3 -0
  264. package/global/forceUpdate.d.ts +8 -0
  265. package/global/forceUpdate.js +25 -0
  266. package/global/init.d.ts +10 -0
  267. package/global/init.js +18 -0
  268. package/global/isSet.d.ts +8 -0
  269. package/global/isSet.js +9 -0
  270. package/global/maxCache.d.ts +8 -0
  271. package/global/maxCache.js +17 -0
  272. package/global/read.d.ts +8 -0
  273. package/global/read.js +30 -0
  274. package/google/bigQuery/IsTableExists.d.ts +11 -0
  275. package/google/bigQuery/IsTableExists.js +25 -0
  276. package/google/bigQuery/createDataset.d.ts +11 -0
  277. package/google/bigQuery/createDataset.js +22 -0
  278. package/google/bigQuery/createTable.d.ts +12 -0
  279. package/google/bigQuery/createTable.js +31 -0
  280. package/google/bigQuery/getClient.d.ts +9 -0
  281. package/google/bigQuery/getClient.js +18 -0
  282. package/google/bigQuery/getDatasets.d.ts +13 -0
  283. package/google/bigQuery/getDatasets.js +27 -0
  284. package/google/bigQuery/getTables.d.ts +12 -0
  285. package/google/bigQuery/getTables.js +25 -0
  286. package/google/bigQuery/initClient.d.ts +11 -0
  287. package/google/bigQuery/initClient.js +29 -0
  288. package/google/bigQuery/isDatasetExists.d.ts +11 -0
  289. package/google/bigQuery/isDatasetExists.js +25 -0
  290. package/google/bigQuery/loadData.d.ts +18 -0
  291. package/google/bigQuery/loadData.js +32 -0
  292. package/google/bigQuery/query.d.ts +19 -0
  293. package/google/bigQuery/query.js +15 -0
  294. package/google/getConfig.d.ts +20 -0
  295. package/google/getConfig.js +23 -0
  296. package/google/sheets/getAssociatedData.d.ts +16 -0
  297. package/google/sheets/getAssociatedData.js +53 -0
  298. package/google/sheets/getBatchData.d.ts +18 -0
  299. package/google/sheets/getBatchData.js +19 -0
  300. package/google/sheets/initClient.d.ts +11 -0
  301. package/google/sheets/initClient.js +25 -0
  302. package/google/sheets/isCellNa.d.ts +7 -0
  303. package/google/sheets/isCellNa.js +7 -0
  304. package/google/storage/copyToCloud.d.ts +11 -0
  305. package/google/storage/copyToCloud.js +18 -0
  306. package/google/storage/getClient.d.ts +8 -0
  307. package/google/storage/getClient.js +18 -0
  308. package/google/storage/initClient.d.ts +12 -0
  309. package/google/storage/initClient.js +29 -0
  310. package/google/storage/isFileExists.d.ts +10 -0
  311. package/google/storage/isFileExists.js +19 -0
  312. package/google/storage/writeFile.d.ts +11 -0
  313. package/google/storage/writeFile.js +37 -0
  314. package/googleAds/getCustomer.d.ts +8 -0
  315. package/googleAds/getCustomer.js +14 -0
  316. package/googleAds/initClient.d.ts +16 -0
  317. package/googleAds/initClient.js +25 -0
  318. package/googleAds/keywordPlanner/index.d.ts +238 -0
  319. package/googleAds/keywordPlanner/index.js +244 -0
  320. package/googleAds/keywordPlanner/request.d.ts +18 -0
  321. package/googleAds/keywordPlanner/request.js +13 -0
  322. package/googleAds/keywordPlanner/response.d.ts +25 -0
  323. package/googleAds/keywordPlanner/response.js +2 -0
  324. package/initClients.d.ts +43 -0
  325. package/initClients.js +131 -0
  326. package/json/getJsonNewline.d.ts +5 -0
  327. package/json/getJsonNewline.js +17 -0
  328. package/json/isJson.d.ts +8 -0
  329. package/json/isJson.js +20 -0
  330. package/littleWarden/getUrlStatus.d.ts +9 -0
  331. package/littleWarden/getUrlStatus.js +21 -0
  332. package/littleWarden/index.d.ts +5 -0
  333. package/littleWarden/index.js +9 -0
  334. package/littleWarden/isAllGood.d.ts +7 -0
  335. package/littleWarden/isAllGood.js +15 -0
  336. package/littleWarden/isDanger.d.ts +7 -0
  337. package/littleWarden/isDanger.js +15 -0
  338. package/littleWarden/isWarning.d.ts +7 -0
  339. package/littleWarden/isWarning.js +15 -0
  340. package/lumar/api/buildRequest.d.ts +15 -0
  341. package/lumar/api/buildRequest.js +83 -0
  342. package/lumar/api/filter.d.ts +5 -0
  343. package/lumar/api/filter.js +2 -0
  344. package/lumar/api/getData.d.ts +6 -0
  345. package/lumar/api/getData.js +18 -0
  346. package/lumar/api/initClient.d.ts +13 -0
  347. package/lumar/api/initClient.js +38 -0
  348. package/lumar/api/operands.d.ts +11 -0
  349. package/lumar/api/operands.js +13 -0
  350. package/lumar/api/orders.d.ts +9 -0
  351. package/lumar/api/orders.js +7 -0
  352. package/lumar/api/reports.d.ts +11 -0
  353. package/lumar/api/reports.js +13 -0
  354. package/lumar/graphql/columns.d.ts +29 -0
  355. package/lumar/graphql/columns.js +31 -0
  356. package/lumar/graphql/getData.d.ts +9 -0
  357. package/lumar/graphql/getData.js +26 -0
  358. package/lumar/graphql/getReportKey.d.ts +9 -0
  359. package/lumar/graphql/getReportKey.js +9 -0
  360. package/lumar/graphql/initClient.d.ts +12 -0
  361. package/lumar/graphql/initClient.js +38 -0
  362. package/lumar/graphql/operands.d.ts +16 -0
  363. package/lumar/graphql/operands.js +18 -0
  364. package/lumar/graphql/queries/crawl.d.ts +5 -0
  365. package/lumar/graphql/queries/crawl.js +2 -0
  366. package/lumar/graphql/queries/getCrawls.d.ts +18 -0
  367. package/lumar/graphql/queries/getCrawls.js +33 -0
  368. package/lumar/graphql/queries/getReportDifferences.d.ts +24 -0
  369. package/lumar/graphql/queries/getReportDifferences.js +40 -0
  370. package/lumar/graphql/queries/getRows.d.ts +38 -0
  371. package/lumar/graphql/queries/getRows.js +57 -0
  372. package/lumar/graphql/queries/getTotals.d.ts +25 -0
  373. package/lumar/graphql/queries/getTotals.js +40 -0
  374. package/lumar/graphql/queries/row.d.ts +157 -0
  375. package/lumar/graphql/queries/row.js +2 -0
  376. package/lumar/graphql/reportTemplates.d.ts +68 -0
  377. package/lumar/graphql/reportTemplates.js +70 -0
  378. package/lumar/graphql/reportTypes.d.ts +7 -0
  379. package/lumar/graphql/reportTypes.js +9 -0
  380. package/myTarget/getAccessToken.d.ts +9 -0
  381. package/myTarget/getAccessToken.js +23 -0
  382. package/myTarget/request.d.ts +9 -0
  383. package/myTarget/request.js +23 -0
  384. package/nextAuth/index.d.ts +5 -0
  385. package/nextAuth/index.js +9 -0
  386. package/nextAuth/isSessionReady.d.ts +4 -0
  387. package/nextAuth/isSessionReady.js +12 -0
  388. package/nextJs/getIp.d.ts +7 -0
  389. package/nextJs/getIp.js +13 -0
  390. package/nextJs/getUserAgent.d.ts +7 -0
  391. package/nextJs/getUserAgent.js +7 -0
  392. package/number/format.d.ts +11 -0
  393. package/number/format.js +23 -0
  394. package/number/getCurrency.d.ts +10 -0
  395. package/number/getCurrency.js +20 -0
  396. package/number/getDecimal.d.ts +9 -0
  397. package/number/getDecimal.js +16 -0
  398. package/number/getDivide.d.ts +11 -0
  399. package/number/getDivide.js +26 -0
  400. package/number/getNumber.d.ts +8 -0
  401. package/number/getNumber.js +51 -0
  402. package/number/getPercentIncrease.d.ts +10 -0
  403. package/number/getPercentIncrease.js +22 -0
  404. package/object/replaceKeys.d.ts +10 -0
  405. package/object/replaceKeys.js +30 -0
  406. package/package.json +55 -413
  407. package/prisma/getDecimal.d.ts +9 -0
  408. package/prisma/getDecimal.js +25 -0
  409. package/prisma/initClient.d.ts +6 -0
  410. package/prisma/initClient.js +36 -0
  411. package/snapchat/getAccessToken.d.ts +9 -0
  412. package/snapchat/getAccessToken.js +35 -0
  413. package/sorting/byNumberAscending.d.ts +8 -0
  414. package/sorting/byNumberAscending.js +17 -0
  415. package/sorting/byNumberDescending.d.ts +8 -0
  416. package/sorting/byNumberDescending.js +17 -0
  417. package/sorting/byStringAscending.d.ts +8 -0
  418. package/sorting/byStringAscending.js +21 -0
  419. package/sorting/byStringDescending.d.ts +8 -0
  420. package/sorting/byStringDescending.js +21 -0
  421. package/stream/sort.d.ts +13 -0
  422. package/stream/sort.js +50 -0
  423. package/string/getCapitalised.d.ts +10 -0
  424. package/string/getCapitalised.js +17 -0
  425. package/string/getClean.d.ts +18 -0
  426. package/string/getClean.js +65 -0
  427. package/string/getDecoded.d.ts +10 -0
  428. package/string/getDecoded.js +26 -0
  429. package/string/getFolder.d.ts +8 -0
  430. package/string/getFolder.js +14 -0
  431. package/string/getProperCase.d.ts +11 -0
  432. package/string/getProperCase.js +27 -0
  433. package/string/getString.d.ts +7 -0
  434. package/string/getString.js +34 -0
  435. package/string/getStringFromStream.d.ts +8 -0
  436. package/string/getStringFromStream.js +16 -0
  437. package/string/getWithoutAccents.d.ts +9 -0
  438. package/string/getWithoutAccents.js +16 -0
  439. package/string/getWithoutHtmlTags.d.ts +9 -0
  440. package/string/getWithoutHtmlTags.js +15 -0
  441. package/string/getWithoutPunctuation.d.ts +9 -0
  442. package/string/getWithoutPunctuation.js +16 -0
  443. package/string/getWithoutUnderscores.d.ts +8 -0
  444. package/string/getWithoutUnderscores.js +14 -0
  445. package/string/getWithoutWhitespaces.d.ts +9 -0
  446. package/string/getWithoutWhitespaces.js +16 -0
  447. package/swr/isAllData.d.ts +7 -0
  448. package/swr/isAllData.js +19 -0
  449. package/swr/isAnyError.d.ts +7 -0
  450. package/swr/isAnyError.js +19 -0
  451. package/swr/isAnyLoading.d.ts +7 -0
  452. package/swr/isAnyLoading.js +21 -0
  453. package/swr/isData.d.ts +7 -0
  454. package/swr/isData.js +9 -0
  455. package/swr/isError.d.ts +7 -0
  456. package/swr/isError.js +7 -0
  457. package/swr/isLoading.d.ts +7 -0
  458. package/swr/isLoading.js +12 -0
  459. package/upTimeRobot/getMonitors.js +33 -0
  460. package/upTimeRobot/logTypes.d.ts +7 -0
  461. package/upTimeRobot/logTypes.js +9 -0
  462. package/upTimeRobot/monitorStatuses.d.ts +8 -0
  463. package/upTimeRobot/monitorStatuses.js +10 -0
  464. package/upTimeRobot/monitorSubTypes.d.ts +10 -0
  465. package/upTimeRobot/monitorSubTypes.js +12 -0
  466. package/upTimeRobot/monitorTypes.d.ts +8 -0
  467. package/upTimeRobot/monitorTypes.js +10 -0
  468. package/upTimeRobot/requestStatuses.d.ts +5 -0
  469. package/upTimeRobot/requestStatuses.js +7 -0
  470. package/url/buildParameters.d.ts +8 -0
  471. package/url/buildParameters.js +22 -0
  472. package/url/buildRelative.d.ts +8 -0
  473. package/url/buildRelative.js +13 -0
  474. package/url/buildUrl.d.ts +10 -0
  475. package/url/buildUrl.js +29 -0
  476. package/url/isAbsolute.d.ts +7 -0
  477. package/url/isAbsolute.js +15 -0
  478. package/url/isRelative.d.ts +7 -0
  479. package/url/isRelative.js +8 -0
  480. package/url/url.d.ts +6 -0
  481. package/url/url.js +2 -0
  482. package/url/writeUrlContents.d.ts +11 -0
  483. package/url/writeUrlContents.js +72 -0
  484. package/util/defaultTo.d.ts +10 -0
  485. package/util/defaultTo.js +43 -0
  486. package/util/getBrotliCompressed.d.ts +9 -0
  487. package/util/getBrotliCompressed.js +19 -0
  488. package/util/getBrotliDecompressed.d.ts +9 -0
  489. package/util/getBrotliDecompressed.js +20 -0
  490. package/util/getClean.d.ts +11 -0
  491. package/util/getClean.js +28 -0
  492. package/util/getGzipCompressed.d.ts +9 -0
  493. package/util/getGzipCompressed.js +19 -0
  494. package/util/getGzipDecompressed.d.ts +9 -0
  495. package/util/getGzipDecompressed.js +20 -0
  496. package/util/getWithoutHash.d.ts +8 -0
  497. package/util/getWithoutHash.js +17 -0
  498. package/util/getWithoutParameter.d.ts +8 -0
  499. package/util/getWithoutParameter.js +17 -0
  500. package/util/isUndefined.d.ts +9 -0
  501. package/util/isUndefined.js +19 -0
  502. package/util/promiseChunks.d.ts +10 -0
  503. package/util/promiseChunks.js +22 -0
  504. package/util/sleep.d.ts +5 -0
  505. package/util/sleep.js +6 -0
  506. package/webWorker/index.d.ts +5 -0
  507. package/webWorker/index.js +9 -0
  508. package/xml/getXml.d.ts +5 -0
  509. package/xml/getXml.js +22 -0
  510. package/dist/api/ApiResponse.d.mts +0 -73
  511. package/dist/api/ApiResponse.mjs +0 -91
  512. package/dist/api/index.d.mts +0 -2
  513. package/dist/api/index.mjs +0 -13
  514. package/dist/api/isError.d.mts +0 -9
  515. package/dist/api/isError.mjs +0 -7
  516. package/dist/api/isSuccess.d.mts +0 -9
  517. package/dist/api/isSuccess.mjs +0 -7
  518. package/dist/api/response.d.mts +0 -2
  519. package/dist/api/response.mjs +0 -9
  520. package/dist/array/contains.d.mts +0 -11
  521. package/dist/array/contains.mjs +0 -7
  522. package/dist/array/getArray.d.mts +0 -10
  523. package/dist/array/getArray.mjs +0 -8
  524. package/dist/atInternet/request.d.mts +0 -31
  525. package/dist/aws/athenaExpress/initClient.d.mts +0 -15
  526. package/dist/aws/athenaExpress/initClient.mjs +0 -28
  527. package/dist/aws/athenaExpress/query.d.mts +0 -10
  528. package/dist/aws/athenaExpress/query.mjs +0 -13
  529. package/dist/aws/ec2/initClient.d.mts +0 -14
  530. package/dist/aws/ec2/initClient.mjs +0 -18
  531. package/dist/aws/ec2/startInstances.d.mts +0 -13
  532. package/dist/aws/ec2/startInstances.mjs +0 -17
  533. package/dist/aws/ec2/stopInstances.d.mts +0 -14
  534. package/dist/aws/ec2/stopInstances.mjs +0 -18
  535. package/dist/aws/ecs/getClusters.d.mts +0 -11
  536. package/dist/aws/ecs/getClusters.mjs +0 -23
  537. package/dist/aws/ecs/getTaskDefinitions.d.mts +0 -16
  538. package/dist/aws/ecs/getTaskDefinitions.mjs +0 -26
  539. package/dist/aws/ecs/getTasks.d.mts +0 -19
  540. package/dist/aws/ecs/getTasks.mjs +0 -29
  541. package/dist/aws/ecs/initClient.d.mts +0 -14
  542. package/dist/aws/ecs/initClient.mjs +0 -18
  543. package/dist/aws/ecs/runTask.d.mts +0 -19
  544. package/dist/aws/ecs/runTask.mjs +0 -24
  545. package/dist/aws/getConfig.d.mts +0 -18
  546. package/dist/aws/getConfig.mjs +0 -17
  547. package/dist/aws/glue/initClient.d.mts +0 -13
  548. package/dist/aws/glue/initClient.mjs +0 -17
  549. package/dist/aws/glue/invoke.d.mts +0 -11
  550. package/dist/aws/glue/invoke.mjs +0 -14
  551. package/dist/aws/isResponse200.d.mts +0 -11
  552. package/dist/aws/isResponse200.mjs +0 -16
  553. package/dist/aws/lambda/getHandlerPath.d.mts +0 -7
  554. package/dist/aws/lambda/getHandlerPath.mjs +0 -6
  555. package/dist/aws/lambda/initClient.d.mts +0 -13
  556. package/dist/aws/lambda/initClient.mjs +0 -17
  557. package/dist/aws/lambda/invoke.d.mts +0 -15
  558. package/dist/aws/lambda/invoke.mjs +0 -31
  559. package/dist/aws/s3/copyFile.d.mts +0 -18
  560. package/dist/aws/s3/copyFile.mjs +0 -15
  561. package/dist/aws/s3/deleteFile.d.mts +0 -14
  562. package/dist/aws/s3/deleteFile.mjs +0 -14
  563. package/dist/aws/s3/deleteFiles.d.mts +0 -14
  564. package/dist/aws/s3/deleteFiles.mjs +0 -14
  565. package/dist/aws/s3/deleteFolder.d.mts +0 -14
  566. package/dist/aws/s3/deleteFolder.mjs +0 -26
  567. package/dist/aws/s3/getGlueJson.d.mts +0 -12
  568. package/dist/aws/s3/getGlueJson.mjs +0 -8
  569. package/dist/aws/s3/getPresignedPost.d.mts +0 -28
  570. package/dist/aws/s3/getPresignedPost.mjs +0 -19
  571. package/dist/aws/s3/getSignedUrl.d.mts +0 -19
  572. package/dist/aws/s3/getSignedUrl.mjs +0 -17
  573. package/dist/aws/s3/initClient.d.mts +0 -15
  574. package/dist/aws/s3/initClient.mjs +0 -17
  575. package/dist/aws/s3/isFileExists.d.mts +0 -11
  576. package/dist/aws/s3/isFileExists.mjs +0 -21
  577. package/dist/aws/s3/listFiles.d.mts +0 -14
  578. package/dist/aws/s3/listFiles.mjs +0 -27
  579. package/dist/aws/s3/listFilesIteratively.d.mts +0 -11
  580. package/dist/aws/s3/listFilesIteratively.mjs +0 -40
  581. package/dist/aws/s3/listFolders.d.mts +0 -14
  582. package/dist/aws/s3/listFolders.mjs +0 -23
  583. package/dist/aws/s3/moveFile.d.mts +0 -16
  584. package/dist/aws/s3/moveFile.mjs +0 -18
  585. package/dist/aws/s3/readBrotli.d.mts +0 -18
  586. package/dist/aws/s3/readBrotli.mjs +0 -20
  587. package/dist/aws/s3/readBuffer.d.mts +0 -19
  588. package/dist/aws/s3/readBuffer.mjs +0 -29
  589. package/dist/aws/s3/readFile.d.mts +0 -38
  590. package/dist/aws/s3/readFile.mjs +0 -64
  591. package/dist/aws/s3/readGzip.d.mts +0 -18
  592. package/dist/aws/s3/readGzip.mjs +0 -20
  593. package/dist/aws/s3/writeBrotli.d.mts +0 -20
  594. package/dist/aws/s3/writeBrotli.mjs +0 -18
  595. package/dist/aws/s3/writeFile.d.mts +0 -18
  596. package/dist/aws/s3/writeFile.mjs +0 -16
  597. package/dist/aws/s3/writeGzip.d.mts +0 -20
  598. package/dist/aws/s3/writeGzip.mjs +0 -18
  599. package/dist/aws/s3/writePresignedPost.d.mts +0 -24
  600. package/dist/aws/s3/writePresignedPost.mjs +0 -28
  601. package/dist/aws/s3/writeUrlContents.d.mts +0 -16
  602. package/dist/aws/s3/writeUrlContents.mjs +0 -19
  603. package/dist/aws/s3cache/getCache.d.mts +0 -19
  604. package/dist/aws/s3cache/getCache.mjs +0 -25
  605. package/dist/aws/s3cache/getKey.d.mts +0 -15
  606. package/dist/aws/s3cache/getKey.mjs +0 -15
  607. package/dist/aws/s3cache/index.d.mts +0 -10
  608. package/dist/aws/s3cache/saveCache.d.mts +0 -16
  609. package/dist/aws/s3cache/saveCache.mjs +0 -14
  610. package/dist/aws/s3cache/updateCache.d.mts +0 -18
  611. package/dist/aws/s3cache/updateCache.mjs +0 -26
  612. package/dist/aws/ses/SimpleEmail.d.mts +0 -79
  613. package/dist/aws/ses/SimpleEmail.mjs +0 -122
  614. package/dist/aws/ses/initClient.d.mts +0 -15
  615. package/dist/aws/ses/initClient.mjs +0 -17
  616. package/dist/aws/sqs/addToQueue.d.mts +0 -35
  617. package/dist/aws/sqs/addToQueue.mjs +0 -20
  618. package/dist/aws/sqs/deleteFromQueue.d.mts +0 -16
  619. package/dist/aws/sqs/deleteFromQueue.mjs +0 -15
  620. package/dist/aws/sqs/index.d.mts +0 -18
  621. package/dist/aws/sqs/initClient.d.mts +0 -15
  622. package/dist/aws/sqs/initClient.mjs +0 -17
  623. package/dist/aws/sqs/isEventSqs.d.mts +0 -1
  624. package/dist/aws/sqs/isEventSqs.mjs +0 -1
  625. package/dist/aws/ssm/getParameter.d.mts +0 -16
  626. package/dist/aws/ssm/getParameter.mjs +0 -22
  627. package/dist/aws/ssm/initClient.d.mts +0 -15
  628. package/dist/aws/ssm/initClient.mjs +0 -17
  629. package/dist/axios/delete.d.mts +0 -14
  630. package/dist/axios/delete.mjs +0 -25
  631. package/dist/axios/get.d.mts +0 -16
  632. package/dist/axios/get.mjs +0 -24
  633. package/dist/axios/post.d.mts +0 -18
  634. package/dist/axios/post.mjs +0 -25
  635. package/dist/boolean/getBoolean.d.mts +0 -11
  636. package/dist/boolean/getBoolean.mjs +0 -11
  637. package/dist/brightData/getCustomerId.d.mts +0 -13
  638. package/dist/brightData/getCustomerId.mjs +0 -10
  639. package/dist/brightData/getZone.d.mts +0 -12
  640. package/dist/brightData/getZone.mjs +0 -10
  641. package/dist/brightData/param.d.mts +0 -11
  642. package/dist/brightData/param.mjs +0 -4
  643. package/dist/brightData/serpApi/buildGoogleSerpUrl.d.mts +0 -34
  644. package/dist/brightData/serpApi/buildGoogleSerpUrl.mjs +0 -100
  645. package/dist/brightData/serpApi/buildGoogleTrendsUrl.d.mts +0 -24
  646. package/dist/brightData/serpApi/buildGoogleTrendsUrl.mjs +0 -51
  647. package/dist/brightData/serpApi/getAsyncRequestId.d.mts +0 -17
  648. package/dist/brightData/serpApi/getAsyncRequestId.mjs +0 -35
  649. package/dist/brightData/serpApi/getAsyncResults.d.mts +0 -15
  650. package/dist/brightData/serpApi/getAsyncResults.mjs +0 -25
  651. package/dist/brightData/serpApi/getRealtime.d.mts +0 -13
  652. package/dist/brightData/serpApi/getRealtime.mjs +0 -25
  653. package/dist/brightData/serpApi/type.d.mts +0 -13
  654. package/dist/brightData/serpApi/type.mjs +0 -14
  655. package/dist/brightData/webScraperIde/getBatch.d.mts +0 -17
  656. package/dist/brightData/webScraperIde/getBatch.mjs +0 -22
  657. package/dist/brightData/webScraperIde/getRealtime.d.mts +0 -16
  658. package/dist/brightData/webScraperIde/getRealtime.mjs +0 -44
  659. package/dist/chunk-y_GBKt04.mjs +0 -5
  660. package/dist/class/BaseClass.d.mts +0 -45
  661. package/dist/class/BaseClass.mjs +0 -46
  662. package/dist/crud/index.d.mts +0 -9
  663. package/dist/crud/index.mjs +0 -10
  664. package/dist/crypto/getDecrypt.d.mts +0 -16
  665. package/dist/crypto/getDecrypt.mjs +0 -13
  666. package/dist/crypto/getEncrypt.d.mts +0 -16
  667. package/dist/crypto/getEncrypt.mjs +0 -13
  668. package/dist/crypto/getRandom.d.mts +0 -12
  669. package/dist/crypto/getRandom.mjs +0 -10
  670. package/dist/crypto/getSha256.d.mts +0 -12
  671. package/dist/crypto/getSha256.mjs +0 -13
  672. package/dist/date/format.d.mts +0 -13
  673. package/dist/date/format.mjs +0 -17
  674. package/dist/date/getDate.d.mts +0 -17
  675. package/dist/date/getDate.mjs +0 -107
  676. package/dist/date/getDatesBetween.d.mts +0 -16
  677. package/dist/date/getDatesBetween.mjs +0 -37
  678. package/dist/date/getDurationHours.d.mts +0 -11
  679. package/dist/date/getDurationHours.mjs +0 -24
  680. package/dist/date/getDurationMinutes.d.mts +0 -11
  681. package/dist/date/getDurationMinutes.mjs +0 -22
  682. package/dist/date/getFinancialYear.d.mts +0 -12
  683. package/dist/date/getFinancialYear.mjs +0 -31
  684. package/dist/date/getFinancialYearToDate.d.mts +0 -10
  685. package/dist/date/getFinancialYearToDate.mjs +0 -15
  686. package/dist/date/getFinancialYearToYesterday.d.mts +0 -10
  687. package/dist/date/getFinancialYearToYesterday.mjs +0 -15
  688. package/dist/date/getFinancialYearWeeks.d.mts +0 -12
  689. package/dist/date/getFinancialYearWeeks.mjs +0 -23
  690. package/dist/date/getLastWeek.d.mts +0 -16
  691. package/dist/date/getLastWeek.mjs +0 -30
  692. package/dist/date/getMax.d.mts +0 -16
  693. package/dist/date/getMax.mjs +0 -21
  694. package/dist/date/getMidnight.d.mts +0 -2
  695. package/dist/date/getMidnight.mjs +0 -11
  696. package/dist/date/getMin.d.mts +0 -16
  697. package/dist/date/getMin.mjs +0 -21
  698. package/dist/date/getMonday.d.mts +0 -18
  699. package/dist/date/getMonday.mjs +0 -31
  700. package/dist/date/getNumber.d.mts +0 -10
  701. package/dist/date/getNumber.mjs +0 -17
  702. package/dist/date/getPredefinedTimeframe.d.mts +0 -13
  703. package/dist/date/getPredefinedTimeframe.mjs +0 -15
  704. package/dist/date/getSunday.d.mts +0 -18
  705. package/dist/date/getSunday.mjs +0 -27
  706. package/dist/date/getThisWeek.d.mts +0 -16
  707. package/dist/date/getThisWeek.mjs +0 -36
  708. package/dist/date/getTimeZoned.d.mts +0 -2
  709. package/dist/date/getTimeZoned.mjs +0 -53
  710. package/dist/date/getToday.d.mts +0 -12
  711. package/dist/date/getToday.mjs +0 -21
  712. package/dist/date/getTodayYmd.d.mts +0 -7
  713. package/dist/date/getTodayYmd.mjs +0 -16
  714. package/dist/date/getTodayYmdhis.d.mts +0 -7
  715. package/dist/date/getTodayYmdhis.mjs +0 -16
  716. package/dist/date/getTwoWeeksAgo.d.mts +0 -16
  717. package/dist/date/getTwoWeeksAgo.mjs +0 -36
  718. package/dist/date/getWeeksAgo.d.mts +0 -22
  719. package/dist/date/getWeeksAgo.mjs +0 -22
  720. package/dist/date/getYesterday.d.mts +0 -15
  721. package/dist/date/getYesterday.mjs +0 -24
  722. package/dist/date/index.d.mts +0 -2
  723. package/dist/date/index.mjs +0 -36
  724. package/dist/date/isDateValid.d.mts +0 -11
  725. package/dist/date/isDateValid.mjs +0 -16
  726. package/dist/date/isLastWeek.d.mts +0 -12
  727. package/dist/date/isLastWeek.mjs +0 -11
  728. package/dist/date/isThisWeek.d.mts +0 -12
  729. package/dist/date/isThisWeek.mjs +0 -11
  730. package/dist/date/parseExcelDate.d.mts +0 -12
  731. package/dist/date/parseExcelDate.mjs +0 -18
  732. package/dist/environment/getEnvironment.d.mts +0 -9
  733. package/dist/environment/getEnvironment.mjs +0 -27
  734. package/dist/environment/index.d.mts +0 -12
  735. package/dist/environment/index.mjs +0 -14
  736. package/dist/environment/isAws.d.mts +0 -7
  737. package/dist/environment/isAws.mjs +0 -8
  738. package/dist/environment/isDevelopment.d.mts +0 -4
  739. package/dist/environment/isDevelopment.mjs +0 -6
  740. package/dist/environment/isLocalhost.d.mts +0 -7
  741. package/dist/environment/isLocalhost.mjs +0 -15
  742. package/dist/environment/isProduction.d.mts +0 -4
  743. package/dist/environment/isProduction.mjs +0 -6
  744. package/dist/environment/isStaging.d.mts +0 -4
  745. package/dist/environment/isStaging.mjs +0 -6
  746. package/dist/environment/isVercel.d.mts +0 -7
  747. package/dist/environment/isVercel.mjs +0 -7
  748. package/dist/eskimi/ageGroups.d.mts +0 -7
  749. package/dist/eskimi/ageGroups.mjs +0 -41
  750. package/dist/eskimi/campaign.d.mts +0 -22
  751. package/dist/eskimi/campaign.mjs +0 -1
  752. package/dist/eskimi/devices.d.mts +0 -7
  753. package/dist/eskimi/devices.mjs +0 -10
  754. package/dist/eskimi/endpoints.d.mts +0 -18
  755. package/dist/eskimi/endpoints.mjs +0 -16
  756. package/dist/eskimi/genders.d.mts +0 -7
  757. package/dist/eskimi/genders.mjs +0 -10
  758. package/dist/eskimi/getAccessToken.d.mts +0 -14
  759. package/dist/eskimi/getAccessToken.mjs +0 -19
  760. package/dist/eskimi/getAgeGroup.d.mts +0 -11
  761. package/dist/eskimi/getAgeGroup.mjs +0 -12
  762. package/dist/eskimi/getCampaignIds.d.mts +0 -11
  763. package/dist/eskimi/getCampaignIds.mjs +0 -9
  764. package/dist/eskimi/getData.d.mts +0 -13
  765. package/dist/eskimi/getData.mjs +0 -20
  766. package/dist/eskimi/getDevice.d.mts +0 -11
  767. package/dist/eskimi/getDevice.mjs +0 -12
  768. package/dist/eskimi/getGender.d.mts +0 -11
  769. package/dist/eskimi/getGender.mjs +0 -12
  770. package/dist/file/createDirectory.d.mts +0 -13
  771. package/dist/file/createDirectory.mjs +0 -16
  772. package/dist/file/writeFile.d.mts +0 -1
  773. package/dist/file/writeFile.mjs +0 -1
  774. package/dist/getMidnight-Cr5sAuOj.d.mts +0 -12
  775. package/dist/getTimeZoned-D7uY_mE6.d.mts +0 -15
  776. package/dist/global/forceUpdate.d.mts +0 -12
  777. package/dist/global/forceUpdate.mjs +0 -16
  778. package/dist/global/init.d.mts +0 -16
  779. package/dist/global/init.mjs +0 -16
  780. package/dist/global/isSet.d.mts +0 -12
  781. package/dist/global/isSet.mjs +0 -9
  782. package/dist/global/maxCache.d.mts +0 -12
  783. package/dist/global/maxCache.mjs +0 -15
  784. package/dist/global/read.d.mts +0 -12
  785. package/dist/global/read.mjs +0 -15
  786. package/dist/global.d.mts +0 -42
  787. package/dist/google/bigQuery/IsTableExists.d.mts +0 -17
  788. package/dist/google/bigQuery/IsTableExists.mjs +0 -19
  789. package/dist/google/bigQuery/createDataset.d.mts +0 -17
  790. package/dist/google/bigQuery/createDataset.mjs +0 -15
  791. package/dist/google/bigQuery/createTable.d.mts +0 -20
  792. package/dist/google/bigQuery/createTable.mjs +0 -21
  793. package/dist/google/bigQuery/getClient.d.mts +0 -11
  794. package/dist/google/bigQuery/getClient.mjs +0 -19
  795. package/dist/google/bigQuery/getDatasets.d.mts +0 -17
  796. package/dist/google/bigQuery/getDatasets.mjs +0 -17
  797. package/dist/google/bigQuery/getTables.d.mts +0 -14
  798. package/dist/google/bigQuery/getTables.mjs +0 -13
  799. package/dist/google/bigQuery/initClient.d.mts +0 -17
  800. package/dist/google/bigQuery/initClient.mjs +0 -27
  801. package/dist/google/bigQuery/isDatasetExists.d.mts +0 -16
  802. package/dist/google/bigQuery/isDatasetExists.mjs +0 -20
  803. package/dist/google/bigQuery/loadData.d.mts +0 -23
  804. package/dist/google/bigQuery/loadData.mjs +0 -20
  805. package/dist/google/bigQuery/query.d.mts +0 -24
  806. package/dist/google/bigQuery/query.mjs +0 -10
  807. package/dist/google/getConfig.d.mts +0 -24
  808. package/dist/google/getConfig.mjs +0 -21
  809. package/dist/google/sheets/getAssociatedData.d.mts +0 -18
  810. package/dist/google/sheets/getAssociatedData.mjs +0 -35
  811. package/dist/google/sheets/getBatchData.d.mts +0 -23
  812. package/dist/google/sheets/getBatchData.mjs +0 -15
  813. package/dist/google/sheets/initClient.d.mts +0 -16
  814. package/dist/google/sheets/initClient.mjs +0 -21
  815. package/dist/google/sheets/isCellNa.d.mts +0 -11
  816. package/dist/google/sheets/isCellNa.mjs +0 -7
  817. package/dist/google/storage/copyToCloud.d.mts +0 -18
  818. package/dist/google/storage/copyToCloud.mjs +0 -10
  819. package/dist/google/storage/getClient.d.mts +0 -12
  820. package/dist/google/storage/getClient.mjs +0 -19
  821. package/dist/google/storage/initClient.d.mts +0 -18
  822. package/dist/google/storage/initClient.mjs +0 -27
  823. package/dist/google/storage/isFileExists.d.mts +0 -12
  824. package/dist/google/storage/isFileExists.mjs +0 -11
  825. package/dist/google/storage/writeFile.d.mts +0 -13
  826. package/dist/google/storage/writeFile.mjs +0 -28
  827. package/dist/googleAds/getCustomer.d.mts +0 -12
  828. package/dist/googleAds/getCustomer.mjs +0 -13
  829. package/dist/googleAds/initClient.d.mts +0 -20
  830. package/dist/googleAds/initClient.mjs +0 -25
  831. package/dist/googleAds/keywordPlanner/index.d.mts +0 -241
  832. package/dist/googleAds/keywordPlanner/index.mjs +0 -244
  833. package/dist/googleAds/keywordPlanner/request.d.mts +0 -21
  834. package/dist/googleAds/keywordPlanner/request.mjs +0 -13
  835. package/dist/googleAds/keywordPlanner/response.d.mts +0 -28
  836. package/dist/googleAds/keywordPlanner/response.mjs +0 -1
  837. package/dist/index-CiGy7MyK.d.mts +0 -58
  838. package/dist/index-gGQBTUJU.d.mts +0 -12
  839. package/dist/initClients.d.mts +0 -46
  840. package/dist/initClients.mjs +0 -56
  841. package/dist/json/getJsonNewline.d.mts +0 -9
  842. package/dist/json/getJsonNewline.mjs +0 -7
  843. package/dist/json/isJson.d.mts +0 -12
  844. package/dist/json/isJson.mjs +0 -17
  845. package/dist/littleWarden/getUrlStatus.d.mts +0 -14
  846. package/dist/littleWarden/getUrlStatus.mjs +0 -16
  847. package/dist/littleWarden/index.d.mts +0 -8
  848. package/dist/littleWarden/index.mjs +0 -9
  849. package/dist/littleWarden/isAllGood.d.mts +0 -11
  850. package/dist/littleWarden/isAllGood.mjs +0 -12
  851. package/dist/littleWarden/isDanger.d.mts +0 -11
  852. package/dist/littleWarden/isDanger.mjs +0 -12
  853. package/dist/littleWarden/isWarning.d.mts +0 -11
  854. package/dist/littleWarden/isWarning.mjs +0 -12
  855. package/dist/lumar/api/buildRequest.d.mts +0 -28
  856. package/dist/lumar/api/buildRequest.mjs +0 -58
  857. package/dist/lumar/api/filter.d.mts +0 -8
  858. package/dist/lumar/api/filter.mjs +0 -1
  859. package/dist/lumar/api/getData.d.mts +0 -11
  860. package/dist/lumar/api/getData.mjs +0 -10
  861. package/dist/lumar/api/initClient.d.mts +0 -17
  862. package/dist/lumar/api/initClient.mjs +0 -28
  863. package/dist/lumar/api/operands.d.mts +0 -13
  864. package/dist/lumar/api/operands.mjs +0 -13
  865. package/dist/lumar/api/orders.d.mts +0 -11
  866. package/dist/lumar/api/orders.mjs +0 -7
  867. package/dist/lumar/api/reports.d.mts +0 -13
  868. package/dist/lumar/api/reports.mjs +0 -13
  869. package/dist/lumar/graphql/columns.d.mts +0 -31
  870. package/dist/lumar/graphql/columns.mjs +0 -31
  871. package/dist/lumar/graphql/getData.d.mts +0 -15
  872. package/dist/lumar/graphql/getData.mjs +0 -18
  873. package/dist/lumar/graphql/getReportKey.d.mts +0 -14
  874. package/dist/lumar/graphql/getReportKey.mjs +0 -9
  875. package/dist/lumar/graphql/initClient.d.mts +0 -16
  876. package/dist/lumar/graphql/initClient.mjs +0 -34
  877. package/dist/lumar/graphql/operands.d.mts +0 -18
  878. package/dist/lumar/graphql/operands.mjs +0 -18
  879. package/dist/lumar/graphql/queries/crawl.d.mts +0 -8
  880. package/dist/lumar/graphql/queries/crawl.mjs +0 -1
  881. package/dist/lumar/graphql/queries/getCrawls.d.mts +0 -23
  882. package/dist/lumar/graphql/queries/getCrawls.mjs +0 -33
  883. package/dist/lumar/graphql/queries/getReportDifferences.d.mts +0 -30
  884. package/dist/lumar/graphql/queries/getReportDifferences.mjs +0 -37
  885. package/dist/lumar/graphql/queries/getRows.d.mts +0 -50
  886. package/dist/lumar/graphql/queries/getRows.mjs +0 -57
  887. package/dist/lumar/graphql/queries/getTotals.d.mts +0 -33
  888. package/dist/lumar/graphql/queries/getTotals.mjs +0 -40
  889. package/dist/lumar/graphql/queries/row.d.mts +0 -159
  890. package/dist/lumar/graphql/queries/row.mjs +0 -1
  891. package/dist/lumar/graphql/reportTemplates.d.mts +0 -70
  892. package/dist/lumar/graphql/reportTemplates.mjs +0 -70
  893. package/dist/lumar/graphql/reportTypes.d.mts +0 -9
  894. package/dist/lumar/graphql/reportTypes.mjs +0 -9
  895. package/dist/myTarget/getAccessToken.d.mts +0 -14
  896. package/dist/myTarget/getAccessToken.mjs +0 -19
  897. package/dist/myTarget/request.d.mts +0 -15
  898. package/dist/myTarget/request.mjs +0 -17
  899. package/dist/nextAuth/index.d.mts +0 -9
  900. package/dist/nextAuth/index.mjs +0 -9
  901. package/dist/nextAuth/isSessionReady.d.mts +0 -8
  902. package/dist/nextAuth/isSessionReady.mjs +0 -10
  903. package/dist/nextJs/getIp.d.mts +0 -11
  904. package/dist/nextJs/getIp.mjs +0 -11
  905. package/dist/nextJs/getUserAgent.d.mts +0 -11
  906. package/dist/nextJs/getUserAgent.mjs +0 -7
  907. package/dist/number/format.d.mts +0 -13
  908. package/dist/number/format.mjs +0 -16
  909. package/dist/number/getCurrency.d.mts +0 -15
  910. package/dist/number/getCurrency.mjs +0 -17
  911. package/dist/number/getDecimal.d.mts +0 -11
  912. package/dist/number/getDecimal.mjs +0 -11
  913. package/dist/number/getDivide.d.mts +0 -13
  914. package/dist/number/getDivide.mjs +0 -17
  915. package/dist/number/getNumber.d.mts +0 -13
  916. package/dist/number/getNumber.mjs +0 -23
  917. package/dist/number/getPercentIncrease.d.mts +0 -16
  918. package/dist/number/getPercentIncrease.mjs +0 -13
  919. package/dist/object/replaceKeys.d.mts +0 -15
  920. package/dist/object/replaceKeys.mjs +0 -27
  921. package/dist/prisma/getDecimal.d.mts +0 -11
  922. package/dist/prisma/getDecimal.mjs +0 -17
  923. package/dist/prisma/initClient.d.mts +0 -8
  924. package/dist/prisma/initClient.mjs +0 -25
  925. package/dist/response-CKsarnP-.d.mts +0 -11
  926. package/dist/snapchat/getAccessToken.d.mts +0 -14
  927. package/dist/snapchat/getAccessToken.mjs +0 -29
  928. package/dist/sorting/byNumberAscending.d.mts +0 -13
  929. package/dist/sorting/byNumberAscending.mjs +0 -13
  930. package/dist/sorting/byNumberDescending.d.mts +0 -13
  931. package/dist/sorting/byNumberDescending.mjs +0 -13
  932. package/dist/sorting/byStringAscending.d.mts +0 -13
  933. package/dist/sorting/byStringAscending.mjs +0 -13
  934. package/dist/sorting/byStringDescending.d.mts +0 -13
  935. package/dist/sorting/byStringDescending.mjs +0 -13
  936. package/dist/stream/sort.d.mts +0 -16
  937. package/dist/stream/sort.mjs +0 -46
  938. package/dist/string/getCapitalised.d.mts +0 -15
  939. package/dist/string/getCapitalised.mjs +0 -13
  940. package/dist/string/getClean.d.mts +0 -32
  941. package/dist/string/getClean.mjs +0 -28
  942. package/dist/string/getDecoded.d.mts +0 -14
  943. package/dist/string/getDecoded.mjs +0 -19
  944. package/dist/string/getFolder.d.mts +0 -12
  945. package/dist/string/getFolder.mjs +0 -10
  946. package/dist/string/getProperCase.d.mts +0 -13
  947. package/dist/string/getProperCase.mjs +0 -14
  948. package/dist/string/getString.d.mts +0 -11
  949. package/dist/string/getString.mjs +0 -18
  950. package/dist/string/getStringFromStream.d.mts +0 -12
  951. package/dist/string/getStringFromStream.mjs +0 -15
  952. package/dist/string/getWithoutAccents.d.mts +0 -13
  953. package/dist/string/getWithoutAccents.mjs +0 -11
  954. package/dist/string/getWithoutHtmlTags.d.mts +0 -13
  955. package/dist/string/getWithoutHtmlTags.mjs +0 -11
  956. package/dist/string/getWithoutPunctuation.d.mts +0 -13
  957. package/dist/string/getWithoutPunctuation.mjs +0 -11
  958. package/dist/string/getWithoutUnderscores.d.mts +0 -12
  959. package/dist/string/getWithoutUnderscores.mjs +0 -10
  960. package/dist/string/getWithoutWhitespaces.d.mts +0 -13
  961. package/dist/string/getWithoutWhitespaces.mjs +0 -11
  962. package/dist/swr/isAllData.d.mts +0 -11
  963. package/dist/swr/isAllData.mjs +0 -12
  964. package/dist/swr/isAnyError.d.mts +0 -11
  965. package/dist/swr/isAnyError.mjs +0 -12
  966. package/dist/swr/isAnyLoading.d.mts +0 -11
  967. package/dist/swr/isAnyLoading.mjs +0 -12
  968. package/dist/swr/isData.d.mts +0 -11
  969. package/dist/swr/isData.mjs +0 -7
  970. package/dist/swr/isError.d.mts +0 -11
  971. package/dist/swr/isError.mjs +0 -7
  972. package/dist/swr/isLoading.d.mts +0 -11
  973. package/dist/swr/isLoading.mjs +0 -9
  974. package/dist/upTimeRobot/getMonitors.d.mts +0 -1
  975. package/dist/upTimeRobot/getMonitors.mjs +0 -3
  976. package/dist/upTimeRobot/logTypes.d.mts +0 -9
  977. package/dist/upTimeRobot/logTypes.mjs +0 -9
  978. package/dist/upTimeRobot/monitorStatuses.d.mts +0 -10
  979. package/dist/upTimeRobot/monitorStatuses.mjs +0 -10
  980. package/dist/upTimeRobot/monitorSubTypes.d.mts +0 -12
  981. package/dist/upTimeRobot/monitorSubTypes.mjs +0 -12
  982. package/dist/upTimeRobot/monitorTypes.d.mts +0 -10
  983. package/dist/upTimeRobot/monitorTypes.mjs +0 -10
  984. package/dist/upTimeRobot/requestStatuses.d.mts +0 -7
  985. package/dist/upTimeRobot/requestStatuses.mjs +0 -7
  986. package/dist/url/buildParameters.d.mts +0 -13
  987. package/dist/url/buildParameters.mjs +0 -17
  988. package/dist/url/buildRelative.d.mts +0 -13
  989. package/dist/url/buildRelative.mjs +0 -13
  990. package/dist/url/buildUrl.d.mts +0 -16
  991. package/dist/url/buildUrl.mjs +0 -18
  992. package/dist/url/isAbsolute.d.mts +0 -11
  993. package/dist/url/isAbsolute.mjs +0 -14
  994. package/dist/url/isRelative.d.mts +0 -11
  995. package/dist/url/isRelative.mjs +0 -7
  996. package/dist/url/url.d.mts +0 -9
  997. package/dist/url/url.mjs +0 -1
  998. package/dist/url/writeUrlContents.d.mts +0 -16
  999. package/dist/url/writeUrlContents.mjs +0 -30
  1000. package/dist/util/defaultTo.d.mts +0 -12
  1001. package/dist/util/defaultTo.mjs +0 -20
  1002. package/dist/util/getBrotliCompressed.d.mts +0 -14
  1003. package/dist/util/getBrotliCompressed.mjs +0 -15
  1004. package/dist/util/getBrotliDecompressed.d.mts +0 -14
  1005. package/dist/util/getBrotliDecompressed.mjs +0 -17
  1006. package/dist/util/getClean.d.mts +0 -18
  1007. package/dist/util/getClean.mjs +0 -15
  1008. package/dist/util/getGzipCompressed.d.mts +0 -14
  1009. package/dist/util/getGzipCompressed.mjs +0 -15
  1010. package/dist/util/getGzipDecompressed.d.mts +0 -14
  1011. package/dist/util/getGzipDecompressed.mjs +0 -17
  1012. package/dist/util/getWithoutHash.d.mts +0 -12
  1013. package/dist/util/getWithoutHash.mjs +0 -14
  1014. package/dist/util/getWithoutParameter.d.mts +0 -12
  1015. package/dist/util/getWithoutParameter.mjs +0 -14
  1016. package/dist/util/isUndefined.d.mts +0 -14
  1017. package/dist/util/isUndefined.mjs +0 -15
  1018. package/dist/util/promiseChunks.d.mts +0 -12
  1019. package/dist/util/promiseChunks.mjs +0 -19
  1020. package/dist/util/sleep.d.mts +0 -7
  1021. package/dist/util/sleep.mjs +0 -6
  1022. package/dist/webWorker/index.d.mts +0 -8
  1023. package/dist/webWorker/index.mjs +0 -9
  1024. package/dist/xml/getXml.d.mts +0 -7
  1025. package/dist/xml/getXml.mjs +0 -14
  1026. /package/{dist/atInternet/request.mjs → aws/sqs/isEventSqs.d.ts} +0 -0
  1027. /package/{dist/aws/s3cache/index.mjs → upTimeRobot/getMonitors.d.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Take two values, ensure they are numbers and return the sorting value.
5
+ */
6
+ const byNumberAscending = ({ valueA, valueB }) => {
7
+ let valueAClean = Number(valueA);
8
+ let valueBClean = Number(valueB);
9
+ if (valueAClean > valueBClean) {
10
+ return 1;
11
+ }
12
+ if (valueBClean > valueAClean) {
13
+ return -1;
14
+ }
15
+ return 0;
16
+ };
17
+ exports.default = byNumberAscending;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Take two values, ensure they are numbers and return the sorting value.
3
+ */
4
+ declare const byNumberDescending: ({ valueA, valueB }: {
5
+ valueA: any;
6
+ valueB: any;
7
+ }) => number;
8
+ export default byNumberDescending;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Take two values, ensure they are numbers and return the sorting value.
5
+ */
6
+ const byNumberDescending = ({ valueA, valueB }) => {
7
+ let valueAClean = Number(valueA);
8
+ let valueBClean = Number(valueB);
9
+ if (valueAClean > valueBClean) {
10
+ return -1;
11
+ }
12
+ if (valueBClean > valueAClean) {
13
+ return 1;
14
+ }
15
+ return 0;
16
+ };
17
+ exports.default = byNumberDescending;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Take two values, clean the strings and return the sorting value.
3
+ */
4
+ declare const byStringAscending: ({ valueA, valueB }: {
5
+ valueA: any;
6
+ valueB: any;
7
+ }) => number;
8
+ export default byStringAscending;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Take two values, clean the strings and return the sorting value.
5
+ */
6
+ const byStringAscending = ({ valueA, valueB }) => {
7
+ let valueAClean = valueA
8
+ .trim()
9
+ .toLowerCase();
10
+ let valueBClean = valueB
11
+ .trim()
12
+ .toLowerCase();
13
+ if (valueAClean > valueBClean) {
14
+ return 1;
15
+ }
16
+ if (valueBClean > valueAClean) {
17
+ return -1;
18
+ }
19
+ return 0;
20
+ };
21
+ exports.default = byStringAscending;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Take two values, clean the strings and return the sorting value.
3
+ */
4
+ declare const byStringDescending: ({ valueA, valueB }: {
5
+ valueA: any;
6
+ valueB: any;
7
+ }) => number;
8
+ export default byStringDescending;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Take two values, clean the strings and return the sorting value.
5
+ */
6
+ const byStringDescending = ({ valueA, valueB }) => {
7
+ let valueAClean = valueA
8
+ .trim()
9
+ .toLowerCase();
10
+ let valueBClean = valueB
11
+ .trim()
12
+ .toLowerCase();
13
+ if (valueAClean > valueBClean) {
14
+ return -1;
15
+ }
16
+ if (valueBClean > valueAClean) {
17
+ return 1;
18
+ }
19
+ return 0;
20
+ };
21
+ exports.default = byStringDescending;
@@ -0,0 +1,13 @@
1
+ declare const Transform: any;
2
+ /**
3
+ * Batch sort stream without overloading the memory limit.
4
+ * https://www.npmjs.com/package/fast-stream-sort
5
+ */
6
+ declare class SortStreamer extends Transform {
7
+ constructor(options: any, comp: any);
8
+ _transform(data: any, _: any, callback: any): void;
9
+ _flush(): void;
10
+ fullflush(): void;
11
+ }
12
+ declare const sort: (comp: any, options: any) => SortStreamer;
13
+ export default sort;
package/stream/sort.js ADDED
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Transform = require('stream').Transform;
4
+ const batch = 15000;
5
+ /**
6
+ * Batch sort stream without overloading the memory limit.
7
+ * https://www.npmjs.com/package/fast-stream-sort
8
+ */
9
+ class SortStreamer extends Transform {
10
+ constructor(options, comp) {
11
+ super(options);
12
+ this.a = new Array(batch);
13
+ this.i = 0;
14
+ this.k = 0;
15
+ this.currentSize = batch;
16
+ this.isDone = false;
17
+ this.sortedArray = undefined;
18
+ this.comp = comp;
19
+ }
20
+ _transform(data, _, callback) {
21
+ if (data) {
22
+ this.a[this.i++] = data;
23
+ if (this.i == this.currentSize) {
24
+ this.currentSize = this.currentSize * 2;
25
+ var tmp = new Array(this.currentSize);
26
+ for (var j = 0; j < this.i; j++) {
27
+ tmp[j] = this.a[j];
28
+ }
29
+ this.a = tmp;
30
+ }
31
+ }
32
+ callback();
33
+ }
34
+ _flush() {
35
+ this.sortedArray = this.a.slice(0, this.i)
36
+ .sort(this.comp);
37
+ this.fullflush();
38
+ }
39
+ fullflush() {
40
+ while (this.k < this.i) {
41
+ this.push(this.sortedArray[this.k++]);
42
+ }
43
+ this.push(null);
44
+ }
45
+ }
46
+ const sort = (comp, options) => {
47
+ options = options || { objectMode: true };
48
+ return new SortStreamer(options, comp);
49
+ };
50
+ exports.default = sort;
@@ -0,0 +1,10 @@
1
+ type GetCapitalised = {
2
+ input: string;
3
+ split?: string;
4
+ };
5
+ /**
6
+ * Convert a string into Capitalised Text.
7
+ * https://stackoverflow.com/a/196991/2664955
8
+ */
9
+ declare const getCapitalised: ({ input, split }: GetCapitalised) => string;
10
+ export default getCapitalised;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Convert a string into Capitalised Text.
5
+ * https://stackoverflow.com/a/196991/2664955
6
+ */
7
+ const getCapitalised = ({ input, split }) => {
8
+ const regex = new RegExp(split || '_', 'g');
9
+ return input
10
+ .replace(regex, ' ')
11
+ .replace(/\w\S*/g, function (txt) {
12
+ return txt.charAt(0)
13
+ .toUpperCase() + txt.substr(1)
14
+ .toLowerCase();
15
+ });
16
+ };
17
+ exports.default = getCapitalised;
@@ -0,0 +1,18 @@
1
+ type GetClean = {
2
+ accents?: boolean;
3
+ decoded?: boolean;
4
+ htmlTags?: boolean;
5
+ input: any;
6
+ lowercase?: boolean;
7
+ propercase?: boolean;
8
+ punctuation?: boolean;
9
+ trim?: boolean;
10
+ underscores?: boolean;
11
+ uppercase?: boolean;
12
+ whitespace?: boolean;
13
+ };
14
+ /**
15
+ * Shorthand function to get a clean version of a string.
16
+ */
17
+ declare const getClean: ({ accents, decoded, htmlTags, input, lowercase, propercase, punctuation, trim, underscores, uppercase, whitespace }: GetClean) => string;
18
+ export default getClean;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ const getWithoutHtmlTags_1 = __importDefault(require("./getWithoutHtmlTags"));
8
+ const getWithoutAccents_1 = __importDefault(require("./getWithoutAccents"));
9
+ const getProperCase_1 = __importDefault(require("./getProperCase"));
10
+ const getWithoutWhitespaces_1 = __importDefault(require("./getWithoutWhitespaces"));
11
+ const getWithoutPunctuation_1 = __importDefault(require("./getWithoutPunctuation"));
12
+ const getWithoutUnderscores_1 = __importDefault(require("./getWithoutUnderscores"));
13
+ const getDecoded_1 = __importDefault(require("./getDecoded"));
14
+ /**
15
+ * Shorthand function to get a clean version of a string.
16
+ */
17
+ const getClean = ({ accents, decoded, htmlTags, input, lowercase, propercase, punctuation, trim, underscores, uppercase, whitespace }) => {
18
+ let response = (0, getString_1.default)({ input });
19
+ if (decoded) {
20
+ response = (0, getDecoded_1.default)({
21
+ input: response,
22
+ });
23
+ }
24
+ if (accents) {
25
+ response = (0, getWithoutAccents_1.default)({
26
+ input: response
27
+ });
28
+ }
29
+ if (htmlTags) {
30
+ response = (0, getWithoutHtmlTags_1.default)({
31
+ input: response
32
+ });
33
+ }
34
+ if (underscores) {
35
+ response = (0, getWithoutUnderscores_1.default)({
36
+ input: response,
37
+ });
38
+ }
39
+ if (punctuation) {
40
+ response = (0, getWithoutPunctuation_1.default)({
41
+ input: response
42
+ });
43
+ }
44
+ if (whitespace) {
45
+ response = (0, getWithoutWhitespaces_1.default)({
46
+ input: response
47
+ });
48
+ }
49
+ if (lowercase) {
50
+ response = response.toLowerCase();
51
+ }
52
+ if (propercase) {
53
+ response = (0, getProperCase_1.default)({
54
+ input: response
55
+ });
56
+ }
57
+ if (uppercase) {
58
+ response = response.toUpperCase();
59
+ }
60
+ if (trim) {
61
+ response = response.trim();
62
+ }
63
+ return response;
64
+ };
65
+ exports.default = getClean;
@@ -0,0 +1,10 @@
1
+ type GetDecoded = {
2
+ input: any;
3
+ };
4
+ /**
5
+ * Convert escaped copy into unescaped.
6
+ * E.g. there&#39;s => there's
7
+ * https://stackoverflow.com/a/42182294/2664955
8
+ */
9
+ declare const getDecoded: ({ input }: GetDecoded) => string;
10
+ export default getDecoded;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ const unescape_1 = __importDefault(require("lodash/unescape"));
8
+ /**
9
+ * Convert escaped copy into unescaped.
10
+ * E.g. there&#39;s => there's
11
+ * https://stackoverflow.com/a/42182294/2664955
12
+ */
13
+ const getDecoded = ({ input }) => {
14
+ let response = (0, getString_1.default)({ input });
15
+ // Only works if DOM exists
16
+ if ('undefined' !== typeof document) {
17
+ let el = document.createElement("textarea");
18
+ el.innerHTML = response;
19
+ response = el.value;
20
+ }
21
+ else {
22
+ response = (0, unescape_1.default)(response);
23
+ }
24
+ return response;
25
+ };
26
+ exports.default = getDecoded;
@@ -0,0 +1,8 @@
1
+ type GetFolder = {
2
+ input: string;
3
+ };
4
+ /**
5
+ * Take an input that may have a / before or after the input and return just the folder.
6
+ */
7
+ declare const getFolder: ({ input }: GetFolder) => string;
8
+ export default getFolder;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const trim_1 = __importDefault(require("lodash/trim"));
7
+ /**
8
+ * Take an input that may have a / before or after the input and return just the folder.
9
+ */
10
+ const getFolder = ({ input }) => {
11
+ return (0, trim_1.default)(input, '/')
12
+ .trim();
13
+ };
14
+ exports.default = getFolder;
@@ -0,0 +1,11 @@
1
+ type GetProperCase = {
2
+ input: any;
3
+ hyphen?: boolean;
4
+ pipe?: boolean;
5
+ underscore?: boolean;
6
+ };
7
+ /**
8
+ * Return a string "With Proper Casing".
9
+ */
10
+ declare const getProperCase: (props: GetProperCase) => string;
11
+ export default getProperCase;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ /**
8
+ * Return a string "With Proper Casing".
9
+ */
10
+ const getProperCase = (props) => {
11
+ let string = (0, getString_1.default)({
12
+ input: props.input,
13
+ });
14
+ if (props?.hyphen) {
15
+ string = string.split(/-/g).join(' ');
16
+ }
17
+ if (props?.pipe) {
18
+ string = string.split(/\|/g).join(' ');
19
+ }
20
+ if (props?.underscore) {
21
+ string = string.split(/_/g).join(' ');
22
+ }
23
+ return string.replace(/\w\S*/g, word => word.charAt(0)
24
+ .toUpperCase() + word.substr(1)
25
+ .toLowerCase());
26
+ };
27
+ exports.default = getProperCase;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Convert into string.
3
+ */
4
+ declare const getString: ({ input }: {
5
+ input: any;
6
+ }) => string;
7
+ export default getString;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const isArray_1 = __importDefault(require("lodash/isArray"));
7
+ const isDate_1 = __importDefault(require("lodash/isDate"));
8
+ const isObject_1 = __importDefault(require("lodash/isObject"));
9
+ const getNumber_1 = __importDefault(require("../date/getNumber"));
10
+ /**
11
+ * Convert into string.
12
+ */
13
+ const getString = ({ input }) => {
14
+ let string = '';
15
+ // Already a string
16
+ if ('string' === typeof input) {
17
+ string = input;
18
+ }
19
+ // Convert a number into a date
20
+ else if ('number' === typeof input) {
21
+ string = input.toString();
22
+ }
23
+ // Object or array to JSON
24
+ else if ((0, isObject_1.default)(input) || (0, isArray_1.default)(input)) {
25
+ string = JSON.stringify(input);
26
+ }
27
+ // Date
28
+ else if ((0, isDate_1.default)(input)) {
29
+ string = (0, getNumber_1.default)({ input })
30
+ .toString();
31
+ }
32
+ return string;
33
+ };
34
+ exports.default = getString;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Converts a stream into a string.
3
+ * https://stackoverflow.com/a/49428486
4
+ */
5
+ declare const getStringFromStream: ({ stream }: {
6
+ stream: any;
7
+ }) => Promise<string>;
8
+ export default getStringFromStream;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Converts a stream into a string.
5
+ * https://stackoverflow.com/a/49428486
6
+ */
7
+ const getStringFromStream = ({ stream }) => {
8
+ const chunks = [];
9
+ return new Promise((resolve, reject) => {
10
+ stream.on('data', (chunk) => chunks.push(Buffer.from(chunk)));
11
+ stream.on('error', (err) => reject(err));
12
+ stream.on('end', () => resolve(Buffer.concat(chunks)
13
+ .toString('utf8')));
14
+ });
15
+ };
16
+ exports.default = getStringFromStream;
@@ -0,0 +1,9 @@
1
+ type GetWithoutAccents = {
2
+ input: string;
3
+ };
4
+ /**
5
+ * Remove the accents from a string.
6
+ * https://stackoverflow.com/a/37511463
7
+ */
8
+ declare const getWithoutAccents: ({ input }: GetWithoutAccents) => string;
9
+ export default getWithoutAccents;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ /**
8
+ * Remove the accents from a string.
9
+ * https://stackoverflow.com/a/37511463
10
+ */
11
+ const getWithoutAccents = ({ input }) => {
12
+ return (0, getString_1.default)({ input })
13
+ .normalize("NFD")
14
+ .replace(/[\u0300-\u036f]/g, "");
15
+ };
16
+ exports.default = getWithoutAccents;
@@ -0,0 +1,9 @@
1
+ type GetWithoutHtmlTags = {
2
+ input: any;
3
+ };
4
+ /**
5
+ * Removes all HTML tags from an input.
6
+ * https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/
7
+ */
8
+ declare const getWithoutHtmlTags: ({ input }: GetWithoutHtmlTags) => string;
9
+ export default getWithoutHtmlTags;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ /**
8
+ * Removes all HTML tags from an input.
9
+ * https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/
10
+ */
11
+ const getWithoutHtmlTags = ({ input }) => {
12
+ return (0, getString_1.default)({ input })
13
+ .replace(/(<([^>]+)>)/gi, '');
14
+ };
15
+ exports.default = getWithoutHtmlTags;
@@ -0,0 +1,9 @@
1
+ type GetWithoutPunctuation = {
2
+ input: string;
3
+ };
4
+ /**
5
+ * Remove all punctuation from a string and replace with a space.
6
+ * https://stackoverflow.com/a/25575009
7
+ */
8
+ declare const getWithoutPunctuation: ({ input }: GetWithoutPunctuation) => string;
9
+ export default getWithoutPunctuation;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ /**
8
+ * Remove all punctuation from a string and replace with a space.
9
+ * https://stackoverflow.com/a/25575009
10
+ */
11
+ const getWithoutPunctuation = ({ input }) => {
12
+ return (0, getString_1.default)({ input })
13
+ .replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]/g, '')
14
+ .replace(/\s+/g, ' ');
15
+ };
16
+ exports.default = getWithoutPunctuation;
@@ -0,0 +1,8 @@
1
+ type GetWithoutUnderscores = {
2
+ input: string;
3
+ };
4
+ /**
5
+ * Replace all underscores with a space.
6
+ */
7
+ declare const getWithoutUnderscores: ({ input }: GetWithoutUnderscores) => string;
8
+ export default getWithoutUnderscores;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ /**
8
+ * Replace all underscores with a space.
9
+ */
10
+ const getWithoutUnderscores = ({ input }) => {
11
+ return (0, getString_1.default)({ input })
12
+ .replace('_', ' ');
13
+ };
14
+ exports.default = getWithoutUnderscores;
@@ -0,0 +1,9 @@
1
+ type GetWithoutWhitespaces = {
2
+ input: string;
3
+ };
4
+ /**
5
+ * Remove all new lines, tabs multiple spaces, with a single space.
6
+ * https://stackoverflow.com/a/45029224
7
+ */
8
+ declare const getWithoutWhitespaces: ({ input }: GetWithoutWhitespaces) => string;
9
+ export default getWithoutWhitespaces;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const getString_1 = __importDefault(require("./getString"));
7
+ /**
8
+ * Remove all new lines, tabs multiple spaces, with a single space.
9
+ * https://stackoverflow.com/a/45029224
10
+ */
11
+ const getWithoutWhitespaces = ({ input }) => {
12
+ return (0, getString_1.default)({ input })
13
+ .replace(/\s+/g, ' ')
14
+ .trim();
15
+ };
16
+ exports.default = getWithoutWhitespaces;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Are all SWRs data ready.
3
+ */
4
+ declare const isAllData: ({ swrs }: {
5
+ swrs: any;
6
+ }) => boolean;
7
+ export default isAllData;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const isData_1 = __importDefault(require("./isData"));
7
+ /**
8
+ * Are all SWRs data ready.
9
+ */
10
+ const isAllData = ({ swrs }) => {
11
+ let fetcherWithData = 0;
12
+ for (const swr in swrs) {
13
+ if ((0, isData_1.default)({ swr: swrs[swr] })) {
14
+ fetcherWithData++;
15
+ }
16
+ }
17
+ return fetcherWithData === Object.keys(swrs).length;
18
+ };
19
+ exports.default = isAllData;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Are any of the SWRs marked as an error.
3
+ */
4
+ declare const isAnyError: ({ swrs }: {
5
+ swrs: any;
6
+ }) => boolean;
7
+ export default isAnyError;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const isError_1 = __importDefault(require("./isError"));
7
+ /**
8
+ * Are any of the SWRs marked as an error.
9
+ */
10
+ const isAnyError = ({ swrs }) => {
11
+ let fetcherError = 0;
12
+ for (const swr in swrs) {
13
+ if ((0, isError_1.default)({ swr: swrs[swr] })) {
14
+ fetcherError++;
15
+ }
16
+ }
17
+ return fetcherError > 0;
18
+ };
19
+ exports.default = isAnyError;