windmill-cli 1.613.4 → 1.614.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/README.md +26 -0
- package/esm/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.8}/colors.js +14 -14
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_create_walk_entry.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_is_subdir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/copy.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_symlink.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/eol.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/exists.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/expand_glob.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/move.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/walk.js +5 -5
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_chars.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_dumper_state.js +50 -46
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_loader_state.js +273 -250
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_schema.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/bool.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/float.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/int.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/map.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/merge.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/nil.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/omap.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/pairs.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/regexp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/seq.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/set.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/str.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/timestamp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/undefined.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_utils.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/parse.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/stringify.js +1 -1
- package/esm/deps.js +3 -3
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +11 -0
- package/esm/src/commands/app/raw_apps.js +16 -5
- package/esm/src/commands/sync/pull.js +1 -1
- package/esm/src/commands/sync/sync.js +7 -0
- package/esm/src/core/settings.js +99 -35
- package/esm/src/main.js +1 -1
- package/package.json +2 -2
- package/types/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.8}/colors.d.ts +12 -12
- package/types/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.8}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/walk.d.ts +4 -4
- package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_chars.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_dumper_state.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_loader_state.d.ts +18 -21
- package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_schema.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/binary.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/bool.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/float.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/int.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/map.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/merge.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/nil.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/omap.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/pairs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/seq.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/set.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/str.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/timestamp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/undefined.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_utils.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/stringify.d.ts.map +1 -1
- package/types/deps.d.ts +3 -3
- package/types/gen/services.gen.d.ts +7 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +96 -21
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/raw_apps.d.ts.map +1 -1
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/core/settings.d.ts +23 -7
- package/types/src/core/settings.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +96 -21
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/1.0.11/_loader_state.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/binary.js +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/expand_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.22 → 1.0.21}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_chars.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_dumper_state.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_schema.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/binary.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/bool.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/float.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/int.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/map.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/merge.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/nil.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/omap.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/pairs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/seq.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/str.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/timestamp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type/undefined.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/_utils.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.11 → 1.0.10}/stringify.d.ts +0 -0
package/README.md
CHANGED
|
@@ -107,3 +107,29 @@ To enable zsh completions add the following line to your `~/.zshrc`:
|
|
|
107
107
|
```
|
|
108
108
|
source <(wmill completions zsh)
|
|
109
109
|
```
|
|
110
|
+
|
|
111
|
+
## Development
|
|
112
|
+
|
|
113
|
+
### Running Tests
|
|
114
|
+
|
|
115
|
+
**Prerequisites:**
|
|
116
|
+
- PostgreSQL running locally (default: `postgres://postgres:changeme@localhost:5432`)
|
|
117
|
+
- Rust toolchain installed
|
|
118
|
+
|
|
119
|
+
**Run tests locally (full features):**
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
deno test --allow-all --no-check
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Run tests in CI mode (minimal features, skips EE tests):**
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
CI_MINIMAL_FEATURES=true deno test --allow-all --no-check
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
| Variable | Description |
|
|
132
|
+
|----------|-------------|
|
|
133
|
+
| `CI_MINIMAL_FEATURES` | Set to `true` to skip EE-dependent tests |
|
|
134
|
+
| `DATABASE_URL` | PostgreSQL connection string |
|
|
135
|
+
| `EE_LICENSE_KEY` | Enterprise license key for EE features |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 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,9 +154,6 @@ 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
|
-
*
|
|
160
157
|
* @example Usage
|
|
161
158
|
* ```ts no-assert
|
|
162
159
|
* import { dim } from "@std/fmt/colors";
|
|
@@ -166,6 +163,9 @@ export function bold(str) {
|
|
|
166
163
|
*
|
|
167
164
|
* @param str The text to dim
|
|
168
165
|
* @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
|
-
*
|
|
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
|
-
*
|
|
783
|
+
* Clam 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 to
|
|
802
|
+
* @param str The text color to apply paletted 8bit colors to
|
|
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 to
|
|
821
|
-
* @param color
|
|
820
|
+
* @param str The text color to apply paletted 8bit background colors to
|
|
821
|
+
* @param 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
|
|
832
|
+
* @example To produce the color magenta:
|
|
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 to
|
|
839
|
+
* @param str The text color to apply 24bit rgb to
|
|
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
|
|
860
|
+
* @example To produce the color magenta:
|
|
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 to
|
|
867
|
+
* @param str The text color to apply 24bit rgb to
|
|
868
868
|
* @param color The color code
|
|
869
|
-
* @returns The text with 24bit rgb
|
|
869
|
+
* @returns The text with 24bit rgb color
|
|
870
870
|
*/
|
|
871
871
|
export function bgRgb24(str, color) {
|
|
872
872
|
if (typeof color === "number") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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-
|
|
1
|
+
// Copyright 2018-2025 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 `[
|
|
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 `[
|
|
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 `[
|
|
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 `[
|
|
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.
|
|
16
|
+
import { blue, bold, red, yellow } from "../../fmt/1.0.8/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.
|
|
15
|
+
import { existsSync } from "../../fs/1.0.21/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-
|
|
4
|
+
// Copyright 2018-2025 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-
|
|
4
|
+
// Copyright 2018-2025 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 = [
|
|
32
32
|
"y",
|
|
33
33
|
"Y",
|
|
34
34
|
"yes",
|
|
@@ -45,7 +45,7 @@ const DEPRECATED_BOOLEANS_SYNTAX = new Set([
|
|
|
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,28 +315,18 @@ function blockHeader(string, indentPerLevel) {
|
|
|
315
315
|
const chomp = keep ? "+" : clip ? "" : "-";
|
|
316
316
|
return `${indentIndicator}${chomp}\n`;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}
|
|
330
|
-
seenObjects.add(value);
|
|
331
|
-
const children = Array.isArray(value) ? value : Object.values(value);
|
|
332
|
-
queue.push(...children);
|
|
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);
|
|
333
329
|
}
|
|
334
|
-
return [...duplicateObjects];
|
|
335
|
-
}
|
|
336
|
-
function stringifyValue(value, tag) {
|
|
337
|
-
if (tag !== null && tag !== "?")
|
|
338
|
-
return `!<${tag}> ${value}`;
|
|
339
|
-
return value;
|
|
340
330
|
}
|
|
341
331
|
export class DumperState {
|
|
342
332
|
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 = "'", }) {
|
|
@@ -455,7 +445,7 @@ export class DumperState {
|
|
|
455
445
|
if (string.length === 0) {
|
|
456
446
|
return "''";
|
|
457
447
|
}
|
|
458
|
-
if (this.compatMode && DEPRECATED_BOOLEANS_SYNTAX.
|
|
448
|
+
if (this.compatMode && DEPRECATED_BOOLEANS_SYNTAX.includes(string)) {
|
|
459
449
|
return `'${string}'`;
|
|
460
450
|
}
|
|
461
451
|
const indent = this.indent * Math.max(1, level); // no 0-indent scalars
|
|
@@ -647,9 +637,8 @@ export class DumperState {
|
|
|
647
637
|
if (tag !== "?") {
|
|
648
638
|
value = this.stringifyScalar(value, { level, isKey });
|
|
649
639
|
}
|
|
650
|
-
return stringifyValue(value, tag);
|
|
651
640
|
}
|
|
652
|
-
if (isObject(value)) {
|
|
641
|
+
else if (isObject(value)) {
|
|
653
642
|
const duplicateIndex = this.duplicates.indexOf(value);
|
|
654
643
|
const duplicate = duplicateIndex !== -1;
|
|
655
644
|
if (duplicate) {
|
|
@@ -669,33 +658,48 @@ export class DumperState {
|
|
|
669
658
|
level: arrayLevel,
|
|
670
659
|
compact,
|
|
671
660
|
});
|
|
672
|
-
if (duplicate)
|
|
661
|
+
if (duplicate) {
|
|
673
662
|
value = `&ref_${duplicateIndex}${value}`;
|
|
674
|
-
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
value = this.stringifyFlowSequence(value, { level: arrayLevel });
|
|
667
|
+
if (duplicate) {
|
|
668
|
+
value = `&ref_${duplicateIndex} ${value}`;
|
|
669
|
+
}
|
|
675
670
|
}
|
|
676
|
-
value = this.stringifyFlowSequence(value, { level: arrayLevel });
|
|
677
|
-
if (duplicate)
|
|
678
|
-
value = `&ref_${duplicateIndex} ${value}`;
|
|
679
|
-
return stringifyValue(value, tag);
|
|
680
671
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
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
|
+
}
|
|
686
685
|
}
|
|
687
|
-
value = this.stringifyFlowMapping(value, { level });
|
|
688
|
-
if (duplicate)
|
|
689
|
-
value = `&ref_${duplicateIndex} ${value}`;
|
|
690
|
-
return stringifyValue(value, tag);
|
|
691
686
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
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;
|
|
695
696
|
}
|
|
696
697
|
stringify(value) {
|
|
697
698
|
if (this.useAnchors) {
|
|
698
|
-
|
|
699
|
+
const values = new Set();
|
|
700
|
+
const duplicateObjects = new Set();
|
|
701
|
+
inspectNode(value, values, duplicateObjects);
|
|
702
|
+
this.duplicates = [...duplicateObjects];
|
|
699
703
|
this.usedDuplicates = new Set();
|
|
700
704
|
}
|
|
701
705
|
const string = this.stringifyNode(value, {
|