chrome-webstore
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -97,12 +97,2 @@ | ||
version: (options) => compose( | ||
_ => compose.client({...options, | ||
method: 'GET', | ||
url: 'https://chrome.google.com/webstore/category/extensions', | ||
}), | ||
({body}) => JSON.parse( | ||
/<script type="application\/json" id="cws-session-data"[^>]*>([\s\S]+?)<\/script>/ | ||
.exec(body)[1])[20], | ||
)(), | ||
} |
@@ -59,3 +59,3 @@ | ||
android: detail[0][69] || null, | ||
collects: detail[39].map((index) => ({ | ||
collects: (detail[39] || []).map((index) => ({ | ||
1: 'Personally identifiable information', | ||
@@ -62,0 +62,0 @@ 2: 'Health information', |
{ | ||
"name": "chrome-webstore", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Google Chrome Web Store HTTP Client", | ||
@@ -18,6 +18,6 @@ "keywords": [ | ||
"dependencies": { | ||
"request-compose": "^2.1.5" | ||
"request-compose": "^2.1.6" | ||
}, | ||
"devDependencies": { | ||
"request-logs": "^2.1.4" | ||
"request-logs": "^2.1.5" | ||
}, | ||
@@ -24,0 +24,0 @@ "bin": {}, |
@@ -24,3 +24,2 @@ | ||
| issues | `{id, type, count, page, version, ...options}` | `[Array]` | List issues for an item | ||
| version | `{...options}` | `string` | Chrome Web Store [API version](#chrome-web-store-api-version) | ||
@@ -35,3 +34,2 @@ ```js | ||
var issues = await webstore.issues({id: 'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'}) | ||
var version = await webstore.version() | ||
})() | ||
@@ -308,8 +306,2 @@ ``` | ||
## version | ||
| Parameter | Example | Description | ||
| --- | :---: | --- | ||
| ...options | `agent, timeout` | any [request-compose][compose-client-options] option | ||
# Chrome Web Store API Version | ||
@@ -321,3 +313,3 @@ | ||
The correct REST API `version` can be obtained using the [`version`](#version) method or manually as follows: | ||
The correct REST API `version` can be obtained as follows: | ||
@@ -339,3 +331,2 @@ - Open an extension page on [chrome.google.com] | ||
node examples/issues.js [example index] | ||
node examples/version.js [example index] | ||
``` | ||
@@ -342,0 +333,0 @@ |
30466
9
481
342
Updatedrequest-compose@^2.1.6