cortex-sync 0.4.12 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -321,7 +321,8 @@ var GitHubBackend = class {
|
|
|
321
321
|
apiBase;
|
|
322
322
|
headers;
|
|
323
323
|
url(path) {
|
|
324
|
-
|
|
324
|
+
const encoded = path.split("/").map(encodeURIComponent).join("/");
|
|
325
|
+
return `${this.apiBase}/contents/${encoded}`;
|
|
325
326
|
}
|
|
326
327
|
async getSha(path) {
|
|
327
328
|
const res = await fetch(this.url(path), { headers: this.headers });
|