Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chrome-webstore

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-webstore - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

24

client.js

@@ -16,4 +16,4 @@

items: ({search, category, rating, features, count, offset, version}) => compose(
_ => compose.client({
items: ({search, category, rating, features, count, offset, version, ...options}) => compose(
_ => compose.client(Object.assign({}, options, {
method: 'POST',

@@ -32,8 +32,8 @@ url: 'https://chrome.google.com/webstore/ajax/item',

},
}),
})),
({body}) => JSON.parse(body.slice(5))[1][1].map(format.item),
)(),
detail: ({id, related, more, version}) => compose(
_ => compose.client({
detail: ({id, related, more, version, ...options}) => compose(
_ => compose.client(Object.assign({}, options, {
method: 'POST',

@@ -45,3 +45,3 @@ url: 'https://chrome.google.com/webstore/ajax/detail',

},
}),
})),
({body}) => ((json = JSON.parse(body.slice(5))) => Object.assign(

@@ -54,4 +54,4 @@ format.detail(json[1][1]),

reviews: ({id, count, offset, locale, sort, version}) => compose(
_ => compose.client({
reviews: ({id, count, offset, locale, sort, version, ...options}) => compose(
_ => compose.client(Object.assign({}, options, {
method: 'POST',

@@ -69,8 +69,8 @@ url: 'https://chrome.google.com/webstore/reviews/get',

}
}),
})),
({body}) => JSON.parse(body.slice(5))[1][4].map(format.review),
)(),
issues: ({id, type, count, page, version}) => compose(
_ => compose.client({
issues: ({id, type, count, page, version, ...options}) => compose(
_ => compose.client(Object.assign({}, options, {
method: 'POST',

@@ -91,3 +91,3 @@ url: 'https://chrome.google.com/webstore/issues/get',

}
}),
})),
({body}) => JSON.parse(body.slice(5))[1][1].map(format.issue),

@@ -94,0 +94,0 @@ )(),

{
"name": "chrome-webstore",
"version": "1.1.0",
"version": "1.2.0",
"description": "Google Chrome Web Store HTTP Client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,3 +6,3 @@

> Google Chrome Web Store HTTP Client
> _Google Chrome Web Store HTTP Client_

@@ -18,8 +18,8 @@ ## Table of Contents

Method | Arguments | Returns | Description
--- | --- | --- | ---
**detail** | `{id, related, more}` | `{Object}` | Full details about a Web Store item
**items** | `{search, category, rating, features, count, offset}` | `[Array]` | List Web Store items (subset of the detail data)
**reviews** | `{id, count, offset, locale, sort}` | `[Array]` | List reviews for an item
**issues** | `{id, type, count, page}` | `[Array]` | List issues for an item
Name | Arguments | Returns | Description
--- | --- | --- | ---
detail | `{id, related, more, ...options}` | `{Object}` | Full details about a Web Store item
items | `{search, category, rating, features, count, offset, ...options}` | `[Array]` | List Web Store items (subset of the detail data)
reviews | `{id, count, offset, locale, sort, ...options}` | `[Array]` | List reviews for an item
issues | `{id, type, count, page, ...options}` | `[Array]` | List issues for an item

@@ -179,7 +179,8 @@ ```js

Parameter | Example | Description
--- | :---: | ---
**id** | `'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'` | Item ID
**related** | `true` | Additionally return a list of related extensions
**more** | `true` | Additionally return more items from the same developer
Parameter | Example | Description
--- | :---: | ---
id | `'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'` | Item ID
related | `true` | Additionally return a list of related extensions
more | `true` | Additionally return more items from the same developer
...options | `agent, timeout` | any [request-compose][compose-client-options] option

@@ -190,10 +191,11 @@ ---

Parameter | Example | Description
--- | :---: | ---
**search** | `'markdown'` | Filter items by search term
**category** | `'extensions'` | Filter items by category name
**rating** | `5` / `4` / `3` / `2` | Filter items by number of stars
**features** | `['free', 'gdrive']` | Filter items by feature set
**count** | `15` | Number of items to return (defaults to 5)
**offset** | `15` | Start returning items from `offset` (**requires** `category`)
Parameter | Example | Description
--- | :---: | ---
search | `'markdown'` | Filter items by search term
category | `'extensions'` | Filter items by category name
rating | `5` / `4` / `3` / `2` | Filter items by number of stars
features | `['free', 'gdrive']` | Filter items by feature set
count | `15` | Number of items to return (defaults to 5)
offset | `15` | Start returning items from `offset` (**requires** `category`)
...options | `agent, timeout` | any [request-compose][compose-client-options] option

@@ -228,9 +230,10 @@ ### category

Parameter | Example | Description
--- | :---: | ---
**id** | `'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'` | Item ID
**count** | `10` | Number of reviews to return (defaults to 5)
**offset** | `10` | Start returning items from offset
**locale** | `'en'` | Return reviews only in locale (defaults to all locales)
**sort** | `'helpful'` / `'recent'` | Sort order (defaults to helpful)
Parameter | Example | Description
--- | :---: | ---
id | `'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'` | Item ID
count | `10` | Number of reviews to return (defaults to 5)
offset | `10` | Start returning items from offset
locale | `'en'` | Return reviews only in locale (defaults to all locales)
sort | `'helpful'` / `'recent'` | Sort order (defaults to helpful)
...options | `agent, timeout` | any [request-compose][compose-client-options] option

@@ -241,8 +244,9 @@ ---

Parameter | Example | Description
--- | :---: | ---
**id** | `'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'` | Item ID
**type** | `'problem'` / `'question'` / `'suggestion'` | Filter by issue type (defaults to all)
**count** | `10` | Number of issues to return (defaults to 5)
**page** | `2` | Start returning issues from page (page * count)
Parameter | Example | Description
--- | :---: | ---
id | `'ckkdlimhmcjmikdlpkmbgfkaikojcbjk'` | Item ID
type | `'problem'` / `'question'` / `'suggestion'` | Filter by issue type (defaults to all)
count | `10` | Number of issues to return (defaults to 5)
page | `2` | Start returning issues from page (page * count)
...options | `agent, timeout` | any [request-compose][compose-client-options] option

@@ -271,2 +275,4 @@ # Examples

[compose-client-options]: https://github.com/simov/request-compose#options
[example-category]: https://github.com/simov/chrome-webstore/blob/master/examples/category.json

@@ -273,0 +279,0 @@ [example-detail]: https://github.com/simov/chrome-webstore/blob/master/examples/detail.js

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc