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.3.1 to 1.4.0

12

client.js

@@ -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],
)(),
}

7

package.json
{
"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
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