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

disqus-node

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disqus-node - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

lib/api/Users.js

5

CHANGELOG.md

@@ -0,1 +1,6 @@

##### 0.13.0 - 10 April 2015
###### Backwards compatible API changes
- #14 - Add users.listPosts - Thanks @jarib
##### 0.12.0 - 16 June 2014

@@ -2,0 +7,0 @@

@@ -139,2 +139,24 @@ disqus-node

```
$ disqus forums listPosts -h
Usage: listPosts [options]
Options:
-h, --help output usage information
-c, --cursor [cursor] Defaults to null,
-f, --forum <string> Looks up a forum by ID (aka short name).
-H, --https [boolean] Whether to use https. Defaults to true.
-i, --include [array] Defaults to ["approved"]. Choices: unapproved, approved, spam, deleted, flagged, highlighted.
-l, --limit [number] Maximum number of posts to return. Maximum value of 100. Defaults to 25.
-L, --logLevel [string] Output log level. Choices: debug, info, notice, warning, error, critical, alert, emergency.
-o, --order [string] Choices: asc, desc. Defaults to "desc".
-q, --query [string] Defaults to null.
-r, --related [array] You may specify relations to include with your response. Choices: thread.
-s, --since [string] Unix timestamp (or ISO datetime standard).
-S, --api_secret <string> Your application's api_secret.
```
<br/>
```
$ disqus forums listPosts -f pseudobry -S '1234abcd' -l 3

@@ -141,0 +163,0 @@

@@ -28,2 +28,3 @@ var commander = require('commander');

trends <cmd> [options] Execute command for the Trends resource.
users <cmd> [options] Execute command for the Users resource.
whitelists <cmd> [options] Execute command for the Whitelists resource.

@@ -62,2 +63,21 @@

MBP:~ jason$ disqus forums listPosts -h
Usage: listPosts [options]
Options:
-h, --help output usage information
-c, --cursor [cursor] Defaults to null,
-f, --forum <string> Looks up a forum by ID (aka short name).
-H, --https [boolean] Whether to use https. Defaults to true.
-i, --include [array] Defaults to ["approved"]. Choices: unapproved, approved, spam, deleted, flagged, highlighted.
-l, --limit [number] Maximum number of posts to return. Maximum value of 100. Defaults to 25.
-L, --logLevel [string] Output log level. Choices: debug, info, notice, warning, error, critical, alert, emergency.
-o, --order [string] Choices: asc, desc. Defaults to "desc".
-q, --query [string] Defaults to null.
-r, --related [array] You may specify relations to include with your response. Choices: thread.
-s, --since [string] Unix timestamp (or ISO datetime standard).
-S, --api_secret <string> Your application's api_secret.
MBP:~ jason$ disqus forums listPosts -f pseudobry -S '1234abcd' -l 3

@@ -146,2 +166,9 @@

/**
* ###### Users
* [API](/lib/api/users.html) | [CLI](/lib/cli/users.html) | [Disqus](https://disqus.com/api/docs/users/)
*/
disqus
.command('users <cmd> [options]')
.description('Execute command for the Users resource.');
/**
* ###### Whitelists

@@ -167,2 +194,3 @@ * [API](/lib/api/whitelists.html) | [CLI](/lib/cli/whitelists.html) | [Disqus](https://disqus.com/api/docs/whitelists/)

case 'trends':
case 'users':
case 'whitelists':

@@ -169,0 +197,0 @@ if (!secondaryArgs.length) {

@@ -41,2 +41,3 @@ /**

var Trends = container.get('Trends');
var Users = container.get('Users');
var Whitelists = container.get('Whitelists');

@@ -150,2 +151,7 @@

/**
* ###### Users
* [API](/lib/api/users.html) | [CLI](/lib/cli/users.html) | [Disqus](https://disqus.com/api/docs/users/)
*/
this.users = new Users(this.config);
/**
* ###### Whitelists

@@ -152,0 +158,0 @@ * [API](/lib/api/whitelists.html) | [CLI](/lib/cli/whitelists.html) | [Disqus](https://disqus.com/api/docs/whitelists/)

34

package.json
{
"name": "disqus-node",
"version": "0.12.0",
"version": "0.13.0",
"description": "Disqus API bindings and CLI for NodeJS http://disqus.com/api/",

@@ -35,8 +35,8 @@ "main": "./lib/index.js",

"dependencies": {
"bluebird": "^2.1.1",
"request": "^2.36.0",
"commander": "^2.2.0",
"bluebird": "^2.9.24",
"commander": "^2.7.1",
"dependable": "^0.2.5",
"log": "^1.4.0",
"dependable": "^0.2.5",
"querystring": "^0.2.0"
"querystring": "^0.2.0",
"request": "^2.55.0"
},

@@ -46,15 +46,15 @@ "devDependencies": {

"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-jshint": "^0.11.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-groc": "^0.4.5",
"time-grunt": "^0.3.2",
"load-grunt-tasks": "^0.5.0",
"grunt-contrib-clean": "^0.5.0",
"grunt-env": "^0.4.1",
"grunt-mocha-test": "^0.11.0",
"grunt-istanbul": "^0.3.0",
"chai": "^1.9.1",
"grunt-karma-coveralls": "^2.5.1",
"sinon": "^1.10.2"
"grunt-groc": "^0.6.0",
"time-grunt": "^1.1.0",
"load-grunt-tasks": "^3.1.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-env": "^0.4.4",
"grunt-mocha-test": "^0.12.7",
"grunt-istanbul": "^0.5.0",
"chai": "^2.2.0",
"grunt-karma-coveralls": "^2.5.3",
"sinon": "^1.14.1"
}
}

@@ -139,2 +139,24 @@ disqus-node

```
$ disqus forums listPosts -h
Usage: listPosts [options]
Options:
-h, --help output usage information
-c, --cursor [cursor] Defaults to null,
-f, --forum <string> Looks up a forum by ID (aka short name).
-H, --https [boolean] Whether to use https. Defaults to true.
-i, --include [array] Defaults to ["approved"]. Choices: unapproved, approved, spam, deleted, flagged, highlighted.
-l, --limit [number] Maximum number of posts to return. Maximum value of 100. Defaults to 25.
-L, --logLevel [string] Output log level. Choices: debug, info, notice, warning, error, critical, alert, emergency.
-o, --order [string] Choices: asc, desc. Defaults to "desc".
-q, --query [string] Defaults to null.
-r, --related [array] You may specify relations to include with your response. Choices: thread.
-s, --since [string] Unix timestamp (or ISO datetime standard).
-S, --api_secret <string> Your application's api_secret.
```
<br/>
```
$ disqus forums listPosts -f pseudobry -S '1234abcd' -l 3

@@ -141,0 +163,0 @@

@@ -12,2 +12,3 @@ module.exports = function (container) {

container.register('API.Trends.test', require('./Trends.test'));
container.register('API.Users.test', require('./Users.test'));
container.register('API.Whitelists.test', require('./Whitelists.test'));

@@ -24,4 +25,5 @@

describe('Trends', container.get('API.Trends.test'));
describe('Users', container.get('API.Users.test'));
describe('Whitelists', container.get('API.Whitelists.test'));
};
};

Sorry, the diff of this file is not supported yet

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