standard-log 7.0.2 → 8.0.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 (833) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +14 -1
  3. package/{lib → cjs}/LogEntry.d.ts +0 -0
  4. package/cjs/LogEntry.d.ts.map +1 -0
  5. package/{lib → cjs}/LogEntry.js +0 -0
  6. package/cjs/LogEntry.js.map +1 -0
  7. package/cjs/captureLogs.d.ts +4 -0
  8. package/cjs/captureLogs.d.ts.map +1 -0
  9. package/cjs/captureLogs.js +33 -0
  10. package/cjs/captureLogs.js.map +1 -0
  11. package/cjs/captureLogs.spec.d.ts +2 -0
  12. package/cjs/captureLogs.spec.d.ts.map +1 -0
  13. package/cjs/captureLogs.spec.js +117 -0
  14. package/cjs/captureLogs.spec.js.map +1 -0
  15. package/cjs/config.d.ts +12 -0
  16. package/cjs/config.d.ts.map +1 -0
  17. package/cjs/config.js +59 -0
  18. package/cjs/config.js.map +1 -0
  19. package/cjs/config.spec.d.ts +2 -0
  20. package/cjs/config.spec.d.ts.map +1 -0
  21. package/cjs/config.spec.js +66 -0
  22. package/cjs/config.spec.js.map +1 -0
  23. package/cjs/configForTest.d.ts +5 -0
  24. package/cjs/configForTest.d.ts.map +1 -0
  25. package/cjs/configForTest.js +18 -0
  26. package/cjs/configForTest.js.map +1 -0
  27. package/cjs/configForTest.spec.d.ts +2 -0
  28. package/cjs/configForTest.spec.d.ts.map +1 -0
  29. package/cjs/configForTest.spec.js +17 -0
  30. package/cjs/configForTest.spec.js.map +1 -0
  31. package/cjs/console/createConsoleLogReporter.d.ts +9 -0
  32. package/cjs/console/createConsoleLogReporter.d.ts.map +1 -0
  33. package/cjs/console/createConsoleLogReporter.js +42 -0
  34. package/cjs/console/createConsoleLogReporter.js.map +1 -0
  35. package/cjs/console/createConsoleLogReporter.spec.d.ts +2 -0
  36. package/cjs/console/createConsoleLogReporter.spec.d.ts.map +1 -0
  37. package/cjs/console/createConsoleLogReporter.spec.js +182 -0
  38. package/cjs/console/createConsoleLogReporter.spec.js.map +1 -0
  39. package/cjs/console/index.d.ts +4 -0
  40. package/cjs/console/index.d.ts.map +1 -0
  41. package/cjs/console/index.js +20 -0
  42. package/cjs/console/index.js.map +1 -0
  43. package/{lib → cjs}/console/isConsoleDebugAvailable.d.ts +0 -0
  44. package/cjs/console/isConsoleDebugAvailable.d.ts.map +1 -0
  45. package/cjs/console/isConsoleDebugAvailable.js +20 -0
  46. package/cjs/console/isConsoleDebugAvailable.js.map +1 -0
  47. package/{lib → cjs}/console/polyfilledConsole.d.ts +0 -0
  48. package/cjs/console/polyfilledConsole.d.ts.map +1 -0
  49. package/cjs/console/polyfilledConsole.js +41 -0
  50. package/cjs/console/polyfilledConsole.js.map +1 -0
  51. package/{lib → cjs}/console/semverGt.d.ts +0 -0
  52. package/cjs/console/semverGt.d.ts.map +1 -0
  53. package/{lib → cjs}/console/semverGt.js +0 -0
  54. package/cjs/console/semverGt.js.map +1 -0
  55. package/cjs/console/semverGt.spec.d.ts +2 -0
  56. package/cjs/console/semverGt.spec.d.ts.map +1 -0
  57. package/cjs/console/semverGt.spec.js +22 -0
  58. package/cjs/console/semverGt.spec.js.map +1 -0
  59. package/{lib → cjs}/console/toConsoleMethod.d.ts +0 -0
  60. package/cjs/console/toConsoleMethod.d.ts.map +1 -0
  61. package/cjs/console/toConsoleMethod.js +22 -0
  62. package/cjs/console/toConsoleMethod.js.map +1 -0
  63. package/cjs/console/types.d.ts +3 -0
  64. package/cjs/console/types.d.ts.map +1 -0
  65. package/{lib → cjs}/console/types.js +0 -0
  66. package/cjs/console/types.js.map +1 -0
  67. package/cjs/customLogLevel.d.ts +11 -0
  68. package/cjs/customLogLevel.d.ts.map +1 -0
  69. package/cjs/customLogLevel.js +38 -0
  70. package/cjs/customLogLevel.js.map +1 -0
  71. package/cjs/customLogLevel.spec.d.ts +2 -0
  72. package/cjs/customLogLevel.spec.d.ts.map +1 -0
  73. package/cjs/customLogLevel.spec.js +37 -0
  74. package/cjs/customLogLevel.spec.js.map +1 -0
  75. package/{lib → cjs}/errors.d.ts +0 -0
  76. package/cjs/errors.d.ts.map +1 -0
  77. package/cjs/errors.js +85 -0
  78. package/cjs/errors.js.map +1 -0
  79. package/{lib → cjs}/formatter/createTimestampFormatter.d.ts +0 -0
  80. package/cjs/formatter/createTimestampFormatter.d.ts.map +1 -0
  81. package/cjs/formatter/createTimestampFormatter.js +26 -0
  82. package/cjs/formatter/createTimestampFormatter.js.map +1 -0
  83. package/cjs/formatter/createTimestampFormatter.spec.d.ts +2 -0
  84. package/cjs/formatter/createTimestampFormatter.spec.d.ts.map +1 -0
  85. package/cjs/formatter/createTimestampFormatter.spec.js +23 -0
  86. package/cjs/formatter/createTimestampFormatter.spec.js.map +1 -0
  87. package/{lib → cjs}/formatter/formatLogLevel.d.ts +0 -0
  88. package/cjs/formatter/formatLogLevel.d.ts.map +1 -0
  89. package/cjs/formatter/formatLogLevel.js +10 -0
  90. package/cjs/formatter/formatLogLevel.js.map +1 -0
  91. package/cjs/formatter/index.d.ts +4 -0
  92. package/cjs/formatter/index.d.ts.map +1 -0
  93. package/cjs/formatter/index.js +20 -0
  94. package/cjs/formatter/index.js.map +1 -0
  95. package/cjs/formatter/plainLogFormatter.d.ts +3 -0
  96. package/cjs/formatter/plainLogFormatter.d.ts.map +1 -0
  97. package/cjs/formatter/plainLogFormatter.js +19 -0
  98. package/cjs/formatter/plainLogFormatter.js.map +1 -0
  99. package/cjs/formatter/plainLogFormatter.spec.d.ts +2 -0
  100. package/cjs/formatter/plainLogFormatter.spec.d.ts.map +1 -0
  101. package/cjs/formatter/plainLogFormatter.spec.js +9 -0
  102. package/cjs/formatter/plainLogFormatter.spec.js.map +1 -0
  103. package/{lib → cjs}/getDefaultReporter.browser.d.ts +0 -0
  104. package/cjs/getDefaultReporter.browser.d.ts.map +1 -0
  105. package/cjs/getDefaultReporter.browser.js +15 -0
  106. package/cjs/getDefaultReporter.browser.js.map +1 -0
  107. package/{lib → cjs}/getDefaultReporter.d.ts +0 -0
  108. package/cjs/getDefaultReporter.d.ts.map +1 -0
  109. package/cjs/getDefaultReporter.js +19 -0
  110. package/cjs/getDefaultReporter.js.map +1 -0
  111. package/cjs/getLogModeFromEnvironment.browser.d.ts +3 -0
  112. package/cjs/getLogModeFromEnvironment.browser.d.ts.map +1 -0
  113. package/{lib → cjs}/getLogModeFromEnvironment.browser.js +0 -0
  114. package/cjs/getLogModeFromEnvironment.browser.js.map +1 -0
  115. package/cjs/getLogModeFromEnvironment.d.ts +3 -0
  116. package/cjs/getLogModeFromEnvironment.d.ts.map +1 -0
  117. package/cjs/getLogModeFromEnvironment.js +17 -0
  118. package/cjs/getLogModeFromEnvironment.js.map +1 -0
  119. package/cjs/getLogModeFromEnvironment.spec.d.ts +2 -0
  120. package/cjs/getLogModeFromEnvironment.spec.d.ts.map +1 -0
  121. package/cjs/getLogModeFromEnvironment.spec.js +19 -0
  122. package/cjs/getLogModeFromEnvironment.spec.js.map +1 -0
  123. package/cjs/getLogger.d.ts +9 -0
  124. package/cjs/getLogger.d.ts.map +1 -0
  125. package/cjs/getLogger.js +103 -0
  126. package/cjs/getLogger.js.map +1 -0
  127. package/cjs/getLogger.spec.d.ts +2 -0
  128. package/cjs/getLogger.spec.d.ts.map +1 -0
  129. package/cjs/getLogger.spec.js +481 -0
  130. package/cjs/getLogger.spec.js.map +1 -0
  131. package/cjs/getLoggers.d.ts +7 -0
  132. package/cjs/getLoggers.d.ts.map +1 -0
  133. package/cjs/getLoggers.js +15 -0
  134. package/cjs/getLoggers.js.map +1 -0
  135. package/cjs/index.d.ts +17 -0
  136. package/cjs/index.d.ts.map +1 -0
  137. package/cjs/index.js +33 -0
  138. package/cjs/index.js.map +1 -0
  139. package/{lib → cjs}/logLevel.d.ts +0 -0
  140. package/cjs/logLevel.d.ts.map +1 -0
  141. package/{lib → cjs}/logLevel.js +0 -0
  142. package/cjs/logLevel.js.map +1 -0
  143. package/cjs/logLevel.spec.d.ts +2 -0
  144. package/cjs/logLevel.spec.d.ts.map +1 -0
  145. package/cjs/logLevel.spec.js +195 -0
  146. package/cjs/logLevel.spec.js.map +1 -0
  147. package/cjs/logLevelFn.d.ts +20 -0
  148. package/cjs/logLevelFn.d.ts.map +1 -0
  149. package/cjs/logLevelFn.js +76 -0
  150. package/cjs/logLevelFn.js.map +1 -0
  151. package/cjs/logReporter.d.ts +7 -0
  152. package/cjs/logReporter.d.ts.map +1 -0
  153. package/cjs/logReporter.js +29 -0
  154. package/cjs/logReporter.js.map +1 -0
  155. package/cjs/logReporter.spec.d.ts +2 -0
  156. package/cjs/logReporter.spec.d.ts.map +1 -0
  157. package/cjs/logReporter.spec.js +86 -0
  158. package/cjs/logReporter.spec.js.map +1 -0
  159. package/cjs/logReporterInternal.d.ts +3 -0
  160. package/cjs/logReporterInternal.d.ts.map +1 -0
  161. package/cjs/logReporterInternal.js +23 -0
  162. package/cjs/logReporterInternal.js.map +1 -0
  163. package/cjs/memory/MemoryLogReporter.d.ts +14 -0
  164. package/cjs/memory/MemoryLogReporter.d.ts.map +1 -0
  165. package/cjs/memory/MemoryLogReporter.js +56 -0
  166. package/cjs/memory/MemoryLogReporter.js.map +1 -0
  167. package/cjs/memory/MemoryLogReporter.spec.d.ts +2 -0
  168. package/cjs/memory/MemoryLogReporter.spec.d.ts.map +1 -0
  169. package/cjs/memory/MemoryLogReporter.spec.js +111 -0
  170. package/cjs/memory/MemoryLogReporter.spec.js.map +1 -0
  171. package/cjs/memory/index.d.ts +3 -0
  172. package/cjs/memory/index.d.ts.map +1 -0
  173. package/cjs/memory/index.js +19 -0
  174. package/cjs/memory/index.js.map +1 -0
  175. package/cjs/memory/logEntriesToString.d.ts +3 -0
  176. package/cjs/memory/logEntriesToString.d.ts.map +1 -0
  177. package/cjs/memory/logEntriesToString.js +10 -0
  178. package/cjs/memory/logEntriesToString.js.map +1 -0
  179. package/cjs/memory/logEntriesToString.spec.d.ts +2 -0
  180. package/cjs/memory/logEntriesToString.spec.d.ts.map +1 -0
  181. package/cjs/memory/logEntriesToString.spec.js +36 -0
  182. package/cjs/memory/logEntriesToString.spec.js.map +1 -0
  183. package/cjs/memory/toInspectStringForObject.d.ts +3 -0
  184. package/cjs/memory/toInspectStringForObject.d.ts.map +1 -0
  185. package/cjs/memory/toInspectStringForObject.js +17 -0
  186. package/cjs/memory/toInspectStringForObject.js.map +1 -0
  187. package/cjs/package.json +3 -0
  188. package/cjs/shouldLog.d.ts +8 -0
  189. package/cjs/shouldLog.d.ts.map +1 -0
  190. package/cjs/shouldLog.js +14 -0
  191. package/cjs/shouldLog.js.map +1 -0
  192. package/cjs/store.d.ts +3 -0
  193. package/cjs/store.d.ts.map +1 -0
  194. package/cjs/store.js +27 -0
  195. package/cjs/store.js.map +1 -0
  196. package/cjs/suppressLogs.d.ts +6 -0
  197. package/cjs/suppressLogs.d.ts.map +1 -0
  198. package/cjs/suppressLogs.js +17 -0
  199. package/cjs/suppressLogs.js.map +1 -0
  200. package/cjs/suppressLogs.spec.d.ts +2 -0
  201. package/cjs/suppressLogs.spec.d.ts.map +1 -0
  202. package/cjs/suppressLogs.spec.js +31 -0
  203. package/cjs/suppressLogs.spec.js.map +1 -0
  204. package/cjs/testUtil.d.ts +7 -0
  205. package/cjs/testUtil.d.ts.map +1 -0
  206. package/cjs/testUtil.js +25 -0
  207. package/cjs/testUtil.js.map +1 -0
  208. package/{lib → cjs}/types.d.ts +0 -0
  209. package/cjs/types.d.ts.map +1 -0
  210. package/{lib → cjs}/types.js +0 -0
  211. package/cjs/types.js.map +1 -0
  212. package/cjs/types.spec.d.ts +2 -0
  213. package/cjs/types.spec.d.ts.map +1 -0
  214. package/cjs/types.spec.js +7 -0
  215. package/cjs/types.spec.js.map +1 -0
  216. package/cjs/typesInternal.d.ts +20 -0
  217. package/cjs/typesInternal.d.ts.map +1 -0
  218. package/{lib → cjs}/typesInternal.js +0 -0
  219. package/cjs/typesInternal.js.map +1 -0
  220. package/{lib → cjs}/utils.d.ts +0 -0
  221. package/cjs/utils.d.ts.map +1 -0
  222. package/cjs/utils.js +14 -0
  223. package/cjs/utils.js.map +1 -0
  224. package/cjs/writeToReporters.d.ts +6 -0
  225. package/cjs/writeToReporters.d.ts.map +1 -0
  226. package/cjs/writeToReporters.js +22 -0
  227. package/cjs/writeToReporters.js.map +1 -0
  228. package/cjs/writeToReporters.spec.d.ts +2 -0
  229. package/cjs/writeToReporters.spec.d.ts.map +1 -0
  230. package/cjs/writeToReporters.spec.js +59 -0
  231. package/cjs/writeToReporters.spec.js.map +1 -0
  232. package/dist/standard-log.es5.js +2724 -0
  233. package/dist/standard-log.es5.js.gz +0 -0
  234. package/dist/standard-log.es5.js.map +1 -0
  235. package/dist/standard-log.es5.js.map.gz +0 -0
  236. package/dist/standard-log.esm.js +2724 -0
  237. package/dist/standard-log.esm.js.gz +0 -0
  238. package/dist/standard-log.esm.js.map +1 -0
  239. package/dist/standard-log.esm.js.map.gz +0 -0
  240. package/{libm → esm}/LogEntry.d.ts +0 -0
  241. package/esm/LogEntry.d.ts.map +1 -0
  242. package/{libm → esm}/LogEntry.js +0 -0
  243. package/esm/LogEntry.js.map +1 -0
  244. package/esm/captureLogs.d.ts +4 -0
  245. package/esm/captureLogs.d.ts.map +1 -0
  246. package/esm/captureLogs.js +29 -0
  247. package/esm/captureLogs.js.map +1 -0
  248. package/esm/captureLogs.spec.d.ts +2 -0
  249. package/esm/captureLogs.spec.d.ts.map +1 -0
  250. package/esm/captureLogs.spec.js +45 -0
  251. package/esm/captureLogs.spec.js.map +1 -0
  252. package/esm/config.d.ts +12 -0
  253. package/esm/config.d.ts.map +1 -0
  254. package/esm/config.js +44 -0
  255. package/esm/config.js.map +1 -0
  256. package/esm/config.spec.d.ts +2 -0
  257. package/esm/config.spec.d.ts.map +1 -0
  258. package/esm/config.spec.js +61 -0
  259. package/esm/config.spec.js.map +1 -0
  260. package/esm/configForTest.d.ts +5 -0
  261. package/esm/configForTest.d.ts.map +1 -0
  262. package/esm/configForTest.js +14 -0
  263. package/esm/configForTest.js.map +1 -0
  264. package/esm/configForTest.spec.d.ts +2 -0
  265. package/esm/configForTest.spec.d.ts.map +1 -0
  266. package/esm/configForTest.spec.js +15 -0
  267. package/esm/configForTest.spec.js.map +1 -0
  268. package/esm/console/createConsoleLogReporter.d.ts +9 -0
  269. package/esm/console/createConsoleLogReporter.d.ts.map +1 -0
  270. package/esm/console/createConsoleLogReporter.js +37 -0
  271. package/esm/console/createConsoleLogReporter.js.map +1 -0
  272. package/esm/console/createConsoleLogReporter.spec.d.ts +2 -0
  273. package/esm/console/createConsoleLogReporter.spec.d.ts.map +1 -0
  274. package/esm/console/createConsoleLogReporter.spec.js +153 -0
  275. package/esm/console/createConsoleLogReporter.spec.js.map +1 -0
  276. package/esm/console/index.d.ts +4 -0
  277. package/esm/console/index.d.ts.map +1 -0
  278. package/esm/console/index.js +4 -0
  279. package/esm/console/index.js.map +1 -0
  280. package/{libm → esm}/console/isConsoleDebugAvailable.d.ts +0 -0
  281. package/esm/console/isConsoleDebugAvailable.d.ts.map +1 -0
  282. package/esm/console/isConsoleDebugAvailable.js +13 -0
  283. package/esm/console/isConsoleDebugAvailable.js.map +1 -0
  284. package/{libm → esm}/console/polyfilledConsole.d.ts +0 -0
  285. package/esm/console/polyfilledConsole.d.ts.map +1 -0
  286. package/esm/console/polyfilledConsole.js +32 -0
  287. package/esm/console/polyfilledConsole.js.map +1 -0
  288. package/{libm → esm}/console/semverGt.d.ts +0 -0
  289. package/esm/console/semverGt.d.ts.map +1 -0
  290. package/{libm → esm}/console/semverGt.js +0 -0
  291. package/esm/console/semverGt.js.map +1 -0
  292. package/esm/console/semverGt.spec.d.ts +2 -0
  293. package/esm/console/semverGt.spec.d.ts.map +1 -0
  294. package/esm/console/semverGt.spec.js +20 -0
  295. package/esm/console/semverGt.spec.js.map +1 -0
  296. package/{libm → esm}/console/toConsoleMethod.d.ts +0 -0
  297. package/esm/console/toConsoleMethod.d.ts.map +1 -0
  298. package/esm/console/toConsoleMethod.js +18 -0
  299. package/esm/console/toConsoleMethod.js.map +1 -0
  300. package/esm/console/types.d.ts +3 -0
  301. package/esm/console/types.d.ts.map +1 -0
  302. package/{libm → esm}/console/types.js +0 -0
  303. package/esm/console/types.js.map +1 -0
  304. package/esm/customLogLevel.d.ts +11 -0
  305. package/esm/customLogLevel.d.ts.map +1 -0
  306. package/esm/customLogLevel.js +30 -0
  307. package/esm/customLogLevel.js.map +1 -0
  308. package/esm/customLogLevel.spec.d.ts +2 -0
  309. package/esm/customLogLevel.spec.d.ts.map +1 -0
  310. package/esm/customLogLevel.spec.js +32 -0
  311. package/esm/customLogLevel.spec.js.map +1 -0
  312. package/{libm → esm}/errors.d.ts +0 -0
  313. package/esm/errors.d.ts.map +1 -0
  314. package/esm/errors.js +52 -0
  315. package/esm/errors.js.map +1 -0
  316. package/{libm → esm}/formatter/createTimestampFormatter.d.ts +0 -0
  317. package/esm/formatter/createTimestampFormatter.d.ts.map +1 -0
  318. package/{libm → esm}/formatter/createTimestampFormatter.js +0 -0
  319. package/esm/formatter/createTimestampFormatter.js.map +1 -0
  320. package/esm/formatter/createTimestampFormatter.spec.d.ts +2 -0
  321. package/esm/formatter/createTimestampFormatter.spec.d.ts.map +1 -0
  322. package/esm/formatter/createTimestampFormatter.spec.js +21 -0
  323. package/esm/formatter/createTimestampFormatter.spec.js.map +1 -0
  324. package/{libm → esm}/formatter/formatLogLevel.d.ts +0 -0
  325. package/esm/formatter/formatLogLevel.d.ts.map +1 -0
  326. package/esm/formatter/formatLogLevel.js +6 -0
  327. package/esm/formatter/formatLogLevel.js.map +1 -0
  328. package/esm/formatter/index.d.ts +4 -0
  329. package/esm/formatter/index.d.ts.map +1 -0
  330. package/esm/formatter/index.js +4 -0
  331. package/esm/formatter/index.js.map +1 -0
  332. package/esm/formatter/plainLogFormatter.d.ts +3 -0
  333. package/esm/formatter/plainLogFormatter.d.ts.map +1 -0
  334. package/esm/formatter/plainLogFormatter.js +5 -0
  335. package/esm/formatter/plainLogFormatter.js.map +1 -0
  336. package/esm/formatter/plainLogFormatter.spec.d.ts +2 -0
  337. package/esm/formatter/plainLogFormatter.spec.d.ts.map +1 -0
  338. package/esm/formatter/plainLogFormatter.spec.js +7 -0
  339. package/esm/formatter/plainLogFormatter.spec.js.map +1 -0
  340. package/{libm → esm}/getDefaultReporter.browser.d.ts +0 -0
  341. package/esm/getDefaultReporter.browser.d.ts.map +1 -0
  342. package/esm/getDefaultReporter.browser.js +11 -0
  343. package/esm/getDefaultReporter.browser.js.map +1 -0
  344. package/{libm → esm}/getDefaultReporter.d.ts +0 -0
  345. package/esm/getDefaultReporter.d.ts.map +1 -0
  346. package/esm/getDefaultReporter.js +15 -0
  347. package/esm/getDefaultReporter.js.map +1 -0
  348. package/esm/getLogModeFromEnvironment.browser.d.ts +3 -0
  349. package/esm/getLogModeFromEnvironment.browser.d.ts.map +1 -0
  350. package/{libm → esm}/getLogModeFromEnvironment.browser.js +0 -0
  351. package/esm/getLogModeFromEnvironment.browser.js.map +1 -0
  352. package/esm/getLogModeFromEnvironment.d.ts +3 -0
  353. package/esm/getLogModeFromEnvironment.d.ts.map +1 -0
  354. package/esm/getLogModeFromEnvironment.js +13 -0
  355. package/esm/getLogModeFromEnvironment.js.map +1 -0
  356. package/esm/getLogModeFromEnvironment.spec.d.ts +2 -0
  357. package/esm/getLogModeFromEnvironment.spec.d.ts.map +1 -0
  358. package/esm/getLogModeFromEnvironment.spec.js +14 -0
  359. package/esm/getLogModeFromEnvironment.spec.js.map +1 -0
  360. package/esm/getLogger.d.ts +9 -0
  361. package/esm/getLogger.d.ts.map +1 -0
  362. package/esm/getLogger.js +78 -0
  363. package/esm/getLogger.js.map +1 -0
  364. package/esm/getLogger.spec.d.ts +2 -0
  365. package/esm/getLogger.spec.d.ts.map +1 -0
  366. package/esm/getLogger.spec.js +381 -0
  367. package/esm/getLogger.spec.js.map +1 -0
  368. package/esm/getLoggers.d.ts +7 -0
  369. package/esm/getLoggers.d.ts.map +1 -0
  370. package/esm/getLoggers.js +11 -0
  371. package/esm/getLoggers.js.map +1 -0
  372. package/esm/index.d.ts +17 -0
  373. package/esm/index.d.ts.map +1 -0
  374. package/esm/index.js +17 -0
  375. package/esm/index.js.map +1 -0
  376. package/{libm → esm}/logLevel.d.ts +0 -0
  377. package/esm/logLevel.d.ts.map +1 -0
  378. package/{libm → esm}/logLevel.js +0 -0
  379. package/esm/logLevel.js.map +1 -0
  380. package/esm/logLevel.spec.d.ts +2 -0
  381. package/esm/logLevel.spec.d.ts.map +1 -0
  382. package/esm/logLevel.spec.js +148 -0
  383. package/esm/logLevel.spec.js.map +1 -0
  384. package/esm/logLevelFn.d.ts +20 -0
  385. package/esm/logLevelFn.d.ts.map +1 -0
  386. package/esm/logLevelFn.js +67 -0
  387. package/esm/logLevelFn.js.map +1 -0
  388. package/esm/logReporter.d.ts +7 -0
  389. package/esm/logReporter.d.ts.map +1 -0
  390. package/esm/logReporter.js +21 -0
  391. package/esm/logReporter.js.map +1 -0
  392. package/esm/logReporter.spec.d.ts +2 -0
  393. package/esm/logReporter.spec.d.ts.map +1 -0
  394. package/esm/logReporter.spec.js +81 -0
  395. package/esm/logReporter.spec.js.map +1 -0
  396. package/esm/logReporterInternal.d.ts +3 -0
  397. package/esm/logReporterInternal.d.ts.map +1 -0
  398. package/esm/logReporterInternal.js +19 -0
  399. package/esm/logReporterInternal.js.map +1 -0
  400. package/esm/memory/MemoryLogReporter.d.ts +14 -0
  401. package/esm/memory/MemoryLogReporter.d.ts.map +1 -0
  402. package/esm/memory/MemoryLogReporter.js +51 -0
  403. package/esm/memory/MemoryLogReporter.js.map +1 -0
  404. package/esm/memory/MemoryLogReporter.spec.d.ts +2 -0
  405. package/esm/memory/MemoryLogReporter.spec.d.ts.map +1 -0
  406. package/esm/memory/MemoryLogReporter.spec.js +98 -0
  407. package/esm/memory/MemoryLogReporter.spec.js.map +1 -0
  408. package/esm/memory/index.d.ts +3 -0
  409. package/esm/memory/index.d.ts.map +1 -0
  410. package/esm/memory/index.js +3 -0
  411. package/esm/memory/index.js.map +1 -0
  412. package/esm/memory/logEntriesToString.d.ts +3 -0
  413. package/esm/memory/logEntriesToString.d.ts.map +1 -0
  414. package/esm/memory/logEntriesToString.js +6 -0
  415. package/esm/memory/logEntriesToString.js.map +1 -0
  416. package/esm/memory/logEntriesToString.spec.d.ts +2 -0
  417. package/esm/memory/logEntriesToString.spec.d.ts.map +1 -0
  418. package/esm/memory/logEntriesToString.spec.js +42 -0
  419. package/esm/memory/logEntriesToString.spec.js.map +1 -0
  420. package/esm/memory/toInspectStringForObject.d.ts +3 -0
  421. package/esm/memory/toInspectStringForObject.d.ts.map +1 -0
  422. package/{libm → esm}/memory/toInspectStringForObject.js +0 -0
  423. package/esm/memory/toInspectStringForObject.js.map +1 -0
  424. package/esm/shouldLog.d.ts +8 -0
  425. package/esm/shouldLog.d.ts.map +1 -0
  426. package/esm/shouldLog.js +10 -0
  427. package/esm/shouldLog.js.map +1 -0
  428. package/esm/store.d.ts +3 -0
  429. package/esm/store.d.ts.map +1 -0
  430. package/esm/store.js +24 -0
  431. package/esm/store.js.map +1 -0
  432. package/esm/suppressLogs.d.ts +6 -0
  433. package/esm/suppressLogs.d.ts.map +1 -0
  434. package/esm/suppressLogs.js +9 -0
  435. package/esm/suppressLogs.js.map +1 -0
  436. package/esm/suppressLogs.spec.d.ts +2 -0
  437. package/esm/suppressLogs.spec.d.ts.map +1 -0
  438. package/esm/suppressLogs.spec.js +29 -0
  439. package/esm/suppressLogs.spec.js.map +1 -0
  440. package/esm/testUtil.d.ts +7 -0
  441. package/esm/testUtil.d.ts.map +1 -0
  442. package/esm/testUtil.js +17 -0
  443. package/esm/testUtil.js.map +1 -0
  444. package/{libm → esm}/types.d.ts +0 -0
  445. package/esm/types.d.ts.map +1 -0
  446. package/{libm → esm}/types.js +0 -0
  447. package/esm/types.js.map +1 -0
  448. package/esm/types.spec.d.ts +2 -0
  449. package/esm/types.spec.d.ts.map +1 -0
  450. package/esm/types.spec.js +5 -0
  451. package/esm/types.spec.js.map +1 -0
  452. package/esm/typesInternal.d.ts +20 -0
  453. package/esm/typesInternal.d.ts.map +1 -0
  454. package/{libm → esm}/typesInternal.js +0 -0
  455. package/esm/typesInternal.js.map +1 -0
  456. package/{libm → esm}/utils.d.ts +0 -0
  457. package/esm/utils.d.ts.map +1 -0
  458. package/esm/utils.js +10 -0
  459. package/esm/utils.js.map +1 -0
  460. package/esm/writeToReporters.d.ts +6 -0
  461. package/esm/writeToReporters.d.ts.map +1 -0
  462. package/esm/writeToReporters.js +18 -0
  463. package/esm/writeToReporters.js.map +1 -0
  464. package/esm/writeToReporters.spec.d.ts +2 -0
  465. package/esm/writeToReporters.spec.d.ts.map +1 -0
  466. package/esm/writeToReporters.spec.js +9 -0
  467. package/esm/writeToReporters.spec.js.map +1 -0
  468. package/package.json +79 -29
  469. package/{src → ts}/LogEntry.ts +0 -0
  470. package/ts/captureLogs.ts +35 -0
  471. package/ts/config.ts +57 -0
  472. package/ts/configForTest.ts +16 -0
  473. package/ts/console/createConsoleLogReporter.ts +42 -0
  474. package/ts/console/index.ts +3 -0
  475. package/ts/console/isConsoleDebugAvailable.ts +11 -0
  476. package/ts/console/polyfilledConsole.ts +34 -0
  477. package/{src → ts}/console/semverGt.ts +0 -0
  478. package/ts/console/toConsoleMethod.ts +18 -0
  479. package/ts/console/types.ts +3 -0
  480. package/ts/customLogLevel.ts +35 -0
  481. package/{src → ts}/errors.ts +0 -0
  482. package/ts/formatter/createTimestampFormatter.ts +21 -0
  483. package/ts/formatter/formatLogLevel.ts +6 -0
  484. package/ts/formatter/index.ts +3 -0
  485. package/ts/formatter/plainLogFormatter.ts +6 -0
  486. package/ts/getDefaultReporter.browser.ts +13 -0
  487. package/ts/getDefaultReporter.ts +15 -0
  488. package/ts/getLogModeFromEnvironment.browser.ts +6 -0
  489. package/ts/getLogModeFromEnvironment.ts +16 -0
  490. package/ts/getLogger.ts +92 -0
  491. package/ts/getLoggers.ts +12 -0
  492. package/ts/index.ts +16 -0
  493. package/{src → ts}/logLevel.ts +0 -0
  494. package/ts/logLevelFn.ts +72 -0
  495. package/ts/logReporter.ts +26 -0
  496. package/ts/logReporterInternal.ts +18 -0
  497. package/ts/memory/MemoryLogReporter.ts +66 -0
  498. package/ts/memory/index.ts +2 -0
  499. package/ts/memory/logEntriesToString.ts +7 -0
  500. package/ts/memory/toInspectStringForObject.ts +13 -0
  501. package/ts/shouldLog.ts +11 -0
  502. package/ts/store.ts +25 -0
  503. package/ts/suppressLogs.ts +14 -0
  504. package/ts/testUtil.ts +19 -0
  505. package/{src → ts}/types.ts +0 -0
  506. package/ts/typesInternal.ts +21 -0
  507. package/ts/utils.ts +9 -0
  508. package/ts/writeToReporters.ts +20 -0
  509. package/CHANGELOG.md +0 -808
  510. package/dist/standard-log.js +0 -5444
  511. package/dist/standard-log.js.gz +0 -0
  512. package/dist/standard-log.js.map +0 -1
  513. package/dist/standard-log.js.map.gz +0 -0
  514. package/lib/LogEntry.d.ts.map +0 -1
  515. package/lib/LogEntry.js.map +0 -1
  516. package/lib/captureLogs.d.ts +0 -4
  517. package/lib/captureLogs.d.ts.map +0 -1
  518. package/lib/captureLogs.js +0 -33
  519. package/lib/captureLogs.js.map +0 -1
  520. package/lib/config.d.ts +0 -12
  521. package/lib/config.d.ts.map +0 -1
  522. package/lib/config.js +0 -49
  523. package/lib/config.js.map +0 -1
  524. package/lib/configForTest.d.ts +0 -5
  525. package/lib/configForTest.d.ts.map +0 -1
  526. package/lib/configForTest.js +0 -18
  527. package/lib/configForTest.js.map +0 -1
  528. package/lib/console/createConsoleLogReporter.d.ts +0 -9
  529. package/lib/console/createConsoleLogReporter.d.ts.map +0 -1
  530. package/lib/console/createConsoleLogReporter.js +0 -42
  531. package/lib/console/createConsoleLogReporter.js.map +0 -1
  532. package/lib/console/index.d.ts +0 -4
  533. package/lib/console/index.d.ts.map +0 -1
  534. package/lib/console/index.js +0 -7
  535. package/lib/console/index.js.map +0 -1
  536. package/lib/console/isConsoleDebugAvailable.d.ts.map +0 -1
  537. package/lib/console/isConsoleDebugAvailable.js +0 -18
  538. package/lib/console/isConsoleDebugAvailable.js.map +0 -1
  539. package/lib/console/polyfilledConsole.d.ts.map +0 -1
  540. package/lib/console/polyfilledConsole.js +0 -41
  541. package/lib/console/polyfilledConsole.js.map +0 -1
  542. package/lib/console/semverGt.d.ts.map +0 -1
  543. package/lib/console/semverGt.js.map +0 -1
  544. package/lib/console/toConsoleMethod.d.ts.map +0 -1
  545. package/lib/console/toConsoleMethod.js +0 -22
  546. package/lib/console/toConsoleMethod.js.map +0 -1
  547. package/lib/console/types.d.ts +0 -3
  548. package/lib/console/types.d.ts.map +0 -1
  549. package/lib/console/types.js.map +0 -1
  550. package/lib/customLogLevel.d.ts +0 -11
  551. package/lib/customLogLevel.d.ts.map +0 -1
  552. package/lib/customLogLevel.js +0 -38
  553. package/lib/customLogLevel.js.map +0 -1
  554. package/lib/errors.d.ts.map +0 -1
  555. package/lib/errors.js +0 -46
  556. package/lib/errors.js.map +0 -1
  557. package/lib/formatter/createTimestampFormatter.d.ts.map +0 -1
  558. package/lib/formatter/createTimestampFormatter.js +0 -24
  559. package/lib/formatter/createTimestampFormatter.js.map +0 -1
  560. package/lib/formatter/formatLogLevel.d.ts.map +0 -1
  561. package/lib/formatter/formatLogLevel.js +0 -10
  562. package/lib/formatter/formatLogLevel.js.map +0 -1
  563. package/lib/formatter/index.d.ts +0 -4
  564. package/lib/formatter/index.d.ts.map +0 -1
  565. package/lib/formatter/index.js +0 -7
  566. package/lib/formatter/index.js.map +0 -1
  567. package/lib/formatter/plainLogFormatter.d.ts +0 -3
  568. package/lib/formatter/plainLogFormatter.d.ts.map +0 -1
  569. package/lib/formatter/plainLogFormatter.js +0 -11
  570. package/lib/formatter/plainLogFormatter.js.map +0 -1
  571. package/lib/getDefaultReporter.browser.d.ts.map +0 -1
  572. package/lib/getDefaultReporter.browser.js +0 -15
  573. package/lib/getDefaultReporter.browser.js.map +0 -1
  574. package/lib/getDefaultReporter.d.ts.map +0 -1
  575. package/lib/getDefaultReporter.js +0 -19
  576. package/lib/getDefaultReporter.js.map +0 -1
  577. package/lib/getLogModeFromEnvironment.browser.d.ts +0 -3
  578. package/lib/getLogModeFromEnvironment.browser.d.ts.map +0 -1
  579. package/lib/getLogModeFromEnvironment.browser.js.map +0 -1
  580. package/lib/getLogModeFromEnvironment.d.ts +0 -3
  581. package/lib/getLogModeFromEnvironment.d.ts.map +0 -1
  582. package/lib/getLogModeFromEnvironment.js +0 -17
  583. package/lib/getLogModeFromEnvironment.js.map +0 -1
  584. package/lib/getLogger.d.ts +0 -9
  585. package/lib/getLogger.d.ts.map +0 -1
  586. package/lib/getLogger.js +0 -95
  587. package/lib/getLogger.js.map +0 -1
  588. package/lib/getLoggers.d.ts +0 -7
  589. package/lib/getLoggers.d.ts.map +0 -1
  590. package/lib/getLoggers.js +0 -15
  591. package/lib/getLoggers.js.map +0 -1
  592. package/lib/index.d.ts +0 -16
  593. package/lib/index.d.ts.map +0 -1
  594. package/lib/index.js +0 -19
  595. package/lib/index.js.map +0 -1
  596. package/lib/logLevel.d.ts.map +0 -1
  597. package/lib/logLevel.js.map +0 -1
  598. package/lib/logLevelFn.d.ts +0 -20
  599. package/lib/logLevelFn.d.ts.map +0 -1
  600. package/lib/logLevelFn.js +0 -76
  601. package/lib/logLevelFn.js.map +0 -1
  602. package/lib/logReporter.d.ts +0 -7
  603. package/lib/logReporter.d.ts.map +0 -1
  604. package/lib/logReporter.js +0 -29
  605. package/lib/logReporter.js.map +0 -1
  606. package/lib/logReporterInternal.d.ts +0 -3
  607. package/lib/logReporterInternal.d.ts.map +0 -1
  608. package/lib/logReporterInternal.js +0 -23
  609. package/lib/logReporterInternal.js.map +0 -1
  610. package/lib/memory/MemoryLogReporter.d.ts +0 -14
  611. package/lib/memory/MemoryLogReporter.d.ts.map +0 -1
  612. package/lib/memory/MemoryLogReporter.js +0 -56
  613. package/lib/memory/MemoryLogReporter.js.map +0 -1
  614. package/lib/memory/index.d.ts +0 -3
  615. package/lib/memory/index.d.ts.map +0 -1
  616. package/lib/memory/index.js +0 -6
  617. package/lib/memory/index.js.map +0 -1
  618. package/lib/memory/logEntriesToString.d.ts +0 -3
  619. package/lib/memory/logEntriesToString.d.ts.map +0 -1
  620. package/lib/memory/logEntriesToString.js +0 -10
  621. package/lib/memory/logEntriesToString.js.map +0 -1
  622. package/lib/memory/toInspectStringForObject.d.ts +0 -3
  623. package/lib/memory/toInspectStringForObject.d.ts.map +0 -1
  624. package/lib/memory/toInspectStringForObject.js +0 -15
  625. package/lib/memory/toInspectStringForObject.js.map +0 -1
  626. package/lib/shouldLog.d.ts +0 -8
  627. package/lib/shouldLog.d.ts.map +0 -1
  628. package/lib/shouldLog.js +0 -14
  629. package/lib/shouldLog.js.map +0 -1
  630. package/lib/store.d.ts +0 -3
  631. package/lib/store.d.ts.map +0 -1
  632. package/lib/store.js +0 -17
  633. package/lib/store.js.map +0 -1
  634. package/lib/testUtil.d.ts +0 -7
  635. package/lib/testUtil.d.ts.map +0 -1
  636. package/lib/testUtil.js +0 -23
  637. package/lib/testUtil.js.map +0 -1
  638. package/lib/types.d.ts.map +0 -1
  639. package/lib/types.js.map +0 -1
  640. package/lib/typesInternal.d.ts +0 -20
  641. package/lib/typesInternal.d.ts.map +0 -1
  642. package/lib/typesInternal.js.map +0 -1
  643. package/lib/utils.d.ts.map +0 -1
  644. package/lib/utils.js +0 -14
  645. package/lib/utils.js.map +0 -1
  646. package/lib/writeToReporters.d.ts +0 -6
  647. package/lib/writeToReporters.d.ts.map +0 -1
  648. package/lib/writeToReporters.js +0 -22
  649. package/lib/writeToReporters.js.map +0 -1
  650. package/libm/LogEntry.d.ts.map +0 -1
  651. package/libm/LogEntry.js.map +0 -1
  652. package/libm/captureLogs.d.ts +0 -4
  653. package/libm/captureLogs.d.ts.map +0 -1
  654. package/libm/captureLogs.js +0 -29
  655. package/libm/captureLogs.js.map +0 -1
  656. package/libm/config.d.ts +0 -12
  657. package/libm/config.d.ts.map +0 -1
  658. package/libm/config.js +0 -44
  659. package/libm/config.js.map +0 -1
  660. package/libm/configForTest.d.ts +0 -5
  661. package/libm/configForTest.d.ts.map +0 -1
  662. package/libm/configForTest.js +0 -14
  663. package/libm/configForTest.js.map +0 -1
  664. package/libm/console/createConsoleLogReporter.d.ts +0 -9
  665. package/libm/console/createConsoleLogReporter.d.ts.map +0 -1
  666. package/libm/console/createConsoleLogReporter.js +0 -37
  667. package/libm/console/createConsoleLogReporter.js.map +0 -1
  668. package/libm/console/index.d.ts +0 -4
  669. package/libm/console/index.d.ts.map +0 -1
  670. package/libm/console/index.js +0 -4
  671. package/libm/console/index.js.map +0 -1
  672. package/libm/console/isConsoleDebugAvailable.d.ts.map +0 -1
  673. package/libm/console/isConsoleDebugAvailable.js +0 -13
  674. package/libm/console/isConsoleDebugAvailable.js.map +0 -1
  675. package/libm/console/polyfilledConsole.d.ts.map +0 -1
  676. package/libm/console/polyfilledConsole.js +0 -32
  677. package/libm/console/polyfilledConsole.js.map +0 -1
  678. package/libm/console/semverGt.d.ts.map +0 -1
  679. package/libm/console/semverGt.js.map +0 -1
  680. package/libm/console/toConsoleMethod.d.ts.map +0 -1
  681. package/libm/console/toConsoleMethod.js +0 -18
  682. package/libm/console/toConsoleMethod.js.map +0 -1
  683. package/libm/console/types.d.ts +0 -3
  684. package/libm/console/types.d.ts.map +0 -1
  685. package/libm/console/types.js.map +0 -1
  686. package/libm/customLogLevel.d.ts +0 -11
  687. package/libm/customLogLevel.d.ts.map +0 -1
  688. package/libm/customLogLevel.js +0 -30
  689. package/libm/customLogLevel.js.map +0 -1
  690. package/libm/errors.d.ts.map +0 -1
  691. package/libm/errors.js +0 -32
  692. package/libm/errors.js.map +0 -1
  693. package/libm/formatter/createTimestampFormatter.d.ts.map +0 -1
  694. package/libm/formatter/createTimestampFormatter.js.map +0 -1
  695. package/libm/formatter/formatLogLevel.d.ts.map +0 -1
  696. package/libm/formatter/formatLogLevel.js +0 -6
  697. package/libm/formatter/formatLogLevel.js.map +0 -1
  698. package/libm/formatter/index.d.ts +0 -4
  699. package/libm/formatter/index.d.ts.map +0 -1
  700. package/libm/formatter/index.js +0 -4
  701. package/libm/formatter/index.js.map +0 -1
  702. package/libm/formatter/plainLogFormatter.d.ts +0 -3
  703. package/libm/formatter/plainLogFormatter.d.ts.map +0 -1
  704. package/libm/formatter/plainLogFormatter.js +0 -5
  705. package/libm/formatter/plainLogFormatter.js.map +0 -1
  706. package/libm/getDefaultReporter.browser.d.ts.map +0 -1
  707. package/libm/getDefaultReporter.browser.js +0 -11
  708. package/libm/getDefaultReporter.browser.js.map +0 -1
  709. package/libm/getDefaultReporter.d.ts.map +0 -1
  710. package/libm/getDefaultReporter.js +0 -15
  711. package/libm/getDefaultReporter.js.map +0 -1
  712. package/libm/getLogModeFromEnvironment.browser.d.ts +0 -3
  713. package/libm/getLogModeFromEnvironment.browser.d.ts.map +0 -1
  714. package/libm/getLogModeFromEnvironment.browser.js.map +0 -1
  715. package/libm/getLogModeFromEnvironment.d.ts +0 -3
  716. package/libm/getLogModeFromEnvironment.d.ts.map +0 -1
  717. package/libm/getLogModeFromEnvironment.js +0 -13
  718. package/libm/getLogModeFromEnvironment.js.map +0 -1
  719. package/libm/getLogger.d.ts +0 -9
  720. package/libm/getLogger.d.ts.map +0 -1
  721. package/libm/getLogger.js +0 -78
  722. package/libm/getLogger.js.map +0 -1
  723. package/libm/getLoggers.d.ts +0 -7
  724. package/libm/getLoggers.d.ts.map +0 -1
  725. package/libm/getLoggers.js +0 -11
  726. package/libm/getLoggers.js.map +0 -1
  727. package/libm/index.d.ts +0 -16
  728. package/libm/index.d.ts.map +0 -1
  729. package/libm/index.js +0 -16
  730. package/libm/index.js.map +0 -1
  731. package/libm/logLevel.d.ts.map +0 -1
  732. package/libm/logLevel.js.map +0 -1
  733. package/libm/logLevelFn.d.ts +0 -20
  734. package/libm/logLevelFn.d.ts.map +0 -1
  735. package/libm/logLevelFn.js +0 -67
  736. package/libm/logLevelFn.js.map +0 -1
  737. package/libm/logReporter.d.ts +0 -7
  738. package/libm/logReporter.d.ts.map +0 -1
  739. package/libm/logReporter.js +0 -21
  740. package/libm/logReporter.js.map +0 -1
  741. package/libm/logReporterInternal.d.ts +0 -3
  742. package/libm/logReporterInternal.d.ts.map +0 -1
  743. package/libm/logReporterInternal.js +0 -19
  744. package/libm/logReporterInternal.js.map +0 -1
  745. package/libm/memory/MemoryLogReporter.d.ts +0 -14
  746. package/libm/memory/MemoryLogReporter.d.ts.map +0 -1
  747. package/libm/memory/MemoryLogReporter.js +0 -51
  748. package/libm/memory/MemoryLogReporter.js.map +0 -1
  749. package/libm/memory/index.d.ts +0 -3
  750. package/libm/memory/index.d.ts.map +0 -1
  751. package/libm/memory/index.js +0 -3
  752. package/libm/memory/index.js.map +0 -1
  753. package/libm/memory/logEntriesToString.d.ts +0 -3
  754. package/libm/memory/logEntriesToString.d.ts.map +0 -1
  755. package/libm/memory/logEntriesToString.js +0 -6
  756. package/libm/memory/logEntriesToString.js.map +0 -1
  757. package/libm/memory/toInspectStringForObject.d.ts +0 -3
  758. package/libm/memory/toInspectStringForObject.d.ts.map +0 -1
  759. package/libm/memory/toInspectStringForObject.js.map +0 -1
  760. package/libm/shouldLog.d.ts +0 -8
  761. package/libm/shouldLog.d.ts.map +0 -1
  762. package/libm/shouldLog.js +0 -10
  763. package/libm/shouldLog.js.map +0 -1
  764. package/libm/store.d.ts +0 -3
  765. package/libm/store.d.ts.map +0 -1
  766. package/libm/store.js +0 -24
  767. package/libm/store.js.map +0 -1
  768. package/libm/testUtil.d.ts +0 -7
  769. package/libm/testUtil.d.ts.map +0 -1
  770. package/libm/testUtil.js +0 -17
  771. package/libm/testUtil.js.map +0 -1
  772. package/libm/types.d.ts.map +0 -1
  773. package/libm/types.js.map +0 -1
  774. package/libm/typesInternal.d.ts +0 -20
  775. package/libm/typesInternal.d.ts.map +0 -1
  776. package/libm/typesInternal.js.map +0 -1
  777. package/libm/utils.d.ts.map +0 -1
  778. package/libm/utils.js +0 -10
  779. package/libm/utils.js.map +0 -1
  780. package/libm/writeToReporters.d.ts +0 -6
  781. package/libm/writeToReporters.d.ts.map +0 -1
  782. package/libm/writeToReporters.js +0 -18
  783. package/libm/writeToReporters.js.map +0 -1
  784. package/src/captureLogs.spec.ts +0 -52
  785. package/src/captureLogs.ts +0 -35
  786. package/src/config.spec.ts +0 -73
  787. package/src/config.ts +0 -57
  788. package/src/configForTest.spec.ts +0 -16
  789. package/src/configForTest.ts +0 -16
  790. package/src/console/createConsoleLogReporter.spec.ts +0 -198
  791. package/src/console/createConsoleLogReporter.ts +0 -42
  792. package/src/console/index.ts +0 -3
  793. package/src/console/isConsoleDebugAvailable.ts +0 -11
  794. package/src/console/polyfilledConsole.ts +0 -34
  795. package/src/console/semverGt.spec.ts +0 -25
  796. package/src/console/toConsoleMethod.ts +0 -18
  797. package/src/console/types.ts +0 -3
  798. package/src/customLogLevel.spec.ts +0 -39
  799. package/src/customLogLevel.ts +0 -35
  800. package/src/formatter/createTimestampFormatter.spec.ts +0 -24
  801. package/src/formatter/createTimestampFormatter.ts +0 -21
  802. package/src/formatter/formatLogLevel.ts +0 -6
  803. package/src/formatter/index.ts +0 -3
  804. package/src/formatter/plainLogFormatter.spec.ts +0 -8
  805. package/src/formatter/plainLogFormatter.ts +0 -6
  806. package/src/getDefaultReporter.browser.ts +0 -13
  807. package/src/getDefaultReporter.ts +0 -15
  808. package/src/getLogModeFromEnvironment.browser.ts +0 -6
  809. package/src/getLogModeFromEnvironment.spec.ts +0 -16
  810. package/src/getLogModeFromEnvironment.ts +0 -16
  811. package/src/getLogger.spec.ts +0 -460
  812. package/src/getLogger.ts +0 -92
  813. package/src/getLoggers.ts +0 -12
  814. package/src/index.ts +0 -15
  815. package/src/logLevel.spec.ts +0 -161
  816. package/src/logLevelFn.ts +0 -72
  817. package/src/logReporter.spec.ts +0 -99
  818. package/src/logReporter.ts +0 -26
  819. package/src/logReporterInternal.ts +0 -18
  820. package/src/memory/MemoryLogReporter.spec.ts +0 -114
  821. package/src/memory/MemoryLogReporter.ts +0 -66
  822. package/src/memory/index.ts +0 -2
  823. package/src/memory/logEntriesToString.spec.ts +0 -47
  824. package/src/memory/logEntriesToString.ts +0 -7
  825. package/src/memory/toInspectStringForObject.ts +0 -13
  826. package/src/shouldLog.ts +0 -11
  827. package/src/store.ts +0 -25
  828. package/src/testUtil.ts +0 -19
  829. package/src/types.spec.ts +0 -7
  830. package/src/typesInternal.ts +0 -21
  831. package/src/utils.ts +0 -9
  832. package/src/writeToReporters.spec.ts +0 -9
  833. package/src/writeToReporters.ts +0 -20
