@effectionx/jsonl-store 0.3.1 → 0.4.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/context.test.ts +10 -0
- package/context.ts +18 -0
- package/{esm → dist}/context.d.ts +1 -1
- package/dist/context.d.ts.map +1 -0
- package/{esm → dist}/context.js +2 -2
- package/dist/fs-helpers.d.ts +41 -0
- package/dist/fs-helpers.d.ts.map +1 -0
- package/dist/fs-helpers.js +94 -0
- package/{script → dist}/jsonl.d.ts +1 -1
- package/dist/jsonl.d.ts.map +1 -0
- package/{esm → dist}/jsonl.js +16 -21
- package/dist/mod.d.ts +4 -0
- package/dist/mod.d.ts.map +1 -0
- package/{esm → dist}/mod.js +0 -1
- package/dist/stream-helpers.d.ts +14 -0
- package/dist/stream-helpers.d.ts.map +1 -0
- package/dist/stream-helpers.js +44 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts.map +1 -0
- package/fs-helpers.ts +129 -0
- package/jsonl.test.ts +135 -0
- package/jsonl.ts +254 -0
- package/mod.ts +3 -0
- package/package.json +19 -17
- package/stream-helpers.ts +45 -0
- package/tsconfig.json +14 -0
- package/types.ts +15 -0
- package/esm/_dnt.polyfills.d.ts +0 -120
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -247
- package/esm/_dnt.shims.d.ts +0 -2
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -57
- package/esm/context.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +0 -9
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +0 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +0 -21
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +0 -32
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +0 -41
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.js +0 -50
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts +0 -13
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +0 -33
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +0 -12
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +0 -20
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +0 -10
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +0 -17
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +0 -12
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +0 -25
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +0 -9
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +0 -13
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +0 -117
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.js +0 -312
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +0 -48
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +0 -86
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +0 -49
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +0 -101
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +0 -47
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +0 -89
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +0 -49
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +0 -60
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +0 -70
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +0 -155
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +0 -52
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.js +0 -67
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +0 -219
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.js +0 -269
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +0 -267
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +0 -439
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +0 -29
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.js +0 -29
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts +0 -86
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.js +0 -141
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +0 -777
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.js +0 -845
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +0 -5
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.d.ts +0 -4
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.js +0 -11
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts +0 -70
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.js +0 -196
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.d.ts +0 -23
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.js +0 -23
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts +0 -53
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.js +0 -66
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts +0 -95
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.js +0 -88
- package/esm/deps/jsr.io/@std/json/1.0.2/types.d.ts +0 -5
- package/esm/deps/jsr.io/@std/json/1.0.2/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/json/1.0.2/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +0 -234
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +0 -216
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +0 -26
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +0 -39
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.js +0 -52
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +0 -64
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +0 -37
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.js +0 -93
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +0 -16
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +0 -72
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +0 -31
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.js +0 -45
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +0 -37
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +0 -58
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +0 -16
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts +0 -38
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.js +0 -47
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +0 -113
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +0 -18
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +0 -71
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +0 -135
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +0 -49
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.d.ts +0 -5
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.js +0 -27
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts +0 -300
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.js +0 -411
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts +0 -44
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.js +0 -85
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts +0 -27
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.js +0 -48
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts +0 -66
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.js +0 -291
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts +0 -83
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.js +0 -102
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts +0 -101
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.js +0 -122
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts +0 -84
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.js +0 -106
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts +0 -38
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.js +0 -69
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.d.ts +0 -35
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.js +0 -35
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts +0 -58
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.js +0 -123
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts +0 -72
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.js +0 -107
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts +0 -22
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.js +0 -35
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts +0 -22
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.js +0 -25
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts +0 -38
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.js +0 -42
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts +0 -29
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.js +0 -45
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts +0 -61
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.js +0 -103
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts +0 -76
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.js +0 -102
- package/esm/jsonl.d.ts +0 -102
- package/esm/jsonl.d.ts.map +0 -1
- package/esm/mod.d.ts +0 -5
- package/esm/mod.d.ts.map +0 -1
- package/esm/package.json +0 -3
- package/esm/types.d.ts.map +0 -1
- package/script/_dnt.polyfills.d.ts +0 -120
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -250
- package/script/_dnt.shims.d.ts +0 -2
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -60
- package/script/context.d.ts +0 -5
- package/script/context.d.ts.map +0 -1
- package/script/context.js +0 -18
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +0 -9
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +0 -3
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +0 -21
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +0 -35
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +0 -41
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.js +0 -53
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts +0 -13
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +0 -37
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +0 -12
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +0 -23
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +0 -10
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +0 -20
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +0 -12
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +0 -28
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +0 -9
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +0 -16
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +0 -117
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.js +0 -316
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +0 -48
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +0 -90
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +0 -49
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +0 -105
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +0 -47
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +0 -93
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +0 -49
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +0 -64
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +0 -70
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +0 -159
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +0 -52
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.js +0 -105
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +0 -219
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.js +0 -273
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +0 -267
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +0 -443
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +0 -29
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.js +0 -45
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts +0 -86
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/move.js +0 -145
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +0 -777
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.js +0 -849
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -48
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +0 -8
- package/script/deps/jsr.io/@std/json/1.0.2/_common.d.ts +0 -4
- package/script/deps/jsr.io/@std/json/1.0.2/_common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/json/1.0.2/_common.js +0 -14
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts +0 -70
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.js +0 -200
- package/script/deps/jsr.io/@std/json/1.0.2/mod.d.ts +0 -23
- package/script/deps/jsr.io/@std/json/1.0.2/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/json/1.0.2/mod.js +0 -39
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts +0 -53
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.js +0 -70
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts +0 -95
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.js +0 -92
- package/script/deps/jsr.io/@std/json/1.0.2/types.d.ts +0 -5
- package/script/deps/jsr.io/@std/json/1.0.2/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/json/1.0.2/types.js +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +0 -10
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.js +0 -45
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.js +0 -26
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +0 -40
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.js +0 -49
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +0 -11
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.js +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +0 -12
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +0 -237
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +0 -11
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +0 -80
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.js +0 -12
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +0 -18
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts +0 -27
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/basename.js +0 -38
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/common.js +0 -36
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts +0 -15
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/constants.js +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/extname.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/format.js +0 -30
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +0 -77
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +0 -86
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.js +0 -45
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.js +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/mod.js +0 -232
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +0 -26
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +0 -29
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +0 -38
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/parse.js +0 -42
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.js +0 -11
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +0 -39
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.js +0 -55
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +0 -30
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +0 -67
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.js +0 -96
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +0 -72
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +0 -26
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.js +0 -48
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +0 -43
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +0 -61
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.js +0 -118
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.js +0 -109
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +0 -95
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +0 -30
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/relative.js +0 -33
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.js +0 -33
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +0 -32
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts +0 -38
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/types.js +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.js +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.js +0 -50
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +0 -116
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.js +0 -85
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +0 -18
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +0 -33
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +0 -71
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +0 -41
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.js +0 -80
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +0 -44
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +0 -19
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +0 -138
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.js +0 -179
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.js +0 -134
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +0 -190
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +0 -52
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.d.ts +0 -5
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.js +0 -31
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts +0 -300
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.js +0 -415
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts +0 -44
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.js +0 -89
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts +0 -27
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.js +0 -51
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts +0 -66
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.js +0 -295
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts +0 -83
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.js +0 -105
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts +0 -101
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.js +0 -126
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts +0 -84
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.js +0 -110
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts +0 -38
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.js +0 -72
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.d.ts +0 -35
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.js +0 -51
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts +0 -58
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.js +0 -127
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts +0 -72
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.js +0 -111
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts +0 -22
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.js +0 -38
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts +0 -22
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.js +0 -28
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts +0 -38
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.js +0 -45
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts +0 -29
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.js +0 -48
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts +0 -61
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.js +0 -106
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts +0 -76
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.js +0 -105
- package/script/jsonl.d.ts.map +0 -1
- package/script/jsonl.js +0 -244
- package/script/mod.d.ts +0 -5
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js +0 -24
- package/script/package.json +0 -3
- package/script/types.d.ts +0 -14
- package/script/types.d.ts.map +0 -1
- package/script/types.js +0 -2
- /package/{esm → dist}/types.d.ts +0 -0
- /package/{esm → dist}/types.js +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert the generator function into a {@linkcode TransformStream}.
|
|
3
|
-
*
|
|
4
|
-
* @typeparam I The type of the chunks in the source stream.
|
|
5
|
-
* @typeparam O The type of the chunks in the transformed stream.
|
|
6
|
-
* @param transformer A function to transform.
|
|
7
|
-
* @param writableStrategy An object that optionally defines a queuing strategy for the stream.
|
|
8
|
-
* @param readableStrategy An object that optionally defines a queuing strategy for the stream.
|
|
9
|
-
* @returns A {@linkcode TransformStream} that transforms the source stream as defined by the provided transformer.
|
|
10
|
-
*
|
|
11
|
-
* @example Build a transform stream that multiplies each value by 100
|
|
12
|
-
* ```ts
|
|
13
|
-
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
14
|
-
* import { assertEquals } from "@std/assert";
|
|
15
|
-
*
|
|
16
|
-
* const stream = ReadableStream.from([0, 1, 2])
|
|
17
|
-
* .pipeThrough(toTransformStream(async function* (src) {
|
|
18
|
-
* for await (const chunk of src) {
|
|
19
|
-
* yield chunk * 100;
|
|
20
|
-
* }
|
|
21
|
-
* }));
|
|
22
|
-
*
|
|
23
|
-
* assertEquals(
|
|
24
|
-
* await Array.fromAsync(stream),
|
|
25
|
-
* [0, 100, 200],
|
|
26
|
-
* );
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @example JSON Lines
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
32
|
-
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
33
|
-
* import { assertEquals } from "@std/assert";
|
|
34
|
-
*
|
|
35
|
-
* const stream = ReadableStream.from([
|
|
36
|
-
* '{"name": "Alice", "age": ',
|
|
37
|
-
* '30}\n{"name": "Bob", "age"',
|
|
38
|
-
* ": 25}\n",
|
|
39
|
-
* ]);
|
|
40
|
-
*
|
|
41
|
-
* type Person = { name: string; age: number };
|
|
42
|
-
*
|
|
43
|
-
* // Split the stream by newline and parse each line as a JSON object
|
|
44
|
-
* const jsonStream = stream.pipeThrough(new TextLineStream())
|
|
45
|
-
* .pipeThrough(toTransformStream(async function* (src) {
|
|
46
|
-
* for await (const chunk of src) {
|
|
47
|
-
* if (chunk.trim().length === 0) {
|
|
48
|
-
* continue;
|
|
49
|
-
* }
|
|
50
|
-
* yield JSON.parse(chunk) as Person;
|
|
51
|
-
* }
|
|
52
|
-
* }));
|
|
53
|
-
*
|
|
54
|
-
* assertEquals(
|
|
55
|
-
* await Array.fromAsync(jsonStream),
|
|
56
|
-
* [{ "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 }],
|
|
57
|
-
* );
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function toTransformStream<I, O>(transformer: (src: ReadableStream<I>) => Iterable<O> | AsyncIterable<O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
|
|
61
|
-
//# sourceMappingURL=to_transform_stream.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to_transform_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EACpC,WAAW,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EACvE,gBAAgB,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,EACrC,gBAAgB,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GACpC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CA2CvB"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.toTransformStream = toTransformStream;
|
|
6
|
-
/**
|
|
7
|
-
* Convert the generator function into a {@linkcode TransformStream}.
|
|
8
|
-
*
|
|
9
|
-
* @typeparam I The type of the chunks in the source stream.
|
|
10
|
-
* @typeparam O The type of the chunks in the transformed stream.
|
|
11
|
-
* @param transformer A function to transform.
|
|
12
|
-
* @param writableStrategy An object that optionally defines a queuing strategy for the stream.
|
|
13
|
-
* @param readableStrategy An object that optionally defines a queuing strategy for the stream.
|
|
14
|
-
* @returns A {@linkcode TransformStream} that transforms the source stream as defined by the provided transformer.
|
|
15
|
-
*
|
|
16
|
-
* @example Build a transform stream that multiplies each value by 100
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
19
|
-
* import { assertEquals } from "@std/assert";
|
|
20
|
-
*
|
|
21
|
-
* const stream = ReadableStream.from([0, 1, 2])
|
|
22
|
-
* .pipeThrough(toTransformStream(async function* (src) {
|
|
23
|
-
* for await (const chunk of src) {
|
|
24
|
-
* yield chunk * 100;
|
|
25
|
-
* }
|
|
26
|
-
* }));
|
|
27
|
-
*
|
|
28
|
-
* assertEquals(
|
|
29
|
-
* await Array.fromAsync(stream),
|
|
30
|
-
* [0, 100, 200],
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @example JSON Lines
|
|
35
|
-
* ```ts
|
|
36
|
-
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
37
|
-
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
38
|
-
* import { assertEquals } from "@std/assert";
|
|
39
|
-
*
|
|
40
|
-
* const stream = ReadableStream.from([
|
|
41
|
-
* '{"name": "Alice", "age": ',
|
|
42
|
-
* '30}\n{"name": "Bob", "age"',
|
|
43
|
-
* ": 25}\n",
|
|
44
|
-
* ]);
|
|
45
|
-
*
|
|
46
|
-
* type Person = { name: string; age: number };
|
|
47
|
-
*
|
|
48
|
-
* // Split the stream by newline and parse each line as a JSON object
|
|
49
|
-
* const jsonStream = stream.pipeThrough(new TextLineStream())
|
|
50
|
-
* .pipeThrough(toTransformStream(async function* (src) {
|
|
51
|
-
* for await (const chunk of src) {
|
|
52
|
-
* if (chunk.trim().length === 0) {
|
|
53
|
-
* continue;
|
|
54
|
-
* }
|
|
55
|
-
* yield JSON.parse(chunk) as Person;
|
|
56
|
-
* }
|
|
57
|
-
* }));
|
|
58
|
-
*
|
|
59
|
-
* assertEquals(
|
|
60
|
-
* await Array.fromAsync(jsonStream),
|
|
61
|
-
* [{ "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 }],
|
|
62
|
-
* );
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
// deno-lint-ignore deno-style-guide/exported-function-args-maximum
|
|
66
|
-
function toTransformStream(transformer, writableStrategy, readableStrategy) {
|
|
67
|
-
const { writable, readable, } = new TransformStream(undefined, writableStrategy);
|
|
68
|
-
const iterable = transformer(readable);
|
|
69
|
-
const iterator = iterable[Symbol.asyncIterator]?.() ??
|
|
70
|
-
iterable[Symbol.iterator]?.();
|
|
71
|
-
return {
|
|
72
|
-
writable,
|
|
73
|
-
readable: new ReadableStream({
|
|
74
|
-
async pull(controller) {
|
|
75
|
-
let result;
|
|
76
|
-
try {
|
|
77
|
-
result = await iterator.next();
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
// Propagate error to stream from iterator
|
|
81
|
-
// If the stream status is "errored", it will be thrown, but ignore.
|
|
82
|
-
await readable.cancel(error).catch(() => { });
|
|
83
|
-
controller.error(error);
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (result.done) {
|
|
87
|
-
controller.close();
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
controller.enqueue(result.value);
|
|
91
|
-
},
|
|
92
|
-
async cancel(reason) {
|
|
93
|
-
// Propagate cancellation to readable and iterator
|
|
94
|
-
if (typeof iterator.throw === "function") {
|
|
95
|
-
try {
|
|
96
|
-
await iterator.throw(reason);
|
|
97
|
-
}
|
|
98
|
-
catch {
|
|
99
|
-
/* `iterator.throw()` always throws on site. We catch it. */
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
await readable.cancel(reason);
|
|
103
|
-
},
|
|
104
|
-
}, readableStrategy),
|
|
105
|
-
};
|
|
106
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Merge multiple streams into a single one, taking order into account, and
|
|
3
|
-
* each stream will wait for a chunk to enqueue before the next stream can
|
|
4
|
-
* append another chunk.
|
|
5
|
-
*
|
|
6
|
-
* If a stream ends before other ones, the others will continue adding data in
|
|
7
|
-
* order, and the finished one will not add any more data. If you want to cancel
|
|
8
|
-
* the other streams when one of them ends, use {@linkcode earlyZipReadableStreams}.
|
|
9
|
-
*
|
|
10
|
-
* @typeparam T The type of the chunks in the input/output streams.
|
|
11
|
-
* @param streams An iterable of `ReadableStream`s to merge.
|
|
12
|
-
* @returns A `ReadableStream` that will emit the zipped chunks.
|
|
13
|
-
*
|
|
14
|
-
* @example Zip 2 streams with the same length
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
17
|
-
* import { assertEquals } from "@std/assert";
|
|
18
|
-
*
|
|
19
|
-
* const stream1 = ReadableStream.from(["1", "2", "3"]);
|
|
20
|
-
* const stream2 = ReadableStream.from(["a", "b", "c"]);
|
|
21
|
-
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
22
|
-
*
|
|
23
|
-
* assertEquals(
|
|
24
|
-
* await Array.fromAsync(zippedStream),
|
|
25
|
-
* ["1", "a", "2", "b", "3", "c"],
|
|
26
|
-
* );
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @example Zip 2 streams with different length (first one is shorter)
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
32
|
-
* import { assertEquals } from "@std/assert";
|
|
33
|
-
*
|
|
34
|
-
* const stream1 = ReadableStream.from(["1", "2"]);
|
|
35
|
-
* const stream2 = ReadableStream.from(["a", "b", "c", "d"]);
|
|
36
|
-
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
37
|
-
*
|
|
38
|
-
* assertEquals(
|
|
39
|
-
* await Array.fromAsync(zippedStream),
|
|
40
|
-
* ["1", "a", "2", "b", "c", "d"],
|
|
41
|
-
* );
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @example Zip 2 streams with different length (first one is longer)
|
|
45
|
-
* ```ts
|
|
46
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
47
|
-
* import { assertEquals } from "@std/assert";
|
|
48
|
-
*
|
|
49
|
-
* const stream1 = ReadableStream.from(["1", "2", "3", "4"]);
|
|
50
|
-
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
51
|
-
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
52
|
-
*
|
|
53
|
-
* assertEquals(
|
|
54
|
-
* await Array.fromAsync(zippedStream),
|
|
55
|
-
* ["1", "a", "2", "b", "3", "4"],
|
|
56
|
-
* );
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @example Zip 3 streams
|
|
60
|
-
* ```ts
|
|
61
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
62
|
-
* import { assertEquals } from "@std/assert";
|
|
63
|
-
*
|
|
64
|
-
* const stream1 = ReadableStream.from(["1"]);
|
|
65
|
-
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
66
|
-
* const stream3 = ReadableStream.from(["A", "B", "C"]);
|
|
67
|
-
* const zippedStream = zipReadableStreams(stream1, stream2, stream3);
|
|
68
|
-
*
|
|
69
|
-
* assertEquals(
|
|
70
|
-
* await Array.fromAsync(zippedStream),
|
|
71
|
-
* ["1", "a", "A", "b", "B", "C"],
|
|
72
|
-
* );
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
export declare function zipReadableStreams<T>(...streams: ReadableStream<T>[]): ReadableStream<T>;
|
|
76
|
-
//# sourceMappingURL=zip_readable_streams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zip_readable_streams.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,GAAG,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,GAC9B,cAAc,CAAC,CAAC,CAAC,CAuBnB"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.zipReadableStreams = zipReadableStreams;
|
|
6
|
-
/**
|
|
7
|
-
* Merge multiple streams into a single one, taking order into account, and
|
|
8
|
-
* each stream will wait for a chunk to enqueue before the next stream can
|
|
9
|
-
* append another chunk.
|
|
10
|
-
*
|
|
11
|
-
* If a stream ends before other ones, the others will continue adding data in
|
|
12
|
-
* order, and the finished one will not add any more data. If you want to cancel
|
|
13
|
-
* the other streams when one of them ends, use {@linkcode earlyZipReadableStreams}.
|
|
14
|
-
*
|
|
15
|
-
* @typeparam T The type of the chunks in the input/output streams.
|
|
16
|
-
* @param streams An iterable of `ReadableStream`s to merge.
|
|
17
|
-
* @returns A `ReadableStream` that will emit the zipped chunks.
|
|
18
|
-
*
|
|
19
|
-
* @example Zip 2 streams with the same length
|
|
20
|
-
* ```ts
|
|
21
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
22
|
-
* import { assertEquals } from "@std/assert";
|
|
23
|
-
*
|
|
24
|
-
* const stream1 = ReadableStream.from(["1", "2", "3"]);
|
|
25
|
-
* const stream2 = ReadableStream.from(["a", "b", "c"]);
|
|
26
|
-
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
27
|
-
*
|
|
28
|
-
* assertEquals(
|
|
29
|
-
* await Array.fromAsync(zippedStream),
|
|
30
|
-
* ["1", "a", "2", "b", "3", "c"],
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @example Zip 2 streams with different length (first one is shorter)
|
|
35
|
-
* ```ts
|
|
36
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
37
|
-
* import { assertEquals } from "@std/assert";
|
|
38
|
-
*
|
|
39
|
-
* const stream1 = ReadableStream.from(["1", "2"]);
|
|
40
|
-
* const stream2 = ReadableStream.from(["a", "b", "c", "d"]);
|
|
41
|
-
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
42
|
-
*
|
|
43
|
-
* assertEquals(
|
|
44
|
-
* await Array.fromAsync(zippedStream),
|
|
45
|
-
* ["1", "a", "2", "b", "c", "d"],
|
|
46
|
-
* );
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @example Zip 2 streams with different length (first one is longer)
|
|
50
|
-
* ```ts
|
|
51
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
52
|
-
* import { assertEquals } from "@std/assert";
|
|
53
|
-
*
|
|
54
|
-
* const stream1 = ReadableStream.from(["1", "2", "3", "4"]);
|
|
55
|
-
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
56
|
-
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
57
|
-
*
|
|
58
|
-
* assertEquals(
|
|
59
|
-
* await Array.fromAsync(zippedStream),
|
|
60
|
-
* ["1", "a", "2", "b", "3", "4"],
|
|
61
|
-
* );
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @example Zip 3 streams
|
|
65
|
-
* ```ts
|
|
66
|
-
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
67
|
-
* import { assertEquals } from "@std/assert";
|
|
68
|
-
*
|
|
69
|
-
* const stream1 = ReadableStream.from(["1"]);
|
|
70
|
-
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
71
|
-
* const stream3 = ReadableStream.from(["A", "B", "C"]);
|
|
72
|
-
* const zippedStream = zipReadableStreams(stream1, stream2, stream3);
|
|
73
|
-
*
|
|
74
|
-
* assertEquals(
|
|
75
|
-
* await Array.fromAsync(zippedStream),
|
|
76
|
-
* ["1", "a", "A", "b", "B", "C"],
|
|
77
|
-
* );
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
function zipReadableStreams(...streams) {
|
|
81
|
-
const readers = new Set(streams.map((s) => s.getReader()));
|
|
82
|
-
return new ReadableStream({
|
|
83
|
-
async start(controller) {
|
|
84
|
-
try {
|
|
85
|
-
let resolved = 0;
|
|
86
|
-
while (resolved !== streams.length) {
|
|
87
|
-
for (const reader of readers) {
|
|
88
|
-
const { value, done } = await reader.read();
|
|
89
|
-
if (!done) {
|
|
90
|
-
controller.enqueue(value);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
resolved++;
|
|
94
|
-
readers.delete(reader);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
controller.close();
|
|
99
|
-
}
|
|
100
|
-
catch (e) {
|
|
101
|
-
controller.error(e);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
}
|
package/script/jsonl.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonl.d.ts","sourceRoot":"","sources":["../src/jsonl.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,KAAK,SAAS,EAGd,KAAK,MAAM,EAEZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAejE,qBAAa,UAAW,YAAW,KAAK;IACnB,QAAQ,EAAE,GAAG;gBAAb,QAAQ,EAAE,GAAG;IAEhC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;IAgBzD;;;;;;;;;;;;;;OAcG;IACF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC;IAYrC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC;IAiCrC;;;;;;;;;;;OAWG;IACF,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC;IAcnD;;;;;;;;;;;;OAYG;IACF,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC;IAYpD;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC;IA0CrC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC;CAG1B"}
|
package/script/jsonl.js
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.JSONLStore = void 0;
|
|
40
|
-
const mod_js_1 = require("./deps/jsr.io/@std/json/1.0.2/mod.js");
|
|
41
|
-
const mod_js_2 = require("./deps/jsr.io/@std/streams/1.0.14/mod.js");
|
|
42
|
-
const mod_js_3 = require("./deps/jsr.io/@std/fs/1.0.20/mod.js");
|
|
43
|
-
const mod_js_4 = require("./deps/jsr.io/@std/path/1.1.3/mod.js");
|
|
44
|
-
const effection_1 = require("effection");
|
|
45
|
-
const node_fs_1 = __importDefault(require("node:fs"));
|
|
46
|
-
const fsp = __importStar(require("node:fs/promises"));
|
|
47
|
-
const node_stream_1 = require("node:stream");
|
|
48
|
-
function* mkdir(path, options) {
|
|
49
|
-
return yield* (0, effection_1.call)(() => fsp.mkdir(path, options));
|
|
50
|
-
}
|
|
51
|
-
class JSONLStore {
|
|
52
|
-
constructor(location) {
|
|
53
|
-
Object.defineProperty(this, "location", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
configurable: true,
|
|
56
|
-
writable: true,
|
|
57
|
-
value: location
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Creates a store with a location that has a trailing slash.
|
|
62
|
-
* The trailing slash is important to ensure that the store content
|
|
63
|
-
* is written to the store directory and not the directory above which
|
|
64
|
-
* can be very annoying. The location has to be absolute.
|
|
65
|
-
* ```ts
|
|
66
|
-
* const store = JSONLStore.from({ location: 'file:///Users/foo/.store/' })
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @param options StoreConstructorOptions
|
|
70
|
-
* @returns
|
|
71
|
-
*/
|
|
72
|
-
static from(options) {
|
|
73
|
-
const pathname = options.location instanceof URL
|
|
74
|
-
? options.location.pathname
|
|
75
|
-
: options.location;
|
|
76
|
-
if (pathname.charAt(-1) === "/") {
|
|
77
|
-
return new JSONLStore((0, mod_js_4.toFileUrl)(pathname));
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return new JSONLStore((0, mod_js_4.toFileUrl)(`${pathname}/`));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Returns true when key is present
|
|
85
|
-
* ```ts
|
|
86
|
-
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
87
|
-
*
|
|
88
|
-
* const store = yield* useStore();
|
|
89
|
-
*
|
|
90
|
-
* if (yield* store.has("test")) {
|
|
91
|
-
* console.log("store exists");
|
|
92
|
-
* }
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @param key string
|
|
96
|
-
* @returns boolean
|
|
97
|
-
*/
|
|
98
|
-
*has(key) {
|
|
99
|
-
const location = new URL(`./${key}.jsonl`, this.location);
|
|
100
|
-
return yield* (0, effection_1.call)(async () => {
|
|
101
|
-
try {
|
|
102
|
-
return await (0, mod_js_3.exists)(location);
|
|
103
|
-
}
|
|
104
|
-
catch {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Returns content of a file as a stream
|
|
111
|
-
*
|
|
112
|
-
* ```ts
|
|
113
|
-
* import { each } from "npm:effection@^3";
|
|
114
|
-
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
115
|
-
*
|
|
116
|
-
* const store = yield* useStore();
|
|
117
|
-
*
|
|
118
|
-
* for (const item of yield* each(store.read<number>("test"))) {
|
|
119
|
-
* console.log(item)
|
|
120
|
-
* yield* each.next();
|
|
121
|
-
* }
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* @param key string
|
|
125
|
-
* @returns Stream<T>
|
|
126
|
-
*/
|
|
127
|
-
read(key) {
|
|
128
|
-
const location = new URL(`./${key}.jsonl`, this.location);
|
|
129
|
-
return (0, effection_1.resource)(function* (provide) {
|
|
130
|
-
const channel = (0, effection_1.createChannel)();
|
|
131
|
-
const fileStream = node_fs_1.default.createReadStream((0, mod_js_4.fromFileUrl)(location));
|
|
132
|
-
const webStream = node_stream_1.Readable.toWeb(fileStream);
|
|
133
|
-
// deno-lint-ignore no-explicit-any
|
|
134
|
-
const lines = webStream
|
|
135
|
-
.pipeThrough(new TextDecoderStream())
|
|
136
|
-
.pipeThrough(new mod_js_2.TextLineStream())
|
|
137
|
-
.pipeThrough(new mod_js_1.JsonParseStream());
|
|
138
|
-
yield* (0, effection_1.spawn)(function* () {
|
|
139
|
-
const reader = lines.getReader();
|
|
140
|
-
try {
|
|
141
|
-
while (true) {
|
|
142
|
-
const { done, value } = yield* (0, effection_1.call)(() => reader.read());
|
|
143
|
-
yield* channel.send(value);
|
|
144
|
-
if (done)
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
finally {
|
|
149
|
-
reader.releaseLock();
|
|
150
|
-
yield* channel.close();
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
yield* provide(yield* channel);
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Write data to a file, creates the file and necessary directory structure as it goes along.
|
|
158
|
-
*
|
|
159
|
-
* ```ts
|
|
160
|
-
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
161
|
-
*
|
|
162
|
-
* const store = yield* useStore();
|
|
163
|
-
* yield* store.write("hello", "world");
|
|
164
|
-
* ```
|
|
165
|
-
* @param key string
|
|
166
|
-
* @param data unknown
|
|
167
|
-
*/
|
|
168
|
-
*write(key, data) {
|
|
169
|
-
const location = new URL(`./${key}.jsonl`, this.location);
|
|
170
|
-
yield* mkdir((0, mod_js_4.dirname)((0, mod_js_4.fromFileUrl)(location)), { recursive: true });
|
|
171
|
-
yield* (0, effection_1.call)(() => fsp.writeFile((0, mod_js_4.fromFileUrl)(location), `${JSON.stringify(data)}\n`, { encoding: "utf-8" }));
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Add data to an existing file.
|
|
175
|
-
*
|
|
176
|
-
* ```ts
|
|
177
|
-
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
178
|
-
*
|
|
179
|
-
* const store = yield* useStore();
|
|
180
|
-
* yield* store.write("hello", "world");
|
|
181
|
-
* yield* store.append("hello", "from bob");
|
|
182
|
-
* ```
|
|
183
|
-
* @param key string
|
|
184
|
-
* @param data
|
|
185
|
-
*/
|
|
186
|
-
*append(key, data) {
|
|
187
|
-
const location = new URL(`./${key}.jsonl`, this.location);
|
|
188
|
-
yield* (0, effection_1.call)(() => fsp.appendFile((0, mod_js_4.fromFileUrl)(location), `${JSON.stringify(data)}\n`, { encoding: "utf-8" }));
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Returns a stream of content from all files matching a glob
|
|
192
|
-
*
|
|
193
|
-
* ```ts
|
|
194
|
-
* import { each } from "npm:effection@^3";
|
|
195
|
-
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
196
|
-
*
|
|
197
|
-
* const store = yield* useStore();
|
|
198
|
-
*
|
|
199
|
-
* for (const item of yield* each(store.find<number>("subdir/*"))) {
|
|
200
|
-
* console.log(item);
|
|
201
|
-
* yield* each.next();
|
|
202
|
-
* }
|
|
203
|
-
* ```
|
|
204
|
-
*
|
|
205
|
-
* @param glob string
|
|
206
|
-
* @returns Stream<T, void>
|
|
207
|
-
*/
|
|
208
|
-
find(glob) {
|
|
209
|
-
const root = (0, mod_js_4.fromFileUrl)(this.location);
|
|
210
|
-
const reg = (0, mod_js_4.globToRegExp)((0, mod_js_4.join)(root, glob), {
|
|
211
|
-
globstar: true,
|
|
212
|
-
});
|
|
213
|
-
const files = (0, mod_js_3.walk)(root, {
|
|
214
|
-
includeDirs: false,
|
|
215
|
-
includeFiles: true,
|
|
216
|
-
match: [
|
|
217
|
-
reg,
|
|
218
|
-
],
|
|
219
|
-
});
|
|
220
|
-
const read = this.read.bind(this);
|
|
221
|
-
return (0, effection_1.resource)(function* (provide) {
|
|
222
|
-
const queue = (0, effection_1.createQueue)();
|
|
223
|
-
yield* (0, effection_1.spawn)(function* () {
|
|
224
|
-
for (const file of yield* (0, effection_1.each)((0, effection_1.stream)(files))) {
|
|
225
|
-
const key = file.path
|
|
226
|
-
.replace(root, "")
|
|
227
|
-
.replaceAll(`\\`, `/`)
|
|
228
|
-
.replace(/\.jsonl$/, "");
|
|
229
|
-
for (const item of yield* (0, effection_1.each)(read(key))) {
|
|
230
|
-
queue.add(item);
|
|
231
|
-
yield* effection_1.each.next();
|
|
232
|
-
}
|
|
233
|
-
yield* effection_1.each.next();
|
|
234
|
-
}
|
|
235
|
-
queue.close();
|
|
236
|
-
});
|
|
237
|
-
yield* provide(queue);
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
*clear() {
|
|
241
|
-
yield* (0, effection_1.call)(() => (0, mod_js_3.emptyDir)(this.location));
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
exports.JSONLStore = JSONLStore;
|
package/script/mod.d.ts
DELETED
package/script/mod.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,cAAc,YAAY,CAAC"}
|
package/script/mod.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.JSONLStore = exports.useStore = exports.StoreContext = void 0;
|
|
18
|
-
require("./_dnt.polyfills.js");
|
|
19
|
-
var context_js_1 = require("./context.js");
|
|
20
|
-
Object.defineProperty(exports, "StoreContext", { enumerable: true, get: function () { return context_js_1.StoreContext; } });
|
|
21
|
-
Object.defineProperty(exports, "useStore", { enumerable: true, get: function () { return context_js_1.useStore; } });
|
|
22
|
-
var jsonl_js_1 = require("./jsonl.js");
|
|
23
|
-
Object.defineProperty(exports, "JSONLStore", { enumerable: true, get: function () { return jsonl_js_1.JSONLStore; } });
|
|
24
|
-
__exportStar(require("./types.js"), exports);
|
package/script/package.json
DELETED
package/script/types.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Operation, Stream } from "effection";
|
|
2
|
-
export interface Store {
|
|
3
|
-
location: URL;
|
|
4
|
-
write(key: string, data: unknown): Operation<void>;
|
|
5
|
-
append(key: string, data: unknown): Operation<void>;
|
|
6
|
-
read<T>(key: string): Stream<T, void>;
|
|
7
|
-
has(key: string): Operation<boolean>;
|
|
8
|
-
find<T>(glob: string): Stream<T, void>;
|
|
9
|
-
clear(): Operation<void>;
|
|
10
|
-
}
|
|
11
|
-
export interface StoreConstructorOptions {
|
|
12
|
-
location: URL | string;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=types.d.ts.map
|
package/script/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IACnD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACtC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACvC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,GAAG,GAAG,MAAM,CAAC;CACxB"}
|
package/script/types.js
DELETED
/package/{esm → dist}/types.d.ts
RENAMED
|
File without changes
|
/package/{esm → dist}/types.js
RENAMED
|
File without changes
|