@mtkruto/node 0.75.0 → 0.75.1
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/0_deps.d.ts +13 -13
- package/esm/0_deps.js +13 -13
- package/esm/client/2_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_client_encrypted.js +1 -0
- package/esm/client/2_update_manager.js +3 -3
- package/{script/deps/jsr.io/@std/assert/1.0.14 → esm/deps/jsr.io/@std/assert/1.0.16}/assert.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +2 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.d.ts +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.15/delay.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.js +4 -6
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/cache/0.2.0 → esm/deps/jsr.io/@std/cache/0.2.1}/lru_cache.d.ts +44 -1
- package/esm/deps/jsr.io/@std/cache/0.2.1/lru_cache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/lru_cache.js +50 -1
- package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/basename.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/basename.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/extname.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/join.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/normalize.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/_util.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/basename.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/extname.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/from_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/is_absolute.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/join.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/normalize.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/to_file_url.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.js +23 -12
- package/package.json +1 -1
- package/script/0_deps.d.ts +13 -13
- package/script/0_deps.js +13 -13
- package/script/client/2_client_encrypted.d.ts.map +1 -1
- package/script/client/2_client_encrypted.js +1 -0
- package/script/client/2_update_manager.js +3 -3
- package/{esm/deps/jsr.io/@std/assert/1.0.14 → script/deps/jsr.io/@std/assert/1.0.16}/assert.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +2 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.d.ts +1 -0
- package/script/deps/jsr.io/@std/async/1.0.15/delay.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.js +4 -39
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/cache/0.2.0 → script/deps/jsr.io/@std/cache/0.2.1}/lru_cache.d.ts +44 -1
- package/script/deps/jsr.io/@std/cache/0.2.1/lru_cache.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/lru_cache.js +50 -1
- package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/basename.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/basename.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/extname.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/join.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/normalize.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/_util.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/basename.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/extname.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/from_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/is_absolute.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/join.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/normalize.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/to_file_url.d.ts.map +1 -1
- package/script/session/2_session_encrypted.d.ts.map +1 -1
- package/script/session/2_session_encrypted.js +23 -12
- package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.js +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.js +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.js +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.js +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAYrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAiBhD"}
|
package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/join.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.3/windows/join.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAqDpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.3/windows/normalize.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CA6GpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.
|
|
1
|
+
{"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAgB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_session_encrypted.d.ts","sourceRoot":"","sources":["../../src/session/2_session_encrypted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAwD,OAAO,EAAuC,MAAM,YAAY,CAAC;AAChI,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAI5C,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAa7D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,KAAK,IAAI,CAAC;IAC5D,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CACxD;AAED,qBAAa,gBAAiB,SAAQ,OAAQ,YAAW,OAAO;;IAI9D,QAAQ,EAAE,QAAQ,CAAM;gBAiBZ,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,aAAa;IAQpC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC;IAM7C,IAAI,OAAO,IAAI,UAAU,CAAC,WAAW,CAAC,CAErC;IAEc,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAe9B,UAAU,IAAI,IAAI;IA6ErB,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"2_session_encrypted.d.ts","sourceRoot":"","sources":["../../src/session/2_session_encrypted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAwD,OAAO,EAAuC,MAAM,YAAY,CAAC;AAChI,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAI5C,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAa7D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,KAAK,IAAI,CAAC;IAC5D,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CACxD;AAED,qBAAa,gBAAiB,SAAQ,OAAQ,YAAW,OAAO;;IAI9D,QAAQ,EAAE,QAAQ,CAAM;gBAiBZ,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,aAAa;IAQpC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC;IAM7C,IAAI,OAAO,IAAI,UAAU,CAAC,WAAW,CAAC,CAErC;IAEc,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAe9B,UAAU,IAAI,IAAI;IA6ErB,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAuX3D"}
|
|
@@ -289,6 +289,7 @@ export class SessionEncrypted extends Session {
|
|
|
289
289
|
async #receiveLoopBody(loop) {
|
|
290
290
|
let message;
|
|
291
291
|
try {
|
|
292
|
+
this.#LreceiveLoop.debug("receiving");
|
|
292
293
|
message = await this.#receive();
|
|
293
294
|
}
|
|
294
295
|
catch (err) {
|
|
@@ -304,10 +305,10 @@ export class SessionEncrypted extends Session {
|
|
|
304
305
|
}
|
|
305
306
|
try {
|
|
306
307
|
if (message.body instanceof Uint8Array) {
|
|
307
|
-
this.#onMessage(message.msg_id, message.body, null);
|
|
308
|
+
await this.#onMessage(message.msg_id, message.body, null);
|
|
308
309
|
}
|
|
309
310
|
else {
|
|
310
|
-
this.#onMessageContainer(message.msg_id, message.body);
|
|
311
|
+
await this.#onMessageContainer(message.msg_id, message.body);
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
catch (err) {
|
|
@@ -447,35 +448,41 @@ export class SessionEncrypted extends Session {
|
|
|
447
448
|
this.#setServerSalt(newSessionCreated.server_salt);
|
|
448
449
|
this.#toAcknowledge.push(msgId);
|
|
449
450
|
}
|
|
450
|
-
#onMessageContainer(msgId, msgContainer) {
|
|
451
|
+
async #onMessageContainer(msgId, msgContainer) {
|
|
451
452
|
this.#LreceiveLoop.debug("received container with ID", msgId, "and", msgContainer.messages.length, "message(s)");
|
|
452
453
|
for (const message of msgContainer.messages) {
|
|
453
454
|
if (message.body instanceof Uint8Array) {
|
|
454
|
-
this.#onMessage(message.msg_id, message.body, msgId);
|
|
455
|
+
await this.#onMessage(message.msg_id, message.body, msgId);
|
|
455
456
|
}
|
|
456
457
|
else {
|
|
457
|
-
this.#onMessageContainer(msgId, message.body);
|
|
458
|
+
await this.#onMessageContainer(msgId, message.body);
|
|
458
459
|
}
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
//// PING LOOP ////
|
|
462
463
|
#pingInterval = 56 * SECOND;
|
|
463
|
-
#pingLoop = new AbortableLoop(this.#pingLoopBody.bind(this), (err) => {
|
|
464
|
+
#pingLoop = new AbortableLoop(this.#pingLoopBody.bind(this), (_, err) => {
|
|
464
465
|
this.#LpingLoop.error(err);
|
|
465
466
|
});
|
|
467
|
+
#timeElapsed = 0;
|
|
466
468
|
async #pingLoopBody(_loop, signal) {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
const ms = Math.max(0, this.#pingInterval - this.#timeElapsed);
|
|
470
|
+
if (ms) {
|
|
471
|
+
this.#LpingLoop.debug(`sending ping in ${ms}ms`);
|
|
472
|
+
await delay(ms, { signal });
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
this.#LpingLoop.debug("sending ping now");
|
|
471
476
|
}
|
|
472
477
|
signal.throwIfAborted();
|
|
473
478
|
const then = Date.now();
|
|
474
479
|
try {
|
|
475
480
|
await this.#sendPingDelayDisconnect(this.#pingInterval / SECOND + 15);
|
|
481
|
+
this.#LpingLoop.debug("received pong");
|
|
476
482
|
}
|
|
477
483
|
finally {
|
|
478
|
-
timeElapsed = Date.now() - then;
|
|
484
|
+
this.#timeElapsed = Date.now() - then;
|
|
485
|
+
this.#LpingLoop.debug(`took ${this.#timeElapsed}`);
|
|
479
486
|
}
|
|
480
487
|
signal.throwIfAborted();
|
|
481
488
|
}
|
|
@@ -483,14 +490,18 @@ export class SessionEncrypted extends Session {
|
|
|
483
490
|
const ping_id = getRandomId();
|
|
484
491
|
const call = { _: "ping_delay_disconnect", ping_id, disconnect_delay };
|
|
485
492
|
const messageId = await this.send(Mtproto.serializeObject(call));
|
|
486
|
-
|
|
493
|
+
const promiseWithResolvers = Promise.withResolvers();
|
|
494
|
+
this.#pendingPings.set(messageId, { call, promiseWithResolvers });
|
|
495
|
+
await promiseWithResolvers.promise;
|
|
487
496
|
}
|
|
488
497
|
async #resendPendingPing(pendingPing) {
|
|
489
498
|
try {
|
|
490
499
|
const messageId = await this.send(Mtproto.serializeObject(pendingPing.call));
|
|
491
500
|
this.#pendingPings.set(messageId, pendingPing);
|
|
501
|
+
this.#LreceiveLoop.debug("ping resent");
|
|
492
502
|
}
|
|
493
503
|
catch (err) {
|
|
504
|
+
this.#LreceiveLoop.debug("rejecting ping because of failed resend:", err);
|
|
494
505
|
pendingPing.promiseWithResolvers.reject(err);
|
|
495
506
|
}
|
|
496
507
|
}
|
package/package.json
CHANGED
package/script/0_deps.d.ts
CHANGED
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
-
export { assert } from "./deps/jsr.io/@std/assert/1.0.
|
|
21
|
-
export { assertFalse } from "./deps/jsr.io/@std/assert/1.0.
|
|
22
|
-
export { assertEquals } from "./deps/jsr.io/@std/assert/1.0.
|
|
23
|
-
export { unreachable } from "./deps/jsr.io/@std/assert/1.0.
|
|
24
|
-
export { assertInstanceOf } from "./deps/jsr.io/@std/assert/1.0.
|
|
25
|
-
export { AssertionError } from "./deps/jsr.io/@std/assert/1.0.
|
|
26
|
-
export { join } from "./deps/jsr.io/@std/path/1.1.
|
|
27
|
-
export { extname } from "./deps/jsr.io/@std/path/1.1.
|
|
28
|
-
export { basename } from "./deps/jsr.io/@std/path/1.1.
|
|
29
|
-
export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.
|
|
30
|
-
export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.
|
|
31
|
-
export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.0.
|
|
20
|
+
export { assert } from "./deps/jsr.io/@std/assert/1.0.16/assert.js";
|
|
21
|
+
export { assertFalse } from "./deps/jsr.io/@std/assert/1.0.16/false.js";
|
|
22
|
+
export { assertEquals } from "./deps/jsr.io/@std/assert/1.0.16/equals.js";
|
|
23
|
+
export { unreachable } from "./deps/jsr.io/@std/assert/1.0.16/unreachable.js";
|
|
24
|
+
export { assertInstanceOf } from "./deps/jsr.io/@std/assert/1.0.16/instance_of.js";
|
|
25
|
+
export { AssertionError } from "./deps/jsr.io/@std/assert/1.0.16/assertion_error.js";
|
|
26
|
+
export { join } from "./deps/jsr.io/@std/path/1.1.3/join.js";
|
|
27
|
+
export { extname } from "./deps/jsr.io/@std/path/1.1.3/extname.js";
|
|
28
|
+
export { basename } from "./deps/jsr.io/@std/path/1.1.3/basename.js";
|
|
29
|
+
export { toFileUrl } from "./deps/jsr.io/@std/path/1.1.3/to_file_url.js";
|
|
30
|
+
export { isAbsolute } from "./deps/jsr.io/@std/path/1.1.3/is_absolute.js";
|
|
31
|
+
export { delay, pooledMap } from "./deps/jsr.io/@std/async/1.0.15/mod.js";
|
|
32
32
|
export { concat } from "./deps/jsr.io/@std/bytes/1.0.6/concat.js";
|
|
33
|
-
export { LruCache } from "./deps/jsr.io/@std/cache/0.2.
|
|
33
|
+
export { LruCache } from "./deps/jsr.io/@std/cache/0.2.1/lru_cache.js";
|
|
34
34
|
export { iterateReader } from "./deps/jsr.io/@std/io/0.225.2/iterate_reader.js";
|
|
35
35
|
export { format } from "./deps/jsr.io/@std/datetime/0.225.5/format.js";
|
|
36
36
|
export { MINUTE, SECOND } from "./deps/jsr.io/@std/datetime/0.225.5/constants.js";
|
package/script/0_deps.js
CHANGED
|
@@ -21,34 +21,34 @@
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.contentType = exports.encodeHex = exports.encodeBase64 = exports.decodeBase64 = exports.toArrayBuffer = exports.SECOND = exports.MINUTE = exports.format = exports.iterateReader = exports.LruCache = exports.concat = exports.pooledMap = exports.delay = exports.isAbsolute = exports.toFileUrl = exports.basename = exports.extname = exports.join = exports.AssertionError = exports.assertInstanceOf = exports.unreachable = exports.assertEquals = exports.assertFalse = exports.assert = void 0;
|
|
23
23
|
exports.extension = extension;
|
|
24
|
-
var assert_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
24
|
+
var assert_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/assert.js");
|
|
25
25
|
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return assert_js_1.assert; } });
|
|
26
|
-
var false_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
26
|
+
var false_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/false.js");
|
|
27
27
|
Object.defineProperty(exports, "assertFalse", { enumerable: true, get: function () { return false_js_1.assertFalse; } });
|
|
28
|
-
var equals_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
28
|
+
var equals_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/equals.js");
|
|
29
29
|
Object.defineProperty(exports, "assertEquals", { enumerable: true, get: function () { return equals_js_1.assertEquals; } });
|
|
30
|
-
var unreachable_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
30
|
+
var unreachable_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/unreachable.js");
|
|
31
31
|
Object.defineProperty(exports, "unreachable", { enumerable: true, get: function () { return unreachable_js_1.unreachable; } });
|
|
32
|
-
var instance_of_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
32
|
+
var instance_of_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/instance_of.js");
|
|
33
33
|
Object.defineProperty(exports, "assertInstanceOf", { enumerable: true, get: function () { return instance_of_js_1.assertInstanceOf; } });
|
|
34
|
-
var assertion_error_js_1 = require("./deps/jsr.io/@std/assert/1.0.
|
|
34
|
+
var assertion_error_js_1 = require("./deps/jsr.io/@std/assert/1.0.16/assertion_error.js");
|
|
35
35
|
Object.defineProperty(exports, "AssertionError", { enumerable: true, get: function () { return assertion_error_js_1.AssertionError; } });
|
|
36
|
-
var join_js_1 = require("./deps/jsr.io/@std/path/1.1.
|
|
36
|
+
var join_js_1 = require("./deps/jsr.io/@std/path/1.1.3/join.js");
|
|
37
37
|
Object.defineProperty(exports, "join", { enumerable: true, get: function () { return join_js_1.join; } });
|
|
38
|
-
var extname_js_1 = require("./deps/jsr.io/@std/path/1.1.
|
|
38
|
+
var extname_js_1 = require("./deps/jsr.io/@std/path/1.1.3/extname.js");
|
|
39
39
|
Object.defineProperty(exports, "extname", { enumerable: true, get: function () { return extname_js_1.extname; } });
|
|
40
|
-
var basename_js_1 = require("./deps/jsr.io/@std/path/1.1.
|
|
40
|
+
var basename_js_1 = require("./deps/jsr.io/@std/path/1.1.3/basename.js");
|
|
41
41
|
Object.defineProperty(exports, "basename", { enumerable: true, get: function () { return basename_js_1.basename; } });
|
|
42
|
-
var to_file_url_js_1 = require("./deps/jsr.io/@std/path/1.1.
|
|
42
|
+
var to_file_url_js_1 = require("./deps/jsr.io/@std/path/1.1.3/to_file_url.js");
|
|
43
43
|
Object.defineProperty(exports, "toFileUrl", { enumerable: true, get: function () { return to_file_url_js_1.toFileUrl; } });
|
|
44
|
-
var is_absolute_js_1 = require("./deps/jsr.io/@std/path/1.1.
|
|
44
|
+
var is_absolute_js_1 = require("./deps/jsr.io/@std/path/1.1.3/is_absolute.js");
|
|
45
45
|
Object.defineProperty(exports, "isAbsolute", { enumerable: true, get: function () { return is_absolute_js_1.isAbsolute; } });
|
|
46
|
-
var mod_js_1 = require("./deps/jsr.io/@std/async/1.0.
|
|
46
|
+
var mod_js_1 = require("./deps/jsr.io/@std/async/1.0.15/mod.js");
|
|
47
47
|
Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return mod_js_1.delay; } });
|
|
48
48
|
Object.defineProperty(exports, "pooledMap", { enumerable: true, get: function () { return mod_js_1.pooledMap; } });
|
|
49
49
|
var concat_js_1 = require("./deps/jsr.io/@std/bytes/1.0.6/concat.js");
|
|
50
50
|
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_js_1.concat; } });
|
|
51
|
-
var lru_cache_js_1 = require("./deps/jsr.io/@std/cache/0.2.
|
|
51
|
+
var lru_cache_js_1 = require("./deps/jsr.io/@std/cache/0.2.1/lru_cache.js");
|
|
52
52
|
Object.defineProperty(exports, "LruCache", { enumerable: true, get: function () { return lru_cache_js_1.LruCache; } });
|
|
53
53
|
var iterate_reader_js_1 = require("./deps/jsr.io/@std/io/0.225.2/iterate_reader.js");
|
|
54
54
|
Object.defineProperty(exports, "iterateReader", { enumerable: true, get: function () { return iterate_reader_js_1.iterateReader; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_client_encrypted.d.ts","sourceRoot":"","sources":["../../src/client/2_client_encrypted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,OAAO,EAAK,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAgB,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO1E,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,iKAAiK;IACjK,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8GAA8G;IAC9G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mHAAmH;IACnH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC;IACtD,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;CACrC;AAED,qBAAa,eAAgB,SAAQ,cAAc;;IAIjD,QAAQ,EAAE,uBAAuB,CAAM;IAIvC,OAAO,EAAE,gBAAgB,CAAC;gBAYd,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,qBAAqB;IAuBlD,OAAO;IAOb,UAAU;IAsCnB,IAAI,OAAO,IAAI,UAAU,CAAC,WAAW,CAAC,CAErC;IAEK,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAKjD,WAAW,CAAC,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"2_client_encrypted.d.ts","sourceRoot":"","sources":["../../src/client/2_client_encrypted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,OAAO,EAAK,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAgB,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO1E,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,iKAAiK;IACjK,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8GAA8G;IAC9G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mHAAmH;IACnH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC;IACtD,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;CACrC;AAED,qBAAa,eAAgB,SAAQ,cAAc;;IAIjD,QAAQ,EAAE,uBAAuB,CAAM;IAIvC,OAAO,EAAE,gBAAgB,CAAC;gBAYd,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,qBAAqB;IAuBlD,OAAO;IAOb,UAAU;IAsCnB,IAAI,OAAO,IAAI,UAAU,CAAC,WAAW,CAAC,CAErC;IAEK,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAKjD,WAAW,CAAC,EAAE,IAAI,CAAC;IAgEb,MAAM,CAAC,CAAC,SAAS,GAAG,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,SAAS,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,KAAK,EAAE,SAAS,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAsF3T"}
|
|
@@ -182,6 +182,7 @@ class ClientEncrypted extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
182
182
|
this.#sentRequests.set(messageId, request);
|
|
183
183
|
}
|
|
184
184
|
catch (err) {
|
|
185
|
+
this.#L.error("rejecting message because of resend error:", err);
|
|
185
186
|
request.promiseWithResolvers.reject(err);
|
|
186
187
|
}
|
|
187
188
|
}
|
|
@@ -526,9 +526,9 @@ class UpdateManager {
|
|
|
526
526
|
}
|
|
527
527
|
/// We process the updates when we are sure there is no gap.
|
|
528
528
|
if (_2_tl_js_1.Api.is("updates", updates_) || _2_tl_js_1.Api.is("updatesCombined", updates_)) {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
529
|
+
this.processChats(updates_.chats, updates_);
|
|
530
|
+
this.processUsers(updates_.users, updates_);
|
|
531
|
+
this.#setUpdateStateDate(updates_.date);
|
|
532
532
|
}
|
|
533
533
|
else if (_2_tl_js_1.Api.isOneOf([
|
|
534
534
|
"updateShort",
|
package/{esm/deps/jsr.io/@std/assert/1.0.14 → script/deps/jsr.io/@std/assert/1.0.16}/assert.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/equal.ts"],"names":[],"mappings":"AA0FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAgHrD"}
|
|
@@ -70,8 +70,7 @@ function getKeysDeep(obj) {
|
|
|
70
70
|
return keys;
|
|
71
71
|
}
|
|
72
72
|
// deno-lint-ignore no-explicit-any
|
|
73
|
-
const Temporal = dntShim.dntGlobalThis.Temporal ??
|
|
74
|
-
new Proxy({}, { get: () => { } });
|
|
73
|
+
const Temporal = dntShim.dntGlobalThis.Temporal ?? Object.create(null);
|
|
75
74
|
/** A non-exhaustive list of prototypes that can be accurately fast-path compared with `String(instance)` */
|
|
76
75
|
const stringComparablePrototypes = new Set([
|
|
77
76
|
Intl.Locale,
|
|
@@ -141,6 +140,10 @@ function equal(a, b) {
|
|
|
141
140
|
if (a instanceof TypedArray) {
|
|
142
141
|
return compareTypedArrays(a, b);
|
|
143
142
|
}
|
|
143
|
+
if (a instanceof ArrayBuffer ||
|
|
144
|
+
(globalThis.SharedArrayBuffer && a instanceof SharedArrayBuffer)) {
|
|
145
|
+
return compareTypedArrays(new Uint8Array(a), new Uint8Array(b));
|
|
146
|
+
}
|
|
144
147
|
if (a instanceof WeakMap) {
|
|
145
148
|
throw new TypeError("Cannot compare WeakMap instances");
|
|
146
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -55,7 +55,8 @@ function assertEquals(actual, expected, msg) {
|
|
|
55
55
|
const diffResult = stringDiff
|
|
56
56
|
? (0, diff_str_js_1.diffStr)(actual, expected)
|
|
57
57
|
: (0, diff_js_1.diff)(actualString.split("\n"), expectedString.split("\n"));
|
|
58
|
-
const diffMsg = (0, build_message_js_1.buildMessage)(diffResult, { stringDiff })
|
|
58
|
+
const diffMsg = (0, build_message_js_1.buildMessage)(diffResult, { stringDiff }, arguments[3])
|
|
59
|
+
.join("\n");
|
|
59
60
|
message = `${message}\n${diffMsg}`;
|
|
60
61
|
throw new assertion_error_js_1.AssertionError(message);
|
|
61
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/_util.ts"],"names":[],"mappings":"AAGA,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,UAIf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abortable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"abortable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/abortable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAC7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,wBAAgB,SAAS,CAAC,CAAC,EACzB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EACnB,MAAM,EAAE,WAAW,GAClB,cAAc,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deadline.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"deadline.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/deadline.ts"],"names":[],"mappings":"AAKA,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAC9B,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EACb,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,CAAC,CAAC,CAIZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/debounce.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,KAAK,CAAC,OAAO,CAAC;IACzD,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACnB,4EAA4E;IAC5E,KAAK,IAAI,IAAI,CAAC;IACd,gFAAgF;IAChF,KAAK,IAAI,IAAI,CAAC;IACd,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,EAC3C,EAAE,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,EACpD,IAAI,EAAE,MAAM,GACX,iBAAiB,CAAC,CAAC,CAAC,CA8BtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/delay.ts"],"names":[],"mappings":"AAGA,qCAAqC;AACrC,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
|
|
@@ -1,43 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
3
|
// This module is browser compatible.
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
-
}) : function(o, v) {
|
|
18
|
-
o["default"] = v;
|
|
19
|
-
});
|
|
20
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
21
|
-
var ownKeys = function(o) {
|
|
22
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
23
|
-
var ar = [];
|
|
24
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
25
|
-
return ar;
|
|
26
|
-
};
|
|
27
|
-
return ownKeys(o);
|
|
28
|
-
};
|
|
29
|
-
return function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
})();
|
|
37
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
5
|
exports.delay = delay;
|
|
39
|
-
/** Options for {@linkcode delay}. */
|
|
40
|
-
const dntShim = __importStar(require("../../../../../_dnt.shims.js"));
|
|
41
6
|
/**
|
|
42
7
|
* Resolve a {@linkcode Promise} after a given amount of milliseconds.
|
|
43
8
|
*
|
|
@@ -86,11 +51,11 @@ function delay(ms, options = {}) {
|
|
|
86
51
|
signal?.addEventListener("abort", abort, { once: true });
|
|
87
52
|
if (persistent === false) {
|
|
88
53
|
try {
|
|
89
|
-
|
|
90
|
-
dntShim.Deno.unrefTimer(i);
|
|
54
|
+
Deno.unrefTimer(+i);
|
|
91
55
|
}
|
|
92
56
|
catch (error) {
|
|
93
57
|
if (!(error instanceof ReferenceError)) {
|
|
58
|
+
clearTimeout(+i);
|
|
94
59
|
throw error;
|
|
95
60
|
}
|
|
96
61
|
// deno-lint-ignore no-console
|
|
@@ -108,8 +73,8 @@ function setArbitraryLengthTimeout(callback, delay) {
|
|
|
108
73
|
const queueTimeout = () => {
|
|
109
74
|
currentDelay = delay - (Date.now() - start);
|
|
110
75
|
timeoutId = currentDelay > I32_MAX
|
|
111
|
-
? setTimeout(queueTimeout, I32_MAX)
|
|
112
|
-
: setTimeout(callback, currentDelay);
|
|
76
|
+
? Number(setTimeout(queueTimeout, I32_MAX))
|
|
77
|
+
: Number(setTimeout(callback, currentDelay));
|
|
113
78
|
};
|
|
114
79
|
queueTimeout();
|
|
115
80
|
return { valueOf: () => timeoutId };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mux_async_iterator.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"mux_async_iterator.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/mux_async_iterator.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,gBAAgB,CAAC,CAAC,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;;IAO1D;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;IAqB9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACI,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC;IAsB1C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC;CAG3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/pool.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EACrC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAClC,qBAAqB,CAAC,CAAC,CAAC,CAqE1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/retry.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC;;;;;OAKG;gBACS,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM;CAK7C;AAED,qCAAqC;AACrC,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAC3B,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAClC,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,CAAC,CAAC,CA6CZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tee.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
|
1
|
+
{"version":3,"file":"tee.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.15/tee.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,CAAC,GAChD,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAC1C,KAAK,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,EAAE,IAC1D,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GACrB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAuC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,CAAC,EACzC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAC1B,CAAC,GAAE,CAAU,GACZ,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAuB5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_serialize_arg_list.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cache/0.2.
|
|
1
|
+
{"version":3,"file":"_serialize_arg_list.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cache/0.2.1/_serialize_arg_list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;;;;;;;GAQG;AAEH,wBAAgB,iBAAiB,CAAC,MAAM,EACtC,KAAK,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GACvC,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAmE/C"}
|
package/{esm/deps/jsr.io/@std/cache/0.2.0 → script/deps/jsr.io/@std/cache/0.2.1}/lru_cache.d.ts
RENAMED
|
@@ -34,6 +34,25 @@ export type { MemoizationCache };
|
|
|
34
34
|
* // less recent values are removed
|
|
35
35
|
* assert(!cache.has("a"));
|
|
36
36
|
* ```
|
|
37
|
+
*
|
|
38
|
+
* @example Adding a onEject function.
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { LruCache } from "@std/cache";
|
|
41
|
+
* import { assertEquals } from "@std/assert";
|
|
42
|
+
*
|
|
43
|
+
* const cache = new LruCache<string, string>(3, { onEject: (key, value) => {
|
|
44
|
+
* console.log("Revoking: ", key)
|
|
45
|
+
* URL.revokeObjectURL(value)
|
|
46
|
+
* }});
|
|
47
|
+
*
|
|
48
|
+
* cache.set(
|
|
49
|
+
* "fast-url",
|
|
50
|
+
* URL.createObjectURL(new Blob(["Hello, World"], { type: "text/plain" }))
|
|
51
|
+
* );
|
|
52
|
+
*
|
|
53
|
+
* cache.delete("fast-url") // "Revoking: fast-url"
|
|
54
|
+
* assertEquals(cache.get("fast-url"), undefined)
|
|
55
|
+
* ```
|
|
37
56
|
*/
|
|
38
57
|
export declare class LruCache<K, V> extends Map<K, V> implements MemoizationCache<K, V> {
|
|
39
58
|
#private;
|
|
@@ -54,8 +73,11 @@ export declare class LruCache<K, V> extends Map<K, V> implements MemoizationCach
|
|
|
54
73
|
* Constructs a new `LruCache`.
|
|
55
74
|
*
|
|
56
75
|
* @param maxSize The maximum number of entries to store in the cache.
|
|
76
|
+
* @param options Additional options.
|
|
57
77
|
*/
|
|
58
|
-
constructor(maxSize: number
|
|
78
|
+
constructor(maxSize: number, options?: {
|
|
79
|
+
onEject: (ejectedKey: K, ejectedValue: V) => void;
|
|
80
|
+
});
|
|
59
81
|
/**
|
|
60
82
|
* Checks whether an element with the specified key exists or not.
|
|
61
83
|
*
|
|
@@ -108,5 +130,26 @@ export declare class LruCache<K, V> extends Map<K, V> implements MemoizationCach
|
|
|
108
130
|
* ```
|
|
109
131
|
*/
|
|
110
132
|
set(key: K, value: V): this;
|
|
133
|
+
/**
|
|
134
|
+
* Deletes the value associated with the given key.
|
|
135
|
+
*
|
|
136
|
+
* @experimental **UNSTABLE**: New API, yet to be vetted.
|
|
137
|
+
*
|
|
138
|
+
* @param key The key to delete.
|
|
139
|
+
* @returns `true` if the key was deleted, `false` otherwise.
|
|
140
|
+
*
|
|
141
|
+
* @example Deleting a key from the cache
|
|
142
|
+
* ```ts
|
|
143
|
+
* import { LruCache } from "@std/cache";
|
|
144
|
+
* import { assertEquals } from "@std/assert/equals";
|
|
145
|
+
*
|
|
146
|
+
* const cache = new LruCache<string, number>(1);
|
|
147
|
+
*
|
|
148
|
+
* cache.set("a", 1);
|
|
149
|
+
* cache.delete("a");
|
|
150
|
+
* assertEquals(cache.has("a"), false);
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
delete(key: K): boolean;
|
|
111
154
|
}
|
|
112
155
|
//# sourceMappingURL=lru_cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lru_cache.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cache/0.2.1/lru_cache.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,CAC1C,YAAW,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;;IACjC;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,MAAM,CAAC;IAIhB;;;;;OAKG;gBAED,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,KAAK,IAAI,CAAA;KAAE;IAmBjE;;;;;;;;;;;;;;;;OAgBG;IACM,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;IAU7B;;;;;;;;;;;;;;;;OAgBG;IACM,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAUnC;;;;;;;;;;;;;;OAcG;IACM,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAOpC;;;;;;;;;;;;;;;;;;;OAmBG;IACM,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;CAOjC"}
|