chrome-webstore-upload 3.0.0 → 3.0.1
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/index.js +5 -0
- package/package.json +1 -1
- package/readme.md +1 -1
package/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// API documentation:
|
|
2
|
+
// https://developer.chrome.com/docs/webstore/api
|
|
3
|
+
// https://developer.chrome.com/docs/webstore/using-api
|
|
4
|
+
|
|
1
5
|
const rootURI = 'https://www.googleapis.com';
|
|
2
6
|
export const refreshTokenURI = 'https://www.googleapis.com/oauth2/v4/token';
|
|
3
7
|
const uploadExistingURI = id =>
|
|
@@ -34,6 +38,7 @@ class APIClient {
|
|
|
34
38
|
const request = await fetch(uploadExistingURI(extensionId), {
|
|
35
39
|
method: 'PUT',
|
|
36
40
|
headers: this._headers(await token),
|
|
41
|
+
duplex: 'half',
|
|
37
42
|
body: readStream,
|
|
38
43
|
});
|
|
39
44
|
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -12,7 +12,7 @@ npm install --save-dev chrome-webstore-upload
|
|
|
12
12
|
|
|
13
13
|
## Setup
|
|
14
14
|
|
|
15
|
-
You will need a Google API `clientId`, `clientSecret` and `refreshToken`.
|
|
15
|
+
You will need a Google API `clientId`, `clientSecret` and `refreshToken`. Use [the guide]( https://github.com/fregante/chrome-webstore-upload-keys).
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|