@effectionx/jsonl-store 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_dnt.polyfills.d.ts +120 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +247 -0
- package/esm/_dnt.shims.d.ts +2 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +57 -0
- package/esm/context.js +2 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +32 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/copy.js +50 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.js +33 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.js +20 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/copy.js +312 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/empty_dir.js +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_dir.js +101 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_file.js +89 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_link.js +60 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.js +119 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.d.ts +53 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/eol.js +63 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +219 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.js +269 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/expand_glob.js +414 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/move.js +140 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.4/walk.js +845 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.d.ts +4 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/_common.js +11 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts +70 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.js +196 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.d.ts +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/mod.js +23 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts +53 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/parse_stream.js +66 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts +95 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/stringify_stream.js +88 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.d.ts +5 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.1/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/basename.js +36 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/dirname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/extname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/basename.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +50 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/extname.js +73 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/basename.js +44 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +112 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/extname.js +81 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join.js +74 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +134 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +49 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.d.ts +5 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/_common.js +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts +300 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/buffer.js +406 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts +44 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.js +85 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts +27 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.js +47 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts +66 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.js +291 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts +83 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts +101 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.js +122 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts +84 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.js +106 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.js +69 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.d.ts +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/mod.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts +58 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.js +123 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts +72 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/text_line_stream.js +107 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +35 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts +22 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_blob.js +25 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts +38 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_json.js +42 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts +29 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_text.js +45 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts +61 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.js +102 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts +76 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.js +102 -0
- package/esm/jsonl.js +4 -4
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/package.json +5 -1
- package/script/_dnt.polyfills.d.ts +120 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +250 -0
- package/script/_dnt.shims.d.ts +2 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +60 -0
- package/script/context.js +2 -2
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +3 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +35 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.6/copy.js +53 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_create_walk_entry.js +37 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_get_file_info_type.js +23 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/copy.js +316 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/empty_dir.js +90 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_dir.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_file.js +93 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_link.js +64 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/ensure_symlink.js +123 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.d.ts +53 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/eol.js +68 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +219 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +273 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/expand_glob.js +418 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/move.js +144 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/walk.js +849 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.d.ts +4 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/_common.js +14 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts +70 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/concatenated_json_parse_stream.js +200 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.d.ts +23 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/mod.js +39 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts +53 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/parse_stream.js +70 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts +95 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/stringify_stream.js +92 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.d.ts +5 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.1/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +95 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +190 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.d.ts +5 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/_common.js +31 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts +300 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/buffer.js +410 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts +44 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.js +89 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts +27 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.js +50 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts +66 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/delimiter_stream.js +295 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts +83 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/early_zip_readable_streams.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts +101 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_bytes_transform_stream.js +126 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts +84 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/limited_transform_stream.js +110 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/merge_readable_streams.js +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.d.ts +35 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/mod.js +51 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts +58 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_delimiter_stream.js +127 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts +72 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/text_line_stream.js +111 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts +22 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_blob.js +28 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts +38 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_json.js +45 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts +29 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_text.js +48 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts +61 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/to_transform_stream.js +105 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts +76 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/1.0.8/zip_readable_streams.js +105 -0
- package/script/jsonl.js +14 -14
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
5
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6
|
+
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");
|
|
7
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
10
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
11
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
12
|
+
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");
|
|
13
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
14
|
+
};
|
|
15
|
+
var _Buffer_instances, _Buffer_buf, _Buffer_off, _Buffer_readable, _Buffer_writable, _Buffer_tryGrowByReslice, _Buffer_reslice, _Buffer_grow;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Buffer = void 0;
|
|
18
|
+
const copy_js_1 = require("../../bytes/1.0.6/copy.js");
|
|
19
|
+
const MAX_SIZE = 2 ** 32 - 2;
|
|
20
|
+
const DEFAULT_CHUNK_SIZE = 16_640;
|
|
21
|
+
/**
|
|
22
|
+
* A variable-sized buffer of bytes with `readable` and `writable` getters that
|
|
23
|
+
* allows you to work with {@link https://developer.mozilla.org/en-US/docs/Web/API/Streams_API | Web Streams API}.
|
|
24
|
+
*
|
|
25
|
+
* Buffer is almost always used with some I/O like files and sockets. It allows
|
|
26
|
+
* one to buffer up a download from a socket. Buffer grows and shrinks as
|
|
27
|
+
* necessary.
|
|
28
|
+
*
|
|
29
|
+
* Buffer is NOT the same thing as Node's Buffer. Node's Buffer was created in
|
|
30
|
+
* 2009 before JavaScript had the concept of ArrayBuffers. It's simply a
|
|
31
|
+
* non-standard ArrayBuffer.
|
|
32
|
+
*
|
|
33
|
+
* ArrayBuffer is a fixed memory allocation. Buffer is implemented on top of
|
|
34
|
+
* ArrayBuffer.
|
|
35
|
+
*
|
|
36
|
+
* Based on {@link https://golang.org/pkg/bytes/#Buffer | Go Buffer}.
|
|
37
|
+
*
|
|
38
|
+
* @example Buffer input bytes and convert it to a string
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
41
|
+
* import { toText } from "@std/streams/to-text";
|
|
42
|
+
* import { assert } from "@std/assert";
|
|
43
|
+
* import { assertEquals } from "@std/assert";
|
|
44
|
+
*
|
|
45
|
+
* // Create a new buffer
|
|
46
|
+
* const buf = new Buffer();
|
|
47
|
+
* assertEquals(buf.capacity, 0);
|
|
48
|
+
* assertEquals(buf.length, 0);
|
|
49
|
+
*
|
|
50
|
+
* // Dummy input stream
|
|
51
|
+
* const inputStream = ReadableStream.from([
|
|
52
|
+
* "hello, ",
|
|
53
|
+
* "world",
|
|
54
|
+
* "!",
|
|
55
|
+
* ]);
|
|
56
|
+
*
|
|
57
|
+
* // Pipe the input stream to the buffer
|
|
58
|
+
* await inputStream.pipeThrough(new TextEncoderStream()).pipeTo(buf.writable);
|
|
59
|
+
* assert(buf.capacity > 0);
|
|
60
|
+
* assert(buf.length > 0);
|
|
61
|
+
*
|
|
62
|
+
* // Convert the buffered bytes to a string
|
|
63
|
+
* const result = await toText(buf.readable);
|
|
64
|
+
* assertEquals(result, "hello, world!");
|
|
65
|
+
* assert(buf.empty());
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
class Buffer {
|
|
69
|
+
/**
|
|
70
|
+
* Getter returning the instance's {@linkcode ReadableStream}.
|
|
71
|
+
*
|
|
72
|
+
* @returns A `ReadableStream` of the buffer.
|
|
73
|
+
*
|
|
74
|
+
* @example Read the content out of the buffer to stdout
|
|
75
|
+
* ```ts ignore
|
|
76
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
77
|
+
*
|
|
78
|
+
* const buf = new Buffer();
|
|
79
|
+
* await buf.readable.pipeTo(Deno.stdout.writable);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
get readable() {
|
|
83
|
+
return __classPrivateFieldGet(this, _Buffer_readable, "f");
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Getter returning the instance's {@linkcode WritableStream}.
|
|
87
|
+
*
|
|
88
|
+
* @returns A `WritableStream` of the buffer.
|
|
89
|
+
*
|
|
90
|
+
* @example Write the data from stdin to the buffer
|
|
91
|
+
* ```ts ignore
|
|
92
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
93
|
+
*
|
|
94
|
+
* const buf = new Buffer();
|
|
95
|
+
* await Deno.stdin.readable.pipeTo(buf.writable);
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
get writable() {
|
|
99
|
+
return __classPrivateFieldGet(this, _Buffer_writable, "f");
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Constructs a new instance.
|
|
103
|
+
*
|
|
104
|
+
* @param ab An optional buffer to use as the initial buffer.
|
|
105
|
+
*/
|
|
106
|
+
constructor(ab) {
|
|
107
|
+
_Buffer_instances.add(this);
|
|
108
|
+
_Buffer_buf.set(this, void 0); // contents are the bytes buf[off : len(buf)]
|
|
109
|
+
_Buffer_off.set(this, 0); // read at buf[off], write at buf[buf.byteLength]
|
|
110
|
+
_Buffer_readable.set(this, new ReadableStream({
|
|
111
|
+
type: "bytes",
|
|
112
|
+
pull: (controller) => {
|
|
113
|
+
const view = new Uint8Array(controller.byobRequest.view.buffer);
|
|
114
|
+
if (this.empty()) {
|
|
115
|
+
// Buffer is empty, reset to recover space.
|
|
116
|
+
this.reset();
|
|
117
|
+
controller.close();
|
|
118
|
+
controller.byobRequest.respond(0);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const nread = (0, copy_js_1.copy)(__classPrivateFieldGet(this, _Buffer_buf, "f").subarray(__classPrivateFieldGet(this, _Buffer_off, "f")), view);
|
|
122
|
+
__classPrivateFieldSet(this, _Buffer_off, __classPrivateFieldGet(this, _Buffer_off, "f") + nread, "f");
|
|
123
|
+
controller.byobRequest.respond(nread);
|
|
124
|
+
},
|
|
125
|
+
autoAllocateChunkSize: DEFAULT_CHUNK_SIZE,
|
|
126
|
+
}));
|
|
127
|
+
_Buffer_writable.set(this, new WritableStream({
|
|
128
|
+
write: (chunk) => {
|
|
129
|
+
const m = __classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_grow).call(this, chunk.byteLength);
|
|
130
|
+
(0, copy_js_1.copy)(chunk, __classPrivateFieldGet(this, _Buffer_buf, "f"), m);
|
|
131
|
+
},
|
|
132
|
+
}));
|
|
133
|
+
__classPrivateFieldSet(this, _Buffer_buf, ab === undefined ? new Uint8Array(0) : new Uint8Array(ab), "f");
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Returns a slice holding the unread portion of the buffer.
|
|
137
|
+
*
|
|
138
|
+
* The slice is valid for use only until the next buffer modification (that
|
|
139
|
+
* is, only until the next call to a method that mutates or consumes the
|
|
140
|
+
* buffer, like reading data out via `readable`, `reset()`, or `truncate()`).
|
|
141
|
+
*
|
|
142
|
+
* If `options.copy` is false the slice aliases the buffer content at least
|
|
143
|
+
* until the next buffer modification, so immediate changes to the slice will
|
|
144
|
+
* affect the result of future reads. If `options` is not provided,
|
|
145
|
+
* `options.copy` defaults to `true`.
|
|
146
|
+
*
|
|
147
|
+
* @param options Options for the bytes method.
|
|
148
|
+
* @returns A copy or a slice of the buffer.
|
|
149
|
+
*
|
|
150
|
+
* @example Copy the buffer
|
|
151
|
+
* ```ts
|
|
152
|
+
* import { assertEquals } from "@std/assert";
|
|
153
|
+
* import { assertNotEquals } from "@std/assert";
|
|
154
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
155
|
+
*
|
|
156
|
+
* const array = new Uint8Array([0, 1, 2]);
|
|
157
|
+
* const buf = new Buffer(array.buffer);
|
|
158
|
+
* const copied = buf.bytes();
|
|
159
|
+
* assertEquals(copied.length, array.length);
|
|
160
|
+
*
|
|
161
|
+
* // Modify an element in the original array
|
|
162
|
+
* array[1] = 99;
|
|
163
|
+
* assertEquals(copied[0], array[0]);
|
|
164
|
+
* // The copied buffer is not affected by the modification
|
|
165
|
+
* assertNotEquals(copied[1], array[1]);
|
|
166
|
+
* assertEquals(copied[2], array[2]);
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* @example Get a slice to the buffer
|
|
170
|
+
* ```ts
|
|
171
|
+
* import { assertEquals } from "@std/assert";
|
|
172
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
173
|
+
*
|
|
174
|
+
* const array = new Uint8Array([0, 1, 2]);
|
|
175
|
+
* const buf = new Buffer(array.buffer);
|
|
176
|
+
* const slice = buf.bytes({ copy: false });
|
|
177
|
+
* assertEquals(slice.length, array.length);
|
|
178
|
+
*
|
|
179
|
+
* // Modify an element in the original array
|
|
180
|
+
* array[1] = 99;
|
|
181
|
+
* assertEquals(slice[0], array[0]);
|
|
182
|
+
* // The slice _is_ affected by the modification
|
|
183
|
+
* assertEquals(slice[1], array[1]);
|
|
184
|
+
* assertEquals(slice[2], array[2]);
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
bytes(options = { copy: true }) {
|
|
188
|
+
if (options.copy === false)
|
|
189
|
+
return __classPrivateFieldGet(this, _Buffer_buf, "f").subarray(__classPrivateFieldGet(this, _Buffer_off, "f"));
|
|
190
|
+
return __classPrivateFieldGet(this, _Buffer_buf, "f").slice(__classPrivateFieldGet(this, _Buffer_off, "f"));
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Returns whether the unread portion of the buffer is empty.
|
|
194
|
+
*
|
|
195
|
+
* @returns Whether the buffer is empty.
|
|
196
|
+
*
|
|
197
|
+
* @example Empty buffer
|
|
198
|
+
* ```ts
|
|
199
|
+
* import { assert } from "@std/assert";
|
|
200
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
201
|
+
*
|
|
202
|
+
* const buf = new Buffer();
|
|
203
|
+
* assert(buf.empty());
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* @example Non-empty buffer
|
|
207
|
+
* ```ts
|
|
208
|
+
* import { assert } from "@std/assert";
|
|
209
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
210
|
+
*
|
|
211
|
+
* const array = new Uint8Array([42]);
|
|
212
|
+
* const buf = new Buffer(array.buffer);
|
|
213
|
+
* assert(!buf.empty());
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @example Non-empty, but the content was already read
|
|
217
|
+
* ```ts ignore
|
|
218
|
+
* import { assert } from "@std/assert";
|
|
219
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
220
|
+
*
|
|
221
|
+
* const array = new Uint8Array([42]);
|
|
222
|
+
* const buf = new Buffer(array.buffer);
|
|
223
|
+
* assert(!buf.empty());
|
|
224
|
+
* // Read the content out of the buffer
|
|
225
|
+
* await buf.readable.pipeTo(Deno.stdout.writable);
|
|
226
|
+
* // The buffer is now empty
|
|
227
|
+
* assert(buf.empty());
|
|
228
|
+
* ```
|
|
229
|
+
*/
|
|
230
|
+
empty() {
|
|
231
|
+
return __classPrivateFieldGet(this, _Buffer_buf, "f").byteLength <= __classPrivateFieldGet(this, _Buffer_off, "f");
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* A read only number of bytes of the unread portion of the buffer.
|
|
235
|
+
*
|
|
236
|
+
* @returns The number of bytes in the unread portion of the buffer.
|
|
237
|
+
*
|
|
238
|
+
* @example Basic usage
|
|
239
|
+
* ```ts
|
|
240
|
+
* import { assertEquals } from "@std/assert";
|
|
241
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
242
|
+
*
|
|
243
|
+
* const array = new Uint8Array([0, 1, 2]);
|
|
244
|
+
* const buf = new Buffer(array.buffer);
|
|
245
|
+
* assertEquals(buf.length, 3);
|
|
246
|
+
* ```
|
|
247
|
+
*
|
|
248
|
+
* @example Length becomes 0 after the content is read
|
|
249
|
+
* ```ts ignore
|
|
250
|
+
* import { assertEquals } from "@std/assert";
|
|
251
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
252
|
+
*
|
|
253
|
+
* const array = new Uint8Array([42]);
|
|
254
|
+
* const buf = new Buffer(array.buffer);
|
|
255
|
+
* assertEquals(buf.length, 1);
|
|
256
|
+
* // Read the content out of the buffer
|
|
257
|
+
* await buf.readable.pipeTo(Deno.stdout.writable);
|
|
258
|
+
* // The length is now 0
|
|
259
|
+
* assertEquals(buf.length, 0);
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
get length() {
|
|
263
|
+
return __classPrivateFieldGet(this, _Buffer_buf, "f").byteLength - __classPrivateFieldGet(this, _Buffer_off, "f");
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The read only capacity of the buffer's underlying byte slice, that is,
|
|
267
|
+
* the total space allocated for the buffer's data.
|
|
268
|
+
*
|
|
269
|
+
* @returns The number of allocated bytes for the buffer.
|
|
270
|
+
*
|
|
271
|
+
* @example Basic usage
|
|
272
|
+
* ```ts
|
|
273
|
+
* import { assertEquals } from "@std/assert";
|
|
274
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
275
|
+
*
|
|
276
|
+
* const arrayBuffer = new ArrayBuffer(256);
|
|
277
|
+
* const buf = new Buffer(arrayBuffer);
|
|
278
|
+
* assertEquals(buf.capacity, 256);
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
281
|
+
get capacity() {
|
|
282
|
+
return __classPrivateFieldGet(this, _Buffer_buf, "f").buffer.byteLength;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Discards all but the first `n` unread bytes from the buffer but
|
|
286
|
+
* continues to use the same allocated storage. It throws if `n` is
|
|
287
|
+
* negative or greater than the length of the buffer.
|
|
288
|
+
*
|
|
289
|
+
* @param n The number of bytes to keep.
|
|
290
|
+
*
|
|
291
|
+
* @example Basic usage
|
|
292
|
+
* ```ts
|
|
293
|
+
* import { assertEquals } from "@std/assert";
|
|
294
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
295
|
+
*
|
|
296
|
+
* const array = new Uint8Array([0, 1, 2]);
|
|
297
|
+
* const buf = new Buffer(array.buffer);
|
|
298
|
+
* assertEquals(buf.bytes(), array);
|
|
299
|
+
*
|
|
300
|
+
* // Discard all but the first 2 bytes
|
|
301
|
+
* buf.truncate(2);
|
|
302
|
+
* assertEquals(buf.bytes(), array.slice(0, 2));
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
truncate(n) {
|
|
306
|
+
if (n === 0) {
|
|
307
|
+
this.reset();
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
if (n < 0 || n > this.length) {
|
|
311
|
+
throw new Error(`Buffer truncation value "${n}" is not between 0 and ${this.length}`);
|
|
312
|
+
}
|
|
313
|
+
__classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_reslice).call(this, __classPrivateFieldGet(this, _Buffer_off, "f") + n);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Resets to an empty buffer.
|
|
317
|
+
*
|
|
318
|
+
* @example Basic usage
|
|
319
|
+
* ```ts
|
|
320
|
+
* import { assert } from "@std/assert";
|
|
321
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
322
|
+
*
|
|
323
|
+
* const array = new Uint8Array([0, 1, 2]);
|
|
324
|
+
* const buf = new Buffer(array.buffer);
|
|
325
|
+
* assert(!buf.empty());
|
|
326
|
+
*
|
|
327
|
+
* // Reset
|
|
328
|
+
* buf.reset();
|
|
329
|
+
* assert(buf.empty());
|
|
330
|
+
* ```
|
|
331
|
+
*/
|
|
332
|
+
reset() {
|
|
333
|
+
__classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_reslice).call(this, 0);
|
|
334
|
+
__classPrivateFieldSet(this, _Buffer_off, 0, "f");
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Grows the buffer's capacity, if necessary, to guarantee space for
|
|
338
|
+
* another `n` bytes. After `.grow(n)`, at least `n` bytes can be written to
|
|
339
|
+
* the buffer without another allocation. If `n` is negative, `.grow()` will
|
|
340
|
+
* throw. If the buffer can't grow it will throw an error.
|
|
341
|
+
*
|
|
342
|
+
* @param n The number of bytes to grow the buffer by.
|
|
343
|
+
*
|
|
344
|
+
* Based on Go Lang's
|
|
345
|
+
* {@link https://golang.org/pkg/bytes/#Buffer.Grow | Buffer.Grow}.
|
|
346
|
+
*
|
|
347
|
+
* @example Basic usage
|
|
348
|
+
* ```ts
|
|
349
|
+
* import { assert } from "@std/assert";
|
|
350
|
+
* import { assertEquals } from "@std/assert";
|
|
351
|
+
* import { Buffer } from "@std/streams/buffer";
|
|
352
|
+
*
|
|
353
|
+
* const buf = new Buffer();
|
|
354
|
+
* assertEquals(buf.capacity, 0);
|
|
355
|
+
*
|
|
356
|
+
* buf.grow(200);
|
|
357
|
+
* assert(buf.capacity >= 200);
|
|
358
|
+
* ```
|
|
359
|
+
*/
|
|
360
|
+
grow(n) {
|
|
361
|
+
if (n < 0) {
|
|
362
|
+
throw new Error(`Cannot grow buffer as growth must be positive: received ${n}`);
|
|
363
|
+
}
|
|
364
|
+
const m = __classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_grow).call(this, n);
|
|
365
|
+
__classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_reslice).call(this, m);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
exports.Buffer = Buffer;
|
|
369
|
+
_Buffer_buf = new WeakMap(), _Buffer_off = new WeakMap(), _Buffer_readable = new WeakMap(), _Buffer_writable = new WeakMap(), _Buffer_instances = new WeakSet(), _Buffer_tryGrowByReslice = function _Buffer_tryGrowByReslice(n) {
|
|
370
|
+
const l = __classPrivateFieldGet(this, _Buffer_buf, "f").byteLength;
|
|
371
|
+
if (n <= this.capacity - l) {
|
|
372
|
+
__classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_reslice).call(this, l + n);
|
|
373
|
+
return l;
|
|
374
|
+
}
|
|
375
|
+
return -1;
|
|
376
|
+
}, _Buffer_reslice = function _Buffer_reslice(len) {
|
|
377
|
+
__classPrivateFieldSet(this, _Buffer_buf, new Uint8Array(__classPrivateFieldGet(this, _Buffer_buf, "f").buffer, 0, len), "f");
|
|
378
|
+
}, _Buffer_grow = function _Buffer_grow(n) {
|
|
379
|
+
const m = this.length;
|
|
380
|
+
// If buffer is empty, reset to recover space.
|
|
381
|
+
if (m === 0 && __classPrivateFieldGet(this, _Buffer_off, "f") !== 0) {
|
|
382
|
+
this.reset();
|
|
383
|
+
}
|
|
384
|
+
// Fast: Try to grow by means of a reslice.
|
|
385
|
+
const i = __classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_tryGrowByReslice).call(this, n);
|
|
386
|
+
if (i >= 0) {
|
|
387
|
+
return i;
|
|
388
|
+
}
|
|
389
|
+
const c = this.capacity;
|
|
390
|
+
if (n <= Math.floor(c / 2) - m) {
|
|
391
|
+
// We can slide things down instead of allocating a new
|
|
392
|
+
// ArrayBuffer. We only need m+n <= c to slide, but
|
|
393
|
+
// we instead let capacity get twice as large so we
|
|
394
|
+
// don't spend all our time copying.
|
|
395
|
+
(0, copy_js_1.copy)(__classPrivateFieldGet(this, _Buffer_buf, "f").subarray(__classPrivateFieldGet(this, _Buffer_off, "f")), __classPrivateFieldGet(this, _Buffer_buf, "f"));
|
|
396
|
+
}
|
|
397
|
+
else if (c + n > MAX_SIZE) {
|
|
398
|
+
throw new Error(`The buffer cannot grow beyond the maximum size of ${MAX_SIZE}`);
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
// Not enough space anywhere, we need to allocate.
|
|
402
|
+
const buf = new Uint8Array(Math.min(2 * c + n, MAX_SIZE));
|
|
403
|
+
(0, copy_js_1.copy)(__classPrivateFieldGet(this, _Buffer_buf, "f").subarray(__classPrivateFieldGet(this, _Buffer_off, "f")), buf);
|
|
404
|
+
__classPrivateFieldSet(this, _Buffer_buf, buf, "f");
|
|
405
|
+
}
|
|
406
|
+
// Restore this.#off and len(this.#buf).
|
|
407
|
+
__classPrivateFieldSet(this, _Buffer_off, 0, "f");
|
|
408
|
+
__classPrivateFieldGet(this, _Buffer_instances, "m", _Buffer_reslice).call(this, Math.min(m + n, MAX_SIZE));
|
|
409
|
+
return m;
|
|
410
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A transform stream that only transforms from the zero-indexed `start` and
|
|
3
|
+
* `end` bytes (both inclusive).
|
|
4
|
+
*
|
|
5
|
+
* @example Basic usage
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { ByteSliceStream } from "@std/streams/byte-slice-stream";
|
|
8
|
+
* import { assertEquals } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* const stream = ReadableStream.from([
|
|
11
|
+
* new Uint8Array([0, 1]),
|
|
12
|
+
* new Uint8Array([2, 3, 4]),
|
|
13
|
+
* ]);
|
|
14
|
+
* const slicedStream = stream.pipeThrough(new ByteSliceStream(1, 3));
|
|
15
|
+
*
|
|
16
|
+
* assertEquals(
|
|
17
|
+
* await Array.fromAsync(slicedStream),
|
|
18
|
+
* [new Uint8Array([1]), new Uint8Array([2, 3])]
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example Get a range of bytes from a fetch response body
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { ByteSliceStream } from "@std/streams/byte-slice-stream";
|
|
25
|
+
* import { assertEquals } from "@std/assert";
|
|
26
|
+
*
|
|
27
|
+
* const response = await fetch("https://example.com");
|
|
28
|
+
* const rangedStream = response.body!
|
|
29
|
+
* .pipeThrough(new ByteSliceStream(3, 8));
|
|
30
|
+
* const collected = await Array.fromAsync(rangedStream);
|
|
31
|
+
* assertEquals(collected[0]?.length, 6);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class ByteSliceStream extends TransformStream<Uint8Array, Uint8Array> {
|
|
35
|
+
#private;
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new instance.
|
|
38
|
+
*
|
|
39
|
+
* @param start The zero-indexed byte index to start reading from.
|
|
40
|
+
* @param end The zero-indexed byte index to stop reading at. Inclusive.
|
|
41
|
+
*/
|
|
42
|
+
constructor(start?: number, end?: number);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=byte_slice_stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byte_slice_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.8/byte_slice_stream.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,eAAgB,SAAQ,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC;;IAI1E;;;;;OAKG;gBACS,KAAK,SAAI,EAAE,GAAG,GAAE,MAAiB;CA4B9C"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
5
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6
|
+
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");
|
|
7
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
10
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
11
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
12
|
+
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");
|
|
13
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
14
|
+
};
|
|
15
|
+
var _ByteSliceStream_offsetStart, _ByteSliceStream_offsetEnd;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ByteSliceStream = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* A transform stream that only transforms from the zero-indexed `start` and
|
|
20
|
+
* `end` bytes (both inclusive).
|
|
21
|
+
*
|
|
22
|
+
* @example Basic usage
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { ByteSliceStream } from "@std/streams/byte-slice-stream";
|
|
25
|
+
* import { assertEquals } from "@std/assert";
|
|
26
|
+
*
|
|
27
|
+
* const stream = ReadableStream.from([
|
|
28
|
+
* new Uint8Array([0, 1]),
|
|
29
|
+
* new Uint8Array([2, 3, 4]),
|
|
30
|
+
* ]);
|
|
31
|
+
* const slicedStream = stream.pipeThrough(new ByteSliceStream(1, 3));
|
|
32
|
+
*
|
|
33
|
+
* assertEquals(
|
|
34
|
+
* await Array.fromAsync(slicedStream),
|
|
35
|
+
* [new Uint8Array([1]), new Uint8Array([2, 3])]
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @example Get a range of bytes from a fetch response body
|
|
40
|
+
* ```ts
|
|
41
|
+
* import { ByteSliceStream } from "@std/streams/byte-slice-stream";
|
|
42
|
+
* import { assertEquals } from "@std/assert";
|
|
43
|
+
*
|
|
44
|
+
* const response = await fetch("https://example.com");
|
|
45
|
+
* const rangedStream = response.body!
|
|
46
|
+
* .pipeThrough(new ByteSliceStream(3, 8));
|
|
47
|
+
* const collected = await Array.fromAsync(rangedStream);
|
|
48
|
+
* assertEquals(collected[0]?.length, 6);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class ByteSliceStream extends TransformStream {
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a new instance.
|
|
54
|
+
*
|
|
55
|
+
* @param start The zero-indexed byte index to start reading from.
|
|
56
|
+
* @param end The zero-indexed byte index to stop reading at. Inclusive.
|
|
57
|
+
*/
|
|
58
|
+
constructor(start = 0, end = Infinity) {
|
|
59
|
+
super({
|
|
60
|
+
start: () => {
|
|
61
|
+
if (start < 0) {
|
|
62
|
+
throw new RangeError(`Cannot construct ByteSliceStream as start must be >= 0: received ${start}`);
|
|
63
|
+
}
|
|
64
|
+
end += 1;
|
|
65
|
+
},
|
|
66
|
+
transform: (chunk, controller) => {
|
|
67
|
+
__classPrivateFieldSet(this, _ByteSliceStream_offsetStart, __classPrivateFieldGet(this, _ByteSliceStream_offsetEnd, "f"), "f");
|
|
68
|
+
__classPrivateFieldSet(this, _ByteSliceStream_offsetEnd, __classPrivateFieldGet(this, _ByteSliceStream_offsetEnd, "f") + chunk.byteLength, "f");
|
|
69
|
+
if (__classPrivateFieldGet(this, _ByteSliceStream_offsetEnd, "f") > start) {
|
|
70
|
+
if (__classPrivateFieldGet(this, _ByteSliceStream_offsetStart, "f") < start) {
|
|
71
|
+
chunk = chunk.slice(start - __classPrivateFieldGet(this, _ByteSliceStream_offsetStart, "f"));
|
|
72
|
+
}
|
|
73
|
+
if (__classPrivateFieldGet(this, _ByteSliceStream_offsetEnd, "f") >= end) {
|
|
74
|
+
chunk = chunk.slice(0, chunk.byteLength - __classPrivateFieldGet(this, _ByteSliceStream_offsetEnd, "f") + end);
|
|
75
|
+
controller.enqueue(chunk);
|
|
76
|
+
controller.terminate();
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
controller.enqueue(chunk);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
_ByteSliceStream_offsetStart.set(this, 0);
|
|
85
|
+
_ByteSliceStream_offsetEnd.set(this, 0);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ByteSliceStream = ByteSliceStream;
|
|
89
|
+
_ByteSliceStream_offsetStart = new WeakMap(), _ByteSliceStream_offsetEnd = new WeakMap();
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concatenates multiple `ReadableStream`s into a single ordered
|
|
3
|
+
* `ReadableStream`.
|
|
4
|
+
*
|
|
5
|
+
* Cancelling the resulting stream will cancel all the input streams.
|
|
6
|
+
*
|
|
7
|
+
* @typeParam T The type of the chunks in the streams.
|
|
8
|
+
* @param streams An iterable of `ReadableStream`s to concat.
|
|
9
|
+
* @returns A `ReadableStream` that will emit the concatenated chunks.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { concatReadableStreams } from "@std/streams/concat-readable-streams";
|
|
14
|
+
* import { assertEquals } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* const stream1 = ReadableStream.from([1, 2, 3]);
|
|
17
|
+
* const stream2 = ReadableStream.from([4, 5, 6]);
|
|
18
|
+
* const stream3 = ReadableStream.from([7, 8, 9]);
|
|
19
|
+
*
|
|
20
|
+
* assertEquals(
|
|
21
|
+
* await Array.fromAsync(concatReadableStreams(stream1, stream2, stream3)),
|
|
22
|
+
* [1, 2, 3, 4, 5, 6, 7, 8, 9],
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function concatReadableStreams<T>(...streams: ReadableStream<T>[]): ReadableStream<T>;
|
|
27
|
+
//# sourceMappingURL=concat_readable_streams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concat_readable_streams.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/1.0.8/concat_readable_streams.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,GAAG,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,GAC9B,cAAc,CAAC,CAAC,CAAC,CAoBnB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.concatReadableStreams = concatReadableStreams;
|
|
5
|
+
/**
|
|
6
|
+
* Concatenates multiple `ReadableStream`s into a single ordered
|
|
7
|
+
* `ReadableStream`.
|
|
8
|
+
*
|
|
9
|
+
* Cancelling the resulting stream will cancel all the input streams.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T The type of the chunks in the streams.
|
|
12
|
+
* @param streams An iterable of `ReadableStream`s to concat.
|
|
13
|
+
* @returns A `ReadableStream` that will emit the concatenated chunks.
|
|
14
|
+
*
|
|
15
|
+
* @example Usage
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { concatReadableStreams } from "@std/streams/concat-readable-streams";
|
|
18
|
+
* import { assertEquals } from "@std/assert";
|
|
19
|
+
*
|
|
20
|
+
* const stream1 = ReadableStream.from([1, 2, 3]);
|
|
21
|
+
* const stream2 = ReadableStream.from([4, 5, 6]);
|
|
22
|
+
* const stream3 = ReadableStream.from([7, 8, 9]);
|
|
23
|
+
*
|
|
24
|
+
* assertEquals(
|
|
25
|
+
* await Array.fromAsync(concatReadableStreams(stream1, stream2, stream3)),
|
|
26
|
+
* [1, 2, 3, 4, 5, 6, 7, 8, 9],
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function concatReadableStreams(...streams) {
|
|
31
|
+
let i = 0;
|
|
32
|
+
return new ReadableStream({
|
|
33
|
+
async pull(controller) {
|
|
34
|
+
const reader = streams[i].getReader();
|
|
35
|
+
const { done, value } = await reader.read();
|
|
36
|
+
if (done) {
|
|
37
|
+
if (streams.length === ++i) {
|
|
38
|
+
return controller.close();
|
|
39
|
+
}
|
|
40
|
+
return await this.pull(controller);
|
|
41
|
+
}
|
|
42
|
+
controller.enqueue(value);
|
|
43
|
+
reader.releaseLock();
|
|
44
|
+
},
|
|
45
|
+
async cancel(reason) {
|
|
46
|
+
const promises = streams.map((stream) => stream.cancel(reason));
|
|
47
|
+
await Promise.allSettled(promises);
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|