@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,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"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.toTransformStream = toTransformStream;
|
|
6
|
+
/**
|
|
7
|
+
* Convert the generator function into a {@linkcode TransformStream}.
|
|
8
|
+
*
|
|
9
|
+
* @typeparam I The type of the chunks in the source stream.
|
|
10
|
+
* @typeparam O The type of the chunks in the transformed stream.
|
|
11
|
+
* @param transformer A function to transform.
|
|
12
|
+
* @param writableStrategy An object that optionally defines a queuing strategy for the stream.
|
|
13
|
+
* @param readableStrategy An object that optionally defines a queuing strategy for the stream.
|
|
14
|
+
* @returns A {@linkcode TransformStream} that transforms the source stream as defined by the provided transformer.
|
|
15
|
+
*
|
|
16
|
+
* @example Build a transform stream that multiplies each value by 100
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
19
|
+
* import { assertEquals } from "@std/assert";
|
|
20
|
+
*
|
|
21
|
+
* const stream = ReadableStream.from([0, 1, 2])
|
|
22
|
+
* .pipeThrough(toTransformStream(async function* (src) {
|
|
23
|
+
* for await (const chunk of src) {
|
|
24
|
+
* yield chunk * 100;
|
|
25
|
+
* }
|
|
26
|
+
* }));
|
|
27
|
+
*
|
|
28
|
+
* assertEquals(
|
|
29
|
+
* await Array.fromAsync(stream),
|
|
30
|
+
* [0, 100, 200],
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example JSON Lines
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { TextLineStream } from "@std/streams/text-line-stream";
|
|
37
|
+
* import { toTransformStream } from "@std/streams/to-transform-stream";
|
|
38
|
+
* import { assertEquals } from "@std/assert";
|
|
39
|
+
*
|
|
40
|
+
* const stream = ReadableStream.from([
|
|
41
|
+
* '{"name": "Alice", "age": ',
|
|
42
|
+
* '30}\n{"name": "Bob", "age"',
|
|
43
|
+
* ": 25}\n",
|
|
44
|
+
* ]);
|
|
45
|
+
*
|
|
46
|
+
* type Person = { name: string; age: number };
|
|
47
|
+
*
|
|
48
|
+
* // Split the stream by newline and parse each line as a JSON object
|
|
49
|
+
* const jsonStream = stream.pipeThrough(new TextLineStream())
|
|
50
|
+
* .pipeThrough(toTransformStream(async function* (src) {
|
|
51
|
+
* for await (const chunk of src) {
|
|
52
|
+
* if (chunk.trim().length === 0) {
|
|
53
|
+
* continue;
|
|
54
|
+
* }
|
|
55
|
+
* yield JSON.parse(chunk) as Person;
|
|
56
|
+
* }
|
|
57
|
+
* }));
|
|
58
|
+
*
|
|
59
|
+
* assertEquals(
|
|
60
|
+
* await Array.fromAsync(jsonStream),
|
|
61
|
+
* [{ "name": "Alice", "age": 30 }, { "name": "Bob", "age": 25 }],
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
// deno-lint-ignore deno-style-guide/exported-function-args-maximum
|
|
66
|
+
function toTransformStream(transformer, writableStrategy, readableStrategy) {
|
|
67
|
+
const { writable, readable, } = new TransformStream(undefined, writableStrategy);
|
|
68
|
+
const iterable = transformer(readable);
|
|
69
|
+
const iterator = iterable[Symbol.asyncIterator]?.() ??
|
|
70
|
+
iterable[Symbol.iterator]?.();
|
|
71
|
+
return {
|
|
72
|
+
writable,
|
|
73
|
+
readable: new ReadableStream({
|
|
74
|
+
async pull(controller) {
|
|
75
|
+
let result;
|
|
76
|
+
try {
|
|
77
|
+
result = await iterator.next();
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
// Propagate error to stream from iterator
|
|
81
|
+
// If the stream status is "errored", it will be thrown, but ignore.
|
|
82
|
+
await readable.cancel(error).catch(() => { });
|
|
83
|
+
controller.error(error);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (result.done) {
|
|
87
|
+
controller.close();
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
controller.enqueue(result.value);
|
|
91
|
+
},
|
|
92
|
+
async cancel(reason) {
|
|
93
|
+
// Propagate cancellation to readable and iterator
|
|
94
|
+
if (typeof iterator.throw === "function") {
|
|
95
|
+
try {
|
|
96
|
+
await iterator.throw(reason);
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
/* `iterator.throw()` always throws on site. We catch it. */
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
await readable.cancel(reason);
|
|
103
|
+
},
|
|
104
|
+
}, readableStrategy),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge multiple streams into a single one, taking order into account, and
|
|
3
|
+
* each stream will wait for a chunk to enqueue before the next stream can
|
|
4
|
+
* append another chunk.
|
|
5
|
+
*
|
|
6
|
+
* If a stream ends before other ones, the others will continue adding data in
|
|
7
|
+
* order, and the finished one will not add any more data. If you want to cancel
|
|
8
|
+
* the other streams when one of them ends, use {@linkcode earlyZipReadableStreams}.
|
|
9
|
+
*
|
|
10
|
+
* @typeparam T The type of the chunks in the input/output streams.
|
|
11
|
+
* @param streams An iterable of `ReadableStream`s to merge.
|
|
12
|
+
* @returns A `ReadableStream` that will emit the zipped chunks.
|
|
13
|
+
*
|
|
14
|
+
* @example Zip 2 streams with the same length
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
17
|
+
* import { assertEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* const stream1 = ReadableStream.from(["1", "2", "3"]);
|
|
20
|
+
* const stream2 = ReadableStream.from(["a", "b", "c"]);
|
|
21
|
+
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
22
|
+
*
|
|
23
|
+
* assertEquals(
|
|
24
|
+
* await Array.fromAsync(zippedStream),
|
|
25
|
+
* ["1", "a", "2", "b", "3", "c"],
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example Zip 2 streams with different length (first one is shorter)
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
32
|
+
* import { assertEquals } from "@std/assert";
|
|
33
|
+
*
|
|
34
|
+
* const stream1 = ReadableStream.from(["1", "2"]);
|
|
35
|
+
* const stream2 = ReadableStream.from(["a", "b", "c", "d"]);
|
|
36
|
+
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
37
|
+
*
|
|
38
|
+
* assertEquals(
|
|
39
|
+
* await Array.fromAsync(zippedStream),
|
|
40
|
+
* ["1", "a", "2", "b", "c", "d"],
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @example Zip 2 streams with different length (first one is longer)
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
47
|
+
* import { assertEquals } from "@std/assert";
|
|
48
|
+
*
|
|
49
|
+
* const stream1 = ReadableStream.from(["1", "2", "3", "4"]);
|
|
50
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
51
|
+
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
52
|
+
*
|
|
53
|
+
* assertEquals(
|
|
54
|
+
* await Array.fromAsync(zippedStream),
|
|
55
|
+
* ["1", "a", "2", "b", "3", "4"],
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @example Zip 3 streams
|
|
60
|
+
* ```ts
|
|
61
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
62
|
+
* import { assertEquals } from "@std/assert";
|
|
63
|
+
*
|
|
64
|
+
* const stream1 = ReadableStream.from(["1"]);
|
|
65
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
66
|
+
* const stream3 = ReadableStream.from(["A", "B", "C"]);
|
|
67
|
+
* const zippedStream = zipReadableStreams(stream1, stream2, stream3);
|
|
68
|
+
*
|
|
69
|
+
* assertEquals(
|
|
70
|
+
* await Array.fromAsync(zippedStream),
|
|
71
|
+
* ["1", "a", "A", "b", "B", "C"],
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function zipReadableStreams<T>(...streams: ReadableStream<T>[]): ReadableStream<T>;
|
|
76
|
+
//# sourceMappingURL=zip_readable_streams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip_readable_streams.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.14/zip_readable_streams.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,GAAG,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,GAC9B,cAAc,CAAC,CAAC,CAAC,CAuBnB"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.zipReadableStreams = zipReadableStreams;
|
|
6
|
+
/**
|
|
7
|
+
* Merge multiple streams into a single one, taking order into account, and
|
|
8
|
+
* each stream will wait for a chunk to enqueue before the next stream can
|
|
9
|
+
* append another chunk.
|
|
10
|
+
*
|
|
11
|
+
* If a stream ends before other ones, the others will continue adding data in
|
|
12
|
+
* order, and the finished one will not add any more data. If you want to cancel
|
|
13
|
+
* the other streams when one of them ends, use {@linkcode earlyZipReadableStreams}.
|
|
14
|
+
*
|
|
15
|
+
* @typeparam T The type of the chunks in the input/output streams.
|
|
16
|
+
* @param streams An iterable of `ReadableStream`s to merge.
|
|
17
|
+
* @returns A `ReadableStream` that will emit the zipped chunks.
|
|
18
|
+
*
|
|
19
|
+
* @example Zip 2 streams with the same length
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
22
|
+
* import { assertEquals } from "@std/assert";
|
|
23
|
+
*
|
|
24
|
+
* const stream1 = ReadableStream.from(["1", "2", "3"]);
|
|
25
|
+
* const stream2 = ReadableStream.from(["a", "b", "c"]);
|
|
26
|
+
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
27
|
+
*
|
|
28
|
+
* assertEquals(
|
|
29
|
+
* await Array.fromAsync(zippedStream),
|
|
30
|
+
* ["1", "a", "2", "b", "3", "c"],
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example Zip 2 streams with different length (first one is shorter)
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
37
|
+
* import { assertEquals } from "@std/assert";
|
|
38
|
+
*
|
|
39
|
+
* const stream1 = ReadableStream.from(["1", "2"]);
|
|
40
|
+
* const stream2 = ReadableStream.from(["a", "b", "c", "d"]);
|
|
41
|
+
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
42
|
+
*
|
|
43
|
+
* assertEquals(
|
|
44
|
+
* await Array.fromAsync(zippedStream),
|
|
45
|
+
* ["1", "a", "2", "b", "c", "d"],
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @example Zip 2 streams with different length (first one is longer)
|
|
50
|
+
* ```ts
|
|
51
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
52
|
+
* import { assertEquals } from "@std/assert";
|
|
53
|
+
*
|
|
54
|
+
* const stream1 = ReadableStream.from(["1", "2", "3", "4"]);
|
|
55
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
56
|
+
* const zippedStream = zipReadableStreams(stream1, stream2);
|
|
57
|
+
*
|
|
58
|
+
* assertEquals(
|
|
59
|
+
* await Array.fromAsync(zippedStream),
|
|
60
|
+
* ["1", "a", "2", "b", "3", "4"],
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @example Zip 3 streams
|
|
65
|
+
* ```ts
|
|
66
|
+
* import { zipReadableStreams } from "@std/streams/zip-readable-streams";
|
|
67
|
+
* import { assertEquals } from "@std/assert";
|
|
68
|
+
*
|
|
69
|
+
* const stream1 = ReadableStream.from(["1"]);
|
|
70
|
+
* const stream2 = ReadableStream.from(["a", "b"]);
|
|
71
|
+
* const stream3 = ReadableStream.from(["A", "B", "C"]);
|
|
72
|
+
* const zippedStream = zipReadableStreams(stream1, stream2, stream3);
|
|
73
|
+
*
|
|
74
|
+
* assertEquals(
|
|
75
|
+
* await Array.fromAsync(zippedStream),
|
|
76
|
+
* ["1", "a", "A", "b", "B", "C"],
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
function zipReadableStreams(...streams) {
|
|
81
|
+
const readers = new Set(streams.map((s) => s.getReader()));
|
|
82
|
+
return new ReadableStream({
|
|
83
|
+
async start(controller) {
|
|
84
|
+
try {
|
|
85
|
+
let resolved = 0;
|
|
86
|
+
while (resolved !== streams.length) {
|
|
87
|
+
for (const reader of readers) {
|
|
88
|
+
const { value, done } = await reader.read();
|
|
89
|
+
if (!done) {
|
|
90
|
+
controller.enqueue(value);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
resolved++;
|
|
94
|
+
readers.delete(reader);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
controller.close();
|
|
99
|
+
}
|
|
100
|
+
catch (e) {
|
|
101
|
+
controller.error(e);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
package/script/jsonl.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class JSONLStore implements Store {
|
|
|
36
36
|
* Returns content of a file as a stream
|
|
37
37
|
*
|
|
38
38
|
* ```ts
|
|
39
|
-
* import { each } from "npm:effection
|
|
39
|
+
* import { each } from "npm:effection@^3";
|
|
40
40
|
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
41
41
|
*
|
|
42
42
|
* const store = yield* useStore();
|
|
@@ -82,7 +82,7 @@ export declare class JSONLStore implements Store {
|
|
|
82
82
|
* Returns a stream of content from all files matching a glob
|
|
83
83
|
*
|
|
84
84
|
* ```ts
|
|
85
|
-
* import { each } from "npm:effection
|
|
85
|
+
* import { each } from "npm:effection@^3";
|
|
86
86
|
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
87
87
|
*
|
|
88
88
|
* const store = yield* useStore();
|
package/script/jsonl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonl.d.ts","sourceRoot":"","sources":["../src/jsonl.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,KAAK,SAAS,EAGd,KAAK,MAAM,EAEZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"jsonl.d.ts","sourceRoot":"","sources":["../src/jsonl.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,KAAK,SAAS,EAGd,KAAK,MAAM,EAEZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAejE,qBAAa,UAAW,YAAW,KAAK;IACnB,QAAQ,EAAE,GAAG;gBAAb,QAAQ,EAAE,GAAG;IAEhC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;IAgBzD;;;;;;;;;;;;;;OAcG;IACF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC;IAYrC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC;IAiCrC;;;;;;;;;;;OAWG;IACF,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC;IAcnD;;;;;;;;;;;;OAYG;IACF,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC;IAYpD;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC;IA0CrC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC;CAG1B"}
|
package/script/jsonl.js
CHANGED
|
@@ -1,18 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.JSONLStore = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
40
|
+
const mod_js_1 = require("./deps/jsr.io/@std/json/1.0.2/mod.js");
|
|
41
|
+
const mod_js_2 = require("./deps/jsr.io/@std/streams/1.0.14/mod.js");
|
|
42
|
+
const mod_js_3 = require("./deps/jsr.io/@std/fs/1.0.20/mod.js");
|
|
43
|
+
const mod_js_4 = require("./deps/jsr.io/@std/path/1.1.3/mod.js");
|
|
11
44
|
const effection_1 = require("effection");
|
|
12
45
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
|
-
const
|
|
46
|
+
const fsp = __importStar(require("node:fs/promises"));
|
|
47
|
+
const node_stream_1 = require("node:stream");
|
|
14
48
|
function* mkdir(path, options) {
|
|
15
|
-
return yield* (0, effection_1.call)(() =>
|
|
49
|
+
return yield* (0, effection_1.call)(() => fsp.mkdir(path, options));
|
|
16
50
|
}
|
|
17
51
|
class JSONLStore {
|
|
18
52
|
constructor(location) {
|
|
@@ -40,10 +74,10 @@ class JSONLStore {
|
|
|
40
74
|
? options.location.pathname
|
|
41
75
|
: options.location;
|
|
42
76
|
if (pathname.charAt(-1) === "/") {
|
|
43
|
-
return new JSONLStore((0,
|
|
77
|
+
return new JSONLStore((0, mod_js_4.toFileUrl)(pathname));
|
|
44
78
|
}
|
|
45
79
|
else {
|
|
46
|
-
return new JSONLStore((0,
|
|
80
|
+
return new JSONLStore((0, mod_js_4.toFileUrl)(`${pathname}/`));
|
|
47
81
|
}
|
|
48
82
|
}
|
|
49
83
|
/**
|
|
@@ -65,7 +99,7 @@ class JSONLStore {
|
|
|
65
99
|
const location = new URL(`./${key}.jsonl`, this.location);
|
|
66
100
|
return yield* (0, effection_1.call)(async () => {
|
|
67
101
|
try {
|
|
68
|
-
return await (0,
|
|
102
|
+
return await (0, mod_js_3.exists)(location);
|
|
69
103
|
}
|
|
70
104
|
catch {
|
|
71
105
|
return false;
|
|
@@ -76,7 +110,7 @@ class JSONLStore {
|
|
|
76
110
|
* Returns content of a file as a stream
|
|
77
111
|
*
|
|
78
112
|
* ```ts
|
|
79
|
-
* import { each } from "npm:effection
|
|
113
|
+
* import { each } from "npm:effection@^3";
|
|
80
114
|
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
81
115
|
*
|
|
82
116
|
* const store = yield* useStore();
|
|
@@ -94,12 +128,13 @@ class JSONLStore {
|
|
|
94
128
|
const location = new URL(`./${key}.jsonl`, this.location);
|
|
95
129
|
return (0, effection_1.resource)(function* (provide) {
|
|
96
130
|
const channel = (0, effection_1.createChannel)();
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
|
|
131
|
+
const fileStream = node_fs_1.default.createReadStream((0, mod_js_4.fromFileUrl)(location));
|
|
132
|
+
const webStream = node_stream_1.Readable.toWeb(fileStream);
|
|
133
|
+
// deno-lint-ignore no-explicit-any
|
|
134
|
+
const lines = webStream
|
|
100
135
|
.pipeThrough(new TextDecoderStream())
|
|
101
|
-
.pipeThrough(new
|
|
102
|
-
.pipeThrough(new
|
|
136
|
+
.pipeThrough(new mod_js_2.TextLineStream())
|
|
137
|
+
.pipeThrough(new mod_js_1.JsonParseStream());
|
|
103
138
|
yield* (0, effection_1.spawn)(function* () {
|
|
104
139
|
const reader = lines.getReader();
|
|
105
140
|
try {
|
|
@@ -132,17 +167,8 @@ class JSONLStore {
|
|
|
132
167
|
*/
|
|
133
168
|
*write(key, data) {
|
|
134
169
|
const location = new URL(`./${key}.jsonl`, this.location);
|
|
135
|
-
yield* mkdir((0,
|
|
136
|
-
|
|
137
|
-
create: true,
|
|
138
|
-
write: true,
|
|
139
|
-
}));
|
|
140
|
-
try {
|
|
141
|
-
yield* (0, effection_1.call)(() => file.write(new TextEncoder().encode(`${JSON.stringify(data)}\n`)));
|
|
142
|
-
}
|
|
143
|
-
finally {
|
|
144
|
-
file.close();
|
|
145
|
-
}
|
|
170
|
+
yield* mkdir((0, mod_js_4.dirname)((0, mod_js_4.fromFileUrl)(location)), { recursive: true });
|
|
171
|
+
yield* (0, effection_1.call)(() => fsp.writeFile((0, mod_js_4.fromFileUrl)(location), `${JSON.stringify(data)}\n`, { encoding: "utf-8" }));
|
|
146
172
|
}
|
|
147
173
|
/**
|
|
148
174
|
* Add data to an existing file.
|
|
@@ -159,21 +185,13 @@ class JSONLStore {
|
|
|
159
185
|
*/
|
|
160
186
|
*append(key, data) {
|
|
161
187
|
const location = new URL(`./${key}.jsonl`, this.location);
|
|
162
|
-
|
|
163
|
-
append: true,
|
|
164
|
-
}));
|
|
165
|
-
try {
|
|
166
|
-
yield* (0, effection_1.call)(() => file.write(new TextEncoder().encode(`${JSON.stringify(data)}\n`)));
|
|
167
|
-
}
|
|
168
|
-
finally {
|
|
169
|
-
file.close();
|
|
170
|
-
}
|
|
188
|
+
yield* (0, effection_1.call)(() => fsp.appendFile((0, mod_js_4.fromFileUrl)(location), `${JSON.stringify(data)}\n`, { encoding: "utf-8" }));
|
|
171
189
|
}
|
|
172
190
|
/**
|
|
173
191
|
* Returns a stream of content from all files matching a glob
|
|
174
192
|
*
|
|
175
193
|
* ```ts
|
|
176
|
-
* import { each } from "npm:effection
|
|
194
|
+
* import { each } from "npm:effection@^3";
|
|
177
195
|
* import { useStore } from "jsr:@effectionx/jsonl-store";
|
|
178
196
|
*
|
|
179
197
|
* const store = yield* useStore();
|
|
@@ -188,11 +206,11 @@ class JSONLStore {
|
|
|
188
206
|
* @returns Stream<T, void>
|
|
189
207
|
*/
|
|
190
208
|
find(glob) {
|
|
191
|
-
const
|
|
192
|
-
const reg = (0,
|
|
209
|
+
const root = (0, mod_js_4.fromFileUrl)(this.location);
|
|
210
|
+
const reg = (0, mod_js_4.globToRegExp)((0, mod_js_4.join)(root, glob), {
|
|
193
211
|
globstar: true,
|
|
194
212
|
});
|
|
195
|
-
const files = (0,
|
|
213
|
+
const files = (0, mod_js_3.walk)(root, {
|
|
196
214
|
includeDirs: false,
|
|
197
215
|
includeFiles: true,
|
|
198
216
|
match: [
|
|
@@ -204,7 +222,10 @@ class JSONLStore {
|
|
|
204
222
|
const queue = (0, effection_1.createQueue)();
|
|
205
223
|
yield* (0, effection_1.spawn)(function* () {
|
|
206
224
|
for (const file of yield* (0, effection_1.each)((0, effection_1.stream)(files))) {
|
|
207
|
-
const key =
|
|
225
|
+
const key = file.path
|
|
226
|
+
.replace(root, "")
|
|
227
|
+
.replaceAll(`\\`, `/`)
|
|
228
|
+
.replace(/\.jsonl$/, "");
|
|
208
229
|
for (const item of yield* (0, effection_1.each)(read(key))) {
|
|
209
230
|
queue.add(item);
|
|
210
231
|
yield* effection_1.each.next();
|
|
@@ -217,7 +238,7 @@ class JSONLStore {
|
|
|
217
238
|
});
|
|
218
239
|
}
|
|
219
240
|
*clear() {
|
|
220
|
-
yield* (0, effection_1.call)(() => (0,
|
|
241
|
+
yield* (0, effection_1.call)(() => (0, mod_js_3.emptyDir)(this.location));
|
|
221
242
|
}
|
|
222
243
|
}
|
|
223
244
|
exports.JSONLStore = JSONLStore;
|
package/script/mod.d.ts
CHANGED
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,cAAc,YAAY,CAAC"}
|
package/script/mod.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.JSONLStore = exports.useStore = exports.StoreContext = void 0;
|
|
18
|
+
require("./_dnt.polyfills.js");
|
|
18
19
|
var context_js_1 = require("./context.js");
|
|
19
20
|
Object.defineProperty(exports, "StoreContext", { enumerable: true, get: function () { return context_js_1.StoreContext; } });
|
|
20
21
|
Object.defineProperty(exports, "useStore", { enumerable: true, get: function () { return context_js_1.useStore; } });
|