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

kinvey-flex-sdk

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kinvey-flex-sdk - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

package-lock.json

4

CHANGELOG.md
## 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.

2

lib/service/functions.js

@@ -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', () => {

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