Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ikelos/7f76c81a7fe4e35c6ec63cde1547121b to your computer and use it in GitHub Desktop.
Save ikelos/7f76c81a7fe4e35c6ec63cde1547121b to your computer and use it in GitHub Desktop.
From d0a0c78ba55c9717e34f9570eb65bb3fe96b6f2b Mon Sep 17 00:00:00 2001
From: Mike Auty <mike.auty@gmail.com>
Date: Thu, 13 Oct 2016 18:38:45 +0100
Subject: [PATCH] Fix up scoped packages by replacing all slashes with URL
encoded slash characters.
---
bin/sync | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/sync b/bin/sync
index b465d27..a212a95 100755
--- a/bin/sync
+++ b/bin/sync
@@ -91,7 +91,7 @@ function fetchPrebuiltBinary(name, version, binaryMetadata, abi, platform, arch)
function dependenciesToArray(dependencies) {
return Object.keys(dependencies || {}).map(key => {
return {
- name: key,
+ name: key.replace("\/", "%2F"),
versionRange: dependencies[key]
}
})
--
2.10.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment