chrome-webstore
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -11,3 +11,3 @@ | ||
var VERSION = '20200316' | ||
var VERSION = '20200420' | ||
@@ -97,2 +97,12 @@ | ||
version: (options) => compose( | ||
_ => compose.client(Object.assign({}, 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], | ||
)(), | ||
} |
{ | ||
"name": "chrome-webstore", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Google Chrome Web Store HTTP Client", | ||
@@ -18,9 +18,10 @@ "keywords": [ | ||
"dependencies": { | ||
"request-compose": "^1.2.1" | ||
"request-compose": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"request-logs": "^1.0.3" | ||
"request-logs": "^2.0.0" | ||
}, | ||
"bin": {}, | ||
"main": "./client.js", | ||
"type": "commonjs", | ||
"files": [ | ||
@@ -27,0 +28,0 @@ "format/", |
@@ -24,2 +24,3 @@ | ||
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) | ||
@@ -34,2 +35,3 @@ ```js | ||
var issues = await webstore.issues({id: 'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'}) | ||
var version = await webstore.version() | ||
})() | ||
@@ -262,2 +264,10 @@ ``` | ||
--- | ||
## version | ||
Parameter | Example | Description | ||
--- | :---: | --- | ||
...options | `agent, timeout` | any [request-compose][compose-client-options] option | ||
# Chrome Web Store API Version | ||
@@ -269,3 +279,3 @@ | ||
The correct REST API `version` can be obtained as follows: | ||
The correct REST API `version` can be obtained using the [`version`](#version) method or manually as follows: | ||
@@ -280,3 +290,3 @@ - Open an extension page on [chrome.google.com] | ||
> [detail][example-detail] / [items][example-items] / [reviews][example-reviews] / [issues][example-issues] | ||
> [detail][example-detail] / [items][example-items] / [reviews][example-reviews] / [issues][example-issues] / [version][example-version] | ||
@@ -288,2 +298,3 @@ ```bash | ||
node examples/issues.js [example index] | ||
node examples/version.js [example index] | ||
``` | ||
@@ -310,1 +321,2 @@ | ||
[example-issues]: https://github.com/simov/chrome-webstore/blob/master/examples/issues.js | ||
[example-version]: https://github.com/simov/chrome-webstore/blob/master/examples/version.js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24438
203
316
+ Addedrequest-compose@2.1.7(transitive)
- Removedrequest-compose@1.2.3(transitive)
Updatedrequest-compose@^2.0.0