@effectionx/jsonl-store 0.1.2 → 0.3.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/README.md +4 -4
- 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.d.ts.map +1 -1
- package/esm/context.js +3 -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.20/_create_walk_entry.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +33 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +20 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.js +312 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +101 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +89 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +60 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +70 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +155 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.js +67 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +219 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.js +269 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +439 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.js +141 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.js +845 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.d.ts +4 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/_common.js +11 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts +70 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.js +196 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.d.ts +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/mod.js +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts +53 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/parse_stream.js +66 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts +95 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/stringify_stream.js +88 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/types.d.ts +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.2/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +216 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +26 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.js +52 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +64 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.js +93 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +31 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +113 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +49 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.d.ts +5 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/_common.js +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts +300 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/buffer.js +411 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts +44 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.js +85 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.js +48 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts +66 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.js +291 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts +83 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts +101 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.js +122 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts +84 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.js +106 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.js +69 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.d.ts +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/mod.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts +58 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.js +123 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts +72 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/text_line_stream.js +107 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_blob.js +25 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_json.js +42 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts +29 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_text.js +45 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts +61 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.js +103 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts +76 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.js +102 -0
- package/esm/jsonl.d.ts +2 -2
- package/esm/jsonl.d.ts.map +1 -1
- package/esm/jsonl.js +23 -35
- 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.d.ts.map +1 -1
- package/script/context.js +6 -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.20/_create_walk_entry.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +37 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +23 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.js +316 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +90 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +93 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +64 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +70 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +159 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +219 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.js +273 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +443 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/move.js +145 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.js +849 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
- package/script/deps/jsr.io/@std/json/1.0.2/_common.d.ts +4 -0
- package/script/deps/jsr.io/@std/json/1.0.2/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/_common.js +14 -0
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts +70 -0
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/concatenated_json_parse_stream.js +200 -0
- package/script/deps/jsr.io/@std/json/1.0.2/mod.d.ts +23 -0
- package/script/deps/jsr.io/@std/json/1.0.2/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/mod.js +39 -0
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts +53 -0
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/parse_stream.js +70 -0
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts +95 -0
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/stringify_stream.js +92 -0
- package/script/deps/jsr.io/@std/json/1.0.2/types.d.ts +5 -0
- package/script/deps/jsr.io/@std/json/1.0.2/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.2/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/basename.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/extname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/mod.js +232 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +26 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.js +55 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +30 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +67 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.js +96 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.js +48 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +61 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +95 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.js +50 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +116 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +44 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +138 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +190 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.d.ts +5 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/_common.js +31 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts +300 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/buffer.js +415 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts +44 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/byte_slice_stream.js +89 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts +27 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/concat_readable_streams.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts +66 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/delimiter_stream.js +295 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts +83 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/early_zip_readable_streams.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts +101 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_bytes_transform_stream.js +126 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts +84 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/limited_transform_stream.js +110 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/merge_readable_streams.js +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.d.ts +35 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/mod.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts +58 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_delimiter_stream.js +127 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/text_line_stream.js +111 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.js +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_blob.js +28 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_json.js +45 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts +29 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_text.js +48 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts +61 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/to_transform_stream.js +106 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts +76 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.js +105 -0
- package/script/jsonl.d.ts +2 -2
- package/script/jsonl.d.ts.map +1 -1
- package/script/jsonl.js +62 -41
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. 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 _TextDelimiterStream_instances, _TextDelimiterStream_buf, _TextDelimiterStream_delimiter, _TextDelimiterStream_inspectIndex, _TextDelimiterStream_matchIndex, _TextDelimiterStream_delimLPS, _TextDelimiterStream_disp, _TextDelimiterStream_handle;
|
|
15
|
+
import { createLPS } from "./_common.js";
|
|
16
|
+
/**
|
|
17
|
+
* Transform a stream `string` into a stream where each chunk is divided by a
|
|
18
|
+
* given delimiter.
|
|
19
|
+
*
|
|
20
|
+
* If you are working with a stream of `Uint8Array`, consider using {@linkcode DelimiterStream}.
|
|
21
|
+
*
|
|
22
|
+
* If you want to split by a newline, consider using {@linkcode TextLineStream}.
|
|
23
|
+
*
|
|
24
|
+
* @example Comma-separated values
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { TextDelimiterStream } from "@std/streams/text-delimiter-stream";
|
|
27
|
+
* import { assertEquals } from "@std/assert";
|
|
28
|
+
*
|
|
29
|
+
* const stream = ReadableStream.from([
|
|
30
|
+
* "alice,20,",
|
|
31
|
+
* ",US,",
|
|
32
|
+
* ]);
|
|
33
|
+
*
|
|
34
|
+
* const valueStream = stream.pipeThrough(new TextDelimiterStream(","));
|
|
35
|
+
*
|
|
36
|
+
* assertEquals(
|
|
37
|
+
* await Array.fromAsync(valueStream),
|
|
38
|
+
* ["alice", "20", "", "US", ""],
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @example Semicolon-separated values with suffix disposition
|
|
43
|
+
* ```ts
|
|
44
|
+
* import { TextDelimiterStream } from "@std/streams/text-delimiter-stream";
|
|
45
|
+
* import { assertEquals } from "@std/assert";
|
|
46
|
+
*
|
|
47
|
+
* const stream = ReadableStream.from([
|
|
48
|
+
* "const a = 42;;let b =",
|
|
49
|
+
* " true;",
|
|
50
|
+
* ]);
|
|
51
|
+
*
|
|
52
|
+
* const valueStream = stream.pipeThrough(
|
|
53
|
+
* new TextDelimiterStream(";", { disposition: "suffix" }),
|
|
54
|
+
* );
|
|
55
|
+
*
|
|
56
|
+
* assertEquals(
|
|
57
|
+
* await Array.fromAsync(valueStream),
|
|
58
|
+
* ["const a = 42;", ";", "let b = true;", ""],
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export class TextDelimiterStream extends TransformStream {
|
|
63
|
+
/**
|
|
64
|
+
* Constructs a new instance.
|
|
65
|
+
*
|
|
66
|
+
* @param delimiter A delimiter to split the stream by.
|
|
67
|
+
* @param options Options for the stream.
|
|
68
|
+
*/
|
|
69
|
+
constructor(delimiter, options) {
|
|
70
|
+
super({
|
|
71
|
+
transform: (chunk, controller) => {
|
|
72
|
+
__classPrivateFieldGet(this, _TextDelimiterStream_instances, "m", _TextDelimiterStream_handle).call(this, chunk, controller);
|
|
73
|
+
},
|
|
74
|
+
flush: (controller) => {
|
|
75
|
+
controller.enqueue(__classPrivateFieldGet(this, _TextDelimiterStream_buf, "f"));
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
_TextDelimiterStream_instances.add(this);
|
|
79
|
+
_TextDelimiterStream_buf.set(this, "");
|
|
80
|
+
_TextDelimiterStream_delimiter.set(this, void 0);
|
|
81
|
+
_TextDelimiterStream_inspectIndex.set(this, 0);
|
|
82
|
+
_TextDelimiterStream_matchIndex.set(this, 0);
|
|
83
|
+
_TextDelimiterStream_delimLPS.set(this, void 0);
|
|
84
|
+
_TextDelimiterStream_disp.set(this, void 0);
|
|
85
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_delimiter, delimiter, "f");
|
|
86
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_delimLPS, createLPS(new TextEncoder().encode(delimiter)), "f");
|
|
87
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_disp, options?.disposition ?? "discard", "f");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
_TextDelimiterStream_buf = new WeakMap(), _TextDelimiterStream_delimiter = new WeakMap(), _TextDelimiterStream_inspectIndex = new WeakMap(), _TextDelimiterStream_matchIndex = new WeakMap(), _TextDelimiterStream_delimLPS = new WeakMap(), _TextDelimiterStream_disp = new WeakMap(), _TextDelimiterStream_instances = new WeakSet(), _TextDelimiterStream_handle = function _TextDelimiterStream_handle(chunk, controller) {
|
|
91
|
+
var _a, _b, _c;
|
|
92
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_buf, __classPrivateFieldGet(this, _TextDelimiterStream_buf, "f") + chunk, "f");
|
|
93
|
+
let localIndex = 0;
|
|
94
|
+
while (__classPrivateFieldGet(this, _TextDelimiterStream_inspectIndex, "f") < __classPrivateFieldGet(this, _TextDelimiterStream_buf, "f").length) {
|
|
95
|
+
if (chunk[localIndex] === __classPrivateFieldGet(this, _TextDelimiterStream_delimiter, "f")[__classPrivateFieldGet(this, _TextDelimiterStream_matchIndex, "f")]) {
|
|
96
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_inspectIndex, (_a = __classPrivateFieldGet(this, _TextDelimiterStream_inspectIndex, "f"), _a++, _a), "f");
|
|
97
|
+
localIndex++;
|
|
98
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_matchIndex, (_b = __classPrivateFieldGet(this, _TextDelimiterStream_matchIndex, "f"), _b++, _b), "f");
|
|
99
|
+
if (__classPrivateFieldGet(this, _TextDelimiterStream_matchIndex, "f") === __classPrivateFieldGet(this, _TextDelimiterStream_delimiter, "f").length) {
|
|
100
|
+
// Full match
|
|
101
|
+
const start = __classPrivateFieldGet(this, _TextDelimiterStream_inspectIndex, "f") - __classPrivateFieldGet(this, _TextDelimiterStream_delimiter, "f").length;
|
|
102
|
+
const end = __classPrivateFieldGet(this, _TextDelimiterStream_disp, "f") === "suffix" ? __classPrivateFieldGet(this, _TextDelimiterStream_inspectIndex, "f") : start;
|
|
103
|
+
const copy = __classPrivateFieldGet(this, _TextDelimiterStream_buf, "f").slice(0, end);
|
|
104
|
+
controller.enqueue(copy);
|
|
105
|
+
const shift = __classPrivateFieldGet(this, _TextDelimiterStream_disp, "f") === "prefix" ? start : __classPrivateFieldGet(this, _TextDelimiterStream_inspectIndex, "f");
|
|
106
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_buf, __classPrivateFieldGet(this, _TextDelimiterStream_buf, "f").slice(shift), "f");
|
|
107
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_inspectIndex, __classPrivateFieldGet(this, _TextDelimiterStream_disp, "f") === "prefix"
|
|
108
|
+
? __classPrivateFieldGet(this, _TextDelimiterStream_delimiter, "f").length
|
|
109
|
+
: 0, "f");
|
|
110
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_matchIndex, 0, "f");
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
if (__classPrivateFieldGet(this, _TextDelimiterStream_matchIndex, "f") === 0) {
|
|
115
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_inspectIndex, (_c = __classPrivateFieldGet(this, _TextDelimiterStream_inspectIndex, "f"), _c++, _c), "f");
|
|
116
|
+
localIndex++;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
__classPrivateFieldSet(this, _TextDelimiterStream_matchIndex, __classPrivateFieldGet(this, _TextDelimiterStream_delimLPS, "f")[__classPrivateFieldGet(this, _TextDelimiterStream_matchIndex, "f") - 1], "f");
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/** Options for {@linkcode TextLineStream}. */
|
|
2
|
+
export interface TextLineStreamOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Allow splitting by `\r`.
|
|
5
|
+
*
|
|
6
|
+
* @default {false}
|
|
7
|
+
*/
|
|
8
|
+
allowCR?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Transform a stream into a stream where each chunk is divided by a newline,
|
|
12
|
+
* be it `\n` or `\r\n`. `\r` can be enabled via the `allowCR` option.
|
|
13
|
+
*
|
|
14
|
+
* If you want to split by a custom delimiter, consider using {@linkcode TextDelimiterStream}.
|
|
15
|
+
*
|
|
16
|
+
* @example JSON Lines
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
19
|
+
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
20
|
+
* import { assertEquals } from "@std/assert";
|
|
21
|
+
*
|
|
22
|
+
* const stream = ReadableStream.from([
|
|
23
|
+
* '{"name": "Alice", "age": ',
|
|
24
|
+
* '30}\n{"name": "Bob", "age"',
|
|
25
|
+
* ": 25}\n",
|
|
26
|
+
* ]);
|
|
27
|
+
*
|
|
28
|
+
* type Person = { name: string; age: number };
|
|
29
|
+
*
|
|
30
|
+
* // Split the stream by newline and parse each line as a JSON object
|
|
31
|
+
* const jsonStream = stream.pipeThrough(new TextLineStream())
|
|
32
|
+
* .pipeThrough(toTransformStream(async function* (src) {
|
|
33
|
+
* for await (const chunk of src) {
|
|
34
|
+
* if (chunk.trim().length === 0) {
|
|
35
|
+
* continue;
|
|
36
|
+
* }
|
|
37
|
+
* yield JSON.parse(chunk) as Person;
|
|
38
|
+
* }
|
|
39
|
+
* }));
|
|
40
|
+
*
|
|
41
|
+
* assertEquals(
|
|
42
|
+
* await Array.fromAsync(jsonStream),
|
|
43
|
+
* [{ "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 }],
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @example Allow splitting by `\r`
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
51
|
+
* import { assertEquals } from "@std/assert";
|
|
52
|
+
*
|
|
53
|
+
* const stream = ReadableStream.from([
|
|
54
|
+
* "CR\rLF",
|
|
55
|
+
* "\nCRLF\r\ndone",
|
|
56
|
+
* ]).pipeThrough(new TextLineStream({ allowCR: true }));
|
|
57
|
+
*
|
|
58
|
+
* const lines = await Array.fromAsync(stream);
|
|
59
|
+
*
|
|
60
|
+
* assertEquals(lines, ["CR", "LF", "CRLF", "done"]);
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare class TextLineStream extends TransformStream<string, string> {
|
|
64
|
+
#private;
|
|
65
|
+
/**
|
|
66
|
+
* Constructs a new instance.
|
|
67
|
+
*
|
|
68
|
+
* @param options Options for the stream.
|
|
69
|
+
*/
|
|
70
|
+
constructor(options?: TextLineStreamOptions);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=text_line_stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text_line_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/text_line_stream.ts"],"names":[],"mappings":"AAGA,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,qBAAa,cAAe,SAAQ,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC;;IAGjE;;;;OAIG;gBACS,OAAO,GAAE,qBAA0C;CAoChE"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. 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 _TextLineStream_currentLine;
|
|
15
|
+
/**
|
|
16
|
+
* Transform a stream into a stream where each chunk is divided by a newline,
|
|
17
|
+
* be it `\n` or `\r\n`. `\r` can be enabled via the `allowCR` option.
|
|
18
|
+
*
|
|
19
|
+
* If you want to split by a custom delimiter, consider using {@linkcode TextDelimiterStream}.
|
|
20
|
+
*
|
|
21
|
+
* @example JSON Lines
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
24
|
+
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
25
|
+
* import { assertEquals } from "@std/assert";
|
|
26
|
+
*
|
|
27
|
+
* const stream = ReadableStream.from([
|
|
28
|
+
* '{"name": "Alice", "age": ',
|
|
29
|
+
* '30}\n{"name": "Bob", "age"',
|
|
30
|
+
* ": 25}\n",
|
|
31
|
+
* ]);
|
|
32
|
+
*
|
|
33
|
+
* type Person = { name: string; age: number };
|
|
34
|
+
*
|
|
35
|
+
* // Split the stream by newline and parse each line as a JSON object
|
|
36
|
+
* const jsonStream = stream.pipeThrough(new TextLineStream())
|
|
37
|
+
* .pipeThrough(toTransformStream(async function* (src) {
|
|
38
|
+
* for await (const chunk of src) {
|
|
39
|
+
* if (chunk.trim().length === 0) {
|
|
40
|
+
* continue;
|
|
41
|
+
* }
|
|
42
|
+
* yield JSON.parse(chunk) as Person;
|
|
43
|
+
* }
|
|
44
|
+
* }));
|
|
45
|
+
*
|
|
46
|
+
* assertEquals(
|
|
47
|
+
* await Array.fromAsync(jsonStream),
|
|
48
|
+
* [{ "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 }],
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @example Allow splitting by `\r`
|
|
53
|
+
*
|
|
54
|
+
* ```ts
|
|
55
|
+
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
56
|
+
* import { assertEquals } from "@std/assert";
|
|
57
|
+
*
|
|
58
|
+
* const stream = ReadableStream.from([
|
|
59
|
+
* "CR\rLF",
|
|
60
|
+
* "\nCRLF\r\ndone",
|
|
61
|
+
* ]).pipeThrough(new TextLineStream({ allowCR: true }));
|
|
62
|
+
*
|
|
63
|
+
* const lines = await Array.fromAsync(stream);
|
|
64
|
+
*
|
|
65
|
+
* assertEquals(lines, ["CR", "LF", "CRLF", "done"]);
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export class TextLineStream extends TransformStream {
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a new instance.
|
|
71
|
+
*
|
|
72
|
+
* @param options Options for the stream.
|
|
73
|
+
*/
|
|
74
|
+
constructor(options = { allowCR: false }) {
|
|
75
|
+
super({
|
|
76
|
+
transform: (chars, controller) => {
|
|
77
|
+
chars = __classPrivateFieldGet(this, _TextLineStream_currentLine, "f") + chars;
|
|
78
|
+
while (true) {
|
|
79
|
+
const lfIndex = chars.indexOf("\n");
|
|
80
|
+
const crIndex = options.allowCR ? chars.indexOf("\r") : -1;
|
|
81
|
+
if (crIndex !== -1 && crIndex !== (chars.length - 1) &&
|
|
82
|
+
(lfIndex === -1 || (lfIndex - 1) > crIndex)) {
|
|
83
|
+
controller.enqueue(chars.slice(0, crIndex));
|
|
84
|
+
chars = chars.slice(crIndex + 1);
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (lfIndex === -1)
|
|
88
|
+
break;
|
|
89
|
+
const endIndex = chars[lfIndex - 1] === "\r" ? lfIndex - 1 : lfIndex;
|
|
90
|
+
controller.enqueue(chars.slice(0, endIndex));
|
|
91
|
+
chars = chars.slice(lfIndex + 1);
|
|
92
|
+
}
|
|
93
|
+
__classPrivateFieldSet(this, _TextLineStream_currentLine, chars, "f");
|
|
94
|
+
},
|
|
95
|
+
flush: (controller) => {
|
|
96
|
+
if (__classPrivateFieldGet(this, _TextLineStream_currentLine, "f") === "")
|
|
97
|
+
return;
|
|
98
|
+
const currentLine = options.allowCR && __classPrivateFieldGet(this, _TextLineStream_currentLine, "f").endsWith("\r")
|
|
99
|
+
? __classPrivateFieldGet(this, _TextLineStream_currentLine, "f").slice(0, -1)
|
|
100
|
+
: __classPrivateFieldGet(this, _TextLineStream_currentLine, "f");
|
|
101
|
+
controller.enqueue(currentLine);
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
_TextLineStream_currentLine.set(this, "");
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
_TextLineStream_currentLine = new WeakMap();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a {@linkcode ReadableStream} of {@linkcode Uint8Array}s to an
|
|
3
|
+
* {@linkcode ArrayBuffer}. Works the same as {@linkcode Response.arrayBuffer}.
|
|
4
|
+
*
|
|
5
|
+
* @param readableStream A `ReadableStream` of `Uint8Array`s to convert into an `ArrayBuffer`.
|
|
6
|
+
* @returns A promise that resolves with the `ArrayBuffer` containing all the data from the stream.
|
|
7
|
+
*
|
|
8
|
+
* @example Basic usage
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { toArrayBuffer } from "@std/streams/to-array-buffer";
|
|
11
|
+
* import { assertEquals } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* const stream = ReadableStream.from([
|
|
14
|
+
* new Uint8Array([1, 2]),
|
|
15
|
+
* new Uint8Array([3, 4, 5]),
|
|
16
|
+
* ]);
|
|
17
|
+
* const buf = await toArrayBuffer(stream);
|
|
18
|
+
* assertEquals(buf.byteLength, 5);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function toArrayBuffer(readableStream: ReadableStream<Uint8Array>): Promise<ArrayBuffer>;
|
|
22
|
+
//# sourceMappingURL=to_array_buffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_array_buffer.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/to_array_buffer.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,aAAa,CACjC,cAAc,EAAE,cAAc,CAAC,UAAU,CAAC,GACzC,OAAO,CAAC,WAAW,CAAC,CAetB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { concat } from "../../bytes/1.0.6/concat.js";
|
|
4
|
+
/**
|
|
5
|
+
* Converts a {@linkcode ReadableStream} of {@linkcode Uint8Array}s to an
|
|
6
|
+
* {@linkcode ArrayBuffer}. Works the same as {@linkcode Response.arrayBuffer}.
|
|
7
|
+
*
|
|
8
|
+
* @param readableStream A `ReadableStream` of `Uint8Array`s to convert into an `ArrayBuffer`.
|
|
9
|
+
* @returns A promise that resolves with the `ArrayBuffer` containing all the data from the stream.
|
|
10
|
+
*
|
|
11
|
+
* @example Basic usage
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { toArrayBuffer } from "@std/streams/to-array-buffer";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* const stream = ReadableStream.from([
|
|
17
|
+
* new Uint8Array([1, 2]),
|
|
18
|
+
* new Uint8Array([3, 4, 5]),
|
|
19
|
+
* ]);
|
|
20
|
+
* const buf = await toArrayBuffer(stream);
|
|
21
|
+
* assertEquals(buf.byteLength, 5);
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export async function toArrayBuffer(readableStream) {
|
|
25
|
+
const reader = readableStream.getReader();
|
|
26
|
+
const chunks = [];
|
|
27
|
+
while (true) {
|
|
28
|
+
const { done, value } = await reader.read();
|
|
29
|
+
if (done) {
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
chunks.push(value);
|
|
33
|
+
}
|
|
34
|
+
return concat(chunks).buffer;
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a {@linkcode ReadableStream} of {@linkcode Uint8Array}s to a
|
|
3
|
+
* {@linkcode Blob}. Works the same as {@linkcode Response.blob}.
|
|
4
|
+
*
|
|
5
|
+
* @param stream A `ReadableStream` of `Uint8Array`s to convert into a `Blob`.
|
|
6
|
+
* @returns A `Promise` that resolves to the `Blob`.
|
|
7
|
+
*
|
|
8
|
+
* @example Basic usage
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { toBlob } from "@std/streams/to-blob";
|
|
11
|
+
* import { assertEquals } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* const stream = ReadableStream.from([
|
|
14
|
+
* new Uint8Array([1, 2]),
|
|
15
|
+
* new Uint8Array([3, 4, 5]),
|
|
16
|
+
* ]);
|
|
17
|
+
* const blob = await toBlob(stream);
|
|
18
|
+
* assertEquals(blob.size, 5);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function toBlob(stream: ReadableStream<Uint8Array>): Promise<Blob>;
|
|
22
|
+
//# sourceMappingURL=to_blob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_blob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/to_blob.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GACjC,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* Converts a {@linkcode ReadableStream} of {@linkcode Uint8Array}s to a
|
|
5
|
+
* {@linkcode Blob}. Works the same as {@linkcode Response.blob}.
|
|
6
|
+
*
|
|
7
|
+
* @param stream A `ReadableStream` of `Uint8Array`s to convert into a `Blob`.
|
|
8
|
+
* @returns A `Promise` that resolves to the `Blob`.
|
|
9
|
+
*
|
|
10
|
+
* @example Basic usage
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { toBlob } from "@std/streams/to-blob";
|
|
13
|
+
* import { assertEquals } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* const stream = ReadableStream.from([
|
|
16
|
+
* new Uint8Array([1, 2]),
|
|
17
|
+
* new Uint8Array([3, 4, 5]),
|
|
18
|
+
* ]);
|
|
19
|
+
* const blob = await toBlob(stream);
|
|
20
|
+
* assertEquals(blob.size, 5);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export async function toBlob(stream) {
|
|
24
|
+
return await new Response(stream).blob();
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a
|
|
3
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON}-formatted
|
|
4
|
+
* {@linkcode ReadableSteam} of strings or {@linkcode Uint8Array}s to an object.
|
|
5
|
+
* Works the same as {@linkcode Response.json} and {@linkcode Request.json}, but
|
|
6
|
+
* also extends to support streams of strings.
|
|
7
|
+
*
|
|
8
|
+
* @param stream A `ReadableStream` whose chunks compose a JSON.
|
|
9
|
+
* @returns A promise that resolves to the parsed JSON.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage with a stream of strings
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { toJson } from "@std/streams/to-json";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* const stream = ReadableStream.from([
|
|
17
|
+
* "[1, true",
|
|
18
|
+
* ', [], {}, "hello',
|
|
19
|
+
* '", null]',
|
|
20
|
+
* ]);
|
|
21
|
+
* assertEquals(await toJson(stream), [1, true, [], {}, "hello", null]);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example Usage with a stream of `Uint8Array`s
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { toJson } from "@std/streams/to-json";
|
|
27
|
+
* import { assertEquals } from "@std/assert";
|
|
28
|
+
*
|
|
29
|
+
* const stream = ReadableStream.from([
|
|
30
|
+
* "[1, true",
|
|
31
|
+
* ', [], {}, "hello',
|
|
32
|
+
* '", null]',
|
|
33
|
+
* ]).pipeThrough(new TextEncoderStream());
|
|
34
|
+
* assertEquals(await toJson(stream), [1, true, [], {}, "hello", null]);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function toJson(stream: ReadableStream<string> | ReadableStream<Uint8Array>): Promise<unknown>;
|
|
38
|
+
//# sourceMappingURL=to_json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_json.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/to_json.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,MAAM,CACpB,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,UAAU,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC,CAElB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { toText } from "./to_text.js";
|
|
4
|
+
/**
|
|
5
|
+
* Converts a
|
|
6
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON}-formatted
|
|
7
|
+
* {@linkcode ReadableSteam} of strings or {@linkcode Uint8Array}s to an object.
|
|
8
|
+
* Works the same as {@linkcode Response.json} and {@linkcode Request.json}, but
|
|
9
|
+
* also extends to support streams of strings.
|
|
10
|
+
*
|
|
11
|
+
* @param stream A `ReadableStream` whose chunks compose a JSON.
|
|
12
|
+
* @returns A promise that resolves to the parsed JSON.
|
|
13
|
+
*
|
|
14
|
+
* @example Usage with a stream of strings
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { toJson } from "@std/streams/to-json";
|
|
17
|
+
* import { assertEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* const stream = ReadableStream.from([
|
|
20
|
+
* "[1, true",
|
|
21
|
+
* ', [], {}, "hello',
|
|
22
|
+
* '", null]',
|
|
23
|
+
* ]);
|
|
24
|
+
* assertEquals(await toJson(stream), [1, true, [], {}, "hello", null]);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example Usage with a stream of `Uint8Array`s
|
|
28
|
+
* ```ts
|
|
29
|
+
* import { toJson } from "@std/streams/to-json";
|
|
30
|
+
* import { assertEquals } from "@std/assert";
|
|
31
|
+
*
|
|
32
|
+
* const stream = ReadableStream.from([
|
|
33
|
+
* "[1, true",
|
|
34
|
+
* ', [], {}, "hello',
|
|
35
|
+
* '", null]',
|
|
36
|
+
* ]).pipeThrough(new TextEncoderStream());
|
|
37
|
+
* assertEquals(await toJson(stream), [1, true, [], {}, "hello", null]);
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export function toJson(stream) {
|
|
41
|
+
return toText(stream).then(JSON.parse);
|
|
42
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a {@linkcode ReadableSteam} of strings or {@linkcode Uint8Array}s
|
|
3
|
+
* to a single string. Works the same as {@linkcode Response.text} and
|
|
4
|
+
* {@linkcode Request.text}, but also extends to support streams of strings.
|
|
5
|
+
*
|
|
6
|
+
* @param stream A `ReadableStream` to convert into a `string`.
|
|
7
|
+
* @returns A `Promise` that resolves to the `string`.
|
|
8
|
+
*
|
|
9
|
+
* @example Basic usage with a stream of strings
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { toText } from "@std/streams/to-text";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* const stream = ReadableStream.from(["Hello, ", "world!"]);
|
|
15
|
+
* assertEquals(await toText(stream), "Hello, world!");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @example Basic usage with a stream of `Uint8Array`s
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { toText } from "@std/streams/to-text";
|
|
21
|
+
* import { assertEquals } from "@std/assert";
|
|
22
|
+
*
|
|
23
|
+
* const stream = ReadableStream.from(["Hello, ", "world!"])
|
|
24
|
+
* .pipeThrough(new TextEncoderStream());
|
|
25
|
+
* assertEquals(await toText(stream), "Hello, world!");
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function toText(stream: ReadableStream<string> | ReadableStream<Uint8Array>): Promise<string>;
|
|
29
|
+
//# sourceMappingURL=to_text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_text.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/to_text.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,UAAU,CAAC,GAC1D,OAAO,CAAC,MAAM,CAAC,CAkBjB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/**
|
|
4
|
+
* Converts a {@linkcode ReadableSteam} of strings or {@linkcode Uint8Array}s
|
|
5
|
+
* to a single string. Works the same as {@linkcode Response.text} and
|
|
6
|
+
* {@linkcode Request.text}, but also extends to support streams of strings.
|
|
7
|
+
*
|
|
8
|
+
* @param stream A `ReadableStream` to convert into a `string`.
|
|
9
|
+
* @returns A `Promise` that resolves to the `string`.
|
|
10
|
+
*
|
|
11
|
+
* @example Basic usage with a stream of strings
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { toText } from "@std/streams/to-text";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* const stream = ReadableStream.from(["Hello, ", "world!"]);
|
|
17
|
+
* assertEquals(await toText(stream), "Hello, world!");
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example Basic usage with a stream of `Uint8Array`s
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { toText } from "@std/streams/to-text";
|
|
23
|
+
* import { assertEquals } from "@std/assert";
|
|
24
|
+
*
|
|
25
|
+
* const stream = ReadableStream.from(["Hello, ", "world!"])
|
|
26
|
+
* .pipeThrough(new TextEncoderStream());
|
|
27
|
+
* assertEquals(await toText(stream), "Hello, world!");
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export async function toText(stream) {
|
|
31
|
+
const textDecoder = new TextDecoder();
|
|
32
|
+
const reader = stream.getReader();
|
|
33
|
+
let result = "";
|
|
34
|
+
while (true) {
|
|
35
|
+
const { done, value } = await reader.read();
|
|
36
|
+
if (done) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
result += typeof value === "string"
|
|
40
|
+
? value
|
|
41
|
+
: textDecoder.decode(value, { stream: true });
|
|
42
|
+
}
|
|
43
|
+
result += textDecoder.decode();
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|