kinvey-flex-sdk
Advanced tools
Comparing version 1.1.0 to 1.2.0
## Changelog | ||
### 1.2.0 | ||
* Append flex SDK version to task response | ||
* Upgrade code-task-receiver to v1.2.1 to fix null tasks sent via the TCP stream from crashing | ||
* Fixed doc issue | ||
### 1.1.0 | ||
@@ -4,0 +9,0 @@ * Added `modules.userStore` for creating, updating, finding, deleting, suspending, and restoring user entities. |
@@ -15,8 +15,9 @@ /** | ||
const data = require('./service/data'); | ||
const isNil = require('lodash.isnil'); | ||
const receiver = require('kinvey-code-task-runner'); | ||
const data = require('./service/data'); | ||
const flex = require('../package.json'); | ||
const functions = require('./service/functions'); | ||
const logger = require('./service/logger'); | ||
const moduleGenerator = require('./service/moduleGenerator'); | ||
const logger = require('./service/logger'); | ||
const receiver = require('kinvey-code-task-runner'); | ||
@@ -42,5 +43,7 @@ class Flex { | ||
this.moduleGenerator = moduleGenerator; | ||
this.version = flex.version; | ||
// TODO Remove legacy taskType values | ||
const taskReceivedCallback = (task, completionCallback) => { | ||
task.sdkVersion = this.version; | ||
if (task.taskType === 'data' || task.taskType === 'dataLink') { | ||
@@ -47,0 +50,0 @@ return this.data.process(task, this.moduleGenerator.generate(task), completionCallback); |
{ | ||
"name": "kinvey-flex-sdk", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "SDK for creating Kinvey Flex Services", | ||
@@ -20,3 +20,3 @@ "engines": { | ||
"bson": "0.4.23", | ||
"kinvey-code-task-runner": "1.0.0", | ||
"kinvey-code-task-runner": "1.2.1", | ||
"kinvey-datalink-errors": "0.2.2", | ||
@@ -23,0 +23,0 @@ "lodash.forown": "4.2.0", |
@@ -530,3 +530,3 @@ # Kinvey Flex SDK (beta) | ||
const options = { | ||
useBl: true, | ||
skipBl: true, | ||
useMasterSecret: false | ||
@@ -1258,3 +1258,3 @@ } | ||
const options = { | ||
useBl: true, | ||
skipBl: true, | ||
useMasterSecret: false | ||
@@ -1261,0 +1261,0 @@ } |
@@ -15,2 +15,3 @@ /** | ||
const flexPackageJson = require('../../package.json'); | ||
const should = require('should'); | ||
@@ -35,2 +36,4 @@ const proxyquire = require('proxyquire'); | ||
should.exist(flex.logger); | ||
should.exist(flex.version); | ||
flex.version.should.eql(flexPackageJson.version); | ||
return done(); | ||
@@ -37,0 +40,0 @@ })); |
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
362356
42
6478
+ Addedkinvey-code-task-runner@1.2.1(transitive)
- Removedkinvey-code-task-runner@1.0.0(transitive)