kinvey-flex-sdk
Advanced tools
Comparing version 2.0.0-b.1 to 2.0.0-b.2
@@ -23,2 +23,3 @@ /** | ||
const receiver = require('kinvey-code-task-runner'); | ||
const kinveyErrors = require('kinvey-datalink-errors'); | ||
@@ -50,4 +51,9 @@ class Flex { | ||
task.sdkVersion = this.version; | ||
if (!this[task.taskType] || task.taskType === 'logger' || task.taskType === 'moduleGenerator') { | ||
return new Error('Invalid task Type'); | ||
if ((!this[task.taskType] && task.taskType !== 'serviceDiscovery') || task.taskType === 'logger' || task.taskType === 'moduleGenerator') { | ||
task.response = task.response || {}; | ||
const result = task.response; | ||
result.body = kinveyErrors.generateKinveyError('BadRequest', 'Invalid task Type'); | ||
result.statusCode = result.body.statusCode; | ||
delete result.body.statusCode; | ||
return completionCallback(task); | ||
} | ||
@@ -54,0 +60,0 @@ |
{ | ||
"name": "kinvey-flex-sdk", | ||
"version": "2.0.0-b.1", | ||
"version": "2.0.0-b.2", | ||
"description": "SDK for creating Kinvey Flex Services", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
402654
7278
1525