node-axosoft
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -121,3 +121,3 @@ var _ = require('lodash'); | ||
// If this is a get request and there's specified data, add that to the request options object | ||
if ('get' === requestType && requestData) { | ||
if (requestData && ('get' === requestType || 'del' === requestType)) { | ||
request_options.data = requestData; | ||
@@ -124,0 +124,0 @@ } |
@@ -98,2 +98,3 @@ var api = require('./api'); | ||
* @param integer project_id ID of single project | ||
* @param integer project_to_move_to The ID of the project where all items associated with the project being deleted will be moved to | ||
* @param function callback Callback function | ||
@@ -103,4 +104,4 @@ * | ||
*/ | ||
delete: function (project_id, callback) { | ||
api.handleRestRequest('del', '/projects/' + project_id, null, callback); | ||
delete: function (project_id, project_to_move_to, callback) { | ||
api.handleRestRequest('del', '/projects/' + project_id, {project_to_move_to: project_to_move_to}, callback); | ||
} | ||
@@ -107,0 +108,0 @@ |
{ | ||
"name": "node-axosoft", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "A node.js client for accessing the Axosoft API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
96341
1748