@effectionx/jsonl-store 0.1.2 → 0.2.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/_dnt.polyfills.d.ts +120 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +247 -0
- package/esm/_dnt.shims.d.ts +2 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +57 -0
- package/esm/context.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +32 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.js +50 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.js +33 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.js +20 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.js +312 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.js +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.js +101 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.js +89 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.js +60 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.js +119 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.d.ts +53 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.js +63 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +219 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.js +269 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.js +414 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.js +140 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.js +845 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.d.ts +4 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.js +11 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts +70 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.js +196 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.d.ts +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.js +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts +53 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.js +66 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts +95 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.js +88 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.d.ts +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.js +36 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +50 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.js +73 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.js +44 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +112 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.js +81 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.js +74 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +134 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +49 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.d.ts +5 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.js +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts +300 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.js +406 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts +44 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.js +85 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.js +47 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts +66 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.js +291 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts +83 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts +101 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.js +122 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts +84 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.js +106 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.js +69 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.d.ts +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts +58 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.js +123 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts +72 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.js +107 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.js +25 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.js +42 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts +29 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.js +45 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts +61 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts +76 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.js +102 -0
- package/esm/jsonl.js +4 -4
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/package.json +5 -1
- package/script/_dnt.polyfills.d.ts +120 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +250 -0
- package/script/_dnt.shims.d.ts +2 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +60 -0
- package/script/context.js +2 -2
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +3 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +35 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.js +53 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.js +37 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.js +23 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.js +316 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.js +90 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.js +93 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.js +64 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.js +123 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.d.ts +53 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.js +68 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +219 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +273 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.js +418 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.js +144 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.js +849 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.d.ts +4 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.js +14 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts +70 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.js +200 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.d.ts +23 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.js +39 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts +53 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.js +70 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts +95 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.js +92 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.d.ts +5 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +95 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +190 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.d.ts +5 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.js +31 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts +300 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.js +410 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts +44 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.js +89 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts +27 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.js +50 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts +66 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.js +295 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts +83 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts +101 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.js +126 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts +84 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.js +110 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.js +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.d.ts +35 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts +58 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.js +127 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.js +111 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.js +28 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.js +45 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts +29 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.js +48 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts +61 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts +76 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.js +105 -0
- package/script/jsonl.js +14 -14
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delimiter_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.ts"],"names":[],"mappings":"AAMA,2EAA2E;AAC3E,MAAM,MAAM,oBAAoB;AAC9B,4CAA4C;AAC1C,QAAQ;AACV,iDAAiD;GAC/C,QAAQ;AACV,6BAA6B;GAC3B,SAAS,CACZ;AAED,+CAA+C;AAC/C,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,eAAgB,SAAQ,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC;;IAO1E;;;;;OAKG;gBAED,SAAS,EAAE,UAAU,EACrB,OAAO,GAAE,sBAA2B;CAkOvC"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
9
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
10
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
11
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
12
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
13
|
+
};
|
|
14
|
+
var _DelimiterStream_instances, _DelimiterStream_bufs, _DelimiterStream_delimiter, _DelimiterStream_matchIndex, _DelimiterStream_delimLPS, _DelimiterStream_disp, _DelimiterStream_handle, _DelimiterStream_handleChar, _DelimiterStream_flush;
|
|
15
|
+
import { concat } from "../../bytes/1.0.6/concat.js";
|
|
16
|
+
import { createLPS } from "./_common.js";
|
|
17
|
+
/**
|
|
18
|
+
* Divide a stream into chunks delimited by a given byte sequence.
|
|
19
|
+
*
|
|
20
|
+
* If you are working with a stream of `string`, consider using {@linkcode TextDelimiterStream}.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* Divide a CSV stream by commas, discarding the commas:
|
|
24
|
+
* ```ts
|
|
25
|
+
* import { DelimiterStream } from "@std/streams/delimiter-stream";
|
|
26
|
+
* import { assertEquals } from "@std/assert";
|
|
27
|
+
*
|
|
28
|
+
* const inputStream = ReadableStream.from(["foo,bar", ",baz"]);
|
|
29
|
+
*
|
|
30
|
+
* const transformed = inputStream.pipeThrough(new TextEncoderStream())
|
|
31
|
+
* .pipeThrough(new DelimiterStream(new TextEncoder().encode(",")))
|
|
32
|
+
* .pipeThrough(new TextDecoderStream());
|
|
33
|
+
*
|
|
34
|
+
* assertEquals(await Array.fromAsync(transformed), ["foo", "bar", "baz"]);
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* Divide a stream after semi-colons, keeping the semicolons in the output:
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { DelimiterStream } from "@std/streams/delimiter-stream";
|
|
41
|
+
* import { assertEquals } from "@std/assert";
|
|
42
|
+
*
|
|
43
|
+
* const inputStream = ReadableStream.from(["foo;", "bar;baz", ";"]);
|
|
44
|
+
*
|
|
45
|
+
* const transformed = inputStream.pipeThrough(new TextEncoderStream())
|
|
46
|
+
* .pipeThrough(
|
|
47
|
+
* new DelimiterStream(new TextEncoder().encode(";"), {
|
|
48
|
+
* disposition: "suffix",
|
|
49
|
+
* }),
|
|
50
|
+
* ).pipeThrough(new TextDecoderStream());
|
|
51
|
+
*
|
|
52
|
+
* assertEquals(await Array.fromAsync(transformed), ["foo;", "bar;", "baz;"]);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export class DelimiterStream extends TransformStream {
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a new instance.
|
|
58
|
+
*
|
|
59
|
+
* @param delimiter A delimiter to split the stream by.
|
|
60
|
+
* @param options Options for the delimiter stream.
|
|
61
|
+
*/
|
|
62
|
+
constructor(delimiter, options = {}) {
|
|
63
|
+
super({
|
|
64
|
+
transform: (chunk, controller) => delimiter.length === 1
|
|
65
|
+
? __classPrivateFieldGet(this, _DelimiterStream_instances, "m", _DelimiterStream_handleChar).call(this, chunk, controller)
|
|
66
|
+
: __classPrivateFieldGet(this, _DelimiterStream_instances, "m", _DelimiterStream_handle).call(this, chunk, controller),
|
|
67
|
+
flush: (controller) => __classPrivateFieldGet(this, _DelimiterStream_instances, "m", _DelimiterStream_flush).call(this, controller),
|
|
68
|
+
});
|
|
69
|
+
_DelimiterStream_instances.add(this);
|
|
70
|
+
_DelimiterStream_bufs.set(this, []);
|
|
71
|
+
_DelimiterStream_delimiter.set(this, void 0);
|
|
72
|
+
_DelimiterStream_matchIndex.set(this, 0);
|
|
73
|
+
_DelimiterStream_delimLPS.set(this, void 0);
|
|
74
|
+
_DelimiterStream_disp.set(this, void 0);
|
|
75
|
+
__classPrivateFieldSet(this, _DelimiterStream_delimiter, delimiter, "f");
|
|
76
|
+
__classPrivateFieldSet(this, _DelimiterStream_delimLPS, delimiter.length > 1 ? createLPS(delimiter) : null, "f");
|
|
77
|
+
__classPrivateFieldSet(this, _DelimiterStream_disp, options.disposition ?? "discard", "f");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
_DelimiterStream_bufs = new WeakMap(), _DelimiterStream_delimiter = new WeakMap(), _DelimiterStream_matchIndex = new WeakMap(), _DelimiterStream_delimLPS = new WeakMap(), _DelimiterStream_disp = new WeakMap(), _DelimiterStream_instances = new WeakSet(), _DelimiterStream_handle = function _DelimiterStream_handle(chunk, controller) {
|
|
81
|
+
const bufs = __classPrivateFieldGet(this, _DelimiterStream_bufs, "f");
|
|
82
|
+
const length = chunk.byteLength;
|
|
83
|
+
const disposition = __classPrivateFieldGet(this, _DelimiterStream_disp, "f");
|
|
84
|
+
const delimiter = __classPrivateFieldGet(this, _DelimiterStream_delimiter, "f");
|
|
85
|
+
const delimLen = delimiter.length;
|
|
86
|
+
const lps = __classPrivateFieldGet(this, _DelimiterStream_delimLPS, "f");
|
|
87
|
+
let chunkStart = 0;
|
|
88
|
+
let matchIndex = __classPrivateFieldGet(this, _DelimiterStream_matchIndex, "f");
|
|
89
|
+
let inspectIndex = 0;
|
|
90
|
+
while (inspectIndex < length) {
|
|
91
|
+
if (chunk[inspectIndex] === delimiter[matchIndex]) {
|
|
92
|
+
// Next byte matched our next delimiter byte
|
|
93
|
+
inspectIndex++;
|
|
94
|
+
matchIndex++;
|
|
95
|
+
if (matchIndex === delimLen) {
|
|
96
|
+
// Full match
|
|
97
|
+
matchIndex = 0;
|
|
98
|
+
const delimiterStartIndex = inspectIndex - delimLen;
|
|
99
|
+
const delimitedChunkEnd = disposition === "suffix"
|
|
100
|
+
? inspectIndex
|
|
101
|
+
: delimiterStartIndex;
|
|
102
|
+
if (delimitedChunkEnd <= 0 && bufs.length === 0) {
|
|
103
|
+
// Our chunk started with a delimiter and no previous chunks exist:
|
|
104
|
+
// Enqueue an empty chunk.
|
|
105
|
+
controller.enqueue(new Uint8Array());
|
|
106
|
+
chunkStart = disposition === "prefix" ? 0 : inspectIndex;
|
|
107
|
+
}
|
|
108
|
+
else if (delimitedChunkEnd > 0 && bufs.length === 0) {
|
|
109
|
+
// No previous chunks, slice from current chunk.
|
|
110
|
+
controller.enqueue(chunk.subarray(chunkStart, delimitedChunkEnd));
|
|
111
|
+
// Our chunk may have more than one delimiter; we must remember where
|
|
112
|
+
// the next delimited chunk begins.
|
|
113
|
+
chunkStart = disposition === "prefix"
|
|
114
|
+
? delimiterStartIndex
|
|
115
|
+
: inspectIndex;
|
|
116
|
+
}
|
|
117
|
+
else if (delimitedChunkEnd === 0 && bufs.length > 0) {
|
|
118
|
+
// Our chunk started with a delimiter, previous chunks are passed as
|
|
119
|
+
// they are (with concatenation).
|
|
120
|
+
if (bufs.length === 1) {
|
|
121
|
+
// Concat not needed when a single buffer is passed.
|
|
122
|
+
controller.enqueue(bufs[0]);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
controller.enqueue(concat(bufs));
|
|
126
|
+
}
|
|
127
|
+
// Drop all previous chunks.
|
|
128
|
+
bufs.length = 0;
|
|
129
|
+
if (disposition !== "prefix") {
|
|
130
|
+
// suffix or discard: The next chunk starts where our inspection finished.
|
|
131
|
+
// We should only ever end up here with a discard disposition as
|
|
132
|
+
// for a suffix disposition this branch would mean that the previous
|
|
133
|
+
// chunk ended with a full match but was not enqueued.
|
|
134
|
+
chunkStart = inspectIndex;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
chunkStart = 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else if (delimitedChunkEnd < 0 && bufs.length > 0) {
|
|
141
|
+
// Our chunk started by finishing a partial delimiter match.
|
|
142
|
+
const lastIndex = bufs.length - 1;
|
|
143
|
+
const last = bufs[lastIndex];
|
|
144
|
+
const lastSliceIndex = last.byteLength + delimitedChunkEnd;
|
|
145
|
+
const lastSliced = last.subarray(0, lastSliceIndex);
|
|
146
|
+
if (lastIndex === 0) {
|
|
147
|
+
controller.enqueue(lastSliced);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
bufs[lastIndex] = lastSliced;
|
|
151
|
+
controller.enqueue(concat(bufs));
|
|
152
|
+
}
|
|
153
|
+
bufs.length = 0;
|
|
154
|
+
if (disposition === "prefix") {
|
|
155
|
+
// Must keep last bytes of last chunk.
|
|
156
|
+
bufs.push(last.subarray(lastSliceIndex));
|
|
157
|
+
chunkStart = 0;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
chunkStart = inspectIndex;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else if (delimitedChunkEnd > 0 && bufs.length > 0) {
|
|
164
|
+
// Previous chunks and current chunk together form a delimited chunk.
|
|
165
|
+
const chunkSliced = chunk.subarray(chunkStart, delimitedChunkEnd);
|
|
166
|
+
const result = concat([...bufs, chunkSliced]);
|
|
167
|
+
bufs.length = 0;
|
|
168
|
+
controller.enqueue(result);
|
|
169
|
+
chunkStart = disposition === "prefix"
|
|
170
|
+
? delimitedChunkEnd
|
|
171
|
+
: inspectIndex;
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
throw new Error("This should be unreachable, please file a bug report against Deno at https://github.com/denoland/std/issues");
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else if (matchIndex === 0) {
|
|
179
|
+
// No match ongoing, keep going through the buffer.
|
|
180
|
+
inspectIndex++;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
// Ongoing match: Degrade to the previous possible match.
|
|
184
|
+
// eg. If we're looking for 'AAB' and had matched 'AA' previously
|
|
185
|
+
// but now got a new 'A', then we'll drop down to having matched
|
|
186
|
+
// just 'A'. The while loop will turn around again and we'll rematch
|
|
187
|
+
// to 'AA' and proceed onwards to try and match on 'B' again.
|
|
188
|
+
matchIndex = lps[matchIndex - 1];
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// Save match index.
|
|
192
|
+
__classPrivateFieldSet(this, _DelimiterStream_matchIndex, matchIndex, "f");
|
|
193
|
+
if (chunkStart === 0) {
|
|
194
|
+
bufs.push(chunk);
|
|
195
|
+
}
|
|
196
|
+
else if (chunkStart < length) {
|
|
197
|
+
// If we matched partially somewhere in the middle of our chunk
|
|
198
|
+
// then the remnants should be pushed into buffers.
|
|
199
|
+
bufs.push(chunk.subarray(chunkStart));
|
|
200
|
+
}
|
|
201
|
+
}, _DelimiterStream_handleChar = function _DelimiterStream_handleChar(chunk, controller) {
|
|
202
|
+
const bufs = __classPrivateFieldGet(this, _DelimiterStream_bufs, "f");
|
|
203
|
+
const length = chunk.byteLength;
|
|
204
|
+
const disposition = __classPrivateFieldGet(this, _DelimiterStream_disp, "f");
|
|
205
|
+
const delimiter = __classPrivateFieldGet(this, _DelimiterStream_delimiter, "f")[0];
|
|
206
|
+
let chunkStart = 0;
|
|
207
|
+
let inspectIndex = 0;
|
|
208
|
+
while (inspectIndex < length) {
|
|
209
|
+
if (chunk[inspectIndex] === delimiter) {
|
|
210
|
+
// Next byte matched our next delimiter
|
|
211
|
+
inspectIndex++;
|
|
212
|
+
/**
|
|
213
|
+
* Always non-negative
|
|
214
|
+
*/
|
|
215
|
+
const delimitedChunkEnd = disposition === "suffix"
|
|
216
|
+
? inspectIndex
|
|
217
|
+
: inspectIndex - 1;
|
|
218
|
+
if (delimitedChunkEnd === 0 && bufs.length === 0) {
|
|
219
|
+
// Our chunk started with a delimiter and no previous chunks exist:
|
|
220
|
+
// Enqueue an empty chunk.
|
|
221
|
+
controller.enqueue(new Uint8Array());
|
|
222
|
+
chunkStart = disposition === "prefix" ? 0 : 1;
|
|
223
|
+
}
|
|
224
|
+
else if (delimitedChunkEnd > 0 && bufs.length === 0) {
|
|
225
|
+
// No previous chunks, slice from current chunk.
|
|
226
|
+
controller.enqueue(chunk.subarray(chunkStart, delimitedChunkEnd));
|
|
227
|
+
// Our chunk may have more than one delimiter; we must remember where
|
|
228
|
+
// the next delimited chunk begins.
|
|
229
|
+
chunkStart = disposition === "prefix"
|
|
230
|
+
? inspectIndex - 1
|
|
231
|
+
: inspectIndex;
|
|
232
|
+
}
|
|
233
|
+
else if (delimitedChunkEnd === 0 && bufs.length > 0) {
|
|
234
|
+
// Our chunk started with a delimiter, previous chunks are passed as
|
|
235
|
+
// they are (with concatenation).
|
|
236
|
+
if (bufs.length === 1) {
|
|
237
|
+
// Concat not needed when a single buffer is passed.
|
|
238
|
+
controller.enqueue(bufs[0]);
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
controller.enqueue(concat(bufs));
|
|
242
|
+
}
|
|
243
|
+
// Drop all previous chunks.
|
|
244
|
+
bufs.length = 0;
|
|
245
|
+
if (disposition !== "prefix") {
|
|
246
|
+
// suffix or discard: The next chunk starts where our inspection finished.
|
|
247
|
+
// We should only ever end up here with a discard disposition as
|
|
248
|
+
// for a suffix disposition this branch would mean that the previous
|
|
249
|
+
// chunk ended with a full match but was not enqueued.
|
|
250
|
+
chunkStart = inspectIndex;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
else if (delimitedChunkEnd > 0 && bufs.length > 0) {
|
|
254
|
+
// Previous chunks and current chunk together form a delimited chunk.
|
|
255
|
+
const chunkSliced = chunk.subarray(chunkStart, delimitedChunkEnd);
|
|
256
|
+
const result = concat([...bufs, chunkSliced]);
|
|
257
|
+
bufs.length = 0;
|
|
258
|
+
chunkStart = disposition === "prefix"
|
|
259
|
+
? delimitedChunkEnd
|
|
260
|
+
: inspectIndex;
|
|
261
|
+
controller.enqueue(result);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
throw new Error("This should be unreachable, please file a bug report against Deno at https://github.com/denoland/std/issues");
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
inspectIndex++;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
if (chunkStart === 0) {
|
|
272
|
+
bufs.push(chunk);
|
|
273
|
+
}
|
|
274
|
+
else if (chunkStart < length) {
|
|
275
|
+
// If we matched partially somewhere in the middle of our chunk
|
|
276
|
+
// then the remnants should be pushed into buffers.
|
|
277
|
+
bufs.push(chunk.subarray(chunkStart));
|
|
278
|
+
}
|
|
279
|
+
}, _DelimiterStream_flush = function _DelimiterStream_flush(controller) {
|
|
280
|
+
const bufs = __classPrivateFieldGet(this, _DelimiterStream_bufs, "f");
|
|
281
|
+
const length = bufs.length;
|
|
282
|
+
if (length === 0) {
|
|
283
|
+
controller.enqueue(new Uint8Array());
|
|
284
|
+
}
|
|
285
|
+
else if (length === 1) {
|
|
286
|
+
controller.enqueue(bufs[0]);
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
controller.enqueue(concat(bufs));
|
|
290
|
+
}
|
|
291
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge multiple streams into a single one, taking order into account, and each
|
|
3
|
+
* stream will wait for a chunk to enqueue before the next stream can append
|
|
4
|
+
* another chunk.
|
|
5
|
+
*
|
|
6
|
+
* If a stream ends before other ones, the others will be cancelled after the
|
|
7
|
+
* last chunk of said stream is read. See the examples below for more
|
|
8
|
+
* comprehensible information. If you want to continue reading the other streams
|
|
9
|
+
* even after one of them ends, use {@linkcode zipReadableStreams}.
|
|
10
|
+
*
|
|
11
|
+
* @typeparam T The type of the chunks in the input streams.
|
|
12
|
+
* @param streams An iterable of `ReadableStream`s to merge.
|
|
13
|
+
* @returns A `ReadableStream` that will emit the zipped chunks
|
|
14
|
+
*
|
|
15
|
+
* @example Zip 2 streams with the same length
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
18
|
+
* import { assertEquals } from "@std/assert";
|
|
19
|
+
*
|
|
20
|
+
* const stream1 = ReadableStream.from(["1", "2", "3"]);
|
|
21
|
+
* const stream2 = ReadableStream.from(["a", "b", "c"]);
|
|
22
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2);
|
|
23
|
+
*
|
|
24
|
+
* assertEquals(
|
|
25
|
+
* await Array.fromAsync(zippedStream),
|
|
26
|
+
* ["1", "a", "2", "b", "3", "c"],
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example Zip 2 streams with different length (first one is shorter)
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
33
|
+
* import { assertEquals } from "@std/assert";
|
|
34
|
+
*
|
|
35
|
+
* const stream1 = ReadableStream.from(["1", "2"]);
|
|
36
|
+
* const stream2 = ReadableStream.from(["a", "b", "c", "d"]);
|
|
37
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2);
|
|
38
|
+
*
|
|
39
|
+
* // The first stream ends before the second one. When the first stream ends,
|
|
40
|
+
* // the second one is cancelled and no more data is read or added to the
|
|
41
|
+
* // zipped stream.
|
|
42
|
+
* assertEquals(
|
|
43
|
+
* await Array.fromAsync(zippedStream),
|
|
44
|
+
* ["1", "a", "2", "b"],
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example Zip 2 streams with different length (first one is longer)
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
51
|
+
* import { assertEquals } from "@std/assert";
|
|
52
|
+
*
|
|
53
|
+
* const stream1 = ReadableStream.from(["1", "2", "3", "4"]);
|
|
54
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
55
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2);
|
|
56
|
+
*
|
|
57
|
+
* // The second stream ends before the first one. When the second stream ends,
|
|
58
|
+
* // the first one is cancelled, but the chunk of "3" is already read so it
|
|
59
|
+
* // is added to the zipped stream.
|
|
60
|
+
* assertEquals(
|
|
61
|
+
* await Array.fromAsync(zippedStream),
|
|
62
|
+
* ["1", "a", "2", "b", "3"],
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @example Zip 3 streams
|
|
67
|
+
* ```ts
|
|
68
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
69
|
+
* import { assertEquals } from "@std/assert";
|
|
70
|
+
*
|
|
71
|
+
* const stream1 = ReadableStream.from(["1"]);
|
|
72
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
73
|
+
* const stream3 = ReadableStream.from(["A", "B", "C"]);
|
|
74
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2, stream3);
|
|
75
|
+
*
|
|
76
|
+
* assertEquals(
|
|
77
|
+
* await Array.fromAsync(zippedStream),
|
|
78
|
+
* ["1", "a", "A"],
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function earlyZipReadableStreams<T>(...streams: ReadableStream<T>[]): ReadableStream<T>;
|
|
83
|
+
//# sourceMappingURL=early_zip_readable_streams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"early_zip_readable_streams.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,GAAG,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,GAC9B,cAAc,CAAC,CAAC,CAAC,CAsBnB"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* Merge multiple streams into a single one, taking order into account, and each
|
|
5
|
+
* stream will wait for a chunk to enqueue before the next stream can append
|
|
6
|
+
* another chunk.
|
|
7
|
+
*
|
|
8
|
+
* If a stream ends before other ones, the others will be cancelled after the
|
|
9
|
+
* last chunk of said stream is read. See the examples below for more
|
|
10
|
+
* comprehensible information. If you want to continue reading the other streams
|
|
11
|
+
* even after one of them ends, use {@linkcode zipReadableStreams}.
|
|
12
|
+
*
|
|
13
|
+
* @typeparam T The type of the chunks in the input streams.
|
|
14
|
+
* @param streams An iterable of `ReadableStream`s to merge.
|
|
15
|
+
* @returns A `ReadableStream` that will emit the zipped chunks
|
|
16
|
+
*
|
|
17
|
+
* @example Zip 2 streams with the same length
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
20
|
+
* import { assertEquals } from "@std/assert";
|
|
21
|
+
*
|
|
22
|
+
* const stream1 = ReadableStream.from(["1", "2", "3"]);
|
|
23
|
+
* const stream2 = ReadableStream.from(["a", "b", "c"]);
|
|
24
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2);
|
|
25
|
+
*
|
|
26
|
+
* assertEquals(
|
|
27
|
+
* await Array.fromAsync(zippedStream),
|
|
28
|
+
* ["1", "a", "2", "b", "3", "c"],
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @example Zip 2 streams with different length (first one is shorter)
|
|
33
|
+
* ```ts
|
|
34
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
35
|
+
* import { assertEquals } from "@std/assert";
|
|
36
|
+
*
|
|
37
|
+
* const stream1 = ReadableStream.from(["1", "2"]);
|
|
38
|
+
* const stream2 = ReadableStream.from(["a", "b", "c", "d"]);
|
|
39
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2);
|
|
40
|
+
*
|
|
41
|
+
* // The first stream ends before the second one. When the first stream ends,
|
|
42
|
+
* // the second one is cancelled and no more data is read or added to the
|
|
43
|
+
* // zipped stream.
|
|
44
|
+
* assertEquals(
|
|
45
|
+
* await Array.fromAsync(zippedStream),
|
|
46
|
+
* ["1", "a", "2", "b"],
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @example Zip 2 streams with different length (first one is longer)
|
|
51
|
+
* ```ts
|
|
52
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
53
|
+
* import { assertEquals } from "@std/assert";
|
|
54
|
+
*
|
|
55
|
+
* const stream1 = ReadableStream.from(["1", "2", "3", "4"]);
|
|
56
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
57
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2);
|
|
58
|
+
*
|
|
59
|
+
* // The second stream ends before the first one. When the second stream ends,
|
|
60
|
+
* // the first one is cancelled, but the chunk of "3" is already read so it
|
|
61
|
+
* // is added to the zipped stream.
|
|
62
|
+
* assertEquals(
|
|
63
|
+
* await Array.fromAsync(zippedStream),
|
|
64
|
+
* ["1", "a", "2", "b", "3"],
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @example Zip 3 streams
|
|
69
|
+
* ```ts
|
|
70
|
+
* import { earlyZipReadableStreams } from "@std/streams/early-zip-readable-streams";
|
|
71
|
+
* import { assertEquals } from "@std/assert";
|
|
72
|
+
*
|
|
73
|
+
* const stream1 = ReadableStream.from(["1"]);
|
|
74
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
75
|
+
* const stream3 = ReadableStream.from(["A", "B", "C"]);
|
|
76
|
+
* const zippedStream = earlyZipReadableStreams(stream1, stream2, stream3);
|
|
77
|
+
*
|
|
78
|
+
* assertEquals(
|
|
79
|
+
* await Array.fromAsync(zippedStream),
|
|
80
|
+
* ["1", "a", "A"],
|
|
81
|
+
* );
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export function earlyZipReadableStreams(...streams) {
|
|
85
|
+
const readers = streams.map((stream) => stream.getReader());
|
|
86
|
+
return new ReadableStream({
|
|
87
|
+
async pull(controller) {
|
|
88
|
+
for (let i = 0; i < readers.length; ++i) {
|
|
89
|
+
const { done, value } = await readers[i].read();
|
|
90
|
+
if (done) {
|
|
91
|
+
await Promise.all(readers.map((reader) => reader.cancel(`Stream at index ${i} ended`)));
|
|
92
|
+
controller.close();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
controller.enqueue(value);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
async cancel(reason) {
|
|
99
|
+
await Promise.all(readers.map((reader) => reader.cancel(reason)));
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/** Options for {@linkcode LimitedBytesTransformStream}. */
|
|
2
|
+
export interface LimitedBytesTransformStreamOptions {
|
|
3
|
+
/**
|
|
4
|
+
* If true, a {@linkcode RangeError} is thrown when queueing the current chunk
|
|
5
|
+
* would exceed the specified size limit.
|
|
6
|
+
*
|
|
7
|
+
* @default {false}
|
|
8
|
+
*/
|
|
9
|
+
error?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A {@linkcode TransformStream} that will only read & enqueue chunks until the
|
|
13
|
+
* total amount of enqueued data exceeds `size`. The last chunk that would
|
|
14
|
+
* exceed the limit will NOT be enqueued, in which case a {@linkcode RangeError}
|
|
15
|
+
* is thrown when `options.error` is set to true, otherwise the stream is just
|
|
16
|
+
* terminated.
|
|
17
|
+
*
|
|
18
|
+
* @example `size` is equal to the total byte length of the chunks
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { LimitedBytesTransformStream } from "@std/streams/limited-bytes-transform-stream";
|
|
21
|
+
* import { assertEquals } from "@std/assert";
|
|
22
|
+
*
|
|
23
|
+
* const stream = ReadableStream.from(["1234", "5678"]);
|
|
24
|
+
* const transformed = stream.pipeThrough(new TextEncoderStream()).pipeThrough(
|
|
25
|
+
* new LimitedBytesTransformStream(8),
|
|
26
|
+
* ).pipeThrough(new TextDecoderStream());
|
|
27
|
+
*
|
|
28
|
+
* assertEquals(
|
|
29
|
+
* await Array.fromAsync(transformed),
|
|
30
|
+
* ["1234", "5678"],
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example `size` is less than the total byte length of the chunks, and at the
|
|
35
|
+
* boundary of the chunks
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { LimitedBytesTransformStream } from "@std/streams/limited-bytes-transform-stream";
|
|
38
|
+
* import { assertEquals } from "@std/assert";
|
|
39
|
+
*
|
|
40
|
+
* const stream = ReadableStream.from(["1234", "5678"]);
|
|
41
|
+
* const transformed = stream.pipeThrough(new TextEncoderStream()).pipeThrough(
|
|
42
|
+
* // `4` is the boundary of the chunks
|
|
43
|
+
* new LimitedBytesTransformStream(4),
|
|
44
|
+
* ).pipeThrough(new TextDecoderStream());
|
|
45
|
+
*
|
|
46
|
+
* assertEquals(
|
|
47
|
+
* await Array.fromAsync(transformed),
|
|
48
|
+
* // The first chunk was read, but the second chunk was not
|
|
49
|
+
* ["1234"],
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example `size` is less than the total byte length of the chunks, and not at
|
|
54
|
+
* the boundary of the chunks
|
|
55
|
+
* ```ts
|
|
56
|
+
* import { LimitedBytesTransformStream } from "@std/streams/limited-bytes-transform-stream";
|
|
57
|
+
* import { assertEquals } from "@std/assert";
|
|
58
|
+
*
|
|
59
|
+
* const stream = ReadableStream.from(["1234", "5678"]);
|
|
60
|
+
* const transformed = stream.pipeThrough(new TextEncoderStream()).pipeThrough(
|
|
61
|
+
* // `5` is not the boundary of the chunks
|
|
62
|
+
* new LimitedBytesTransformStream(5),
|
|
63
|
+
* ).pipeThrough(new TextDecoderStream());
|
|
64
|
+
*
|
|
65
|
+
* assertEquals(
|
|
66
|
+
* await Array.fromAsync(transformed),
|
|
67
|
+
* // The second chunk was not read because it would exceed the specified size
|
|
68
|
+
* ["1234"],
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @example Throw error when the total byte length of the chunks exceeds the
|
|
73
|
+
* specified size
|
|
74
|
+
*
|
|
75
|
+
* To do so, set `options.error` to `true`.
|
|
76
|
+
*
|
|
77
|
+
* ```ts
|
|
78
|
+
* import { LimitedBytesTransformStream } from "@std/streams/limited-bytes-transform-stream";
|
|
79
|
+
* import { assertRejects } from "@std/assert";
|
|
80
|
+
*
|
|
81
|
+
* const stream = ReadableStream.from(["1234", "5678"]);
|
|
82
|
+
* const transformed = stream.pipeThrough(new TextEncoderStream()).pipeThrough(
|
|
83
|
+
* new LimitedBytesTransformStream(5, { error: true }),
|
|
84
|
+
* ).pipeThrough(new TextDecoderStream());
|
|
85
|
+
*
|
|
86
|
+
* await assertRejects(async () => {
|
|
87
|
+
* await Array.fromAsync(transformed);
|
|
88
|
+
* }, RangeError);
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
export declare class LimitedBytesTransformStream extends TransformStream<Uint8Array, Uint8Array> {
|
|
92
|
+
#private;
|
|
93
|
+
/**
|
|
94
|
+
* Constructs a new instance.
|
|
95
|
+
*
|
|
96
|
+
* @param size A size limit in bytes.
|
|
97
|
+
* @param options Options for the stream.
|
|
98
|
+
*/
|
|
99
|
+
constructor(size: number, options?: LimitedBytesTransformStreamOptions);
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=limited_bytes_transform_stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limited_bytes_transform_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.ts"],"names":[],"mappings":"AAGA,2DAA2D;AAC3D,MAAM,WAAW,kCAAkC;IACjD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,qBAAa,2BACX,SAAQ,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC;;IAG/C;;;;;OAKG;gBAED,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,kCAAqD;CAiBjE"}
|