Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(deps): update dependency rust to v1.81.0 #239

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.80.1"
channel = "1.81.0"
profile = "default"
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,9 @@ impl<Fs: FileSystem> ResolverGeneric<Fs> {
let mut has_dot = false;
let mut without_dot = false;
for key in map.keys() {
has_dot = has_dot || key.starts_with(|s| s == '.' || s == '#');
without_dot = without_dot || !key.starts_with(|s| s == '.' || s == '#');
let starts_with_dot_or_hash = key.starts_with(['.', '#']);
has_dot = has_dot || starts_with_dot_or_hash;
without_dot = without_dot || !starts_with_dot_or_hash;
if has_dot && without_dot {
return Err(ResolveError::InvalidPackageConfig(
package_url.join("package.json"),
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl TsConfig {
// Copied from parcel
// <https://github.com/parcel-bundler/parcel/blob/b6224fd519f95e68d8b93ba90376fd94c8b76e69/packages/utils/node-resolver-rs/src/tsconfig.rs#L93>
pub fn resolve_path_alias(&self, specifier: &str) -> Vec<PathBuf> {
if specifier.starts_with(|s| s == '/' || s == '.') {
if specifier.starts_with(['/', '.']) {
return vec![];
}

Expand Down