Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 208 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
"@sentry/electron": "^6.5.0",
"@types/unzipper": "^0.10.11",
"@types/yargs": "^17.0.33",
"@uppy/core": "^5.1.1",
"@uppy/tus": "^5.0.2",
"@vscode/sudo-prompt": "^9.3.1",
"@wordpress/compose": "^7.26.0",
"@wordpress/dataviews": "^10.2.0",
Expand Down
6 changes: 6 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ export const IPC_VOID_HANDLERS = < const >[

// What's New
export const FORCE_WHATS_NEW_WHEN_PATCH_CHANGED = true;

// TUS upload constants
export const TUS_UPLOAD_ENDPOINT_BASE =
'https://public-api.wordpress.com/rest/v1.1/studio-file-uploads';
export const TUS_UPLOAD_CHUNK_SIZE = 500000;
export const TUS_UPLOAD_RETRY_DELAYS = [ 0, 1000, 3000, 5000, 10000 ];
Loading