@sapphire/plugin-logger 3.0.2-next.fa45c40.0 β†’ 3.0.2-next.fd18e95.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.
package/README.md CHANGED
@@ -106,63 +106,14 @@ We accept donations through Open Collective, Ko-fi, Paypal, Patreon and GitHub S
106
106
  | Patreon | [Click Here](https://sapphirejs.dev/patreon) |
107
107
  | PayPal | [Click Here](https://sapphirejs.dev/paypal) |
108
108
 
109
- ## Contributors ✨
110
-
111
- Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
112
-
113
- <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
114
- <!-- prettier-ignore-start -->
115
- <!-- markdownlint-disable -->
116
- <table>
117
- <tr>
118
- <td align="center"><a href="https://favware.tech/"><img src="https://avatars3.githubusercontent.com/u/4019718?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeroen Claassens</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=favna" title="Code">πŸ’»</a> <a href="#infra-favna" title="Infrastructure (Hosting, Build-Tools, etc)">πŸš‡</a> <a href="#projectManagement-favna" title="Project Management">πŸ“†</a></td>
119
- <td align="center"><a href="https://Quantumlyy.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Documentation">πŸ“–</a></td>
120
- <td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Antonio RomΓ‘n</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kyranet" title="Code">πŸ’»</a></td>
121
- <td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars3.githubusercontent.com/u/17960496?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vlad Frangu</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/pulls?q=is%3Apr+reviewed-by%3Avladfrangu" title="Reviewed Pull Requests">πŸ‘€</a></td>
122
- <td align="center"><a href="https://github.com/apps/depfu"><img src="https://avatars3.githubusercontent.com/in/715?v=4?s=100" width="100px;" alt=""/><br /><sub><b>depfu[bot]</b></sub></a><br /><a href="#maintenance-depfu[bot]" title="Maintenance">🚧</a></td>
123
- <td align="center"><a href="https://github.com/apps/dependabot"><img src="https://avatars0.githubusercontent.com/in/29110?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dependabot[bot]</b></sub></a><br /><a href="#maintenance-dependabot[bot]" title="Maintenance">🚧</a></td>
124
- <td align="center"><a href="https://github.com/apps/allcontributors"><img src="https://avatars0.githubusercontent.com/in/23186?v=4?s=100" width="100px;" alt=""/><br /><sub><b>allcontributors[bot]</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=allcontributors[bot]" title="Documentation">πŸ“–</a></td>
125
- </tr>
126
- <tr>
127
- <td align="center"><a href="https://github.com/Nytelife26"><img src="https://avatars1.githubusercontent.com/u/22531310?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tyler J Russell</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Nytelife26" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Nytelife26" title="Documentation">πŸ“–</a></td>
128
- <td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Stitch07" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/issues?q=author%3AStitch07" title="Bug reports">πŸ›</a></td>
129
- <td align="center"><a href="https://github.com/PlatinBae"><img src="https://avatars.githubusercontent.com/u/50950966?v=4?s=100" width="100px;" alt=""/><br /><sub><b>PlatinBae</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=PlatinBae" title="Documentation">πŸ“–</a></td>
130
- <td align="center"><a href="https://kaname.netlify.app"><img src="https://avatars.githubusercontent.com/u/56084970?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaname</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Documentation">πŸ“–</a></td>
131
- <td align="center"><a href="https://github.com/noftaly"><img src="https://avatars.githubusercontent.com/u/34779161?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliot</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=noftaly" title="Code">πŸ’»</a></td>
132
- <td align="center"><a href="https://github.com/Lioness100"><img src="https://avatars.githubusercontent.com/u/65814829?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lioness100</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Lioness100" title="Code">πŸ’»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Lioness100" title="Documentation">πŸ“–</a></td>
133
- <td align="center"><a href="https://github.com/UndiedGamer"><img src="https://avatars.githubusercontent.com/u/84702365?v=4?s=100" width="100px;" alt=""/><br /><sub><b>UndiedGamer</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=UndiedGamer" title="Code">πŸ’»</a></td>
134
- </tr>
135
- <tr>
136
- <td align="center"><a href="https://github.com/feralheart"><img src="https://avatars.githubusercontent.com/u/3487559?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Feralheart</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=feralheart" title="Code">πŸ’»</a></td>
137
- <td align="center"><a href="https://jurien.dev/"><img src="https://avatars.githubusercontent.com/u/5418114?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jurien Hamaker</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=jurienhamaker" title="Code">πŸ’»</a></td>
138
- <td align="center"><a href="https://github.com/apps/renovate"><img src="https://avatars.githubusercontent.com/in/2740?v=4?s=100" width="100px;" alt=""/><br /><sub><b>renovate[bot]</b></sub></a><br /><a href="#maintenance-renovate[bot]" title="Maintenance">🚧</a></td>
139
- <td align="center"><a href="https://renovate.whitesourcesoftware.com/"><img src="https://avatars.githubusercontent.com/u/25180681?v=4?s=100" width="100px;" alt=""/><br /><sub><b>WhiteSource Renovate</b></sub></a><br /><a href="#maintenance-renovate-bot" title="Maintenance">🚧</a></td>
140
- <td align="center"><a href="https://c43721.github.io/"><img src="https://avatars.githubusercontent.com/u/55610086?v=4?s=100" width="100px;" alt=""/><br /><sub><b>c43721</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=c43721" title="Code">πŸ’»</a></td>
141
- <td align="center"><a href="https://megatank58.me/"><img src="https://avatars.githubusercontent.com/u/51410502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>megatank58</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=megatank58" title="Code">πŸ’»</a></td>
142
- <td align="center"><a href="https://fc5570.me/"><img src="https://avatars.githubusercontent.com/u/68158483?v=4?s=100" width="100px;" alt=""/><br /><sub><b>FC</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=FC5570" title="Code">πŸ’»</a></td>
143
- </tr>
144
- <tr>
145
- <td align="center"><a href="https://github.com/Suyashtnt"><img src="https://avatars.githubusercontent.com/u/45307955?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Just a Badly Drawn TABS Dude</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Suyashtnt" title="Code">πŸ’»</a></td>
146
- <td align="center"><a href="https://newtt.me/"><img src="https://avatars.githubusercontent.com/u/19301186?v=4?s=100" width="100px;" alt=""/><br /><sub><b>newt :D</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=newtykins" title="Code">πŸ’»</a></td>
147
- <td align="center"><a href="https://linktr.ee/mzato0001"><img src="https://avatars.githubusercontent.com/u/62367547?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mzato</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Mzato0001" title="Code">πŸ’»</a></td>
148
- <td align="center"><a href="https://github.com/MajesticString"><img src="https://avatars.githubusercontent.com/u/66224939?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Harry Allen</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=MajesticString" title="Code">πŸ’»</a></td>
149
- <td align="center"><a href="https://github.com/jczstudios"><img src="https://avatars.githubusercontent.com/u/17862924?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Julian</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=jczstudios" title="Code">πŸ’»</a></td>
150
- <td align="center"><a href="https://github.com/KrishAgarwal2811"><img src="https://avatars.githubusercontent.com/u/68506145?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Krish</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=KrishAgarwal2811" title="Code">πŸ’»</a></td>
151
- <td align="center"><a href="https://github.com/imranbarbhuiya"><img src="https://avatars.githubusercontent.com/u/74945038?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Parbez</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=imranbarbhuiya" title="Code">πŸ’»</a></td>
152
- </tr>
153
- <tr>
154
- <td align="center"><a href="https://github.com/ricardooow"><img src="https://avatars.githubusercontent.com/u/28981399?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ricardooow</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=ricardooow" title="Code">πŸ’»</a></td>
155
- <td align="center"><a href="https://shadownova.dev/"><img src="https://avatars.githubusercontent.com/u/46537907?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hezekiah Hendry</b></sub></a><br /><a href="#tool-RealShadowNova" title="Tools">πŸ”§</a></td>
156
- <td align="center"><a href="https://github.com/yuansheng1549"><img src="https://avatars.githubusercontent.com/u/75909450?v=4?s=100" width="100px;" alt=""/><br /><sub><b>yuansheng1549</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=yuansheng1549" title="Code">πŸ’»</a></td>
157
- <td align="center"><a href="https://github.com/BenSegal855"><img src="https://avatars.githubusercontent.com/u/34194692?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=BenSegal855" title="Code">πŸ’»</a></td>
158
- <td align="center"><a href="https://github.com/r-priyam"><img src="https://avatars.githubusercontent.com/u/50884372?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priyam</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=r-priyam" title="Code">πŸ’»</a></td>
159
- <td align="center"><a href="https://github.com/Arcadia148"><img src="https://avatars.githubusercontent.com/u/50211159?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arcadia148</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Arcadia148" title="Code">πŸ’»</a></td>
160
- </tr>
161
- </table>
162
-
163
- <!-- markdownlint-restore -->
164
- <!-- prettier-ignore-end -->
165
-
166
- <!-- ALL-CONTRIBUTORS-LIST:END -->
167
-
168
- This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
109
+ ## Contributors
110
+
111
+ Please make sure to read the [Contributing Guide][contributing] before making a pull request.
112
+
113
+ Thank you to all the people who already contributed to Sapphire!
114
+
115
+ <a href="https://github.com/sapphiredev/plugins/graphs/contributors">
116
+ <img src="https://contrib.rocks/image?repo=sapphiredev/plugins" />
117
+ </a>
118
+
119
+ [contributing]: https://github.com/sapphiredev/.github/blob/main/.github/CONTRIBUTING.md
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { Logger as BuiltinLogger, LogLevel } from '@sapphire/framework';
4
3
  import { LoggerLevel, LoggerLevelOptions } from './Logg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,MAAM,GAEjB;IAED;;;OAGG;IACH,WAAkB,OAAO,YAExB;IAED,OAAO,CAAC,MAAM,CAAC,eAAe;IAY9B,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAQjC;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;IAE5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;IAE5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAEnC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC1B"}
@@ -12,7 +12,7 @@ const LoggerLevel_1 = require("./LoggerLevel");
12
12
  */
13
13
  class Logger extends framework_1.Logger {
14
14
  constructor(options = {}) {
15
- super(options.level ?? 30 /* LogLevel.Info */);
15
+ super(options.level ?? framework_1.LogLevel.Info);
16
16
  /**
17
17
  * The console this writes to.
18
18
  * @since 1.0.0
@@ -67,7 +67,7 @@ class Logger extends framework_1.Logger {
67
67
  if (level < this.level)
68
68
  return;
69
69
  const method = this.levels.get(level) ?? 'log';
70
- const formatter = this.formats.get(level) ?? this.formats.get(100 /* LogLevel.None */);
70
+ const formatter = this.formats.get(level) ?? this.formats.get(framework_1.LogLevel.None);
71
71
  this.console[method](formatter.run(this.preprocess(values)));
72
72
  }
73
73
  /**
@@ -91,13 +91,13 @@ class Logger extends framework_1.Logger {
91
91
  }
92
92
  static createFormatMap(options = {}, defaults = options.none ?? {}) {
93
93
  return new Map([
94
- [10 /* LogLevel.Trace */, Logger.ensureDefaultLevel(options.trace, defaults, colorette_1.gray, 'TRACE')],
95
- [20 /* LogLevel.Debug */, Logger.ensureDefaultLevel(options.debug, defaults, colorette_1.magenta, 'DEBUG')],
96
- [30 /* LogLevel.Info */, Logger.ensureDefaultLevel(options.info, defaults, colorette_1.cyan, 'INFO')],
97
- [40 /* LogLevel.Warn */, Logger.ensureDefaultLevel(options.warn, defaults, colorette_1.yellow, 'WARN')],
98
- [50 /* LogLevel.Error */, Logger.ensureDefaultLevel(options.error, defaults, colorette_1.red, 'ERROR')],
99
- [60 /* LogLevel.Fatal */, Logger.ensureDefaultLevel(options.fatal, defaults, colorette_1.bgRed, 'FATAL')],
100
- [100 /* LogLevel.None */, Logger.ensureDefaultLevel(options.none, defaults, colorette_1.white, '')]
94
+ [framework_1.LogLevel.Trace, Logger.ensureDefaultLevel(options.trace, defaults, colorette_1.gray, 'TRACE')],
95
+ [framework_1.LogLevel.Debug, Logger.ensureDefaultLevel(options.debug, defaults, colorette_1.magenta, 'DEBUG')],
96
+ [framework_1.LogLevel.Info, Logger.ensureDefaultLevel(options.info, defaults, colorette_1.cyan, 'INFO')],
97
+ [framework_1.LogLevel.Warn, Logger.ensureDefaultLevel(options.warn, defaults, colorette_1.yellow, 'WARN')],
98
+ [framework_1.LogLevel.Error, Logger.ensureDefaultLevel(options.error, defaults, colorette_1.red, 'ERROR')],
99
+ [framework_1.LogLevel.Fatal, Logger.ensureDefaultLevel(options.fatal, defaults, colorette_1.bgRed, 'FATAL')],
100
+ [framework_1.LogLevel.None, Logger.ensureDefaultLevel(options.none, defaults, colorette_1.white, '')]
101
101
  ]);
