From d67a8614f59b7458c8be8aaecda0b96b6cbf68a0 Mon Sep 17 00:00:00 2001 From: Keegan Saunders <77407552+ksaunders@users.noreply.github.com> Date: Thu, 16 May 2024 15:34:05 -0400 Subject: [PATCH] Revert "Fix invalid purl error (#59)" 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;