windmill-cli 1.398.1 → 1.400.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/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/copy.js +6 -6
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/empty_dir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_dir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_file.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_link.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_symlink.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/eol.js +3 -3
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/exists.js +36 -16
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/expand_glob.js +6 -6
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/move.js +4 -4
- package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/walk.js +20 -20
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/copy.js +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/read_all.js +2 -2
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/write_all.js +2 -2
- package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/console_handler.js +1 -0
- package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/mod.js +5 -5
- package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/rotating_file_handler.js +1 -1
- package/esm/deps.js +5 -5
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/main.js +1 -1
- package/esm/metadata.js +17 -4
- package/esm/script_common.js +2 -2
- package/esm/sync.js +13 -11
- package/esm/types.js +3 -1
- package/esm/wasm/windmill_parser_wasm.generated.js +34 -34
- package/esm/wasm/windmill_parser_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/copy.d.ts +6 -6
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/empty_dir.d.ts +2 -2
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_dir.d.ts +2 -2
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_file.d.ts +2 -2
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_link.d.ts +2 -2
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_symlink.d.ts +2 -2
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/eol.d.ts +3 -3
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/exists.d.ts +36 -16
- package/types/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/expand_glob.d.ts +6 -6
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/mod.d.ts +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/move.d.ts +4 -4
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/walk.d.ts +20 -20
- package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/copy.d.ts +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/read_all.d.ts +2 -2
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/read_all.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/write_all.d.ts +2 -2
- package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/write_all.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_config.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_file_handler_symbols.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_state.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/base_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/console_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/critical.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/debug.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/error.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/file_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/formatters.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/get_logger.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/info.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/levels.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/logger.d.ts +1 -0
- package/types/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/mod.d.ts +5 -5
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/rotating_file_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/setup.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/0.224.8/warn.d.ts +51 -0
- package/types/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +1 -0
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/cursor_position.d.ts +1 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/tty.d.ts +1 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_prompt.d.ts +1 -1
- package/types/deps.d.ts +5 -5
- package/types/main.d.ts +1 -1
- package/types/metadata.d.ts.map +1 -1
- package/types/sync.d.ts.map +1 -1
- package/types/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/1.0.3/exists.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.7/logger.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.7/warn.d.ts +0 -5
- package/types/deps/jsr.io/@std/log/0.224.7/warn.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_create_walk_entry.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_is_same_path.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_is_subdir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_to_path_string.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_config.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_file_handler_symbols.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_state.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/base_handler.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/critical.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/debug.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/error.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/formatters.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/get_logger.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/info.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/levels.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/logger.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/setup.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/warn.js +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.3 → 1.0.4}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_config.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_file_handler_symbols.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/_state.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/base_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/console_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/critical.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/debug.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/error.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/file_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/formatters.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/get_logger.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/info.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/levels.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/rotating_file_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.7 → 0.224.8}/setup.d.ts +0 -0
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* `log.formatters.jsonFormatter` or write your own function that takes a
|
|
25
25
|
* {@linkcode LogRecord} and returns a JSON.stringify'd object.
|
|
26
26
|
* If you want the log to go to stdout then use {@linkcode ConsoleHandler} with
|
|
27
|
-
* the configuration `useColors: false` to turn off the ANSI terminal
|
|
27
|
+
* the configuration `useColors: false` to turn off the ANSI terminal colors.
|
|
28
28
|
*
|
|
29
29
|
* ```ts
|
|
30
30
|
* import * as log from "@std/log";
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
* return getLogger("my-awesome-module");
|
|
82
82
|
* }
|
|
83
83
|
*
|
|
84
|
-
*
|
|
84
|
+
* function sum(a: number, b: number) {
|
|
85
85
|
* logger().debug(`running ${a} + ${b}`);
|
|
86
86
|
* return a + b;
|
|
87
87
|
* }
|
|
88
88
|
*
|
|
89
|
-
*
|
|
89
|
+
* function mult(a: number, b: number) {
|
|
90
90
|
* logger().debug(`running ${a} * ${b}`);
|
|
91
91
|
* return a * b;
|
|
92
92
|
* }
|
|
@@ -122,14 +122,14 @@
|
|
|
122
122
|
*
|
|
123
123
|
* const logger = getLogger("my-awesome-module");
|
|
124
124
|
*
|
|
125
|
-
*
|
|
125
|
+
* function sum(a: number, b: number) {
|
|
126
126
|
* logger.debug(`running ${a} + ${b}`); // no message will be logged, because getLogger() was called before log.setup()
|
|
127
127
|
* return a + b;
|
|
128
128
|
* }
|
|
129
129
|
* ```
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
|
-
* ```ts
|
|
132
|
+
* ```ts ignore
|
|
133
133
|
* import * as log from "@std/log";
|
|
134
134
|
*
|
|
135
135
|
* // Simple default logger out of the box. You can customize it
|
|
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
|
|
13
13
|
// Copyright 2018-2024 the Deno authors. All rights reserved. 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.4/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
|
/**
|
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.4/mod.js";
|
|
16
16
|
export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.0.6/mod.js";
|
|
17
17
|
export * as path from "./deps/jsr.io/@std/path/1.0.6/mod.js";
|
|
18
18
|
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.5/mod.js";
|
|
19
|
-
export { writeAllSync } from "./deps/jsr.io/@std/io/0.224.
|
|
20
|
-
export { copy } from "./deps/jsr.io/@std/io/0.224.
|
|
21
|
-
export { readAll } from "./deps/jsr.io/@std/io/0.224.
|
|
22
|
-
export * as log from "./deps/jsr.io/@std/log/0.224.
|
|
19
|
+
export { writeAllSync } from "./deps/jsr.io/@std/io/0.224.9/write_all.js";
|
|
20
|
+
export { copy } from "./deps/jsr.io/@std/io/0.224.9/copy.js";
|
|
21
|
+
export { readAll } from "./deps/jsr.io/@std/io/0.224.9/read_all.js";
|
|
22
|
+
export * as log from "./deps/jsr.io/@std/log/0.224.8/mod.js";
|
|
23
23
|
export { stringify as yamlStringify, parse as yamlParse } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
24
24
|
// other
|
|
25
25
|
export * as Diff from "diff";
|
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/main.js
CHANGED
|
@@ -30,7 +30,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
|
|
|
30
30
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
31
31
|
// }
|
|
32
32
|
// });
|
|
33
|
-
export const VERSION = "1.
|
|
33
|
+
export const VERSION = "1.400.0";
|
|
34
34
|
const command = new Command()
|
|
35
35
|
.name("wmill")
|
|
36
36
|
.action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
|
package/esm/metadata.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as dntShim from "./_dnt.shims.js";
|
|
3
3
|
import { SEP, colors, log, path, yamlParse, yamlStringify } from "./deps.js";
|
|
4
4
|
import { defaultScriptMetadata, } from "./bootstrap/script_bootstrap.js";
|
|
5
|
-
import { instantiate as instantiateWasm, parse_bash, parse_bigquery, parse_deno, parse_go, parse_graphql, parse_mssql, parse_mysql, parse_powershell, parse_python, parse_snowflake, parse_sql, } from "./wasm/windmill_parser_wasm.generated.js";
|
|
5
|
+
import { instantiate as instantiateWasm, parse_ansible, parse_bash, parse_bigquery, parse_deno, parse_go, parse_graphql, parse_mssql, parse_mysql, parse_php, parse_powershell, parse_python, parse_rust, parse_snowflake, parse_sql, } from "./wasm/windmill_parser_wasm.generated.js";
|
|
6
6
|
import { inferContentTypeFromFilePath } from "./script_common.js";
|
|
7
7
|
import { exts } from "./script.js";
|
|
8
8
|
import { FSFSElement, extractInlineScriptsForFlows, findCodebase, newPathAssigner, yamlOptions, } from "./sync.js";
|
|
@@ -173,15 +173,19 @@ export async function updateScriptSchema(scriptContent, language, metadataConten
|
|
|
173
173
|
await instantiateWasm();
|
|
174
174
|
const result = inferSchema(language, scriptContent, metadataContent.schema, path);
|
|
175
175
|
metadataContent.schema = result.schema;
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
if (result.has_preprocessor != null)
|
|
177
|
+
metadataContent.has_preprocessor = result.has_preprocessor;
|
|
178
|
+
if (result.no_main_func != null)
|
|
179
|
+
metadataContent.no_main_func = result.no_main_func;
|
|
178
180
|
}
|
|
179
181
|
async function updateScriptLock(workspace, scriptContent, language, remotePath, metadataContent, rawDeps) {
|
|
180
182
|
if (!(language == "bun" ||
|
|
181
183
|
language == "python3" ||
|
|
182
184
|
language == "go" ||
|
|
183
185
|
language == "deno" ||
|
|
184
|
-
language == "php"
|
|
186
|
+
language == "php" ||
|
|
187
|
+
language == "rust" ||
|
|
188
|
+
language == "ansible")) {
|
|
185
189
|
return;
|
|
186
190
|
}
|
|
187
191
|
// generate the script lock running a dependency job in Windmill and update it inplace
|
|
@@ -326,6 +330,15 @@ export function inferSchema(language, content, currentSchema, path) {
|
|
|
326
330
|
else if (language === "powershell") {
|
|
327
331
|
inferedSchema = JSON.parse(parse_powershell(content));
|
|
328
332
|
}
|
|
333
|
+
else if (language === "php") {
|
|
334
|
+
inferedSchema = JSON.parse(parse_php(content));
|
|
335
|
+
}
|
|
336
|
+
else if (language === "rust") {
|
|
337
|
+
inferedSchema = JSON.parse(parse_rust(content));
|
|
338
|
+
}
|
|
339
|
+
else if (language === "ansible") {
|
|
340
|
+
inferedSchema = JSON.parse(parse_ansible(content));
|
|
341
|
+
}
|
|
329
342
|
else {
|
|
330
343
|
throw new Error("Invalid language: " + language);
|
|
331
344
|
}
|
package/esm/script_common.js
CHANGED
|
@@ -41,10 +41,10 @@ export function inferContentTypeFromFilePath(contentPath, defaultTs) {
|
|
|
41
41
|
else if (contentPath.endsWith(".ps1")) {
|
|
42
42
|
return "powershell";
|
|
43
43
|
}
|
|
44
|
-
else if (contentPath.endsWith("php")) {
|
|
44
|
+
else if (contentPath.endsWith(".php")) {
|
|
45
45
|
return "php";
|
|
46
46
|
}
|
|
47
|
-
else if (contentPath.endsWith("rs")) {
|
|
47
|
+
else if (contentPath.endsWith(".rs")) {
|
|
48
48
|
return "rust";
|
|
49
49
|
}
|
|
50
50
|
else if (contentPath.endsWith(".playbook.yml")) {
|
package/esm/sync.js
CHANGED
|
@@ -417,17 +417,19 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension) {
|
|
|
417
417
|
const formatExtension = resourceTypeToFormatExtension[parsed["resource_type"]];
|
|
418
418
|
if (formatExtension) {
|
|
419
419
|
const fileContent = parsed["value"]["content"];
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
".resource.
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
420
|
+
if (typeof (fileContent) === "string") {
|
|
421
|
+
r.push({
|
|
422
|
+
isDirectory: false,
|
|
423
|
+
path: removeSuffix(finalPath, ".resource.json") +
|
|
424
|
+
".resource.file." +
|
|
425
|
+
formatExtension,
|
|
426
|
+
async *getChildren() { },
|
|
427
|
+
// deno-lint-ignore require-await
|
|
428
|
+
async getContentText() {
|
|
429
|
+
return fileContent;
|
|
430
|
+
},
|
|
431
|
+
});
|
|
432
|
+
}
|
|
431
433
|
}
|
|
432
434
|
}
|
|
433
435
|
return r;
|
package/esm/types.js
CHANGED
|
@@ -143,7 +143,9 @@ export function getTypeStrFromPath(p) {
|
|
|
143
143
|
parsed.ext == ".gql" ||
|
|
144
144
|
parsed.ext == ".ps1" ||
|
|
145
145
|
parsed.ext == ".js" ||
|
|
146
|
-
parsed.ext == ".php"
|
|
146
|
+
parsed.ext == ".php" ||
|
|
147
|
+
parsed.ext == ".rs" ||
|
|
148
|
+
(parsed.ext == ".yml" && parsed.name.split(".").pop() == "playbook")) {
|
|
147
149
|
return "script";
|
|
148
150
|
}
|
|
149
151
|
if (parsed.name === "folder.meta") {
|
|
@@ -22,18 +22,6 @@ heap.push(undefined, null, true, false);
|
|
|
22
22
|
function getObject(idx) {
|
|
23
23
|
return heap[idx];
|
|
24
24
|
}
|
|
25
|
-
let heap_next = heap.length;
|
|
26
|
-
function dropObject(idx) {
|
|
27
|
-
if (idx < 132)
|
|
28
|
-
return;
|
|
29
|
-
heap[idx] = heap_next;
|
|
30
|
-
heap_next = idx;
|
|
31
|
-
}
|
|
32
|
-
function takeObject(idx) {
|
|
33
|
-
const ret = getObject(idx);
|
|
34
|
-
dropObject(idx);
|
|
35
|
-
return ret;
|
|
36
|
-
}
|
|
37
25
|
let WASM_VECTOR_LEN = 0;
|
|
38
26
|
let cachedUint8Memory0 = null;
|
|
39
27
|
function getUint8Memory0() {
|
|
@@ -93,6 +81,33 @@ function getInt32Memory0() {
|
|
|
93
81
|
}
|
|
94
82
|
return cachedInt32Memory0;
|
|
95
83
|
}
|
|
84
|
+
let heap_next = heap.length;
|
|
85
|
+
function dropObject(idx) {
|
|
86
|
+
if (idx < 132)
|
|
87
|
+
return;
|
|
88
|
+
heap[idx] = heap_next;
|
|
89
|
+
heap_next = idx;
|
|
90
|
+
}
|
|
91
|
+
function takeObject(idx) {
|
|
92
|
+
const ret = getObject(idx);
|
|
93
|
+
dropObject(idx);
|
|
94
|
+
return ret;
|
|
95
|
+
}
|
|
96
|
+
let cachedFloat64Memory0 = null;
|
|
97
|
+
function getFloat64Memory0() {
|
|
98
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
99
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
100
|
+
}
|
|
101
|
+
return cachedFloat64Memory0;
|
|
102
|
+
}
|
|
103
|
+
function addHeapObject(obj) {
|
|
104
|
+
if (heap_next === heap.length)
|
|
105
|
+
heap.push(heap.length + 1);
|
|
106
|
+
const idx = heap_next;
|
|
107
|
+
heap_next = heap[idx];
|
|
108
|
+
heap[idx] = obj;
|
|
109
|
+
return idx;
|
|
110
|
+
}
|
|
96
111
|
const cachedTextDecoder = typeof TextDecoder !== "undefined"
|
|
97
112
|
? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true })
|
|
98
113
|
: {
|
|
@@ -106,21 +121,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
106
121
|
ptr = ptr >>> 0;
|
|
107
122
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
108
123
|
}
|
|
109
|
-
function addHeapObject(obj) {
|
|
110
|
-
if (heap_next === heap.length)
|
|
111
|
-
heap.push(heap.length + 1);
|
|
112
|
-
const idx = heap_next;
|
|
113
|
-
heap_next = heap[idx];
|
|
114
|
-
heap[idx] = obj;
|
|
115
|
-
return idx;
|
|
116
|
-
}
|
|
117
|
-
let cachedFloat64Memory0 = null;
|
|
118
|
-
function getFloat64Memory0() {
|
|
119
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
120
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
121
|
-
}
|
|
122
|
-
return cachedFloat64Memory0;
|
|
123
|
-
}
|
|
124
124
|
let cachedBigInt64Memory0 = null;
|
|
125
125
|
function getBigInt64Memory0() {
|
|
126
126
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -607,9 +607,6 @@ function handleError(f, args) {
|
|
|
607
607
|
}
|
|
608
608
|
const imports = {
|
|
609
609
|
__wbindgen_placeholder__: {
|
|
610
|
-
__wbindgen_object_drop_ref: function (arg0) {
|
|
611
|
-
takeObject(arg0);
|
|
612
|
-
},
|
|
613
610
|
__wbindgen_string_get: function (arg0, arg1) {
|
|
614
611
|
const obj = getObject(arg1);
|
|
615
612
|
const ret = typeof obj === "string" ? obj : undefined;
|
|
@@ -620,9 +617,8 @@ const imports = {
|
|
|
620
617
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
621
618
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
622
619
|
},
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
return addHeapObject(ret);
|
|
620
|
+
__wbindgen_object_drop_ref: function (arg0) {
|
|
621
|
+
takeObject(arg0);
|
|
626
622
|
},
|
|
627
623
|
__wbindgen_boolean_get: function (arg0) {
|
|
628
624
|
const v = getObject(arg0);
|
|
@@ -660,7 +656,11 @@ const imports = {
|
|
|
660
656
|
const ret = BigInt.asUintN(64, arg0);
|
|
661
657
|
return addHeapObject(ret);
|
|
662
658
|
},
|
|
663
|
-
|
|
659
|
+
__wbindgen_error_new: function (arg0, arg1) {
|
|
660
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
661
|
+
return addHeapObject(ret);
|
|
662
|
+
},
|
|
663
|
+
__wbg_eval_8243d86342a64a9b: function (arg0, arg1) {
|
|
664
664
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
665
665
|
return addHeapObject(ret);
|
|
666
666
|
},
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_create_walk_entry.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_create_walk_entry.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAOxD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,OAAO,CAAC,IAAI,CAAC,QAAQ;IACtD,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAYjE;AAED,kEAAkE;AAClE,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAY5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_get_file_info_type.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_get_file_info_type.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAGxD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAQrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_is_same_path.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_is_same_path.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/_is_same_path.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,EAAE,MAAM,GAAG,GAAG,GACjB,OAAO,CAKT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_is_subdir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_is_subdir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/_is_subdir.ts"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CACtB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,GAAG,aAAY,GACd,OAAO,CAYT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_to_path_string.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"_to_path_string.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/_to_path_string.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,GAAG,GAAG,GACpB,MAAM,CAER"}
|
|
@@ -36,7 +36,7 @@ export interface CopyOptions {
|
|
|
36
36
|
* @returns A promise that resolves once the copy operation completes.
|
|
37
37
|
*
|
|
38
38
|
* @example Basic usage
|
|
39
|
-
* ```ts
|
|
39
|
+
* ```ts ignore
|
|
40
40
|
* import { copy } from "@std/fs/copy";
|
|
41
41
|
*
|
|
42
42
|
* await copy("./foo", "./bar");
|
|
@@ -46,7 +46,7 @@ export interface CopyOptions {
|
|
|
46
46
|
* overwriting.
|
|
47
47
|
*
|
|
48
48
|
* @example Overwriting files/directories
|
|
49
|
-
* ```ts
|
|
49
|
+
* ```ts ignore
|
|
50
50
|
* import { copy } from "@std/fs/copy";
|
|
51
51
|
*
|
|
52
52
|
* await copy("./foo", "./bar", { overwrite: true });
|
|
@@ -56,7 +56,7 @@ export interface CopyOptions {
|
|
|
56
56
|
* any existing files or directories.
|
|
57
57
|
*
|
|
58
58
|
* @example Preserving timestamps
|
|
59
|
-
* ```ts
|
|
59
|
+
* ```ts ignore
|
|
60
60
|
* import { copy } from "@std/fs/copy";
|
|
61
61
|
*
|
|
62
62
|
* await copy("./foo", "./bar", { preserveTimestamps: true });
|
|
@@ -84,7 +84,7 @@ export declare function copy(src: string | URL, dest: string | URL, options?: Co
|
|
|
84
84
|
* @returns A void value that returns once the copy operation completes.
|
|
85
85
|
*
|
|
86
86
|
* @example Basic usage
|
|
87
|
-
* ```ts
|
|
87
|
+
* ```ts ignore
|
|
88
88
|
* import { copySync } from "@std/fs/copy";
|
|
89
89
|
*
|
|
90
90
|
* copySync("./foo", "./bar");
|
|
@@ -94,7 +94,7 @@ export declare function copy(src: string | URL, dest: string | URL, options?: Co
|
|
|
94
94
|
* overwriting.
|
|
95
95
|
*
|
|
96
96
|
* @example Overwriting files/directories
|
|
97
|
-
* ```ts
|
|
97
|
+
* ```ts ignore
|
|
98
98
|
* import { copySync } from "@std/fs/copy";
|
|
99
99
|
*
|
|
100
100
|
* copySync("./foo", "./bar", { overwrite: true });
|
|
@@ -104,7 +104,7 @@ export declare function copy(src: string | URL, dest: string | URL, options?: Co
|
|
|
104
104
|
* any existing files or directories.
|
|
105
105
|
*
|
|
106
106
|
* @example Preserving timestamps
|
|
107
|
-
* ```ts
|
|
107
|
+
* ```ts ignore
|
|
108
108
|
* import { copySync } from "@std/fs/copy";
|
|
109
109
|
*
|
|
110
110
|
* copySync("./foo", "./bar", { preserveTimestamps: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/copy.ts"],"names":[],"mappings":"AAcA,6DAA6D;AAC7D,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAoOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAsB,IAAI,CACxB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,GAAE,WAAgB,iBAwB1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,QAAQ,CACtB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,GAAE,WAAgB,QAwB1B"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @returns A void promise that resolves once the directory is empty.
|
|
15
15
|
*
|
|
16
16
|
* @example Usage
|
|
17
|
-
* ```ts
|
|
17
|
+
* ```ts ignore
|
|
18
18
|
* import { emptyDir } from "@std/fs/empty-dir";
|
|
19
19
|
*
|
|
20
20
|
* await emptyDir("./foo");
|
|
@@ -38,7 +38,7 @@ export declare function emptyDir(dir: string | URL): Promise<void>;
|
|
|
38
38
|
* @returns A void value that returns once the directory is empty.
|
|
39
39
|
*
|
|
40
40
|
* @example Usage
|
|
41
|
-
* ```ts
|
|
41
|
+
* ```ts ignore
|
|
42
42
|
* import { emptyDirSync } from "@std/fs/empty-dir";
|
|
43
43
|
*
|
|
44
44
|
* emptyDirSync("./foo");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"empty_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/empty_dir.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,iBAkB/C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,QAmB7C"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @returns A promise that resolves once the directory exists.
|
|
16
16
|
*
|
|
17
17
|
* @example Usage
|
|
18
|
-
* ```ts
|
|
18
|
+
* ```ts ignore
|
|
19
19
|
* import { ensureDir } from "@std/fs/ensure-dir";
|
|
20
20
|
*
|
|
21
21
|
* await ensureDir("./bar");
|
|
@@ -39,7 +39,7 @@ export declare function ensureDir(dir: string | URL): Promise<void>;
|
|
|
39
39
|
* @returns A void value that returns once the directory exists.
|
|
40
40
|
*
|
|
41
41
|
* @example Usage
|
|
42
|
-
* ```ts
|
|
42
|
+
* ```ts ignore
|
|
43
43
|
* import { ensureDirSync } from "@std/fs/ensure-dir";
|
|
44
44
|
*
|
|
45
45
|
* ensureDirSync("./bar");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/ensure_dir.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,iBAuBhD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,QAuB9C"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @returns A void promise that resolves once the file exists.
|
|
15
15
|
*
|
|
16
16
|
* @example Usage
|
|
17
|
-
* ```ts
|
|
17
|
+
* ```ts ignore
|
|
18
18
|
* import { ensureFile } from "@std/fs/ensure-file";
|
|
19
19
|
*
|
|
20
20
|
* await ensureFile("./folder/targetFile.dat");
|
|
@@ -37,7 +37,7 @@ export declare function ensureFile(filePath: string | URL): Promise<void>;
|
|
|
37
37
|
* @returns A void value that returns once the file exists.
|
|
38
38
|
*
|
|
39
39
|
* @example Usage
|
|
40
|
-
* ```ts
|
|
40
|
+
* ```ts ignore
|
|
41
41
|
* import { ensureFileSync } from "@std/fs/ensure-file";
|
|
42
42
|
*
|
|
43
43
|
* ensureFileSync("./folder/targetFile.dat");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_file.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"ensure_file.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/ensure_file.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBtE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAsB3D"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @returns A void promise that resolves once the hard link exists.
|
|
16
16
|
*
|
|
17
17
|
* @example Usage
|
|
18
|
-
* ```ts
|
|
18
|
+
* ```ts ignore
|
|
19
19
|
* import { ensureLink } from "@std/fs/ensure-link";
|
|
20
20
|
*
|
|
21
21
|
* await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
@@ -39,7 +39,7 @@ export declare function ensureLink(src: string | URL, dest: string | URL): Promi
|
|
|
39
39
|
* @returns A void value that returns once the hard link exists.
|
|
40
40
|
*
|
|
41
41
|
* @example Usage
|
|
42
|
-
* ```ts
|
|
42
|
+
* ```ts ignore
|
|
43
43
|
* import { ensureLinkSync } from "@std/fs/ensure-link";
|
|
44
44
|
*
|
|
45
45
|
* ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_link.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"ensure_link.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/ensure_link.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,iBAKrE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,QAKnE"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* @returns A void promise that resolves once the link exists.
|
|
18
18
|
*
|
|
19
19
|
* @example Usage
|
|
20
|
-
* ```ts
|
|
20
|
+
* ```ts ignore
|
|
21
21
|
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
22
22
|
*
|
|
23
23
|
* await ensureSymlink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
@@ -42,7 +42,7 @@ export declare function ensureSymlink(target: string | URL, linkName: string | U
|
|
|
42
42
|
* @returns A void value that returns once the link exists.
|
|
43
43
|
*
|
|
44
44
|
* @example Usage
|
|
45
|
-
* ```ts
|
|
45
|
+
* ```ts ignore
|
|
46
46
|
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
47
47
|
*
|
|
48
48
|
* ensureSymlinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_symlink.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"ensure_symlink.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,iBA+BvB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,QA+BvB"}
|
|
@@ -5,7 +5,7 @@ export declare const CRLF: "\r\n";
|
|
|
5
5
|
* End-of-line character evaluated for the current platform.
|
|
6
6
|
*
|
|
7
7
|
* @example Usage
|
|
8
|
-
* ```ts
|
|
8
|
+
* ```ts ignore
|
|
9
9
|
* import { EOL } from "@std/fs/eol";
|
|
10
10
|
*
|
|
11
11
|
* EOL; // "\n" on POSIX platforms and "\r\n" on Windows
|
|
@@ -21,7 +21,7 @@ export declare const EOL: "\n" | "\r\n";
|
|
|
21
21
|
* @returns The detected EOL character(s) or `null` if no EOL character is detected.
|
|
22
22
|
*
|
|
23
23
|
* @example Usage
|
|
24
|
-
* ```ts
|
|
24
|
+
* ```ts ignore
|
|
25
25
|
* import { detect } from "@std/fs/eol";
|
|
26
26
|
*
|
|
27
27
|
* detect("deno\r\nis not\r\nnode"); // "\r\n"
|
|
@@ -40,7 +40,7 @@ export declare function detect(content: string): typeof EOL | null;
|
|
|
40
40
|
* @returns The input string normalized to the targeted EOL.
|
|
41
41
|
*
|
|
42
42
|
* @example Usage
|
|
43
|
-
* ```ts
|
|
43
|
+
* ```ts ignore
|
|
44
44
|
* import { LF, format } from "@std/fs/eol";
|
|
45
45
|
*
|
|
46
46
|
* const CRLFinput = "deno\r\nis not\r\nnode";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.
|
|
1
|
+
{"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.4/eol.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,EAAE,MAAgB,CAAC;AAEhC,mDAAmD;AACnD,eAAO,MAAM,IAAI,QAAkB,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,IAAI,GAAG,MAAyD,CAAC;AAInF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,CAE/D"}
|