From 612dec6e50ce86b7cd576fae1e37c47804b37a9f Mon Sep 17 00:00:00 2001 From: Keegan Saunders <77407552+ksaunders@users.noreply.github.com> Date: Thu, 16 May 2024 15:57:52 -0400 Subject: [PATCH] Revert "Fix invalid purl error (#59)" (#60) This reverts commit 6ca2f024ba0cefbe04302babba301c42c2ebc57f. --- src/nowsecure-snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nowsecure-snapshot.ts b/src/nowsecure-snapshot.ts index 1684d55..f74edbc 100644 --- a/src/nowsecure-snapshot.ts +++ b/src/nowsecure-snapshot.ts @@ -18,7 +18,7 @@ import { USER_AGENT } from "./nowsecure-client"; function encodePurl(ecosystem: string, name: string, version?: string): string { let purl = `pkg:${ecosystem}/${name}`; if (version) { - purl += `@${encodeURIComponent(version)}`; + purl += `@${version}`; } return purl;