@brianbuie/node-kit 0.15.1 → 0.16.1

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/src/snapshot.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { isObjectLike } from 'lodash-es';
2
2
 
3
3
  /**
4
- * Allows special objects (Error, Headers, Set) to be included in JSON.stringify output.
5
- * Functions are removed
4
+ * @deprecated
5
+ * Allows special objects (Error, Headers, Set) to be included in JSON.stringify output. Functions are removed.
6
+ * ⚠️ This is bad! Only use it for debugging!
6
7
  */
7
8
  export function snapshot(i: unknown, max = 50, depth = 0): any {
8
9
  if (Array.isArray(i)) {
package/src/timeout.ts CHANGED
@@ -1,4 +1,4 @@
1
- export async function timeout(ms: number) {
1
+ export async function timeout(ms: number): Promise<void> {
2
2
  return new Promise(resolve => {
3
3
  setTimeout(resolve, ms);
4
4
  });