kinvey-flex-sdk
Advanced tools
Comparing version 2.0.8 to 2.0.9
## Changelog | ||
### 2.0.9 | ||
* FLEX-173 Fix for content.objectName undefined if request.collectionName passed | ||
* Update code-task-receiver to 2.2.2 | ||
### 2.0.8 | ||
@@ -4,0 +8,0 @@ * FLEX-172 Add the sdk version to the task object before validation for authKey. Add check for it in unit test. Small fix for unit test for count() missing a query. |
@@ -50,3 +50,3 @@ /** | ||
context.userId = task.request.userId; | ||
context.objectName = task.request.objectName || task.request.collectionNamemo; | ||
context.objectName = task.request.objectName || task.request.collectionName; | ||
context.hookType = task.hookType; | ||
@@ -53,0 +53,0 @@ |
{ | ||
"name": "kinvey-flex-sdk", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "SDK for creating Kinvey Flex Services", | ||
@@ -20,3 +20,3 @@ "engines": { | ||
"bson": "0.4.23", | ||
"kinvey-code-task-runner": "2.2.1", | ||
"kinvey-code-task-runner": "2.2.2", | ||
"kinvey-datalink-errors": "0.3.0", | ||
@@ -28,4 +28,4 @@ "lodash.forown": "4.2.0", | ||
"lodash.isempty": "4.4.0", | ||
"lodash.assign":"4.2.0", | ||
"lodash.foreach":"4.5.0", | ||
"lodash.assign": "4.2.0", | ||
"lodash.foreach": "4.5.0", | ||
"moment": "2.21.0", | ||
@@ -32,0 +32,0 @@ "request": "2.72.0", |
@@ -180,2 +180,30 @@ /** | ||
}); | ||
it('includes objectName if passed in request.objectName', (done) => { | ||
const taskName = quickRandom(); | ||
const task = sampleTask(taskName); | ||
task.request.objectName = 'foo'; | ||
functions.register(taskName, (context, complete, modules) => { | ||
context.should.be.an.Object(); | ||
complete.should.be.a.Function(); | ||
modules.should.be.an.Object(); | ||
context.objectName.should.eql('foo'); | ||
return done(); | ||
}); | ||
functions.process(task, {}, () => {}); | ||
}); | ||
it('includes objectName if passed in request.collectionName', (done) => { | ||
const taskName = quickRandom(); | ||
const task = sampleTask(taskName); | ||
task.request.collectionName = 'foo'; | ||
functions.register(taskName, (context, complete, modules) => { | ||
context.should.be.an.Object(); | ||
complete.should.be.a.Function(); | ||
modules.should.be.an.Object(); | ||
context.objectName.should.eql('foo'); | ||
return done(); | ||
}); | ||
functions.process(task, {}, () => {}); | ||
}); | ||
}); | ||
@@ -182,0 +210,0 @@ describe('completion handlers', () => { |
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
570408
48
13138
+ Addedkinvey-code-task-runner@2.2.2(transitive)
- Removedkinvey-code-task-runner@2.2.1(transitive)