-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: encode qualifiers with URLSearchParams
- Loading branch information
Showing
4 changed files
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,18 @@ | |
"subpath": null, | ||
"is_invalid": false | ||
}, | ||
{ | ||
"description": "maven requires a namespace", | ||
"purl": "pkg:maven/[email protected]", | ||
"canonical_purl": "pkg:maven/[email protected]", | ||
"type": "maven", | ||
"namespace": null, | ||
"name": null, | ||
"version": null, | ||
"qualifiers": null, | ||
"subpath": null, | ||
"is_invalid": true | ||
}, | ||
{ | ||
"description": "improperly encoded version string", | ||
"purl": "pkg:maven/org.apache.commons/[email protected]$@", | ||
|
@@ -120,8 +132,8 @@ | |
"is_invalid": true | ||
}, | ||
{ | ||
"description": "In namespace, leading and trailing slashes '/' are not significant and should be stripped in the canonical form", | ||
"purl": "pkg:golang//github.com/ll/[email protected]", | ||
"description": "leading and trailing slashes '/' are not significant and should be stripped in the canonical form", | ||
"purl": "pkg:golang//github.com///ll////[email protected]", | ||
"canonical_purl": "pkg:golang/github.com/ll/[email protected]", | ||
"type": "golang", | ||
"namespace": "github.com/ll", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,7 +110,7 @@ | |
{ | ||
"description": "maven often uses qualifiers", | ||
"purl": "pkg:Maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repositorY_url=repo.spring.io/release", | ||
"canonical_purl": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=repo.spring.io/release", | ||
"canonical_purl": "pkg:maven/org.apache.xmlgraphics/[email protected]?classifier=sources&repository_url=repo.spring.io%2Frelease", | ||
"type": "maven", | ||
"namespace": "org.apache.xmlgraphics", | ||
"name": "batik-anim", | ||
|
@@ -122,7 +122,7 @@ | |
{ | ||
"description": "maven pom reference", | ||
"purl": "pkg:Maven/org.apache.xmlgraphics/[email protected]?extension=pom&repositorY_url=repo.spring.io/release", | ||
"canonical_purl": "pkg:maven/org.apache.xmlgraphics/[email protected]?extension=pom&repository_url=repo.spring.io/release", | ||
"canonical_purl": "pkg:maven/org.apache.xmlgraphics/[email protected]?extension=pom&repository_url=repo.spring.io%2Frelease", | ||
"type": "maven", | ||
"namespace": "org.apache.xmlgraphics", | ||
"name": "batik-anim", | ||
|
@@ -143,18 +143,6 @@ | |
"subpath": null, | ||
"is_invalid": false | ||
}, | ||
{ | ||
"description": "maven requires a namespace", | ||
"purl": "pkg:maven/[email protected]", | ||
"canonical_purl": "pkg:maven/[email protected]", | ||
"type": "maven", | ||
"namespace": null, | ||
"name": null, | ||
"version": null, | ||
"qualifiers": null, | ||
"subpath": null, | ||
"is_invalid": true | ||
}, | ||
{ | ||
"description": "npm can be scoped", | ||
"purl": "pkg:npm/%40angular/[email protected]", | ||
|
@@ -494,7 +482,7 @@ | |
{ | ||
"description": "Hugging Face model with staging endpoint", | ||
"purl": "pkg:huggingface/microsoft/deberta-v3-base@559062ad13d311b87b2c455e67dcd5f1c8f65111?repository_url=https://hub-ci.huggingface.co", | ||
"canonical_purl": "pkg:huggingface/microsoft/deberta-v3-base@559062ad13d311b87b2c455e67dcd5f1c8f65111?repository_url=https://hub-ci.huggingface.co", | ||
"canonical_purl": "pkg:huggingface/microsoft/deberta-v3-base@559062ad13d311b87b2c455e67dcd5f1c8f65111?repository_url=https%3A%2F%2Fhub-ci.huggingface.co", | ||
"type": "huggingface", | ||
"namespace": "microsoft", | ||
"name": "deberta-v3-base", | ||
|
@@ -518,7 +506,7 @@ | |
{ | ||
"description": "MLflow model tracked in Azure Databricks (case insensitive)", | ||
"purl": "pkg:mlflow/CreditFraud@3?repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow", | ||
"canonical_purl": "pkg:mlflow/creditfraud@3?repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow", | ||
"canonical_purl": "pkg:mlflow/creditfraud@3?repository_url=https%3A%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow", | ||
"type": "mlflow", | ||
"namespace": null, | ||
"name": "creditfraud", | ||
|
@@ -530,7 +518,7 @@ | |
{ | ||
"description": "MLflow model tracked in Azure ML (case sensitive)", | ||
"purl": "pkg:mlflow/CreditFraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace", | ||
"canonical_purl": "pkg:mlflow/CreditFraud@3?repository_url=https://westus2.api.azureml.ms/mlflow/v1.0/subscriptions/a50f2011-fab8-4164-af23-c62881ef8c95/resourceGroups/TestResourceGroup/providers/Microsoft.MachineLearningServices/workspaces/TestWorkspace", | ||
"canonical_purl": "pkg:mlflow/CreditFraud@3?repository_url=https%3A%2F%2Fwestus2.api.azureml.ms%2Fmlflow%2Fv1.0%2Fsubscriptions%2Fa50f2011-fab8-4164-af23-c62881ef8c95%2FresourceGroups%2FTestResourceGroup%2Fproviders%2FMicrosoft.MachineLearningServices%2Fworkspaces%2FTestWorkspace", | ||
"type": "mlflow", | ||
"namespace": null, | ||
"name": "CreditFraud", | ||
|
@@ -542,7 +530,7 @@ | |
{ | ||
"description": "MLflow model with unique identifiers", | ||
"purl": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow", | ||
"canonical_purl": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https://adb-5245952564735461.0.azuredatabricks.net/api/2.0/mlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a", | ||
"canonical_purl": "pkg:mlflow/trafficsigns@10?model_uuid=36233173b22f4c89b451f1228d700d49&repository_url=https%3A%2F%2Fadb-5245952564735461.0.azuredatabricks.net%2Fapi%2F2.0%2Fmlflow&run_id=410a3121-2709-4f88-98dd-dba0ef056b0a", | ||
"type": "mlflow", | ||
"namespace": null, | ||
"name": "trafficsigns", | ||
|