Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
deps: Audit 06/25 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj authored Jun 25, 2024
1 parent f9bbb16 commit ced3e26
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 73 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.11.3

#### 🚀 Updates

- Updated dependencies.

## 0.11.2

#### 🐞 Fixes
Expand Down
101 changes: 52 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ members = ["crates/*"]
[workspace.dependencies]
extism-pdk = { version = "1.2.0" }
nodejs_package_json = "0.2.0"
proto_pdk = { version = "0.20.0" } #, path = "../../proto/crates/pdk" }
proto_pdk_api = { version = "0.20.0" } #, path = "../../proto/crates/pdk-api" }
proto_pdk_test_utils = { version = "0.24.0" } #, path = "../../proto/crates/pdk-test-utils" }
regex = { version = "1.10.4", default-features = false, features = [
proto_pdk = { version = "0.21.0" } #, path = "../../proto/crates/pdk" }
proto_pdk_api = { version = "0.21.0" } #, path = "../../proto/crates/pdk-api" }
proto_pdk_test_utils = { version = "0.25.0" } #, path = "../../proto/crates/pdk-test-utils" }
regex = { version = "1.10.5", default-features = false, features = [
"std",
"unicode",
] }
serde = "1.0.203"
serde_json = "1.0.117"
starbase_sandbox = "0.6.1"
serde_json = "1.0.118"
starbase_sandbox = "0.6.2"
tokio = { version = "1.38.0", features = ["full"] }

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion crates/node-depman/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "node_depman_plugin"
version = "0.11.2"
version = "0.11.3"
edition = "2021"
license = "MIT"
publish = false
Expand Down
6 changes: 3 additions & 3 deletions crates/node-depman/src/package_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl PackageManager {
let version = version.as_ref();

if matches!(self, PackageManager::Yarn) {
if let UnresolvedVersionSpec::Version(inner) = &version {
if let UnresolvedVersionSpec::Semantic(inner) = &version {
// Version 2.4.3 was published to the wrong package. It should
// have been published to `@yarnpkg/cli-dist` but was published
// to `yarn`. So... we need to manually fix it.
Expand All @@ -50,7 +50,7 @@ impl PackageManager {
matches!(self, PackageManager::Yarn)
&& match version.as_ref() {
UnresolvedVersionSpec::Alias(alias) => alias == "legacy" || alias == "classic",
UnresolvedVersionSpec::Version(ver) => ver.major == 1,
UnresolvedVersionSpec::Semantic(ver) => ver.major == 1,
UnresolvedVersionSpec::Req(req) => req.comparators.iter().any(|c| c.major == 1),
_ => false,
}
Expand All @@ -60,7 +60,7 @@ impl PackageManager {
matches!(self, PackageManager::Yarn)
&& match version.as_ref() {
UnresolvedVersionSpec::Alias(alias) => alias == "berry" || alias == "latest",
UnresolvedVersionSpec::Version(ver) => ver.major > 1,
UnresolvedVersionSpec::Semantic(ver) => ver.major > 1,
UnresolvedVersionSpec::Req(req) => req.comparators.iter().any(|c| c.major > 1),
_ => false,
}
Expand Down
Loading

0 comments on commit ced3e26

Please sign in to comment.