chrome-webstore-upload 5.0.0-2 → 5.0.0-3

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.
@@ -132,7 +132,7 @@ class APIClient {
132
132
  return response.access_token;
133
133
  }
134
134
  async _waitUploadSuccess(response, maxAwaitInProgressResponseSeconds) {
135
- if (response.uploadState !== 'UPLOAD_IN_PROGRESS' || maxAwaitInProgressResponseSeconds < retryIntervalSeconds) {
135
+ if (response.uploadState !== 'IN_PROGRESS' || maxAwaitInProgressResponseSeconds < retryIntervalSeconds) {
136
136
  return response;
137
137
  }
138
138
  // Wait before checking again
@@ -9,7 +9,7 @@ export type ItemResource = {
9
9
  crxVersion: string;
10
10
  itemId: string;
11
11
  name: string;
12
- uploadState: string;
12
+ uploadState: 'UPLOAD_STATE_UNSPECIFIED' | 'SUCCEEDED' | 'IN_PROGRESS' | 'FAILED' | 'NOT_FOUND';
13
13
  };
14
14
  export type PublishType = 'PUBLISH_TYPE_UNSPECIFIED' | 'DEFAULT_PUBLISH' | 'TRUSTED_TESTERS' | 'STAGED_PUBLISH';
15
15
  export type PublishResponse = {
@@ -19,7 +19,7 @@ export type PublishResponse = {
19
19
  };
20
20
  export type ItemStatusResponse = {
21
21
  itemId: string;
22
- lastAsyncUploadState: string;
22
+ lastAsyncUploadState: 'UPLOAD_STATE_UNSPECIFIED' | 'SUCCEEDED' | 'IN_PROGRESS' | 'FAILED' | 'NOT_FOUND';
23
23
  name: string;
24
24
  publicKey: string;
25
25
  publishedItemRevisionStatus: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-webstore-upload",
3
- "version": "5.0.0-2",
3
+ "version": "5.0.0-3",
4
4
  "description": "Upload Chrome Extensions to the Chrome Web Store",
5
5
  "keywords": [
6
6
  "chrome",