Skip to content

Commit

Permalink
feat: renamed mitre/npm_dependencies to mitre/npm
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjcasey committed Nov 5, 2024
1 parent 71e7d19 commit f1bc35d
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ members = [
"hipcheck-sdk-macros",
"plugins/git",
"plugins/github",
"plugins/npm_dependencies",
"plugins/npm",
"plugins/activity",
"plugins/affiliation",
"plugins/binary",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "npm_dependencies_sdk"
name = "npm"
version = "0.1.0"
license = "Apache-2.0"
edition = "2021"
Expand Down
10 changes: 10 additions & 0 deletions plugins/npm/plugin.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
publisher "mitre"
name "npm"
version "0.1.0"
license "Apache-2.0"
entrypoint {
on arch="aarch64-apple-darwin" "./target/debug/npm"
on arch="x86_64-apple-darwin" "./target/debug/npm"
on arch="x86_64-unknown-linux-gnu" "./target/debug/npm"
on arch="x86_64-pc-windows-msvc" "./target/debug/npm"
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct DependenciesPlugin;
impl Plugin for DependenciesPlugin {
const PUBLISHER: &'static str = "mitre";

const NAME: &'static str = "npm_dependencies";
const NAME: &'static str = "npm";

fn set_config(&self, _config: Value) -> std::result::Result<(), ConfigError> {
Ok(())
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions plugins/npm_dependencies/plugin.kdl

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/typo/plugin.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ entrypoint {
on arch="x86_64-pc-windows-msvc" "./target/debug/typo_sdk"
}
dependencies {
plugin "mitre/npm_dependencies" version="0.1.0" manifest="./plugins/npm_dependencies/plugin.kdl"
plugin "mitre/npm" version="0.1.0" manifest="./plugins/npm/plugin.kdl"
}
4 changes: 2 additions & 2 deletions plugins/typo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async fn typo(engine: &mut PluginEngine, value: Target) -> Result<Vec<bool>> {

// Get the repo's dependencies
let value = engine
.query("mitre/npm_dependencies/dependencies", local)
.query("mitre/npm/dependencies", local)
.await
.map_err(|e| {
log::error!("failed to get dependencies for typo query: {}", e);
Expand Down Expand Up @@ -210,7 +210,7 @@ mod test {

let mut mock_responses = MockResponses::new();
mock_responses
.insert("mitre/npm_dependencies/dependencies", local, Ok(output))
.insert("mitre/npm/dependencies", local, Ok(output))
.unwrap();

Ok(mock_responses)
Expand Down

0 comments on commit f1bc35d

Please sign in to comment.