windmill-cli 1.614.1 → 1.615.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 (135) hide show
  1. package/esm/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.9}/colors.js +14 -14
  2. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_create_walk_entry.js +1 -1
  3. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_is_same_path.js +1 -1
  4. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_is_subdir.js +1 -1
  5. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_to_path_string.js +1 -1
  6. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/copy.js +1 -1
  7. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/empty_dir.js +1 -1
  8. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_dir.js +1 -1
  9. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_file.js +1 -1
  10. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_link.js +1 -1
  11. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_symlink.js +1 -1
  12. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/eol.js +1 -1
  13. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/exists.js +1 -1
  14. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/expand_glob.js +1 -1
  15. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/mod.js +1 -1
  16. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/move.js +1 -1
  17. package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/walk.js +5 -5
  18. package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
  19. package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  20. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_chars.js +1 -1
  21. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_dumper_state.js +46 -50
  22. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_loader_state.js +250 -273
  23. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_schema.js +1 -1
  24. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/bool.js +1 -1
  25. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/float.js +1 -1
  26. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/int.js +1 -1
  27. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/map.js +1 -1
  28. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/merge.js +1 -1
  29. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/nil.js +1 -1
  30. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/omap.js +1 -1
  31. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/pairs.js +1 -1
  32. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/regexp.js +1 -1
  33. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/seq.js +1 -1
  34. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/set.js +1 -1
  35. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/str.js +1 -1
  36. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/timestamp.js +1 -1
  37. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/undefined.js +1 -1
  38. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type.js +1 -1
  39. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_utils.js +1 -1
  40. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/mod.js +1 -1
  41. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/parse.js +1 -1
  42. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/stringify.js +1 -1
  43. package/esm/deps.js +3 -3
  44. package/esm/gen/core/OpenAPI.js +1 -1
  45. package/esm/src/main.js +1 -1
  46. package/package.json +2 -2
  47. package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.9}/colors.d.ts +12 -12
  48. package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.9}/colors.d.ts.map +1 -1
  49. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_create_walk_entry.d.ts.map +1 -1
  50. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_get_file_info_type.d.ts.map +1 -1
  51. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_is_same_path.d.ts.map +1 -1
  52. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_is_subdir.d.ts.map +1 -1
  53. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_to_path_string.d.ts.map +1 -1
  54. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/copy.d.ts.map +1 -1
  55. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/empty_dir.d.ts.map +1 -1
  56. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_dir.d.ts.map +1 -1
  57. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_file.d.ts.map +1 -1
  58. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_link.d.ts.map +1 -1
  59. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_symlink.d.ts.map +1 -1
  60. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/eol.d.ts.map +1 -1
  61. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/exists.d.ts.map +1 -1
  62. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/expand_glob.d.ts.map +1 -1
  63. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/mod.d.ts.map +1 -1
  64. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/move.d.ts.map +1 -1
  65. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/walk.d.ts +4 -4
  66. package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/walk.d.ts.map +1 -1
  67. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_chars.d.ts.map +1 -1
  68. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_dumper_state.d.ts.map +1 -1
  69. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_loader_state.d.ts +21 -18
  70. package/types/deps/jsr.io/@std/yaml/1.0.11/_loader_state.d.ts.map +1 -0
  71. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_schema.d.ts.map +1 -1
  72. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/binary.d.ts.map +1 -1
  73. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/bool.d.ts.map +1 -1
  74. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/float.d.ts.map +1 -1
  75. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/int.d.ts.map +1 -1
  76. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/map.d.ts.map +1 -1
  77. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/merge.d.ts.map +1 -1
  78. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/nil.d.ts.map +1 -1
  79. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/omap.d.ts.map +1 -1
  80. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/pairs.d.ts.map +1 -1
  81. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/regexp.d.ts.map +1 -1
  82. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/seq.d.ts.map +1 -1
  83. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/set.d.ts.map +1 -1
  84. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/str.d.ts.map +1 -1
  85. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/timestamp.d.ts.map +1 -1
  86. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/undefined.d.ts.map +1 -1
  87. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type.d.ts.map +1 -1
  88. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_utils.d.ts.map +1 -1
  89. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/mod.d.ts.map +1 -1
  90. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/parse.d.ts.map +1 -1
  91. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/stringify.d.ts.map +1 -1
  92. package/types/deps.d.ts +3 -3
  93. package/types/src/main.d.ts +1 -1
  94. package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
  95. /package/esm/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_get_file_info_type.js +0 -0
  96. /package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/binary.js +0 -0
  97. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_create_walk_entry.d.ts +0 -0
  98. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_get_file_info_type.d.ts +0 -0
  99. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_is_same_path.d.ts +0 -0
  100. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_is_subdir.d.ts +0 -0
  101. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/_to_path_string.d.ts +0 -0
  102. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/copy.d.ts +0 -0
  103. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/empty_dir.d.ts +0 -0
  104. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_dir.d.ts +0 -0
  105. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_file.d.ts +0 -0
  106. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_link.d.ts +0 -0
  107. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/ensure_symlink.d.ts +0 -0
  108. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/eol.d.ts +0 -0
  109. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/exists.d.ts +0 -0
  110. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/expand_glob.d.ts +0 -0
  111. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/mod.d.ts +0 -0
  112. /package/types/deps/jsr.io/@std/fs/{1.0.21 → 1.0.22}/move.d.ts +0 -0
  113. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_chars.d.ts +0 -0
  114. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_dumper_state.d.ts +0 -0
  115. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_schema.d.ts +0 -0
  116. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/binary.d.ts +0 -0
  117. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/bool.d.ts +0 -0
  118. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/float.d.ts +0 -0
  119. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/int.d.ts +0 -0
  120. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/map.d.ts +0 -0
  121. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/merge.d.ts +0 -0
  122. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/nil.d.ts +0 -0
  123. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/omap.d.ts +0 -0
  124. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/pairs.d.ts +0 -0
  125. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/regexp.d.ts +0 -0
  126. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/seq.d.ts +0 -0
  127. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/set.d.ts +0 -0
  128. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/str.d.ts +0 -0
  129. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/timestamp.d.ts +0 -0
  130. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type/undefined.d.ts +0 -0
  131. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_type.d.ts +0 -0
  132. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/_utils.d.ts +0 -0
  133. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/mod.d.ts +0 -0
  134. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/parse.d.ts +0 -0
  135. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.11}/stringify.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  // A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
