windmill-cli 1.444.0 → 1.445.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/esm/deps/jsr.io/@std/fmt/{1.0.3 → 1.0.4}/colors.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_create_walk_entry.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_is_subdir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/copy.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_symlink.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/eol.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/exists.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/expand_glob.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/move.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/walk.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_config.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_file_handler_symbols.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_state.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/base_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/console_handler.js +2 -2
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/critical.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/debug.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/error.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/file_handler.js +37 -88
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/get_logger.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/info.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/levels.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/logger.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/rotating_file_handler.js +2 -2
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/setup.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/warn.js +1 -1
- package/esm/deps.js +2 -2
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +170 -2
- package/esm/main.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/fmt/{1.0.3 → 1.0.4}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_config.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_file_handler_symbols.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_state.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/base_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/console_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/critical.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/debug.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/error.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/file_handler.d.ts +36 -87
- package/types/deps/jsr.io/@std/log/0.224.13/file_handler.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/formatters.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/get_logger.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/info.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/levels.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/logger.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/rotating_file_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/setup.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/warn.d.ts.map +1 -1
- package/types/deps.d.ts +2 -2
- package/types/gen/services.gen.d.ts +82 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +129 -4
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/main.d.ts +1 -1
- package/types/deps/jsr.io/@std/log/0.224.12/file_handler.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/formatters.js +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.3 → 1.0.4}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/expand_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.8 → 1.0.9}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_config.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_file_handler_symbols.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/_state.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/base_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/console_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/critical.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/debug.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/error.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/formatters.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/get_logger.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/info.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/levels.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/logger.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/rotating_file_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/setup.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.12 → 0.224.13}/warn.d.ts +0 -0
|
@@ -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.0.8/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.0.8/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.0.8/resolve.js";
|
|
4
4
|
import { SEPARATOR } from "../../path/1.0.8/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.0.8/basename.js";
|
|
4
4
|
import { join } from "../../path/1.0.8/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.0.8/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.0.8/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.0.8/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.0.8/dirname.js";
|
|
4
4
|
import { resolve } from "../../path/1.0.8/resolve.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
/** End-of-line character for POSIX platforms such as macOS and Linux. */
|
|
3
3
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
4
4
|
export const LF = "\n";
|
|
@@ -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.0.8/glob_to_regexp.js";
|
|
4
4
|
import { joinGlobs } from "../../path/1.0.8/join_globs.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 { isSubdir } from "./_is_subdir.js";
|
|
4
4
|
import { isSamePath } from "./_is_same_path.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.
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _BaseHandler_levelName, _BaseHandler_level;
|
|
13
|
-
// Copyright 2018-
|
|
13
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
// This module is browser compatible.
|
|
15
15
|
import { getLevelByName, getLevelName, } from "./levels.js";
|
|
16
16
|
const DEFAULT_FORMATTER = ({ levelName, msg }) => `${levelName} ${msg}`;
|
|
@@ -10,10 +10,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _ConsoleHandler_useColors;
|
|
13
|
-
// Copyright 2018-
|
|
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.4/colors.js";
|
|
17
17
|
import { BaseHandler } from "./base_handler.js";
|
|
18
18
|
function applyColors(msg, level) {
|
|
19
19
|
switch (level) {
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _FileHandler_instances, _FileHandler_unloadCallback, _FileHandler_resetBuffer, _a, _b, _c, _d, _e, _f, _g;
|
|
7
|
-
// Copyright 2018-
|
|
7
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
8
8
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
9
9
|
import { LogLevels } from "./levels.js";
|
|
10
10
|
import { BaseHandler } from "./base_handler.js";
|
|
@@ -19,10 +19,10 @@ import { bufSymbol, encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openO
|
|
|
19
19
|
* This handler requires `--allow-write` permission on the log file.
|
|
20
20
|
*
|
|
21
21
|
* @example Usage
|
|
22
|
-
* ```ts no-assert
|
|
22
|
+
* ```ts no-assert
|
|
23
23
|
* import { FileHandler } from "@std/log/file-handler";
|
|
24
24
|
*
|
|
25
|
-
* const handler = new FileHandler("INFO", { filename: "./logs.txt" });
|
|
25
|
+
* const handler = new FileHandler("INFO", { filename: "./_tmp/logs.txt" });
|
|
26
26
|
* handler.setup();
|
|
27
27
|
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
28
28
|
* handler.flush(); // Manually flushes the buffer
|
|
@@ -40,17 +40,9 @@ export class FileHandler extends BaseHandler {
|
|
|
40
40
|
super(levelName, options);
|
|
41
41
|
_FileHandler_instances.add(this);
|
|
42
42
|
/** Opened file to append logs to.
|
|
43
|
-
* @example Usage
|
|
44
|
-
* ```ts no-assert ignore
|
|
45
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
46
43
|
*
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
50
|
-
* handler.flush(); // Manually flushes the buffer
|
|
51
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
52
|
-
* ```
|
|
53
|
-
* **/
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
54
46
|
Object.defineProperty(this, _a, {
|
|
55
47
|
enumerable: true,
|
|
56
48
|
configurable: true,
|
|
@@ -58,107 +50,64 @@ export class FileHandler extends BaseHandler {
|
|
|
58
50
|
value: void 0
|
|
59
51
|
});
|
|
60
52
|
/** Buffer used to write to file.
|
|
61
|
-
* @example Usage
|
|
62
|
-
* ```ts no-assert ignore
|
|
63
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
64
53
|
*
|
|
65
|
-
*
|
|
66
|
-
|
|
67
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
68
|
-
* handler.flush(); // Manually flushes the buffer
|
|
69
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
70
|
-
* ```
|
|
71
|
-
* **/
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
72
56
|
Object.defineProperty(this, _b, {
|
|
73
57
|
enumerable: true,
|
|
74
58
|
configurable: true,
|
|
75
59
|
writable: true,
|
|
76
60
|
value: void 0
|
|
77
61
|
});
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* ```ts no-assert ignore
|
|
81
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
62
|
+
/**
|
|
63
|
+
* Current position for pointer.
|
|
82
64
|
*
|
|
83
|
-
*
|
|
84
|
-
|
|
85
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
86
|
-
* handler.flush(); // Manually flushes the buffer
|
|
87
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
88
|
-
* ```
|
|
89
|
-
* **/
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
90
67
|
Object.defineProperty(this, _c, {
|
|
91
68
|
enumerable: true,
|
|
92
69
|
configurable: true,
|
|
93
70
|
writable: true,
|
|
94
71
|
value: 0
|
|
95
72
|
});
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* ```ts no-assert ignore
|
|
99
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
73
|
+
/**
|
|
74
|
+
* Filename associated with the file being logged.
|
|
100
75
|
*
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
104
|
-
* handler.flush(); // Manually flushes the buffer
|
|
105
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
106
|
-
* ```
|
|
107
|
-
* **/
|
|
76
|
+
* @private
|
|
77
|
+
*/
|
|
108
78
|
Object.defineProperty(this, _d, {
|
|
109
79
|
enumerable: true,
|
|
110
80
|
configurable: true,
|
|
111
81
|
writable: true,
|
|
112
82
|
value: void 0
|
|
113
83
|
});
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* ```ts no-assert ignore
|
|
117
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
84
|
+
/**
|
|
85
|
+
* Current log mode.
|
|
118
86
|
*
|
|
119
|
-
*
|
|
120
|
-
|
|
121
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
122
|
-
* handler.flush(); // Manually flushes the buffer
|
|
123
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
124
|
-
* ```
|
|
125
|
-
* **/
|
|
87
|
+
* @private
|
|
88
|
+
*/
|
|
126
89
|
Object.defineProperty(this, _e, {
|
|
127
90
|
enumerable: true,
|
|
128
91
|
configurable: true,
|
|
129
92
|
writable: true,
|
|
130
93
|
value: void 0
|
|
131
94
|
});
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* ```ts no-assert ignore
|
|
135
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
95
|
+
/**
|
|
96
|
+
* File open options.
|
|
136
97
|
*
|
|
137
|
-
*
|
|
138
|
-
|
|
139
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
140
|
-
* handler.flush(); // Manually flushes the buffer
|
|
141
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
142
|
-
* ```
|
|
143
|
-
* **/
|
|
98
|
+
* @private
|
|
99
|
+
*/
|
|
144
100
|
Object.defineProperty(this, _f, {
|
|
145
101
|
enumerable: true,
|
|
146
102
|
configurable: true,
|
|
147
103
|
writable: true,
|
|
148
104
|
value: void 0
|
|
149
105
|
});
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* ```ts no-assert ignore
|
|
153
|
-
* import { FileHandler } from "@std/log/file-handler";
|
|
106
|
+
/**
|
|
107
|
+
* Text encoder.
|
|
154
108
|
*
|
|
155
|
-
*
|
|
156
|
-
|
|
157
|
-
* handler.log('Hello, world!'); // Buffers the message, or writes it to the file depending on buffer state
|
|
158
|
-
* handler.flush(); // Manually flushes the buffer
|
|
159
|
-
* handler.destroy(); // Closes the file and removes listeners
|
|
160
|
-
* ```
|
|
161
|
-
* **/
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
162
111
|
Object.defineProperty(this, _g, {
|
|
163
112
|
enumerable: true,
|
|
164
113
|
configurable: true,
|
|
@@ -184,10 +133,10 @@ export class FileHandler extends BaseHandler {
|
|
|
184
133
|
* Sets up the file handler by opening the specified file and initializing resources.
|
|
185
134
|
*
|
|
186
135
|
* @example Usage
|
|
187
|
-
* ```ts no-assert
|
|
136
|
+
* ```ts no-assert
|
|
188
137
|
* import { FileHandler } from "@std/log/file-handler";
|
|
189
138
|
*
|
|
190
|
-
* const handler = new FileHandler("INFO", { filename: "./logs.txt" });
|
|
139
|
+
* const handler = new FileHandler("INFO", { filename: "./_tmp/logs.txt" });
|
|
191
140
|
* handler.setup(); // Opens the file and prepares the handler for logging.
|
|
192
141
|
* handler.destroy();
|
|
193
142
|
* ```
|
|
@@ -203,13 +152,13 @@ export class FileHandler extends BaseHandler {
|
|
|
203
152
|
* @param logRecord Log record to handle.
|
|
204
153
|
*
|
|
205
154
|
* @example Usage
|
|
206
|
-
* ```ts
|
|
155
|
+
* ```ts
|
|
207
156
|
* import { FileHandler } from "@std/log/file-handler";
|
|
208
157
|
* import { assertInstanceOf } from "@std/assert/instance-of";
|
|
209
158
|
* import { LogLevels } from "./levels.ts";
|
|
210
159
|
* import { LogRecord } from "./logger.ts";
|
|
211
160
|
*
|
|
212
|
-
* const handler = new FileHandler("INFO", { filename: "./logs.txt" });
|
|
161
|
+
* const handler = new FileHandler("INFO", { filename: "./_tmp/logs.txt" });
|
|
213
162
|
* handler.setup();
|
|
214
163
|
*
|
|
215
164
|
* // Flushes the buffer immediately and logs "CRITICAL This log is very critical indeed." into the file.
|
|
@@ -239,11 +188,11 @@ export class FileHandler extends BaseHandler {
|
|
|
239
188
|
* @param msg The message to log.
|
|
240
189
|
*
|
|
241
190
|
* @example Usage
|
|
242
|
-
* ```ts
|
|
191
|
+
* ```ts
|
|
243
192
|
* import { FileHandler } from "@std/log/file-handler";
|
|
244
193
|
* import { assertInstanceOf } from "@std/assert/instance-of";
|
|
245
194
|
*
|
|
246
|
-
* const handler = new FileHandler("INFO", { filename: "./logs.txt" });
|
|
195
|
+
* const handler = new FileHandler("INFO", { filename: "./_tmp/logs.txt" });
|
|
247
196
|
* handler.setup();
|
|
248
197
|
* handler.log('Hello, world!');
|
|
249
198
|
* handler.flush();
|
|
@@ -269,11 +218,11 @@ export class FileHandler extends BaseHandler {
|
|
|
269
218
|
* Immediately writes the contents of the buffer to the previously opened file.
|
|
270
219
|
*
|
|
271
220
|
* @example Usage
|
|
272
|
-
* ```ts
|
|
221
|
+
* ```ts
|
|
273
222
|
* import { FileHandler } from "@std/log/file-handler";
|
|
274
223
|
* import { assertInstanceOf } from "@std/assert/instance-of";
|
|
275
224
|
*
|
|
276
|
-
* const handler = new FileHandler("INFO", { filename: "./logs.txt" });
|
|
225
|
+
* const handler = new FileHandler("INFO", { filename: "./_tmp/logs.txt" });
|
|
277
226
|
* handler.setup();
|
|
278
227
|
* handler.log('Hello, world!');
|
|
279
228
|
* handler.flush(); // Writes buffered log messages to the file immediately.
|
|
@@ -295,11 +244,11 @@ export class FileHandler extends BaseHandler {
|
|
|
295
244
|
* Destroys the handler, performing any cleanup that is required and closes the file handler.
|
|
296
245
|
*
|
|
297
246
|
* @example Usage
|
|
298
|
-
* ```ts
|
|
247
|
+
* ```ts
|
|
299
248
|
* import { FileHandler } from "@std/log/file-handler";
|
|
300
249
|
* import { assertInstanceOf } from "@std/assert/instance-of";
|
|
301
250
|
*
|
|
302
|
-
* const handler = new FileHandler("INFO", { filename: "./logs.txt" });
|
|
251
|
+
* const handler = new FileHandler("INFO", { filename: "./_tmp/logs.txt" });
|
|
303
252
|
* handler.setup();
|
|
304
253
|
* handler.destroy();
|
|
305
254
|
*
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _LogRecord_args, _LogRecord_datetime, _Logger_instances, _Logger_level, _Logger_loggerName, _Logger_log;
|
|
13
|
-
// Copyright 2018-
|
|
13
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
// This module is browser compatible.
|
|
15
15
|
import { getLevelByName, getLevelName, LogLevels } from "./levels.js";
|
|
16
16
|
/**
|
|
@@ -10,9 +10,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
|
|
13
|
-
// Copyright 2018-
|
|
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.9/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,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { DEFAULT_CONFIG, DEFAULT_LEVEL } from "./_config.js";
|
|
4
4
|
import { Logger } from "./logger.js";
|
package/esm/deps.js
CHANGED
|
@@ -12,14 +12,14 @@ export { NpmProvider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-r
|
|
|
12
12
|
export { Provider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.js";
|
|
13
13
|
export { CompletionsCommand } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.js";
|
|
14
14
|
// std
|
|
15
|
-
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.
|
|
15
|
+
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.9/mod.js";
|
|
16
16
|
export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
17
17
|
export * as path from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
18
18
|
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.6/mod.js";
|
|
19
19
|
export { writeAllSync } from "./deps/jsr.io/@std/io/0.225.0/write_all.js";
|
|
20
20
|
export { copy } from "./deps/jsr.io/@std/io/0.225.0/copy.js";
|
|
21
21
|
export { readAll } from "./deps/jsr.io/@std/io/0.225.0/read_all.js";
|
|
22
|
-
export * as log from "./deps/jsr.io/@std/log/0.224.
|
|
22
|
+
export * as log from "./deps/jsr.io/@std/log/0.224.13/mod.js";
|
|
23
23
|
export { stringify as yamlStringify } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
24
24
|
import { parse as yamlParse } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
25
25
|
export async function yamlParseFile(path, options = {}) {
|
package/esm/gen/core/OpenAPI.js
CHANGED