Skip to content

Commit 181b099

Browse files
committed
Use new service for fetching typings
1 parent c5e136d commit 181b099

File tree

1 file changed

+3
-2
lines changed
  • packages/app/src/app/overmind/effects/vscode/SandboxFsSync

1 file changed

+3
-2
lines changed

packages/app/src/app/overmind/effects/vscode/SandboxFsSync/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { appendFile, mkdir, rename, rmdir, unlink, writeFile } from './utils';
2121

2222
const global = getGlobal() as Window & { BrowserFS: any };
2323

24-
const SERVICE_URL = 'https://ata-fetcher.cloud/api/v5/typings';
24+
const SERVICE_URL = 'https://ata.codesandbox.io/api/v8';
2525

2626
declare global {
2727
interface Window {
@@ -395,7 +395,8 @@ class SandboxFsSync {
395395
}
396396

397397
private async fetchDependencyTypingFiles(name: string, version: string) {
398-
const fetchRequest = await fetch(`${SERVICE_URL}/${name}@${version}.json`);
398+
const dependencyQuery = encodeURIComponent(`${name}@${version}`);
399+
const fetchRequest = await fetch(`${SERVICE_URL}/${dependencyQuery}.json`);
399400

400401
if (!fetchRequest.ok) {
401402
throw new Error('Fetch error');

0 commit comments

Comments
 (0)