4
4
  // on npm.
@@ -154,6 +154,9 @@ export function bold(str) {
154
154
  /**
155
155
  * The text emits only a small amount of light.
156
156
  *
157
+ * Warning: Not all terminal emulators support `dim`.
158
+ * For compatibility across all terminals, use {@linkcode gray} or {@linkcode brightBlack} instead.
159
+ *
157
160
  * @example Usage
158
161
  * ```ts no-assert
159
162
  * import { dim } from "@std/fmt/colors";
@@ -163,9 +166,6 @@ export function bold(str) {
163
166
  *
164
167
  * @param str The text to dim
165
168
  * @returns The dimmed text
166
- *
167
- * Warning: Not all terminal emulators support `dim`.
168
- * For compatibility across all terminals, use {@linkcode gray} or {@linkcode brightBlack} instead.
169
169
  */
170
170
  export function dim(str) {
171
171
  return run(str, code([2], 22));
@@ -603,7 +603,7 @@ export function bgBlue(str) {
603
603
  return run(str, code([44], 49));
604
604
  }
605
605
  /**
606
- * Set background color to magenta.
606
+ * Set background color to magenta.
607
607
  *
608
608
  * @example Usage
609
609
  * ```ts no-assert
@@ -780,7 +780,7 @@ export function bgBrightWhite(str) {
780
780
  }
781
781
  /* Special Color Sequences */
782
782
  /**
783
- * Clam and truncate color codes
783
+ * Clamp and truncate color codes
784
784
  * @param n The input number
785
785
  * @param max The number to truncate to
786
786
  * @param min The number to truncate from
@@ -799,7 +799,7 @@ function clampAndTruncate(n, max = 255, min = 0) {
799
799
  * console.log(rgb8("Hello, world!", 42));
800
800
  * ```
801
801
  *
802
- * @param str The text color to apply paletted 8bit colors to
802
+ * @param str The text to color
803
803
  * @param color The color code
804
804
  * @returns The text with paletted 8bit color
805
805
  */
@@ -817,8 +817,8 @@ export function rgb8(str, color) {
817
817
  * console.log(bgRgb8("Hello, world!", 42));
818
818
  * ```
819
819
  *
820
- * @param str The text color to apply paletted 8bit background colors to
821
- * @param color code
820
+ * @param str The text to set the background color of
821
+ * @param color The color code
822
822
  * @returns The text with paletted 8bit background color
823
823
  */
824
824
  export function bgRgb8(str, color) {
@@ -829,14 +829,14 @@ export function bgRgb8(str, color) {
829
829
  * `color` can be a number in range `0x000000` to `0xffffff` or
830
830
  * an `Rgb`.
831
831
  *
832
- * @example To produce the color magenta:
832
+ * @example Usage
833
833
  * ```ts no-assert
834
834
  * import { rgb24 } from "@std/fmt/colors";
835
835
  *
836
836
  * rgb24("foo", 0xff00ff);
837
837
  * rgb24("foo", {r: 255, g: 0, b: 255});
838
838
  * ```
839
- * @param str The text color to apply 24bit rgb to
839
+ * @param str The text to color
840
840
  * @param color The color code
841
841
  * @returns The text with 24bit rgb color
842
842
  */
@@ -857,16 +857,16 @@ export function rgb24(str, color) {
857
857
  * `color` can be a number in range `0x000000` to `0xffffff` or
858
858
  * an `Rgb`.
859
859
  *
860
- * @example To produce the color magenta:
860
+ * @example Usage
861
861
  * ```ts no-assert
862
862
  * import { bgRgb24 } from "@std/fmt/colors";
863
863
  *
864
864
  * bgRgb24("foo", 0xff00ff);
865
865
  * bgRgb24("foo", {r: 255, g: 0, b: 255});
866
866
  * ```
867
- * @param str The text color to apply 24bit rgb to
867
+ * @param str The text to set the background color of
868
868
  * @param color The color code
869
- * @returns The text with 24bit rgb color
869
+ * @returns The text with 24bit rgb background color
870
870
  */
871
871
  export function bgRgb24(str, color) {
872
872
  if (typeof color === "number") {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  import * as dntShim from "../../../../../_dnt.shims.js";
4
4
  import { basename } from "../../path/1.1.4/basename.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  import { resolve } from "../../path/1.1.4/resolve.js";
4
4
  import { toPathString } from "./_to_path_string.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  import { resolve } from "../../path/1.1.4/resolve.js";
4
4
  import { SEPARATOR } from "../../path/1.1.4/constants.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  import { fromFileUrl } from "../../path/1.1.4/from_file_url.js";
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { basename } from "../../path/1.1.4/basename.js";
4
4
  import { join } from "../../path/1.1.4/join.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { join } from "../../path/1.1.4/join.js";
4
4
  import { toPathString } from "./_to_path_string.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { getFileInfoType } from "./_get_file_info_type.js";
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { dirname } from "../../path/1.1.4/dirname.js";
4
4
  import { ensureDir, ensureDirSync } from "./ensure_dir.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { dirname } from "../../path/1.1.4/dirname.js";
4
4
  import { ensureDir, ensureDirSync } from "./ensure_dir.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { dirname } from "../../path/1.1.4/dirname.js";
4
4
  import { resolve } from "../../path/1.1.4/resolve.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  /** End-of-line character for POSIX platforms such as macOS and Linux. */
4
4
  import * as dntShim from "../../../../../_dnt.shims.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  /** Options for {@linkcode exists} and {@linkcode existsSync.} */
3
3
  import * as dntShim from "../../../../../_dnt.shims.js";
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { globToRegExp } from "../../path/1.1.4/glob_to_regexp.js";
4
4
  import { joinGlobs } from "../../path/1.1.4/join_globs.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  /**
3
3
  * Helpers for working with the filesystem.
4
4
  *
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  import { isSubdir } from "./_is_subdir.js";
4
4
  import { isSamePath } from "./_is_same_path.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // Documentation and interface for walk were adapted from Go
3
3
  // https://golang.org/pkg/path/filepath/#Walk
4
4
  // Copyright 2009 The Go Authors. All rights reserved. BSD license.
@@ -321,7 +321,7 @@ function include(path, exts, match, skip) {
321
321
  *
322
322
  * @example Filter by regular expressions
323
323
  *
324
- * Setting the `match` option to `[/.s/]` will only include entries with the
324
+ * Setting the `match` option to `[/s/]` will only include entries with the
325
325
  * letter `s` in their name.
326
326
  *
327
327
  * File structure:
@@ -348,7 +348,7 @@ function include(path, exts, match, skip) {
348
348
  *
349
349
  * @example Exclude by regular expressions
350
350
  *
351
- * Setting the `skip` option to `[/.s/]` will exclude entries with the letter
351
+ * Setting the `skip` option to `[/s/]` will exclude entries with the letter
352
352
  * `s` in their name.
353
353
  *
354
354
  * File structure:
@@ -733,7 +733,7 @@ export async function* walk(root, options) {
733
733
  *
734
734
  * @example Filter by regular expressions
735
735
  *
736
- * Setting the `match` option to `[/.s/]` will only include entries with the
736
+ * Setting the `match` option to `[/s/]` will only include entries with the
737
737
  * letter `s` in their name.
738
738
  *
739
739
  * File structure:
@@ -760,7 +760,7 @@ export async function* walk(root, options) {
760
760
  *
761
761
  * @example Exclude by regular expressions
762
762
  *
763
- * Setting the `skip` option to `[/.s/]` will exclude entries with the letter
763
+ * Setting the `skip` option to `[/s/]` will exclude entries with the letter
764
764
  * `s` in their name.
765
765
  *
766
766
  * File structure:
@@ -13,7 +13,7 @@ var _ConsoleHandler_useColors;
13
13
  // Copyright 2018-2025 the Deno authors. MIT license.
14
14
  // This module is browser compatible.
15
15
  import { LogLevels } from "./levels.js";
16
- import { blue, bold, red, yellow } from "../../fmt/1.0.8/colors.js";
16
+ import { blue, bold, red, yellow } from "../../fmt/1.0.9/colors.js";
17
17
  import { BaseHandler } from "./base_handler.js";
18
18
  function applyColors(msg, level) {
19
19
  switch (level) {
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
13
13
  // Copyright 2018-2025 the Deno authors. MIT license.
14
14
  import * as dntShim from "../../../../../_dnt.shims.js";
15
- import { existsSync } from "../../fs/1.0.21/exists.js";
15
+ import { existsSync } from "../../fs/1.0.22/exists.js";
16
16
  import { FileHandler } from "./file_handler.js";
17
17
  import { encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openOptionsSymbol, } from "./_file_handler_symbols.js";
18
18
  /**
@@ -1,7 +1,7 @@
1
1
  // Ported from js-yaml v3.13.1:
2
2
  // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
3
  // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
- // Copyright 2018-2025 the Deno authors. MIT license.
4
+ // Copyright 2018-2026 the Deno authors. MIT license.
5
5
  export const BOM = 0xfeff; /* BOM */
6
6
  export const TAB = 0x09; /* Tab */
7
7
  export const LINE_FEED = 0x0a; /* LF */
@@ -1,7 +1,7 @@
1
1
  // Ported from js-yaml v3.13.1:
2
2
  // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
3
  // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
- // Copyright 2018-2025 the Deno authors. MIT license.
4
+ // Copyright 2018-2026 the Deno authors. MIT license.
5
5
  import { AMPERSAND, ASTERISK, BOM, COLON, COMMA, COMMERCIAL_AT, DOUBLE_QUOTE, EXCLAMATION, GRAVE_ACCENT, GREATER_THAN, isWhiteSpace, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LINE_FEED, MINUS, PERCENT, QUESTION, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SHARP, SINGLE_QUOTE, VERTICAL_LINE, } from "./_chars.js";
6
6
  import { DEFAULT_SCHEMA } from "./_schema.js";
7
7
  import { isObject } from "./_utils.js";
@@ -28,7 +28,7 @@ const ESCAPE_SEQUENCES = new Map([
28
28
  [0x2028, "\\L"],
29
29
  [0x2029, "\\P"],
30
30
  ]);
31
- const DEPRECATED_BOOLEANS_SYNTAX = [
31
+ const DEPRECATED_BOOLEANS_SYNTAX = new Set([
32
32
  "y",
33
33
  "Y",
34
34
  "yes",
@@ -45,7 +45,7 @@ const DEPRECATED_BOOLEANS_SYNTAX = [
45
45
  "off",
46
46
  "Off",
47
47
  "OFF",
48
- ];
48
+ ]);
49
49
  /**
50
50
  * Encodes a Unicode character code point as a hexadecimal escape sequence.
51
51
  */
@@ -315,18 +315,28 @@ function blockHeader(string, indentPerLevel) {
315
315
  const chomp = keep ? "+" : clip ? "" : "-";
316
316
  return `${indentIndicator}${chomp}\n`;
317
317
  }
318
- function inspectNode(object, objects, duplicateObjects) {
319
- if (!isObject(object))
320
- return;
321
- if (objects.has(object)) {
322
- duplicateObjects.add(object);
323
- return;
324
- }
325
- objects.add(object);
326
- const entries = Array.isArray(object) ? object : Object.values(object);
327
- for (const value of entries) {
328
- inspectNode(value, objects, duplicateObjects);
318
+ function getDuplicateObjects(root) {
319
+ const seenObjects = new Set();
320
+ const duplicateObjects = new Set();
321
+ const queue = [root];
322
+ for (let i = 0; i < queue.length; i++) {
323
+ const value = queue[i];
324
+ if (!isObject(value))
325
+ continue;
326
+ if (seenObjects.has(value)) {
327
+ duplicateObjects.add(value);
328
+ continue;
329
+ }
330
+ seenObjects.add(value);
331
+ const children = Array.isArray(value) ? value : Object.values(value);
332
+ queue.push(...children);
329
333
  }
334
+ return [...duplicateObjects];
335
+ }
336
+ function stringifyValue(value, tag) {
337
+ if (tag !== null && tag !== "?")
338
+ return `!<${tag}> ${value}`;
339
+ return value;
330
340
  }
331
341
  export class DumperState {
332
342
  constructor({ schema = DEFAULT_SCHEMA, indent = 2, arrayIndent = true, skipInvalid = false, flowLevel = -1, styles = undefined, sortKeys = false, lineWidth = 80, useAnchors = true, compatMode = true, condenseFlow = false, quoteStyle = "'", }) {
@@ -445,7 +455,7 @@ export class DumperState {
445
455
  if (string.length === 0) {
446
456
  return "''";
447
457
  }
448
- if (this.compatMode && DEPRECATED_BOOLEANS_SYNTAX.includes(string)) {
458
+ if (this.compatMode && DEPRECATED_BOOLEANS_SYNTAX.has(string)) {
449
459
  return `'${string}'`;
450
460
  }
451
461
  const indent = this.indent * Math.max(1, level); // no 0-indent scalars
@@ -637,8 +647,9 @@ export class DumperState {
637
647
  if (tag !== "?") {
638
648
  value = this.stringifyScalar(value, { level, isKey });
639
649
  }
650
+ return stringifyValue(value, tag);
640
651
  }
641
- else if (isObject(value)) {
652
+ if (isObject(value)) {
642
653
  const duplicateIndex = this.duplicates.indexOf(value);
643
654
  const duplicate = duplicateIndex !== -1;
644
655
  if (duplicate) {
@@ -658,48 +669,33 @@ export class DumperState {
658
669
  level: arrayLevel,
659
670
  compact,
660
671
  });
661
- if (duplicate) {
672
+ if (duplicate)
662
673
  value = `&ref_${duplicateIndex}${value}`;
663
- }
664
- }
665
- else {
666
- value = this.stringifyFlowSequence(value, { level: arrayLevel });
667
- if (duplicate) {
668
- value = `&ref_${duplicateIndex} ${value}`;
669
- }
674
+ return stringifyValue(value, tag);
670
675
  }
676
+ value = this.stringifyFlowSequence(value, { level: arrayLevel });
677
+ if (duplicate)
678
+ value = `&ref_${duplicateIndex} ${value}`;
679
+ return stringifyValue(value, tag);
671
680
  }
672
- else {
673
- if (block && Object.keys(value).length !== 0) {
674
- value = this.stringifyBlockMapping(value, { tag, level, compact });
675
- if (duplicate) {
676
- value = `&ref_${duplicateIndex}${value}`;
677
- }
678
- }
679
- else {
680
- value = this.stringifyFlowMapping(value, { level });
681
- if (duplicate) {
682
- value = `&ref_${duplicateIndex} ${value}`;
683
- }
684
- }
681
+ if (block && Object.keys(value).length !== 0) {
682
+ value = this.stringifyBlockMapping(value, { tag, level, compact });
683
+ if (duplicate)
684
+ value = `&ref_${duplicateIndex}${value}`;
685
+ return stringifyValue(value, tag);
685
686
  }
687
+ value = this.stringifyFlowMapping(value, { level });
688
+ if (duplicate)
689
+ value = `&ref_${duplicateIndex} ${value}`;
690
+ return stringifyValue(value, tag);
686
691
  }
687
- else {
688
- if (this.skipInvalid)
689
- return null;
690
- throw new TypeError(`Cannot stringify ${typeof value}`);
691
- }
692
- if (tag !== null && tag !== "?") {
693
- value = `!<${tag}> ${value}`;
694
- }
695
- return value;
692
+ if (this.skipInvalid)
693
+ return null;
694
+ throw new TypeError(`Cannot stringify ${typeof value}`);
696
695
  }
697
696
  stringify(value) {
698
697
  if (this.useAnchors) {
699
- const values = new Set();
700
- const duplicateObjects = new Set();
701
- inspectNode(value, values, duplicateObjects);
702
- this.duplicates = [...duplicateObjects];
698
+ this.duplicates = getDuplicateObjects(value);
703
699
  this.usedDuplicates = new Set();
704
700
  }
705
701
  const string = this.stringifyNode(value, {