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

stackexchangeswarup

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stackexchangeswarup - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

32

lib/methods/users.js

@@ -20,5 +20,5 @@ 'use strict';

*/
function users (criteria, callback, ids) {
function questions (criteria, callback, ids) {
ids = ids || [];
query('users/' + ids.join(';'), criteria, callback);
query('questions/' + ids.join(';'), criteria, callback);
}

@@ -35,5 +35,29 @@

// Expose commands.
module.exports.users = users;
/**
* upvote - Casts an upvote on the selected question
*
* @param {Object} criteria contains server key and valid access_token
* @param {Integer} id ID of a question
* @param {Function} callback return results
* @param {Boolean} undo Undo the upvote cast
* @api public
*/
/**
* downvote - Casts a downvote on the selected question
*
* @param {Object} criteria contains server key and valid access_token
* @param {Integer} id ID of a question
* @param {Function} callback return results
* @param {Boolean} undo Undo the downvote cast
* @api public
*/
// Expose commands.
module.exports.questions = questions;
module.exports.answers = answers;
module.exports.upvote = upvote;
module.exports.downvote = downvote;
module.exports.users=users;

2

package.json
{
"name": "stackexchangeswarup",
"version": "1.0.2",
"version": "1.0.3",
"description": "Node.js implementation of the stackexchange/stackoverflow API",

@@ -5,0 +5,0 @@ "main": "./lib/stackexchangeswarup",

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