@mtkruto/node 0.66.1 → 0.66.3
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 +10 -9
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +10 -9
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +155 -1
- package/esm/client/5_client.d.ts +11 -0
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +11 -0
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.js +2 -2
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/bytes/1.0.5 → esm/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts +19 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.js +550 -0
- package/esm/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/datetime/0.225.5/format.d.ts +70 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.5/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/datetime/0.225.5/format.js +66 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.d.ts +3 -4
- package/esm/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.js +2 -3
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/extname.d.ts +3 -4
- package/esm/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/extname.js +2 -3
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/join.d.ts +4 -4
- package/esm/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/join.js +5 -5
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/basename.d.ts +3 -4
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/basename.js +6 -3
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.d.ts +4 -4
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.js +7 -3
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/join.d.ts +4 -6
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/join.js +10 -7
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.d.ts +3 -6
- package/esm/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.js +6 -5
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/_util.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/basename.d.ts +3 -4
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/basename.js +6 -3
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/extname.d.ts +3 -6
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/extname.js +6 -5
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.js +30 -0
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/is_absolute.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/join.js +9 -6
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/normalize.d.ts +3 -6
- package/esm/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/normalize.js +6 -5
- package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/windows/to_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.js +1 -1
- package/esm/session/2_session_encrypted.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.js +8 -6
- package/esm/utilities/1_logger.d.ts.map +1 -1
- package/esm/utilities/1_logger.js +2 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +10 -9
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +12 -10
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +155 -1
- package/script/client/5_client.d.ts +11 -0
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +11 -0
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.js +2 -2
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/bytes/1.0.5 → script/deps/jsr.io/@std/bytes/1.0.6}/concat.d.ts +1 -1
- package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts +19 -0
- package/script/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/datetime/0.225.5/_date_time_formatter.js +554 -0
- package/script/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/datetime/0.225.5/format.d.ts +70 -0
- package/script/deps/jsr.io/@std/datetime/0.225.5/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/datetime/0.225.5/format.js +69 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.d.ts +3 -4
- package/script/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/basename.js +2 -3
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/extname.d.ts +3 -4
- package/script/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/extname.js +2 -3
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/join.d.ts +4 -4
- package/script/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/join.js +5 -5
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/posix/basename.d.ts +3 -4
- package/script/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/basename.js +6 -3
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.d.ts +4 -4
- package/script/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/extname.js +7 -3
- package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/posix/join.d.ts +4 -6
- package/script/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/join.js +10 -7
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.d.ts +3 -6
- package/script/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/normalize.js +6 -5
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/posix/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/_util.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/basename.d.ts +3 -4
- package/script/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/basename.js +6 -3
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/extname.d.ts +3 -6
- package/script/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/extname.js +6 -5
- package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.js +33 -0
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/is_absolute.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/join.js +9 -6
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/normalize.d.ts +3 -6
- package/script/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/normalize.js +6 -5
- package/{esm/deps/jsr.io/@std/path/1.0.9 → script/deps/jsr.io/@std/path/1.1.0}/windows/to_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.js +1 -1
- package/script/session/2_session_encrypted.d.ts.map +1 -1
- package/script/session/2_session_encrypted.js +8 -6
- package/script/utilities/1_logger.d.ts.map +1 -1
- package/script/utilities/1_logger.js +2 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/posix/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/posix/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/windows/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/windows/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.0.9/windows/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.9/to_array_buffer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/posix/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/posix/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/windows/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/windows/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.9/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.9/windows/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.9/to_array_buffer.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/_util.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/abortable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/deadline.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/debounce.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/delay.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mod.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/mux_async_iterator.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/pool.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/retry.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.12 → 1.0.13}/tee.js +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
- /package/script/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
- /package/script/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/datetime/{0.225.4 → 0.225.5}/constants.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/assert_path.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/constants.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/normalize_string.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_os.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/posix/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/windows/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/streams/{1.0.9 → 1.0.10}/to_array_buffer.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** Options for {@linkcode format}. */
|
|
2
|
+
export interface FormatOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The timezone the formatted date should be in.
|
|
5
|
+
*
|
|
6
|
+
* @default {undefined}
|
|
7
|
+
*/
|
|
8
|
+
timeZone?: "UTC";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Formats a date to a string with the specified format.
|
|
12
|
+
*
|
|
13
|
+
* The following symbols from
|
|
14
|
+
* {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table | unicode LDML}
|
|
15
|
+
* are supported:
|
|
16
|
+
* - `yyyy` - numeric year
|
|
17
|
+
* - `yy` - 2-digit year
|
|
18
|
+
* - `M` - numeric month
|
|
19
|
+
* - `MM` - 2-digit month
|
|
20
|
+
* - `d` - numeric day
|
|
21
|
+
* - `dd` - 2-digit day
|
|
22
|
+
* - `H` - numeric hour (0-23 hours)
|
|
23
|
+
* - `HH` - 2-digit hour (00-23 hours)
|
|
24
|
+
* - `h` - numeric hour (1-12 hours)
|
|
25
|
+
* - `hh` - 2-digit hour (01-12 hours)
|
|
26
|
+
* - `m` - numeric minute
|
|
27
|
+
* - `mm` - 2-digit minute
|
|
28
|
+
* - `s` - numeric second
|
|
29
|
+
* - `ss` - 2-digit second
|
|
30
|
+
* - `S` - 1-digit fractional second
|
|
31
|
+
* - `SS` - 2-digit fractional second
|
|
32
|
+
* - `SSS` - 3-digit fractional second
|
|
33
|
+
* - `a` - dayPeriod, either `AM` or `PM`
|
|
34
|
+
* - `'foo'` - quoted literal
|
|
35
|
+
* - `./-` - unquoted literal
|
|
36
|
+
*
|
|
37
|
+
* @param date The date to be formatted.
|
|
38
|
+
* @param formatString The date time string format.
|
|
39
|
+
* @param options The options to customize the formatting of the date.
|
|
40
|
+
* @return The formatted date string.
|
|
41
|
+
*
|
|
42
|
+
* @example Basic usage
|
|
43
|
+
* ```ts ignore
|
|
44
|
+
* import { format } from "@std/datetime/format";
|
|
45
|
+
* import { assertEquals } from "@std/assert";
|
|
46
|
+
*
|
|
47
|
+
* const date = new Date(2019, 0, 20, 16, 34, 23, 123);
|
|
48
|
+
*
|
|
49
|
+
* assertEquals(format(date, "dd-MM-yyyy"), "20-01-2019");
|
|
50
|
+
*
|
|
51
|
+
* assertEquals(format(date, "MM-dd-yyyy HH:mm:ss.SSS"), "01-20-2019 16:34:23.123");
|
|
52
|
+
*
|
|
53
|
+
* assertEquals(format(date, "'today:' yyyy-MM-dd"), "today: 2019-01-20");
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @example UTC formatting
|
|
57
|
+
*
|
|
58
|
+
* Enable UTC formatting by setting the `timeZone` option to `"UTC"`.
|
|
59
|
+
*
|
|
60
|
+
* ```ts ignore
|
|
61
|
+
* import { format } from "@std/datetime/format";
|
|
62
|
+
* import { assertEquals } from "@std/assert";
|
|
63
|
+
*
|
|
64
|
+
* const date = new Date(2019, 0, 20, 16, 34, 23, 123);
|
|
65
|
+
*
|
|
66
|
+
* assertEquals(format(date, "yyyy-MM-dd HH:mm:ss", { timeZone: "UTC" }), "2019-01-20 05:34:23");
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare function format(date: Date, formatString: string, options?: FormatOptions): string;
|
|
70
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/datetime/0.225.5/format.ts"],"names":[],"mappings":"AAKA,sCAAsC;AACtC,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,aAAkB,GAC1B,MAAM,CAGR"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { DateTimeFormatter } from "./_date_time_formatter.js";
|
|
4
|
+
/**
|
|
5
|
+
* Formats a date to a string with the specified format.
|
|
6
|
+
*
|
|
7
|
+
* The following symbols from
|
|
8
|
+
* {@link https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table | unicode LDML}
|
|
9
|
+
* are supported:
|
|
10
|
+
* - `yyyy` - numeric year
|
|
11
|
+
* - `yy` - 2-digit year
|
|
12
|
+
* - `M` - numeric month
|
|
13
|
+
* - `MM` - 2-digit month
|
|
14
|
+
* - `d` - numeric day
|
|
15
|
+
* - `dd` - 2-digit day
|
|
16
|
+
* - `H` - numeric hour (0-23 hours)
|
|
17
|
+
* - `HH` - 2-digit hour (00-23 hours)
|
|
18
|
+
* - `h` - numeric hour (1-12 hours)
|
|
19
|
+
* - `hh` - 2-digit hour (01-12 hours)
|
|
20
|
+
* - `m` - numeric minute
|
|
21
|
+
* - `mm` - 2-digit minute
|
|
22
|
+
* - `s` - numeric second
|
|
23
|
+
* - `ss` - 2-digit second
|
|
24
|
+
* - `S` - 1-digit fractional second
|
|
25
|
+
* - `SS` - 2-digit fractional second
|
|
26
|
+
* - `SSS` - 3-digit fractional second
|
|
27
|
+
* - `a` - dayPeriod, either `AM` or `PM`
|
|
28
|
+
* - `'foo'` - quoted literal
|
|
29
|
+
* - `./-` - unquoted literal
|
|
30
|
+
*
|
|
31
|
+
* @param date The date to be formatted.
|
|
32
|
+
* @param formatString The date time string format.
|
|
33
|
+
* @param options The options to customize the formatting of the date.
|
|
34
|
+
* @return The formatted date string.
|
|
35
|
+
*
|
|
36
|
+
* @example Basic usage
|
|
37
|
+
* ```ts ignore
|
|
38
|
+
* import { format } from "@std/datetime/format";
|
|
39
|
+
* import { assertEquals } from "@std/assert";
|
|
40
|
+
*
|
|
41
|
+
* const date = new Date(2019, 0, 20, 16, 34, 23, 123);
|
|
42
|
+
*
|
|
43
|
+
* assertEquals(format(date, "dd-MM-yyyy"), "20-01-2019");
|
|
44
|
+
*
|
|
45
|
+
* assertEquals(format(date, "MM-dd-yyyy HH:mm:ss.SSS"), "01-20-2019 16:34:23.123");
|
|
46
|
+
*
|
|
47
|
+
* assertEquals(format(date, "'today:' yyyy-MM-dd"), "today: 2019-01-20");
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @example UTC formatting
|
|
51
|
+
*
|
|
52
|
+
* Enable UTC formatting by setting the `timeZone` option to `"UTC"`.
|
|
53
|
+
*
|
|
54
|
+
* ```ts ignore
|
|
55
|
+
* import { format } from "@std/datetime/format";
|
|
56
|
+
* import { assertEquals } from "@std/assert";
|
|
57
|
+
*
|
|
58
|
+
* const date = new Date(2019, 0, 20, 16, 34, 23, 123);
|
|
59
|
+
*
|
|
60
|
+
* assertEquals(format(date, "yyyy-MM-dd HH:mm:ss", { timeZone: "UTC" }), "2019-01-20 05:34:23");
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export function format(date, formatString, options = {}) {
|
|
64
|
+
const formatter = new DateTimeFormatter(formatString);
|
|
65
|
+
return formatter.format(date, options);
|
|
66
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/basename.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAchE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAChC,KAAK,SAAI,GACR,MAAM,CAiBR;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,sBAQtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,OAQ1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
export function assertArg(url) {
|
|
4
|
+
url = url instanceof URL ? url : new URL(url);
|
|
5
|
+
if (url.protocol !== "file:") {
|
|
6
|
+
throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
|
|
7
|
+
}
|
|
8
|
+
return url;
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/normalize_string.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACzC,MAAM,CA4DR"}
|
package/esm/deps/jsr.io/@std/path/{1.0.9 → 1.1.0}/_common/strip_trailing_separators.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strip_trailing_separators.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"strip_trailing_separators.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/strip_trailing_separators.ts"],"names":[],"mappings":"AAKA,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAC/B,MAAM,CAgBR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/_common/to_file_url.ts"],"names":[],"mappings":"AAYA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/_os.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,EAAE,OAIjB,CAAC"}
|
|
@@ -11,18 +11,17 @@
|
|
|
11
11
|
*
|
|
12
12
|
* if (Deno.build.os === "windows") {
|
|
13
13
|
* assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
|
|
14
|
+
* assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
|
|
14
15
|
* } else {
|
|
15
16
|
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
17
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
16
18
|
* }
|
|
17
19
|
* ```
|
|
18
20
|
*
|
|
19
|
-
* Note: If you are working with file URLs,
|
|
20
|
-
* use the new version of `basename` from `@std/path/unstable-basename`.
|
|
21
|
-
*
|
|
22
21
|
* @param path Path to extract the name from.
|
|
23
22
|
* @param suffix Suffix to remove from extracted name.
|
|
24
23
|
*
|
|
25
24
|
* @returns The basename of the path.
|
|
26
25
|
*/
|
|
27
|
-
export declare function basename(path: string, suffix?: string): string;
|
|
26
|
+
export declare function basename(path: string | URL, suffix?: string): string;
|
|
28
27
|
//# sourceMappingURL=basename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/basename.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAIhE"}
|
|
@@ -16,14 +16,13 @@ import { basename as windowsBasename } from "./windows/basename.js";
|
|
|
16
16
|
*
|
|
17
17
|
* if (Deno.build.os === "windows") {
|
|
18
18
|
* assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
|
|
19
|
+
* assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
|
|
19
20
|
* } else {
|
|
20
21
|
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
22
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
21
23
|
* }
|
|
22
24
|
* ```
|
|
23
25
|
*
|
|
24
|
-
* Note: If you are working with file URLs,
|
|
25
|
-
* use the new version of `basename` from `@std/path/unstable-basename`.
|
|
26
|
-
*
|
|
27
26
|
* @param path Path to extract the name from.
|
|
28
27
|
* @param suffix Suffix to remove from extracted name.
|
|
29
28
|
*
|
|
@@ -8,16 +8,15 @@
|
|
|
8
8
|
*
|
|
9
9
|
* if (Deno.build.os === "windows") {
|
|
10
10
|
* assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
|
|
11
|
+
* assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
|
|
11
12
|
* } else {
|
|
12
13
|
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
14
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
|
|
13
15
|
* }
|
|
14
16
|
* ```
|
|
15
17
|
*
|
|
16
|
-
* Note: If you are working with file URLs,
|
|
17
|
-
* use the new version of `extname` from `@std/path/unstable-extname`.
|
|
18
|
-
*
|
|
19
18
|
* @param path Path with extension.
|
|
20
19
|
* @returns The file extension. E.g. returns `.ts` for `file.ts`.
|
|
21
20
|
*/
|
|
22
|
-
export declare function extname(path: string): string;
|
|
21
|
+
export declare function extname(path: string | URL): string;
|
|
23
22
|
//# sourceMappingURL=extname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/extname.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAElD"}
|
|
@@ -13,14 +13,13 @@ import { extname as windowsExtname } from "./windows/extname.js";
|
|
|
13
13
|
*
|
|
14
14
|
* if (Deno.build.os === "windows") {
|
|
15
15
|
* assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
|
|
16
|
+
* assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
|
|
16
17
|
* } else {
|
|
17
18
|
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
19
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
|
|
18
20
|
* }
|
|
19
21
|
* ```
|
|
20
22
|
*
|
|
21
|
-
* Note: If you are working with file URLs,
|
|
22
|
-
* use the new version of `extname` from `@std/path/unstable-extname`.
|
|
23
|
-
*
|
|
24
23
|
* @param path Path with extension.
|
|
25
24
|
* @returns The file extension. E.g. returns `.ts` for `file.ts`.
|
|
26
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
*
|
|
9
9
|
* if (Deno.build.os === "windows") {
|
|
10
10
|
* assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
|
|
11
|
+
* assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
|
|
11
12
|
* } else {
|
|
12
13
|
* assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
|
|
14
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
13
15
|
* }
|
|
14
16
|
* ```
|
|
15
17
|
*
|
|
16
|
-
*
|
|
17
|
-
* use the new version of `join` from `@std/path/unstable-join`.
|
|
18
|
-
*
|
|
18
|
+
* @param path The path to join. This can be string or file URL.
|
|
19
19
|
* @param paths Paths to be joined and normalized.
|
|
20
20
|
* @returns The joined and normalized path.
|
|
21
21
|
*/
|
|
22
|
-
export declare function join(...paths: string[]): string;
|
|
22
|
+
export declare function join(path: string | URL, ...paths: string[]): string;
|
|
23
23
|
//# sourceMappingURL=join.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.0/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEnE"}
|
|
@@ -13,17 +13,17 @@ import { join as windowsJoin } from "./windows/join.js";
|
|
|
13
13
|
*
|
|
14
14
|
* if (Deno.build.os === "windows") {
|
|
15
15
|
* assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
|
|
16
|
+
* assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
|
|
16
17
|
* } else {
|
|
17
18
|
* assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
|
|
19
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
18
20
|
* }
|
|
19
21
|
* ```
|
|
20
22
|
*
|
|
21
|
-
*
|
|
22
|
-
* use the new version of `join` from `@std/path/unstable-join`.
|
|
23
|
-
*
|
|
23
|
+
* @param path The path to join. This can be string or file URL.
|
|
24
24
|
* @param paths Paths to be joined and normalized.
|
|
25
25
|
* @returns The joined and normalized path.
|
|
26
26
|
*/
|
|
27
|
-
export function join(...paths) {
|
|
28
|
-
return isWindows ? windowsJoin(...paths) : posixJoin(...paths);
|
|
27
|
+
export function join(path, ...paths) {
|
|
28
|
+
return isWindows ? windowsJoin(path, ...paths) : posixJoin(path, ...paths);
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/basename.d.ts
RENAMED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
|
11
11
|
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
12
12
|
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
|
13
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
14
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
|
|
13
15
|
* ```
|
|
14
16
|
*
|
|
15
17
|
* @example Working with URLs
|
|
@@ -29,12 +31,9 @@
|
|
|
29
31
|
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
|
30
32
|
* ```
|
|
31
33
|
*
|
|
32
|
-
* Note: If you are working with file URLs,
|
|
33
|
-
* use the new version of `basename` from `@std/path/posix/unstable-basename`.
|
|
34
|
-
*
|
|
35
34
|
* @param path The path to extract the name from.
|
|
36
35
|
* @param suffix The suffix to remove from extracted name.
|
|
37
36
|
* @returns The extracted name.
|
|
38
37
|
*/
|
|
39
|
-
export declare function basename(path: string, suffix?: string): string;
|
|
38
|
+
export declare function basename(path: string | URL, suffix?: string): string;
|
|
40
39
|
//# sourceMappingURL=basename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/basename.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAYhE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
|
|
4
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
4
5
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
5
6
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
7
|
/**
|
|
@@ -15,6 +16,8 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
15
16
|
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
|
16
17
|
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
17
18
|
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
|
19
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
20
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
|
|
18
21
|
* ```
|
|
19
22
|
*
|
|
20
23
|
* @example Working with URLs
|
|
@@ -34,14 +37,14 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
34
37
|
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
|
35
38
|
* ```
|
|
36
39
|
*
|
|
37
|
-
* Note: If you are working with file URLs,
|
|
38
|
-
* use the new version of `basename` from `@std/path/posix/unstable-basename`.
|
|
39
|
-
*
|
|
40
40
|
* @param path The path to extract the name from.
|
|
41
41
|
* @param suffix The suffix to remove from extracted name.
|
|
42
42
|
* @returns The extracted name.
|
|
43
43
|
*/
|
|
44
44
|
export function basename(path, suffix = "") {
|
|
45
|
+
if (path instanceof URL) {
|
|
46
|
+
path = fromFileUrl(path);
|
|
47
|
+
}
|
|
45
48
|
assertArgs(path, suffix);
|
|
46
49
|
const lastSegment = lastPathSegment(path, isPosixPathSeparator);
|
|
47
50
|
const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
|
10
10
|
* assertEquals(extname("/home/user/Documents/"), "");
|
|
11
11
|
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
12
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
|
|
13
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
|
|
14
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
|
|
12
15
|
* ```
|
|
13
16
|
*
|
|
14
17
|
* @example Working with URLs
|
|
@@ -27,11 +30,8 @@
|
|
|
27
30
|
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
|
28
31
|
* ```
|
|
29
32
|
*
|
|
30
|
-
* Note: If you are working with file URLs,
|
|
31
|
-
* use the new version of `extname` from `@std/path/posix/unstable-extname`.
|
|
32
|
-
*
|
|
33
33
|
* @param path The path to get the extension from.
|
|
34
34
|
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
35
35
|
*/
|
|
36
|
-
export declare function extname(path: string): string;
|
|
36
|
+
export declare function extname(path: string | URL): string;
|
|
37
37
|
//# sourceMappingURL=extname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAoDlD"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
6
7
|
/**
|
|
7
8
|
* Return the extension of the `path` with leading period.
|
|
8
9
|
*
|
|
@@ -14,6 +15,9 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
14
15
|
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
|
15
16
|
* assertEquals(extname("/home/user/Documents/"), "");
|
|
16
17
|
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
18
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
|
|
19
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
|
|
20
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
|
|
17
21
|
* ```
|
|
18
22
|
*
|
|
19
23
|
* @example Working with URLs
|
|
@@ -32,13 +36,13 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
32
36
|
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
|
33
37
|
* ```
|
|
34
38
|
*
|
|
35
|
-
* Note: If you are working with file URLs,
|
|
36
|
-
* use the new version of `extname` from `@std/path/posix/unstable-extname`.
|
|
37
|
-
*
|
|
38
39
|
* @param path The path to get the extension from.
|
|
39
40
|
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
40
41
|
*/
|
|
41
42
|
export function extname(path) {
|
|
43
|
+
if (path instanceof URL) {
|
|
44
|
+
path = fromFileUrl(path);
|
|
45
|
+
}
|
|
42
46
|
assertPath(path);
|
|
43
47
|
let startDot = -1;
|
|
44
48
|
let startPart = 0;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a file URL to a path string.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @param url The file URL to convert.
|
|
13
|
+
* @returns The path string.
|
|
14
|
+
*/
|
|
15
|
+
export declare function fromFileUrl(url: URL | string): string;
|
|
16
|
+
//# sourceMappingURL=from_file_url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { assertArg } from "../_common/from_file_url.js";
|
|
4
|
+
/**
|
|
5
|
+
* Converts a file URL to a path string.
|
|
6
|
+
*
|
|
7
|
+
* @example Usage
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
|
10
|
+
* import { assertEquals } from "@std/assert";
|
|
11
|
+
*
|
|
12
|
+
* assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param url The file URL to convert.
|
|
16
|
+
* @returns The path string.
|
|
17
|
+
*/
|
|
18
|
+
export function fromFileUrl(url) {
|
|
19
|
+
url = assertArg(url);
|
|
20
|
+
return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0
|
|
1
|
+
{"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/is_absolute.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGhD"}
|
package/{script/deps/jsr.io/@std/path/1.0.9 → esm/deps/jsr.io/@std/path/1.1.0}/posix/join.d.ts
RENAMED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* import { join } from "@std/path/posix/join";
|
|
7
7
|
* import { assertEquals } from "@std/assert";
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* assertEquals(
|
|
9
|
+
* assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
10
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
11
11
|
* ```
|
|
12
12
|
*
|
|
13
13
|
* @example Working with URLs
|
|
@@ -23,11 +23,9 @@
|
|
|
23
23
|
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
* use the new version of `join` from `@std/path/posix/unstable-join`.
|
|
28
|
-
*
|
|
26
|
+
* @param path The path to join. This can be string or file URL.
|
|
29
27
|
* @param paths The paths to join.
|
|
30
28
|
* @returns The joined path.
|
|
31
29
|
*/
|
|
32
|
-
export declare function join(...paths: string[]): string;
|
|
30
|
+
export declare function join(path?: URL | string, ...paths: string[]): string;
|
|
33
31
|
//# sourceMappingURL=join.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.0/posix/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CASpE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertPath } from "../_common/assert_path.js";
|
|
4
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
4
5
|
import { normalize } from "./normalize.js";
|
|
5
6
|
/**
|
|
6
7
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
@@ -10,8 +11,8 @@ import { normalize } from "./normalize.js";
|
|
|
10
11
|
* import { join } from "@std/path/posix/join";
|
|
11
12
|
* import { assertEquals } from "@std/assert";
|
|
12
13
|
*
|
|
13
|
-
*
|
|
14
|
-
* assertEquals(
|
|
14
|
+
* assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
15
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
17
18
|
* @example Working with URLs
|
|
@@ -27,15 +28,17 @@ import { normalize } from "./normalize.js";
|
|
|
27
28
|
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
|
28
29
|
* ```
|
|
29
30
|
*
|
|
30
|
-
*
|
|
31
|
-
* use the new version of `join` from `@std/path/posix/unstable-join`.
|
|
32
|
-
*
|
|
31
|
+
* @param path The path to join. This can be string or file URL.
|
|
33
32
|
* @param paths The paths to join.
|
|
34
33
|
* @returns The joined path.
|
|
35
34
|
*/
|
|
36
|
-
export function join(...paths) {
|
|
37
|
-
if (
|
|
35
|
+
export function join(path, ...paths) {
|
|
36
|
+
if (path === undefined)
|
|
38
37
|
return ".";
|
|
38
|
+
if (path instanceof URL) {
|
|
39
|
+
path = fromFileUrl(path);
|
|
40
|
+
}
|
|
41
|
+
paths = path ? [path, ...paths] : paths;
|
|
39
42
|
paths.forEach((path) => assertPath(path));
|
|
40
43
|
const joined = paths.filter((path) => path.length > 0).join("/");
|
|
41
44
|
return joined === "" ? "." : normalize(joined);
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* import { normalize } from "@std/path/posix/normalize";
|
|
9
9
|
* import { assertEquals } from "@std/assert";
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
* assertEquals(
|
|
11
|
+
* assertEquals(normalize("/foo/bar//baz/asdf/quux/.."), "/foo/bar/baz/asdf");
|
|
12
|
+
* assertEquals(normalize(new URL("file:///foo/bar//baz/asdf/quux/..")), "/foo/bar/baz/asdf/");
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* @example Working with URLs
|
|
@@ -30,11 +30,8 @@
|
|
|
30
30
|
* assertEquals(url.href, "https://deno.land/std/async/retry.ts");
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* Note: If you are working with file URLs,
|
|
34
|
-
* use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
|
|
35
|
-
*
|
|
36
33
|
* @param path The path to normalize.
|
|
37
34
|
* @returns The normalized path.
|
|
38
35
|
*/
|
|
39
|
-
export declare function normalize(path: string): string;
|
|
36
|
+
export declare function normalize(path: string | URL): string;
|
|
40
37
|
//# sourceMappingURL=normalize.d.ts.map
|