102
102
  }
103
103
  static ensureDefaultLevel(options, defaults, color, name) {
@@ -1 +1 @@
1
- {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../src/lib/Logger.ts"],"names":[],"mappings":";;;AAAA,mDAAoF;AACpF,yCAAoG;AACpG,qCAAkC;AAClC,+BAA+C;AAC/C,+CAAgE;AAEhE;;;GAGG;AACH,MAAa,MAAO,SAAQ,kBAAa;IAyBxC,YAAmB,UAAyB,EAAE;QAC7C,KAAK,CAAC,OAAO,CAAC,KAAK,0BAAiB,CAAC,CAAC;QAzBvC;;;WAGG;QACH;;;;;WAAiC;QAEjC;;;WAGG;QACH;;;;;WAAoD;QAEpD;;;WAGG;QACH;;;;;WAA6B;QAE7B;;;WAGG;QACH;;;;;WAA8B;QAK7B,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/F,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;QAC7E,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,KAAe,EAAE,GAAG,MAA0B;QAC1D,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK;YAAE,OAAO;QAE/B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;QAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC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AAE,OAAO,CAAC,CAAC;YAClF,CAAC,oBAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,iBAAK,EAAE,OAAO,CAAC,CAAC;YACpF,CAAC,oBAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,iBAAK,EAAE,EAAE,CAAC,CAAC;SAC7E,CAAC,CAAC;IACJ,CAAC;IAEO,MAAM,CAAC,kBAAkB,CAAC,OAAuC,EAAE,QAA4B,EAAE,KAAY,EAAE,IAAY;QAClI,IAAI,OAAO;YAAE,OAAO,IAAI,yBAAW,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO,IAAI,yBAAW,CAAC;YACtB,GAAG,QAAQ;YACX,SAAS,EAAE,QAAQ,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;YACxF,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;SAC5D,CAAC,CAAC;IACJ,CAAC;CACD;AA1FD,wBA0FC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-logger",
3
- "version": "3.0.2-next.fa45c40.0",
3
+ "version": "3.0.2-next.fd18e95.0",
4
4
  "description": "Plugin for @sapphire/framework to have pretty console output",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
@@ -73,10 +73,10 @@
73
73
  "access": "public"
74
74
  },
75
75
  "devDependencies": {
76
- "@favware/cliff-jumper": "^1.9.0",
76
+ "@favware/cliff-jumper": "^1.10.0",
77
77
  "gen-esm-wrapper": "^1.1.3",
78
- "typedoc": "^0.23.22",
79
- "typedoc-json-parser": "^7.0.2",
78
+ "typedoc": "^0.23.24",
79
+ "typedoc-json-parser": "^7.1.0",
80
80
  "typescript": "^4.9.4"
81
81
  }
82
82
  }