Binary file
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-log.es5.js","mappings":";;;;;;;;;;;AAAA;AACa;;AAEb;;;;;;;;;;;ACHA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;A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AAC;AAC7D,iBAAiB,GAAG,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE,qBAAqB;AACtF;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,wBAAwB,SAAS;AACjC;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,kBAAkB,qBAAM;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;;;AAGf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4CAA4C,KAAK;;AAEjD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;AAGA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA,WAAW;AACX;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,eAAe;;AAEf;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA,eAAe;;AAEf;AACA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;;AAEnB,sHAAgD;;AAEhD;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,WAAW;AACX;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA,WAAW,UAAU;AACrB;AACA,2HAAsC;;AAEtC,eAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACzkBA;;;;;;;;;;;;ACAa;AACb;AACA,iBAAiB,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD,gBAAgB,SAAI,IAAI,SAAI;AAC5B;AACA,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAI,IAAI,SAAI;AAC1B;AACA;AACA;AACA;AACA,6DAA6D,cAAc;AAC3E;AACA;AACA;AACA;AACA;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,oCAAoC,4BAA4B;AAChE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,oCAAoC;AAClF;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,wDAAwD,qBAAqB;AAC7E;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,KAAK;AACL;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,6BAA6B;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E,aAAa,gBAAgB;AACxG;AACA;AACA;AACA;AACA;AACA,kFAAkF,WAAW,mBAAmB;AAChH;AACA;AACA,8DAA8D,oBAAoB;AAClF;AACA;AACA;AACA,mCAAmC,UAAU,+FAA+F;AAC5I;AACA;AACA;AACA;AACA,kCAAkC,UAAU,iFAAiF,wBAAwB,UAAU,8CAA8C;AAC7M;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,2EAA2E;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,6EAA6E,kBAAkB,KAAK;AAC9I;AACA;AACA;AACA,0FAA0F,kBAAkB;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AChUa;AACb,uBAAuB,SAAI,IAAI,SAAI;AACnC;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD,oBAAoB,SAAI,IAAI,SAAI;AAChC;AACA;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA,6CAA6C,qCAAqC,gCAAgC;AAClH,iDAAiD,qCAAqC,oCAAoC;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;UClCA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;UENA;UACA;UACA;UACA","sources":["webpack://StandardLog/../../node_modules/is-node/index.js","webpack://StandardLog/../../node_modules/ms/index.js","webpack://StandardLog/./ts/captureLogs.ts","webpack://StandardLog/./ts/config.ts","webpack://StandardLog/./ts/configForTest.ts","webpack://StandardLog/./ts/console/createConsoleLogReporter.ts","webpack://StandardLog/./ts/console/index.ts","webpack://StandardLog/./ts/console/isConsoleDebugAvailable.ts","webpack://StandardLog/./ts/console/polyfilledConsole.ts","webpack://StandardLog/./ts/console/semverGt.ts","webpack://StandardLog/./ts/console/toConsoleMethod.ts","webpack://StandardLog/./ts/console/types.ts","webpack://StandardLog/./ts/customLogLevel.ts","webpack://StandardLog/./ts/errors.ts","webpack://StandardLog/./ts/formatter/createTimestampFormatter.ts","webpack://StandardLog/./ts/formatter/formatLogLevel.ts","webpack://StandardLog/./ts/formatter/index.ts","webpack://StandardLog/./ts/formatter/plainLogFormatter.ts","webpack://StandardLog/./ts/getDefaultReporter.browser.ts","webpack://StandardLog/./ts/getLogModeFromEnvironment.browser.ts","webpack://StandardLog/./ts/getLogger.ts","webpack://StandardLog/./ts/getLoggers.ts","webpack://StandardLog/./ts/index.ts","webpack://StandardLog/./ts/logLevel.ts","webpack://StandardLog/./ts/logLevelFn.ts","webpack://StandardLog/./ts/logReporter.ts","webpack://StandardLog/./ts/logReporterInternal.ts","webpack://StandardLog/./ts/memory/MemoryLogReporter.ts","webpack://StandardLog/./ts/memory/index.ts","webpack://StandardLog/./ts/memory/logEntriesToString.ts","webpack://StandardLog/./ts/memory/toInspectStringForObject.ts","webpack://StandardLog/./ts/shouldLog.ts","webpack://StandardLog/./ts/store.ts","webpack://StandardLog/./ts/suppressLogs.ts","webpack://StandardLog/./ts/types.ts","webpack://StandardLog/./ts/utils.ts","webpack://StandardLog/./ts/writeToReporters.ts","webpack://StandardLog/../../node_modules/upper-case/dist/index.js","webpack://StandardLog/../../node_modules/util/node_modules/inherits/inherits_browser.js","webpack://StandardLog/../../node_modules/util/support/isBufferBrowser.js","webpack://StandardLog/../../node_modules/util/util.js","webpack://StandardLog/external var \"GlobalStore\"","webpack://StandardLog/../../node_modules/iso-error/cjs/index.js","webpack://StandardLog/../../node_modules/type-plus/cjs/index.js","webpack://StandardLog/webpack/bootstrap","webpack://StandardLog/webpack/runtime/global","webpack://StandardLog/webpack/runtime/make namespace object","webpack://StandardLog/webpack/before-startup","webpack://StandardLog/webpack/startup","webpack://StandardLog/webpack/after-startup"],"sourcesContent":["// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { AnyFunction, isPromise } from 'type-plus'\nimport { createMemoryLogReporter } from './memory/index.js'\nimport { store } from './store.js'\nimport { LogEntry, Logger, LogReporter } from './types.js'\n\nexport function captureLogs<R>(logger: Logger, funcBlock: () => Promise<R>): Promise<[R, LogEntry[]]>\nexport function captureLogs<R>(logger: Logger, funcBlock: () => R): [R, LogEntry[]]\nexport function captureLogs(logger: Logger, funcBlock: AnyFunction) {\n const reporter = createMemoryLogReporter()\n addRedirect(logger.id, reporter)\n\n try {\n const result = funcBlock()\n if (isPromise(result)) {\n return result.then((r) => [r, reporter.logs])\n .finally(() => removeRedirect(logger.id, reporter))\n }\n removeRedirect(logger.id, reporter)\n return [result, reporter.logs]\n }\n catch (e) {\n removeRedirect(logger.id, reporter)\n throw e\n }\n}\n\nfunction addRedirect(id: string, reporter: LogReporter) {\n const redirect = store.value.redirects[id] || []\n redirect.push(reporter)\n store.value.redirects[id] = redirect\n}\n\nfunction removeRedirect(id: string, reporter: LogReporter) {\n store.value.redirects[id] = store.value.redirects[id].filter(r => r !== reporter)\n}\n","import { forEachKey } from 'type-plus'\nimport { addCustomLogLevel } from './customLogLevel.js'\nimport { ProhibitedDuringProduction } from './errors.js'\nimport { getDefaultReporter } from './getDefaultReporter.js'\nimport { getLogger } from './getLogger.js'\nimport { store } from './store.js'\nimport { LogMode, LogReporter } from './types.js'\n\nexport type ConfigOptions = {\n mode: LogMode,\n customLevels: Record<string, number>,\n logLevel: number,\n reporters: LogReporter[]\n}\n\nexport const config: { (options?: Partial<ConfigOptions>): void, readonly isLocked: boolean } = function config(options: Partial<ConfigOptions> = {}) {\n if (store.value.configured) {\n if (store.value.mode === 'production') {\n throw new ProhibitedDuringProduction('config')\n }\n if (store.value.mode === 'test' && options.mode !== 'test') {\n const log = getLogger('standard-log')\n log.warn(`already configured for test, ignoring config() call`)\n return\n }\n }\n\n if (options.mode) store.value.mode = options.mode\n\n store.value.logLevel = options.logLevel !== undefined ? options.logLevel : store.value.logLevel\n\n if (options.customLevels) {\n const customLevels = options.customLevels\n forEachKey(customLevels, k => {\n addCustomLogLevel(k, customLevels[k])\n })\n }\n\n store.value.reporters = options.reporters || [getDefaultReporter()]\n store.value.configured = true\n\n if (store.value.mode === 'production') {\n store.freeze({ ...store.value, reporters: Object.freeze(store.value.reporters) })\n }\n else if (store.value.mode === 'development') {\n console.warn(`'standard-log' is running in 'development' mode. Configuration is not protected.`)\n }\n} as any\n\nObject.defineProperty(config, 'isLocked', {\n /**\n * Gets if the config has already been locked\n */\n get() {\n return store.value.configured\n }\n})\n","import { config } from './config.js'\nimport { createMemoryLogReporter } from './memory/index.js'\nimport { store } from './store.js'\nimport { LogLevel } from './types.js'\n\n\nexport function configForTest(logLevel?: LogLevel) {\n store.reset()\n const reporter = createMemoryLogReporter()\n config({\n reporters: [reporter],\n mode: 'test',\n logLevel\n })\n return { reporter }\n}\n","import { required } from 'type-plus'\nimport { plainLogFormatter } from '../formatter/index.js'\nimport { LogFormatter, LogReporter, LogReporterOptions, LogFilter } from '../types.js'\nimport { assertLogModeIsNotProduction } from '../utils.js'\nimport { polyfilledConsole } from './polyfilledConsole.js'\nimport { toConsoleMethod } from './toConsoleMethod.js'\nimport { Console } from './types.js'\n\nexport type ConsoleLogReporter = LogReporter<any[]> & { console: Console }\nexport type ConsoleLogFormatter = LogFormatter<any[]>\nexport type ConsoleLogReporterOptions = LogReporterOptions<any[]>\n\nexport function createConsoleLogReporter(options?: ConsoleLogReporterOptions): ConsoleLogReporter {\n const opts = required({ id: 'console', formatter: plainLogFormatter }, options)\n const { id } = opts\n let { formatter, filter } = opts\n return {\n id,\n isConsoleReporter: true,\n get formatter() {\n return formatter\n },\n set formatter(value: ConsoleLogFormatter) {\n assertLogModeIsNotProduction('set Reporter.formatter')\n formatter = value\n },\n get filter() {\n return filter\n },\n set filter(value: LogFilter) {\n assertLogModeIsNotProduction('set Reporter.filter')\n filter = value\n },\n console: polyfilledConsole,\n write(entry) {\n if (filter && !filter(entry)) return\n const values = formatter(entry)\n const method = toConsoleMethod(entry.level)\n this.console[method](...values)\n }\n }\n}\n","export * from './createConsoleLogReporter.js'\nexport * from './toConsoleMethod.js'\nexport * from './types.js'\n","import isNode from 'is-node'\nimport { semverGt } from './semverGt.js'\n\n// istanbul ignore file\nexport function isConsoleDebugAvailable() {\n if (!isNode) return true\n // without this, systemJs will complain `process is not defined`\n if (!global.process) return true\n const versionString = process.version.startsWith('v') ? process.version.slice(1) : process.version\n return semverGt(versionString, [9, 3, 0])\n}\n","/* istanbul ignore file */\nimport { isConsoleDebugAvailable } from './isConsoleDebugAvailable.js'\n/* eslint-disable no-console */\n\nfunction buildPolyfillConsole() {\n // old phantomjs does not have bind function\n const hasBind = !!console.log.bind as boolean\n if (hasBind) {\n return {\n // Node@9.3 or below has `console.debug = undefined` or it doesn't log\n // Should use `console.log()` in those case.\n debug: (isConsoleDebugAvailable() ? console.debug : console.log).bind(console),\n // the `typeof` guards against IE where `console.log.apply()`\n // results in error `Object doesn't support property or method 'apply'`\n info: (typeof console.info === 'function' ? console.info : console.log).bind(console),\n warn: (typeof console.warn === 'function' ? console.warn : console.log).bind(console),\n error: (typeof console.error === 'function' ? console.error : console.log).bind(console)\n }\n }\n else {\n return {\n debug: buildFn(isConsoleDebugAvailable() ? 'debug' : 'log'),\n info: buildFn(typeof console.info === 'function' ? 'info' : 'log'),\n warn: buildFn(typeof console.warn === 'function' ? 'warn' : 'log'),\n error: buildFn(typeof console.error === 'function' ? 'error' : 'log'),\n }\n }\n}\n\nfunction buildFn(name: 'debug' | 'info' | 'warn' | 'error' | 'log') {\n return function (...args: any[]) { console[name](...args) }\n}\n\nexport const polyfilledConsole = buildPolyfillConsole()\n","// istanbul ignore next\nexport function semverGt(versionString: string, version: [number, number, number]) {\n const actual = versionString.split('.').reverse().reduce((p, v, i) => {\n p += Number.parseInt(v, 10) * Math.pow(100, i)\n return p\n }, 0)\n\n return actual > (version[0] * 10000 + version[1] * 100 + version[2])\n}\n","import { logLevels } from '../logLevel.js'\n\nexport function toConsoleMethod(level: number) {\n switch (true) {\n // istanbul ignore next\n case (level === 0):\n // edge case in case none is somehow written\n return 'debug'\n case (level <= logLevels.error):\n return 'error'\n case (level <= logLevels.warn):\n return 'warn'\n case (level <= logLevels.info):\n return 'info'\n default:\n return 'debug'\n }\n}\n","import { polyfilledConsole } from './polyfilledConsole.js'\n\nexport type Console = typeof polyfilledConsole\n","import { forEachKey, mapKey } from 'type-plus'\nimport { store } from './store.js'\nimport { LogLevelEntry } from './types.js'\n\n/**\n * @param level the `logLevel` number.\n * You can specify this in the form of `logLevel.<x> + n` to make it more readable.\n */\nexport function addCustomLogLevel(name: string, level: number) {\n const { customLevels, customLevelsReverse } = store.value\n customLevels[name] = level\n customLevelsReverse[level] = name\n const { loggerClosures } = store.value\n forEachKey(loggerClosures, id => loggerClosures[id].addMethod(name, level))\n}\n\nexport function clearCustomLogLevel() {\n const { customLevels, customLevelsReverse } = store.value\n // Don't replace the object would prevent reference divergence\n forEachKey(customLevels, k => delete customLevels[k])\n customLevelsReverse.splice(0, customLevelsReverse.length)\n}\n\nexport function getCustomLevel(name: string): number | undefined {\n return store.value.customLevels[name]\n}\n\nexport function getCustomLevelName(level: number): string | undefined {\n return store.value.customLevelsReverse[level]\n}\n\nexport function getCustomLevels(): LogLevelEntry[] {\n const { customLevels } = store.value\n return mapKey(customLevels, name => ({ name, level: customLevels[name] }))\n}\n","import { IsoError, ModuleError } from 'iso-error'\n\nexport class StandardLogError extends ModuleError {\n constructor(description: string, options?: IsoError.Options) {\n super('standard-log', description, options)\n }\n}\nexport class InvalidId extends StandardLogError {\n constructor(public id: string) {\n super(`logger id only supports alphanumeric, unicode characters, and [:_-.]. Received ${id}`)\n }\n}\n\nexport class ProhibitedDuringProduction extends StandardLogError {\n constructor(public action: string) {\n super(`Cannot perform ${action} during production`)\n }\n}\n\nexport class InvalidEnvVar extends StandardLogError {\n constructor(public name: string, public value: string, public possibleValues: string[]) {\n super(`${name} contains invalid value '${value}'${` valid values: [${possibleValues.join()}]`}`)\n }\n}\n","import ms from 'ms'\n\nexport type TimestampFormat = 'none' | 'iso' | 'elapsed'\n\nexport function createTimestampFormatter(format: TimestampFormat) {\n switch (format) {\n case 'none':\n return (_timestamp: Date) => undefined\n case 'iso':\n return (timestamp: Date) => timestamp.toISOString()\n case 'elapsed': {\n let lastTick: number | undefined = undefined\n return (timestamp: Date) => {\n const newTick = timestamp.getTime()\n const result = ms(lastTick === undefined ? 0 : newTick - lastTick)\n lastTick = newTick\n return result\n }\n }\n }\n}\n","import { upperCase } from 'upper-case'\nimport { toLogLevelName } from '../logLevelFn.js'\n\nexport function formatLogLevel(level: number) {\n return `(${upperCase(toLogLevelName(level))})`\n}\n","export * from './createTimestampFormatter.js'\nexport * from './formatLogLevel.js'\nexport * from './plainLogFormatter.js'\n","import { LogEntry } from '../types.js'\nimport { formatLogLevel } from './formatLogLevel.js'\n\nexport function plainLogFormatter({ id, level, args, timestamp }: LogEntry) {\n return [timestamp.toISOString(), id, formatLogLevel(level), ...args]\n}\n","/* istanbul ignore file */\nimport { createConsoleLogReporter } from './console/index.js'\n\ndeclare const StandardLogColor: any\n\nexport function getDefaultReporter() {\n try {\n return StandardLogColor.createColorLogReporter()\n }\n catch (e) {\n return createConsoleLogReporter()\n }\n}\n","import { LogMode } from './types.js'\n\n// istanbul ignore next\nexport function getLogModeFromEnvironment(): LogMode | undefined {\n return undefined\n}\n","import { InvalidId } from './errors.js'\nimport { logLevels } from './logLevel.js'\nimport { getAllLogLevels, toLogLevel, toLogLevelName } from './logLevelFn.js'\nimport { addLogReporterInternal } from './logReporterInternal.js'\nimport { shouldLog } from './shouldLog.js'\nimport { store } from './store.js'\nimport { LogEntry, LogFunction, Logger, LogMethodNames, LogReporter, ReporterFilter } from './types.js'\nimport { LoggerClosure } from './typesInternal.js'\nimport { writeToReporters } from './writeToReporters.js'\n\nexport namespace getLogger {\n export type Options = {\n level?: number,\n writeTo?: LogReporter | ReporterFilter\n }\n}\n\nexport function getLogger<T extends string = LogMethodNames>(\n id: string, options?: getLogger.Options\n): Logger<T | LogMethodNames> {\n validateId(id)\n const loggerClosures = store.value.loggerClosures\n const loggerClosure: any = loggerClosures[id] ||\n (loggerClosures[id] = createLoggerClosure<T | LogMethodNames>(id, options))\n return loggerClosure.logger\n}\n\nfunction validateId(id: string) {\n if (/[`~!#$%^&*()=+[\\]{},|<>?]/.test(id)) throw new InvalidId(id)\n}\n\nfunction createLoggerClosure<T extends string>(id: string, { level, writeTo = () => true }: getLogger.Options = {}): LoggerClosure<T> {\n const filter: (reporterId: string) => boolean = typeof writeTo === 'string'\n ? id => id === writeTo\n : writeTo instanceof RegExp\n ? id => writeTo.test(id)\n : typeof writeTo === 'function'\n ? writeTo\n : (addLogReporterInternal(writeTo), id => id === writeTo.id)\n\n function write(entry: LogEntry) {\n writeToReporters(entry, filter)\n }\n const logger = {\n level,\n write\n } as any\n\n Object.defineProperties(logger, {\n id: { value: id, writable: false },\n count: {\n writable: false,\n value: ((counter) => (...args: any[]) => {\n const level = logLevels.debug\n if (shouldLog(level, logger.level))\n write({\n id,\n level,\n args: [++counter, ...args],\n timestamp: new Date()\n })\n })(0)\n },\n on: {\n writable: false,\n value: (level: number | T, logFn: LogFunction) => {\n const logLevel = typeof level === 'string' ? toLogLevel(level)! : level\n if (shouldLog(logLevel, logger.level)) {\n const methodName = toLogLevelName(logLevel)\n const bindedMethod = logger[methodName].bind(logger)\n const result = logFn(bindedMethod)\n if (result) bindedMethod(result)\n }\n }\n }\n })\n const loggerClosure: LoggerClosure<T> = {\n addMethod(name, level) {\n Object.defineProperty(logger, name, {\n writable: false,\n value: (...args: any[]) => {\n if (shouldLog(level, logger.level)) write({ id, level, args, timestamp: new Date() })\n }\n })\n },\n logger\n }\n\n getAllLogLevels().forEach(({ name, level }) => loggerClosure.addMethod(name, level))\n\n return loggerClosure\n}\n","import { filterKey } from 'type-plus'\nimport { store } from './store.js'\nimport { Logger } from './types.js'\n\n/**\n * Get loggers based on RegExp.\n * @param filter RegExp to look for loggers\n */\nexport function getLoggers(filter: RegExp): Logger<any>[] {\n const { loggerClosures } = store.value\n return filterKey(loggerClosures, id => filter.test(id)).map(k => loggerClosures[k].logger)\n}\n","export * from './captureLogs.js'\nexport * from './config.js'\nexport * from './configForTest.js'\nexport * from './console/index.js'\nexport * from './customLogLevel.js'\nexport * from './errors.js'\nexport * from './formatter/index.js'\nexport * from './getLogger.js'\nexport * from './logLevel.js'\nexport * from './logLevelFn.js'\nexport * from './logReporter.js'\nexport * from './memory/index.js'\nexport * from './shouldLog.js'\nexport * from './suppressLogs.js'\nexport * from './types.js'\nexport * from './utils.js'\n","\nexport const logLevels = {\n /**\n * none: 0\n */\n none: 0,\n /**\n * emergency: 100\n */\n emergency: 100,\n /**\n * alert: 200\n */\n alert: 200,\n /**\n * critical: 300\n */\n critical: 300,\n /**\n * error: 400\n */\n error: 400,\n /**\n * warn: 500\n */\n warn: 500,\n /**\n * notice: 600\n */\n notice: 600,\n /**\n * info: 700\n */\n info: 700,\n /**\n * debug: 800\n */\n debug: 800,\n /**\n * trace: 900\n */\n trace: 900,\n /**\n * planck: Infinity\n * `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n */\n planck: Infinity,\n /**\n * all: Infinity\n */\n all: Infinity\n}\n\n/**\n * @deprecated logLevel is renamed to logLevels\n */\nexport const logLevel = logLevels\n","import { reduceKey } from 'type-plus'\nimport { getCustomLevel, getCustomLevelName, getCustomLevels } from './customLogLevel.js'\nimport { getLoggers } from './getLoggers.js'\nimport { logLevels } from './logLevel.js'\nimport { store } from './store.js'\nimport { Logger } from './types.js'\n\n/**\n * Gets the overall log level.\n */\nexport function getLogLevel() {\n return store.value.logLevel\n}\n\n/**\n * Sets the overall log level.\n * If the logger has its own local log level,\n * that will take precedent.\n */\nexport function setLogLevel(level: number) {\n store.value.logLevel = level\n}\n\n/**\n * Sets log levels on specific loggers.\n * This will override the local log level of the loggers.\n */\nexport function setLogLevels(filter: RegExp, level: number): Logger<any>[] {\n return getLoggers(filter).map(log => {\n log.level = level\n return log\n })\n}\n\nexport function toLogLevel(name: string): number | undefined {\n return getCustomLevel(name) || (logLevels as any)[name.toLowerCase()]\n}\n\nexport function toLogLevelName(level: number) {\n const custom = getCustomLevelName(level)\n if (custom) return custom\n switch (true) {\n case (level <= 100):\n return 'emergency'\n case (level <= 200):\n return 'alert'\n case (level <= 300):\n return 'critical'\n case (level <= 400):\n return 'error'\n case (level <= 500):\n return 'warn'\n case (level <= 600):\n return 'notice'\n case (level <= 700):\n return 'info'\n case (level <= 800):\n return 'debug'\n case (level <= 900):\n return 'trace'\n default:\n return 'planck'\n }\n}\n\nexport function getAllLogLevels() {\n return reduceKey(logLevels, (result, name) => {\n if (name !== 'none' && name !== 'all') result.push({ name, level: logLevels[name] })\n\n return result\n }, getCustomLevels())\n}\n","import { addLogReporterInternal } from './logReporterInternal.js'\nimport { store } from './store.js'\nimport { LogReporter } from './types.js'\nimport { assertLogModeIsNotProduction } from './utils.js'\n\nexport function addLogReporter(reporter: LogReporter) {\n assertLogModeIsNotProduction('addLogReporter')\n addLogReporterInternal(reporter)\n}\n\nexport function getLogReporter(id: string) {\n return store.value.reporters.find(r => r.id === id)\n}\n\nexport function hasConsoleReporter() {\n return store.value.reporters.some(r => r.isConsoleReporter)\n}\n\nexport function getConsoleReporter() {\n return store.value.reporters.find(r => r.isConsoleReporter)\n}\n\nexport function clearLogReporters() {\n assertLogModeIsNotProduction('clearLogReporters')\n store.value.reporters.splice(0, store.value.reporters.length)\n}\n","import { getConsoleReporter } from './logReporter.js'\nimport { store } from './store.js'\nimport { LogReporter } from './types.js'\n\nexport function addLogReporterInternal(reporter: LogReporter) {\n if (reporter.isConsoleReporter) {\n const r = getConsoleReporter()\n if (r && reporter.filter) {\n const f = r.filter\n const f2 = reporter.filter\n if (f) r.filter = entry => f(entry) && f2(entry)\n else r.filter = f2\n }\n }\n else {\n store.value.reporters.push(reporter)\n }\n}\n","import { required } from 'type-plus'\nimport { formatLogLevel } from '../formatter/index.js'\nimport { LogEntry, LogFilter, LogFormatter, LogReporter, LogReporterOptions } from '../types.js'\nimport { assertLogModeIsNotProduction } from '../utils.js'\nimport { toInspectLogEntry } from './toInspectStringForObject.js'\n\nexport type MemoryLogReporter = LogReporter<LogEntry> & {\n logs: LogEntry[],\n /**\n * Gets a simple log message for testing.\n * The message only contains arguments for each log entry.\n */\n getLogMessage(): string,\n getLogMessageWithLevel(): string\n}\n\nexport type MemoryLogFormatter = LogFormatter<LogEntry>\n\nfunction createGetLogMessage() {\n return function getLogMessage(this: { logs: LogEntry[] }) {\n return this.logs.map(toInspectLogEntry)\n .map(log => log.args.join(' '))\n .join('\\n')\n }\n}\n\nexport function toMessageWithLevel(logs: LogEntry[]) {\n return logs.map(toInspectLogEntry)\n .map(log => `${formatLogLevel(log.level)} ${log.args.join(' ')}`)\n .join('\\n')\n // if it has more than this log,\n // we assume it is running under tests,\n // and remove this log to simplify testing.\n .replace(/^\\(WARN\\) already configured for test, ignoring config\\(\\) call\\n/, '')\n}\n\n\nexport function createMemoryLogReporter(options?: LogReporterOptions<LogEntry>): MemoryLogReporter {\n const opt = required({ id: 'memory', formatter: (e: LogEntry) => e }, options)\n const { id } = opt\n let { formatter, filter } = opt\n return {\n id,\n get formatter() {\n return formatter\n },\n set formatter(value: MemoryLogFormatter) {\n assertLogModeIsNotProduction('set Reporter.formatter')\n formatter = value\n },\n get filter() {\n return filter\n },\n set filter(value: LogFilter) {\n assertLogModeIsNotProduction('set Reporter.filter')\n filter = value\n },\n logs: [],\n write(entry) {\n if (filter && !filter(entry)) return\n this.logs.push(formatter(entry))\n },\n getLogMessage: createGetLogMessage(),\n getLogMessageWithLevel() { return toMessageWithLevel(this.logs) }\n }\n}\n","export * from './logEntriesToString.js'\nexport * from './MemoryLogReporter.js'\n","import { plainLogFormatter } from '../formatter/index.js'\nimport { LogEntry } from '../types.js'\nimport { toInspectLogEntry } from './toInspectStringForObject.js'\n\nexport function logEntriesToString(logs: LogEntry[]) {\n return logs.map(toInspectLogEntry).map(plainLogFormatter).join('\\n')\n}\n","import isNode from 'is-node'\nimport { LogEntry } from '../LogEntry.js'\n\nexport const toInspectLogEntry = isNode\n ? (() => {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const inspect = require('util').inspect\n return (e: LogEntry) => (\n e.args = e.args.map(value => typeof value === 'object' && value !== null ? inspect(value) : value),\n e)\n })()\n // istanbul ignore next\n : (e: LogEntry) => e\n","import { store } from './store.js'\nimport { LogLevel } from './types.js'\n\n/**\n * Determines should you log.\n * @param loggerLevel Log level of the logger.\n * It can be undefined which the global log level will be used.\n */\nexport function shouldLog(targetLevel: LogLevel, loggerLevel: LogLevel | undefined) {\n return targetLevel <= (loggerLevel !== undefined ? loggerLevel : store.value.logLevel)\n}\n","import { createStore } from 'global-store'\nimport { getLogModeFromEnvironment } from './getLogModeFromEnvironment.js'\nimport { logLevels } from './logLevel.js'\nimport { LogStore } from './typesInternal.js'\n\nexport const store = createStore<LogStore>({\n moduleName: 'standard-log',\n key: 'e53d0937-f420-40a0-9901-099725fa4a53',\n version: '2.0.0',\n initializer: (current) => {\n const mode = getLogModeFromEnvironment() || 'production'\n return {\n addCustomLogLevelListeners: [],\n configured: false,\n loggerClosures: {},\n redirects: {},\n reporters: [],\n customLevels: {},\n customLevelsReverse: [],\n mode,\n logLevel: logLevels.info,\n ...current\n }\n }\n})\n","import { logLevels } from './logLevel.js'\nimport { Logger } from './types.js'\n\n/**\n * Suppress logging within the code block.\n */\nexport function suppressLogs<R>(block: () => R, log: Logger, ...logs: Logger[]): R\nexport function suppressLogs<R>(block: () => R, ...logs: Logger[]): R {\n const origLevels = logs.map(l => l.level)\n logs.forEach(l => l.level = logLevels.none)\n const result = block()\n logs.forEach((l, i) => l.level = origLevels[i])\n return result\n}\n","\nexport type LogMode = 'development' | 'production' | 'test'\n\nexport type LogMethodNames = 'emergency' | 'alert' | 'critical' | 'error' | 'warn' | 'notice' | 'info' | 'debug' | 'trace' | 'planck'\nexport type LogMethod = (...args: any[]) => void\nexport type LogFunction = ((log: LogMethod) => void) | (() => string)\n\nexport type LogEntry = {\n id: string,\n level: number,\n // args instead of messages because it is `any[]` instead of `string[]`\n args: any[],\n timestamp: Date\n}\n\nexport type Logger<T extends string = LogMethodNames> = {\n readonly id: string,\n /**\n * Logger local log level.\n */\n level?: number,\n /**\n * Logs with an increment counter.\n * This is useful during debugging to check for steps executed.\n */\n count(...args: any[]): void,\n on(level: number | T, logFunction: LogFunction): void,\n /**\n * Write custom log entries.\n * This can be used along with `captureLogs()` to rewrite the logs at a later time.\n */\n write(entry: LogEntry): void\n} & {\n [k in T]: LogMethod\n }\n\nexport type ReporterFilter = string | RegExp | ((reporterId: string) => boolean)\n\n/**\n * Formats a log entry.\n * Depends on the reporter, it can expect a different return type.\n * By default the return type is `any[]` which `console` accepts.\n */\nexport type LogFormatter<T = any[]> = (entry: LogEntry) => T\n\n/**\n * Determines whether the entry should be written.\n */\nexport type LogFilter = (entry: LogEntry) => boolean\n\nexport type LogLevelEntry = { name: string, level: number }\n\nexport type LogLevelListener = (logLevelEntry: LogLevelEntry) => void\n\nexport type LogReporter<T = any> = {\n id: string,\n /**\n * Specifies the formatter to be used by the reporter.\n * Using this you can customize how the reporter writes the log entry.\n * This is readonly in production mode.\n */\n formatter: LogFormatter<T>,\n /**\n * Specifies a filter to determine should the log be written.\n * This is readonly in production mode.\n */\n filter?: LogFilter,\n /**\n * Indicate if this is a console reporter.\n * There is only one console reporter can be present in the system.\n * If a new console reporter is added,\n * it will be used in place of the existing one.\n * However, existing filter will be carried over to ensure logs should not be shown remain not shown.\n * If the new reporter also contains a filter, they will be combined.\n */\n isConsoleReporter?: boolean,\n write(entry: LogEntry): void\n}\n\nexport type LogReporterOptions<T = any> = {\n id?: string,\n /**\n * Specifies the formatter to be used by the reporter.\n * Using this you can customize how the reporter writes the log entry.\n */\n formatter?: LogFormatter<T>,\n /**\n * Specifies a filter to determine should the log be written.\n */\n filter?: LogFilter\n}\n\nexport type LogLevel = number\n","import { ProhibitedDuringProduction } from './errors.js'\nimport { store } from './store.js'\n\n/**\n * Helper function to assert the system is not in production mode.\n */\nexport function assertLogModeIsNotProduction(action: string) {\n if (store.value.mode === 'production') throw new ProhibitedDuringProduction(action)\n}\n","import { config } from './config.js'\nimport { store } from './store.js'\nimport { LogEntry } from './types.js'\n\nexport function writeToReporters(logEntry: LogEntry, filter: (reporterId: string) => boolean) {\n writeToReporters.fn(logEntry, filter)\n}\n\n// istanbul ignore next\nwriteToReporters.fn = (logEntry: LogEntry, filter: (reporterId: string) => boolean) => {\n const store = getConfiguredStore()\n const redirect = store.value.redirects[logEntry.id]\n const reporters = redirect && redirect.length > 0 ? redirect : store.value.reporters\n reporters.filter(r => filter(r.id)).forEach(r => r.write(logEntry!))\n}\n\nfunction getConfiguredStore() {\n if (!store.value.configured) config()\n return store\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.upperCase = exports.localeUpperCase = void 0;\n/**\n * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt\n */\nvar SUPPORTED_LOCALE = {\n tr: {\n regexp: /[\\u0069]/g,\n map: {\n i: \"\\u0130\",\n },\n },\n az: {\n regexp: /[\\u0069]/g,\n map: {\n i: \"\\u0130\",\n },\n },\n lt: {\n regexp: /[\\u0069\\u006A\\u012F]\\u0307|\\u0069\\u0307[\\u0300\\u0301\\u0303]/g,\n map: {\n i̇: \"\\u0049\",\n j̇: \"\\u004A\",\n į̇: \"\\u012E\",\n i̇̀: \"\\u00CC\",\n i̇́: \"\\u00CD\",\n i̇̃: \"\\u0128\",\n },\n },\n};\n/**\n * Localized upper case.\n */\nfunction localeUpperCase(str, locale) {\n var lang = SUPPORTED_LOCALE[locale.toLowerCase()];\n if (lang)\n return upperCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));\n return upperCase(str);\n}\nexports.localeUpperCase = localeUpperCase;\n/**\n * Upper case as a function.\n */\nfunction upperCase(str) {\n return str.toUpperCase();\n}\nexports.upperCase = upperCase;\n//# sourceMappingURL=index.js.map","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n","module.exports = GlobalStore;","\"use strict\";\n/* eslint-disable @typescript-eslint/unbound-method */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAggregateError = exports.ModuleError = exports.IsoError = void 0;\n//#region captureStackTrace polyfill\n// istanbul ignore next\nif (!Error.captureStackTrace) {\n Error.captureStackTrace = function (error) {\n var container = new Error();\n Object.defineProperty(error, 'stack', {\n configurable: true,\n get: function () {\n // Replace property with value for faster future accesses.\n defineStack(this, container.stack);\n return container.stack;\n },\n set: function (stack) { defineStack(error, stack); },\n });\n };\n}\n// istanbul ignore next\nfunction defineStack(target, value) {\n Object.defineProperty(target, 'stack', {\n configurable: true,\n value: value,\n writable: true,\n });\n}\nvar serializers = [];\nvar deserializers = [];\n/**\n * Isomorphic Error that works across physical boundary.\n */\nvar IsoError = /** @class */ (function (_super) {\n __extends(IsoError, _super);\n function IsoError(message, options) {\n var _newTarget = this.constructor;\n var _this = _super.call(this, message) || this;\n /**\n * Name of the error\n */\n Object.defineProperty(_this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n /**\n * Error cause\n */\n Object.defineProperty(_this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n //restore prototype chain\n var actualProto = _newTarget.prototype;\n _this.name = actualProto.constructor.name;\n // istanbul ignore next\n if (Object.setPrototypeOf)\n Object.setPrototypeOf(_this, actualProto);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n else\n _this.__proto__ = actualProto;\n if (options === null || options === void 0 ? void 0 : options.cause)\n _this.cause = toIsoError(options.cause);\n if (options === null || options === void 0 ? void 0 : options.ssf)\n Error.captureStackTrace(_this, options.ssf);\n return _this;\n }\n /**\n * Create an IsoError with additional properties without the need to create a new class.\n * @param props properties of the IsoError\n */\n Object.defineProperty(IsoError, \"create\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (props) {\n var message = props.message, cause = props.cause, rest = __rest(props, [\"message\", \"cause\"]);\n var err = new IsoError(message, { cause: cause, ssf: IsoError.create });\n return Object.assign(err, rest);\n }\n });\n Object.defineProperty(IsoError, \"stringify\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (err) {\n return this.serialize(err);\n }\n });\n Object.defineProperty(IsoError, \"serialize\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (err) {\n return JSON.stringify(this.toSerializable(err));\n }\n });\n /**\n * @type P Additional properties of the IsoError\n * @param text Json representation of a IsoError\n */\n Object.defineProperty(IsoError, \"parse\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (text) {\n return deserialize(IsoError.parse, text);\n }\n });\n /**\n * @type P Additional properties of the IsoError\n * @param text Json representation of a IsoError\n */\n Object.defineProperty(IsoError, \"deserialize\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (text) {\n return deserialize(IsoError.deserialize, text);\n }\n });\n Object.defineProperty(IsoError, \"toSerializable\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (err) {\n return serializers.reduce(function (p, s) { return p || s(err); }, undefined)\n || toSerializableError(err);\n }\n });\n Object.defineProperty(IsoError, \"fromSerializable\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (json) {\n var err = deserializeError(json);\n Error.captureStackTrace(err, IsoError.fromSerializable);\n return err;\n }\n });\n /**\n * returns the error message including the error causes.\n */\n Object.defineProperty(IsoError, \"trace\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (err) {\n return trace(err);\n }\n });\n Object.defineProperty(IsoError, \"addPlugin\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function (_a) {\n var toSerializable = _a.toSerializable, fromSerializable = _a.fromSerializable;\n serializers.unshift(toSerializable);\n deserializers.unshift(fromSerializable);\n }\n });\n Object.defineProperty(IsoError.prototype, \"toString\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function () { return IsoError.serialize(this); }\n });\n Object.defineProperty(IsoError.prototype, \"trace\", {\n enumerable: false,\n configurable: true,\n writable: true,\n value: function () { return IsoError.trace(this); }\n });\n return IsoError;\n}(Error));\nexports.IsoError = IsoError;\nfunction deserialize(fn, text) {\n var json = JSON.parse(text);\n var err = deserializeError(json);\n Error.captureStackTrace(err, fn);\n return err;\n}\nfunction deserializeError(json) {\n var err = undefined;\n for (var _i = 0, deserializers_1 = deserializers; _i < deserializers_1.length; _i++) {\n var d = deserializers_1[_i];\n err = d(json);\n if (err)\n break;\n }\n return err || defaultDeserializeError(json);\n}\nfunction defaultDeserializeError(json) {\n if (json.name === 'AggregateError') {\n var _a = json, message_1 = _a.message, errors = _a.errors, rest_1 = __rest(_a, [\"message\", \"errors\"]);\n // @ts-ignore\n if (global.AggregateError) {\n return Object.assign(new AggregateError(errors, message_1), rest_1);\n }\n else {\n return Object.assign(new Error(message_1), __assign(__assign({}, rest_1), { errors: errors }));\n }\n }\n var _b = json, message = _b.message, cause = _b.cause, rest = __rest(_b, [\"message\", \"cause\"]);\n var causeError = cause ? deserializeError(cause) : undefined;\n if (json.name === 'Error') {\n return Object.assign(new Error(message), causeError ? __assign(__assign({}, rest), { cause: causeError }) : rest);\n }\n // @ts-ignore\n return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);\n}\nfunction toSerializableError(err) {\n if (isAggregateError(err)) {\n return __assign(__assign({}, err), { name: err.constructor.name, message: err.message, errors: err.errors.map(toSerializableError) });\n }\n if (err instanceof Error) {\n var message = err.message, cause = err.cause;\n return cause\n ? __assign(__assign({}, err), { name: err.constructor.name, message: message, cause: toSerializableError(cause) }) : __assign(__assign({}, err), { name: err.constructor.name, message: message });\n }\n return err;\n}\n// NOTE: In this function I have to to Object.assign to keep the err instance and its stack trace.\nfunction toIsoError(err) {\n if (err instanceof IsoError)\n return err;\n // When the error is an internal error from deserialzation,\n // the err.constructor.name is object\n return Object.assign(err, { name: err.constructor.name !== 'Object' ? err.constructor.name : err.name });\n}\nfunction trace(err) {\n var messages = [];\n if (err instanceof ModuleError) {\n messages.push(\"\".concat(err.name, \"(\").concat(err.module, \"): \").concat(err.message));\n }\n else if (err instanceof Error) {\n messages.push(\"\".concat(err.name, \": \").concat(err.message));\n }\n if (isAggregateError(err)) {\n err.errors.forEach(function (e) { return messages.push.apply(messages, trace(e).split('\\n').map(function (s) { return ' ' + s; })); });\n }\n if (err instanceof Error) {\n if (hasCause(err))\n messages.push.apply(messages, trace(err.cause).split('\\n').map(function (s) { return ' ' + s; }));\n }\n else {\n messages.push(typeof err === 'string' ? err : JSON.stringify(err));\n }\n return messages.join('\\n');\n}\nfunction hasCause(x) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return !!x.cause;\n}\n/**\n * An IsoError with a module property.\n */\nvar ModuleError = /** @class */ (function (_super) {\n __extends(ModuleError, _super);\n /**\n * @param module The module that defines this error.\n */\n function ModuleError(module, message, options) {\n var _this = _super.call(this, message, options) || this;\n Object.defineProperty(_this, \"module\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: module\n });\n return _this;\n }\n return ModuleError;\n}(IsoError));\nexports.ModuleError = ModuleError;\nfunction isAggregateError(error) {\n return error instanceof Error && Array.isArray(error.errors);\n}\nexports.isAggregateError = isAggregateError;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.requiredDeep = exports.required = void 0;\nvar unpartial_1 = require(\"unpartial\");\nObject.defineProperty(exports, \"required\", { enumerable: true, get: function () { return unpartial_1.required; } });\nObject.defineProperty(exports, \"requiredDeep\", { enumerable: true, get: function () { return unpartial_1.requiredDeep; } });\n__exportStar(require(\"./array/index.js\"), exports);\n__exportStar(require(\"./assertion/index.js\"), exports);\n__exportStar(require(\"./class/index.js\"), exports);\n__exportStar(require(\"./function/index.js\"), exports);\n__exportStar(require(\"./functional/index.js\"), exports);\n__exportStar(require(\"./JSONTypes.js\"), exports);\n__exportStar(require(\"./math/index.js\"), exports);\n__exportStar(require(\"./nodejs/index.js\"), exports);\n__exportStar(require(\"./nominal-types/index.js\"), exports);\n__exportStar(require(\"./object/index.js\"), exports);\n__exportStar(require(\"./predicates/index.js\"), exports);\n__exportStar(require(\"./promise/index.js\"), exports);\n__exportStar(require(\"./testing/index.js\"), exports);\n__exportStar(require(\"./utils/index.js\"), exports);\n//# sourceMappingURL=index.js.map","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./ts/index.ts\");\n",""],"names":[],"sourceRoot":""}
Binary file