We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40dd7a1 commit 43509b3Copy full SHA for 43509b3
packages/app/src/sandbox/npm/fetch-dependencies.js
@@ -105,7 +105,11 @@ async function getAbsoluteDependencies(dependencies: Object) {
105
nonAbsoluteDependencies.map(async dep => {
106
try {
107
const data = await window
108
- .fetch(`${host}/api/v1/dependencies/${dep}@${dependencies[dep]}`)
+ .fetch(
109
+ `${host}/api/v1/dependencies/${dep}@${encodeURIComponent(
110
+ dependencies[dep]
111
+ )}`
112
+ )
113
.then(x => x.json())
114
.then(x => x.data);
115
0 commit comments